diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 0fb81935..31e504d0 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,33 +1,37 @@ # Contributing to Stylus -1. [Getting Involved](#getting-involved) -2. [How to Report Issues](#how-to-report-issues) -3. [Adding Tranlations](#adding-translations) -4. [Core Style Guide](#core-style-guide) -5. [Getting Started](#getting-started) +1. [Getting involved](#getting-involved) +2. [How to report issues](#how-to-report-issues) +3. [Adding translations](#adding-translations) +4. [Pull requests](#pull-requests) +5. [Contact us](#contact-us) -## Getting Involved +## Getting involved There are a number of ways to get involved with the development of Stylus. Even if you've never contributed to an Open Source project before, we're always looking for help by identifying issues and suggesting improvements. -## How to Report issues +## How to report issues -When an issue is opened, a template is provided. Please answer these questions as thoroughly as possible. If we were psychic, we'd be hanging out in casinos playing poker until they kicked us out. We can't read your mind! Please provide step-by-step direction on how to reproduce the issue as well as the browser, operating system and versions of each. +When an [**issue**](https://github.com/openstyles/stylus/issues) is opened, a template is provided. Please answer these questions as thoroughly as possible. If we were psychic, we'd be hanging out in casinos playing poker until they kicked us out. We can't read your mind! Please provide step-by-step directions on how to reproduce the issue as well as the versions of your operating system, browser and Stylus. -When adding a feature request, please include +When adding a **feature request**, please search through the existing issues to see if it the feature has already been requested, added or rejected. -## Adding Translations +If not, then provide details describing which page the feature will effect, e.g. popup, manager or editor. Then describe the request and explain how you think it would benefit the user experience. + + +## Adding translations You can help us translate the extension on [Transifex](https://www.transifex.com/github-7/Stylus). When `messages.json` file is ready to be merged, please open a new bug report in [stylus/issues](https://github.com/openstyles/stylus/issues). -## Core Style Guide - -* Use the provided `.editorconfig` file with your code editor. Don't know what that is? Then check out http://editorconfig.org/. - -## Getting Started +## Pull requests * First open an issue to discuss your changes. * Then download, fork or clone this repository. - + +* Use the provided `.editorconfig` file with your code editor. Don't know what that is? Then check out https://editorconfig.org/. * Make any changes within a branch of this repository (not the `master` branch). * Submit a pull request and include a reference to the initial issue with the discussion. + +## Contact us + +If you prefer a more informal method of getting in touch or starting a conversation, please [join us on Discord](https://discordapp.com/widget?id=379521691774353408) or leave a comment in the [discussion section](https://add0n.com/stylus.html#reviews). We will monitor any discussions there and join in, and it may be a more appropriate venue for opinions and less urgent suggestions. diff --git a/COPYING b/LICENSE similarity index 100% rename from COPYING rename to LICENSE diff --git a/README.md b/README.md index ac9ea877..9ba1d7f3 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ Stylus is a fork of Stylish for Chrome, also compatible with Firefox as a WebExt ## Releases 1. [Chrome Web Store](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne) (or [beta](https://chrome.google.com/webstore/detail/stylus-beta/apmmpaebfobifelkijhaljbmpcgbjbdo)) -2. [Firefox add-ons](https://addons.mozilla.org/firefox/addon/styl-us/) (or [beta](https://addons.mozilla.org/en-US/firefox/addon/styl-us/versions/beta)) -3. [Opera add-ons](https://addons.opera.com/extensions/details/stylus/) +2. [Firefox add-ons](https://addons.mozilla.org/firefox/addon/styl-us/) +3. [Opera add-ons](https://addons.opera.com/extensions/details/stylus/) (see [wiki](https://github.com/openstyles/stylus/wiki/Opera,-Outdated-Stylus) for more recent version) ## Screenshots @@ -28,9 +28,9 @@ Stylus is a fork of Stylish for Chrome, also compatible with Firefox as a WebExt ## Help -[![Discord][chat-image]][chat-link] - -See the [help docs](http://userstyles.org/help/stylish_chrome) or [ask in userstyles.org forum](https://forum.userstyles.org). For Stylus specific questions and suggestions please use [review section](http://add0n.com/stylus.html#reviews) of the FAQs page. +- [Stylus help and FAQ in our Wiki](https://github.com/openstyles/stylus/wiki) +- [Discussion section](https://add0n.com/stylus.html#reviews) of our representation on add0n.com +- Discord: [![Discord][chat-image]][chat-link] [chat-image]: https://img.shields.io/discord/379521691774353408.svg [chat-link]: https://discordapp.com/widget?id=379521691774353408 @@ -45,12 +45,13 @@ See our [contributing](./.github/CONTRIBUTING.md) page for more details. ## License -For copyright status of the "codemirror" directory, see [codemirror/LICENSE](https://github.com/openstyles/stylus/blob/master/src/vendor/codemirror/LICENSE). Everything else is: +Inherited code from the original [Stylish](https://github.com/stylish-userstyles/stylish/): +Copyright © 2005-2014 [Jason Barnabe](jason.barnabe@gmail.com) -Copyright (C) 2005-2014 Jason Barnabe - -Copyright (C) 2017 Stylus Team +Current Stylus: +Copyright © 2017-2018 [Stylus Team](https://github.com/openstyles/stylus/graphs/contributors) +**[GNU GPLv3](./LICENSE)** This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or @@ -62,4 +63,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License -along with this program. If not, see . +along with this program. If not, see . + +### External libraries + +The licenses of [external libraries](./vendor) used in this project or [modified versions of external libraries](./vendor-overwrites) can be found in their respective directory. diff --git a/_locales/de/messages.json b/_locales/de/messages.json index bc052a61..848a022c 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -187,6 +187,10 @@ "message": "Installierte Styles", "description": "Heading for the manage page" }, + "styleBeautify": { + "message": "Code formatieren", + "description": "Label for the CSS-beautifier button on the edit style page" + }, "styleRegexpProblemTooltip": { "message": "Anzahl der Bereiche, welche aufgrund nicht korrekt verwendeter Regulärer Ausdrücke nicht angewendet wurden.", "description": "Tooltip in the popup for styles that were applied only partially" @@ -375,7 +379,7 @@ "description": "Label (must be very short) for the checkbox in the toolbar button context menu controlling toolbar badge text." }, "popupHotkeysInfo": { - "message": "<1>-<9>, <0>, auch auf NumPad - schaltet n-ten Style um (0 ist 10)\n- schaltet ersten Style, dessen Name mit diesem Buchstaben beginnt\n öffnet Editor statt umzuschalten\n aktiviert die aufgeführten Styles\n deaktiviert die aufgeführten Styles\n und <`> (backtick) - schaltet anfänglich aktivierte Styles; trifft nicht auf Styles zu, die erst aktiviert werden, wenn das Popup noch geöffnet ist. Dadurch kann die Anfangseinstellung nach einem Test wiederhergestellt werden: Einfach alle deaktivieren, dann schalte z.B. \nMehr dazu im Wiki", + "message": "<0>-<9> (auch auf NumPad) schaltet den n-ten Style um (0 ist 10)\n- schaltet ersten Style, dessen Name mit diesem Buchstaben beginnt, um\n öffnet Editor statt umzuschalten\n aktiviert die aufgeführten Styles\n deaktiviert die aufgeführten Styles\n schaltet anfänglich aktivierte Styles um. Trifft nicht auf Styles zu, die erst aktiviert werden, wenn das Popup noch geöffnet ist. Dadurch kann z.B. die Anfangseinstellung nach einem Test wiederhergestellt werden: \nMehr dazu im Wiki", "description": "NOTE1: preserve < and > symbols so that is styled as a key.\nNOTE2: the last line is displayed as a text of the link to the wiki page.\nNOTE3: this is the list of hotkeys displayed after clicking the right edge of the extension popup." }, "cm_lineWrapping": { @@ -778,7 +782,7 @@ "description": "Text that displays when an update check skipped updating the style to avoid losing local modifications" }, "linterRulesLink": { - "message": "Vollständige Liste der Regeln anzeigen für", + "message": "Vollständige Liste der Regeln anzeigen", "description": "Stylelint or CSSLint rules label added immediately before a link" }, "styleUpdateDiscardChanges": { @@ -823,7 +827,7 @@ "description": "Text after the number of styles updated entirely in the report shown after importing styles" }, "cm_smartIndent": { - "message": "Intelligenten Einzug verwenden", + "message": "Intelligenter Einzug", "description": "Label for the checkbox controlling smart indentation option for the style editor." }, "styleRegexpTestButton": { @@ -839,7 +843,7 @@ "description": "Homepage link text on the manage page e.g. https://add0n.com/stylus.html#features with chat/FAQ/intro/info" }, "searchStylesHelp": { - "message": "Die -Taste fokussiert das Suchfeld.\nEinfacher Text: Sucht im Namen, Quelltext, Homepage und anvisierten URLs. Wörter mit weniger als 3 Buchstaben werden ignoriert.\nURL suchen: Stelle voran, z.B. \nReguläre Ausdrücke: Nutze Slash und Flags, z.B. \nSuche nach genauem Ausdruck: Anführungszeichen verwenden, z.B. <\".header ~ div\">", + "message": "Die -Taste (Numpad) fokussiert das Suchfeld.\nEinfacher Text: Sucht im Namen, Quelltext, Homepage und anvisierten URLs. Wörter mit weniger als 3 Buchstaben werden ignoriert.\nURL suchen: Stelle voran, z.B. \nReguläre Ausdrücke: Nutze Slash und Flags, z.B. \nSuche nach genauem Ausdruck: Anführungszeichen verwenden, z.B. <\".header ~ div\">", "description": "Text in the minihelp displayed when clicking (i) icon to the right of the search input field on the Manage styles page" }, "findStyles": { @@ -1123,7 +1127,7 @@ "description": "'Save' button in a confirm dialog" }, "manageNewUI": { - "message": "Neues Verwaltungs Design-Layout.", + "message": "Neues Verwaltungs-Layout", "description": "Label for the checkbox that toggles the new UI on manage page" }, "unreachableAMOHintOldFF": { @@ -1139,7 +1143,7 @@ "description": "Used in various lists/options to indicate that something is disabled" }, "cm_indentWithTabs": { - "message": "Tabs mit intelligentem Einzug verwenden", + "message": "Tabs mit intelligentem Einzug", "description": "Label for the checkbox controlling tabs with smart indentation option for the style editor." }, "replaceWith": { @@ -1232,7 +1236,7 @@ "description": "Reset button tooltip to inform user on how to undo an accidental reset" }, "description": { - "message": "Gestalte das Web neu mit Stylus, dem Style Manager. Stylus ermöglicht dir ganz einfach Themes und Designs für viele populäre Webseiten zu installieren.", + "message": "Gestalte das Web neu mit Stylus, dem Style Manager. Stylus ermöglicht dir ganz einfach Themes und Designs für viele beliebte Webseiten zu installieren.", "description": "Extension description" }, "confirmClose": { diff --git a/_locales/et/messages.json b/_locales/et/messages.json index 1f3c7df5..b240c08c 100644 --- a/_locales/et/messages.json +++ b/_locales/et/messages.json @@ -27,6 +27,10 @@ "message": "Ainult Usercss stiilid", "description": "Checkbox to show only Usercss styles" }, + "sortStylesHelp": { + "message": "Vali paigaldatud üksustele rakendatav sorteerimismeetod sorteerimise rippmenüüst. Vaikimisi seadistus rakendab kasvava sorteerimise (A-st Z-ni) üksuste pealkirjades. Sorteerimised grupis \"Kahanev pealkiri\" rakendavad pealkirjale kahaneva sorteerimise (Z-st A-ni).\nOn olemas ka teisi eelseadistusi, mis võimaldavad üksuste sorteerimist mitme kriteeriumi järgi. Mõtle sellest, nagu sorteeriksid mitme veeruga tabelit ja iga kategooria valikus (plussmärkide vahel) tähistab veergu või gruppi.\nNäiteks, kui valik on \"Lubatud (esimene) + pealkiri\", sorteeritakse üksused nii, et kõik lubatud üksused on nimekirja tipus ning nimekirja pealkirja kasvav sorteerimine (A-st Z-ni) rakendatakse nii lubatud kui keelatud üksustele eraldi.", + "description": "Text in the minihelp displayed when clicking (i) icon to the right of the sort input field on the Manage styles page" + }, "sortLabelTitleAsc": { "message": "Pealkiri tõusvas järjestuses", "description": "Text added to option group to indicate a block of options that apply a title ascending (A to Z) sort" @@ -48,7 +52,7 @@ "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" }, "installButton": { - "message": "Installi stiil", + "message": "Paigalda stiil", "description": "Label for install button" }, "styleMetaErrorCheckbox": { @@ -143,6 +147,10 @@ "message": "Lohista importimiseks oma varundusfail kuskile siia lehele.", "description": "Drag'n'drop message" }, + "styleRegexpTestNote": { + "message": "Märkus: kasuta üksikut \\, et keelata märgi töötlemine regulaaravaldise sisendväljas, mis konverteeritakse automaatselt \\\\-ks stiili koodis, nagu CSSi tsiteeritud sõnede spetsifikatsioon ette näeb.", + "description": "RegExp test report: a note displayed at the bottom of the dialog" + }, "helpAlt": { "message": "Abi", "description": "Alternate text for help buttons" @@ -164,7 +172,7 @@ "description": "Label for the checkbox that toggles grayed out mode of applies-to favicons in the new UI on manage page" }, "versionInvalidOlder": { - "message": "Versioon on installitud stiilist vanem.", + "message": "Versioon on paigaldatud stiilist vanem.", "description": "Displayed when the version of style is older than the installed one" }, "confirmYes": { @@ -176,7 +184,7 @@ "description": "Text for a link that gets a list of styles for the current site" }, "manageHeading": { - "message": "Installitud stiilid", + "message": "Paigaldatud stiilid", "description": "Heading for the manage page" }, "styleBeautify": { @@ -239,6 +247,10 @@ "message": "Impordi stiilid", "description": "" }, + "cm_selectByTokens": { + "message": "Topeltklõps valib sõnesid", + "description": "Label for the checkbox in the editor." + }, "confirmStop": { "message": "Peata", "description": "'Stop' button in a confirm dialog" @@ -268,7 +280,7 @@ "description": "Text after the number of styles with updated code (meta info is unchanged) in the report shown after importing styles" }, "styleInstall": { - "message": "Installida \"$stylename$\" Stylus'isse?", + "message": "Paigaldad \"$stylename$\" Stylus'isse?", "description": "Confirmation when installing a style", "placeholders": { "stylename": { @@ -343,7 +355,7 @@ "description": "Note in the toolbar popup for file:// URLs" }, "sortLabel": { - "message": "Vali, milline järjestus installitud stiilidele rakendada", + "message": "Vali, milline järjestus paigaldatud stiilidele rakendada", "description": "Title on the sort select to indicate it is used for sorting entries" }, "disableStyleLabel": { @@ -366,6 +378,10 @@ "message": "Kuva aktiivsete stiilide hulka", "description": "Label (must be very short) for the checkbox in the toolbar button context menu controlling toolbar badge text." }, + "popupHotkeysInfo": { + "message": "<1>-<9>, <0>, ka numbriklahvidel - lülitab N. stiili (0 on 10)\n- lülitab esimest stiili, mille nimi algab selle tähega\n avab redaktori lülitamise asemel\n lubab nimekirjas olevad stiilid\n keelab nimekirjas olevad stiilid\n ja <`> (graavis) - lülitab esialgu lubatud stiilid; ei rakendu järgnevalt lubatud stiilidele hüpiku avatud olekus, seega saad taastada esialgse valiku peale asjade testimist: lihtsalt keela kõik ning lülita, seega \nRohkem teavet vikis", + "description": "NOTE1: preserve < and > symbols so that is styled as a key.\nNOTE2: the last line is displayed as a text of the link to the wiki page.\nNOTE3: this is the list of hotkeys displayed after clicking the right edge of the extension popup." + }, "cm_lineWrapping": { "message": "Reamurdmine", "description": "Label for the checkbox controlling word wrap option for the style editor." @@ -490,7 +506,7 @@ "description": "Option to make the style apply to the entered string as a URL prefix" }, "cm_matchHighlightToken": { - "message": "Kursori all olev sõna", + "message": "Kursori all olev sõne", "description": "Style editor's 'highglight' drop-down list option: highlight the occurrences of the word/token under cursor even if nothing is selected" }, "searchRegexp": { @@ -534,7 +550,7 @@ "description": "Help text for sections" }, "noStylesForSite": { - "message": "Sellele saidile pole stiile installitud.", + "message": "Sellele saidile pole stiile paigaldatud.", "description": "Text displayed when no styles are installed for the current site" }, "appliesDisplayTruncatedSuffix": { @@ -546,7 +562,7 @@ "description": "Label for the button to remove an 'applies' entry" }, "updatesCurrentlyInstalled": { - "message": "Uuendused installitud:", + "message": "Uuendused paigaldatud:", "description": "Text that displays when an update is installed on options page. Followed by the number of currently installed updates." }, "styleToMozillaFormatTitle": { @@ -611,7 +627,7 @@ "description": "Label for the button to make a style apply only to specific sites" }, "installUpdate": { - "message": "Installi uuendus", + "message": "Paigalda uuendus", "description": "Label for the button to install an update for a single style" }, "syncStorageErrorSaving": { @@ -623,7 +639,7 @@ "description": "Text for a checkbox that opens search results 'inline' (within the Stylus popup window)" }, "optionsCheckUpdate": { - "message": "Kontrolli ja installi kõik saadaolevad uuendused", + "message": "Kontrolli ja paigalda kõik saadaolevad uuendused", "description": "" }, "clickToUninstall": { @@ -722,6 +738,10 @@ "message": "Lehti kokku", "description": "" }, + "cm_selectByTokensTooltip": { + "message": "Sõnede näited: .foo-bar-2 #aabbcc 0.32 !important\nKeelamisel valitakse punktidega eraldatud sõnad.", + "description": "" + }, "checkingForUpdate": { "message": "Kontrollin...", "description": "Text to display when checking a style for an update" @@ -755,7 +775,7 @@ "description": "Tooltip for the total page count in search results" }, "styleInstallOverwrite": { - "message": "'$stylename$' on juba installitud. Kas kirjutada üle?\nVersioon: $oldVersion$ -> $newVersion$", + "message": "'$stylename$' on juba paigaldatud. Kas kirjutada üle?\nVersioon: $oldVersion$ -> $newVersion$", "description": "Confirmation when re-installing a style", "placeholders": { "stylename": { @@ -790,7 +810,7 @@ "description": "Tooltip for the '->' (next page) button in search results" }, "searchResultInstallCount": { - "message": "Installimisi kokku", + "message": "Paigaldusi kokku", "description": "Text for label that shows the number of times a search result was installed" }, "sectionCode": { @@ -838,6 +858,10 @@ "message": "Hangi abi", "description": "Homepage link text on the manage page e.g. https://add0n.com/stylus.html#features with chat/FAQ/intro/info" }, + "searchStylesHelp": { + "message": " klahv fokuseerib otsinguvälja.\nLihttekst: otsi nimest, koodist, kodulehe URList ja rakendatavatest saitidest. Sõnu alla 3 tähemärgi ignoreeritakse.\nVastav URL: kasuta otsingus eesliidet , nt \nRegulaaravaldised sisaldavad kaldkriipse ja lippe, nt \nTäpsed sõnad: kirjuta väljendi ümber jutumärgid, nt <\".header ~ div\">", + "description": "Text in the minihelp displayed when clicking (i) icon to the right of the search input field on the Manage styles page" + }, "findStyles": { "message": "Leia stiile", "description": "Text for a link that gets a list of styles for the current site" @@ -945,7 +969,7 @@ "description": "Prompt when a DB error is encountered" }, "dateInstalled": { - "message": "Installimise kuupäev", + "message": "Paigaldamise kuupäev", "description": "Option text for the user to sort the style by install date" }, "optionsAdvanced": { @@ -961,7 +985,7 @@ "description": "Tooltip for the button to import a style and append to the existing sections" }, "liveReloadInstallHint": { - "message": "Reaalajas uuestilaadimine on lubatud, seega installitud stiili uuendatakse väliste muudatuste korral automaatselt, kuniks see kaart ja lähtefaili kaart mõlemad lahti on.", + "message": "Reaalajas uuestilaadimine on lubatud, seega paigaldatud stiili uuendatakse väliste muudatuste korral automaatselt, kuniks see kaart ja lähtefaili kaart mõlemad lahti on.", "description": "The label of live-reload feature" }, "editorStylesButton": { @@ -989,7 +1013,7 @@ "description": "Checkbox to show only externally installed styles i.e. updatable" }, "searchResultWeeklyCount": { - "message": "Installimisi nädalas", + "message": "Paigaldus nädalas", "description": "Text for label that shows the number of times a search result was installed during last week" }, "replaceAll": { @@ -1021,7 +1045,7 @@ "description": "Go to line or line:column on Ctrl-G in style code editor" }, "manageOnlyLocalTooltip": { - "message": "(stiilid, mida ei installitud userstyles.org lehelt)", + "message": "(stiilid, mida ei paigaldatud lehelt userstyles.org)", "description": "Tooltip for the checkbox to show only locally created styles i.e. non-updatable" }, "checkAllUpdates": { @@ -1074,7 +1098,7 @@ "description": "Label for the checkbox in the style editor." }, "installButtonReinstall": { - "message": "Installi stiil uuesti", + "message": "Paigalda stiil uuesti", "description": "Label for reinstall button" }, "linterInvalidConfigError": { @@ -1159,11 +1183,11 @@ "description": "Label for the button to delete a style" }, "updateCheckManualUpdateForce": { - "message": "Installi uuendus (kohalikud muutused kirjutatakse üle)", + "message": "Paigalda uuendus (kohalikud muutused kirjutatakse üle)", "description": "Additional text displayed when an update check skipped updating the style to avoid losing local modifications" }, "styleInstallFailed": { - "message": "Kasutajastiili installimine ebaõnnestus!\n$error$", + "message": "Kasutajastiili paigaldamine ebaõnnestus!\n$error$", "description": "Warning when installation failed", "placeholders": { "error": { @@ -1200,7 +1224,7 @@ "description": "Label for the button to go to the edit style page" }, "installButtonInstalled": { - "message": "Stiil installitud", + "message": "Stiil paigaldatud", "description": "Text displayed when the style is successfully installed" }, "author": { @@ -1244,7 +1268,7 @@ "description": "Wiki link text on the manage page e.g. https://github.com/openstyles/stylus/wiki" }, "description": { - "message": "Disaini veeb ümber kasutajastiilide halduri Stylus'iga. Stylus võimaldab sul lihtsalt installida teemasid ja välimusi mitmetele populaarsetele saitidele.", + "message": "Disaini veeb ümber kasutajastiilide halduri Stylus'iga. Stylus võimaldab sul lihtsalt paigaldada teemasid ja välimusi mitmetele populaarsetele saitidele.", "description": "Extension description" }, "confirmClose": { diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index 5aa7f1ad..6e7adb69 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -7,10 +7,18 @@ "message": "défaut", "description": "Default CodeMirror CSS theme option on the edit style page" }, + "bckpInstStyles": { + "message": "Exporter des styles", + "description": "" + }, "exportLabel": { "message": "Exportez", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" }, + "optionsBadgeNormal": { + "message": "Couleur d'arrière plan", + "description": "" + }, "cm_tabSize": { "message": "Taille des tabulations", "description": "Label for the text box controlling tab size option for the style editor." @@ -31,6 +39,10 @@ "message": "Rechercher des mises à jour", "description": "Label for the button to check a single style for an update" }, + "optionsOpenManager": { + "message": "Gérer les styles", + "description": "" + }, "updateAllCheckSucceededNoUpdate": { "message": "All styles are up to date.", "description": "Text that displays when an update all check completed and no updates are available" @@ -39,6 +51,10 @@ "message": "Aide", "description": "Alternate text for help buttons" }, + "search": { + "message": "Rechercher", + "description": "Label before the search input field in the editor shown on Ctrl-F" + }, "confirmYes": { "message": "Oui", "description": "'Yes' button in a confirm dialog" @@ -51,6 +67,10 @@ "message": "Styles installés", "description": "Heading for the manage page" }, + "styleBeautify": { + "message": "Embellir ", + "description": "Label for the CSS-beautifier button on the edit style page" + }, "styleEnabledLabel": { "message": "Activé", "description": "Label for the enabled state of styles" @@ -67,10 +87,30 @@ "message": "Enregistrer", "description": "Label for save button for style editing" }, + "confirmDelete": { + "message": "Supprimer", + "description": "" + }, + "confirmCancel": { + "message": "Annuler", + "description": "" + }, + "retrieveBckp": { + "message": "Importer des styles", + "description": "" + }, + "confirmStop": { + "message": "Arrêt ", + "description": "'Stop' button in a confirm dialog" + }, "writeStyleForURL": { "message": "cette URL", "description": "Text for link in toolbar pop-up to write a new style for the current URL" }, + "optionsSubheading": { + "message": "Plus de paramètres", + "description": "Subheading for options section on manage page." + }, "appliesAdd": { "message": "Ajouter", "description": "Label for the button to add an 'applies' entry" @@ -88,6 +128,10 @@ } } }, + "optionsCheck": { + "message": "Mettre à jour les styles", + "description": "" + }, "disableStyleLabel": { "message": "Désactiver", "description": "Label for the button to disable a style" @@ -108,6 +152,10 @@ "message": "Vous avez apporté des modifications à ce style sans les enregistrer.", "description": "Text for the prompt when changes are made to a style and the user tries to leave without saving" }, + "importLabel": { + "message": "Importer", + "description": "Label for the button to import a style ('edit' page) or all styles ('manage' page)" + }, "updateCheckFailServerUnreachable": { "message": "Échec de la mise à jour: le serveur est inaccessible.", "description": "Text that displays when an update check failed because the update server is unreachable" @@ -116,6 +164,10 @@ "message": "Filtres", "description": "Label for filters container" }, + "applyAllUpdates": { + "message": "Appliquer toutes les mises à jour", + "description": "Label for the button to apply all detected updates" + }, "deleteStyleConfirm": { "message": "Voulez-vous vraiment supprimer ce style ?", "description": "Confirmation before deleting a style" @@ -133,6 +185,10 @@ } } }, + "openStylesManager": { + "message": "Ouvrir le gestionnaire de styles", + "description": "Label for the style maanger opener in the browser action context menu." + }, "styleUpdate": { "message": "Voulez-vous mettre à jour '$stylename$'?", "description": "Confirmation when updating a style", @@ -179,10 +235,18 @@ "message": "Supprimer", "description": "Label for the button to remove an 'applies' entry" }, + "replace": { + "message": "Remplacer", + "description": "Label before the replace input field in the editor shown on Ctrl-H" + }, "appliesLabel": { "message": "S'applique à", "description": "Label for 'applies to' fields on the edit/add screen" }, + "openOptionsPopup": { + "message": "Paramètres", + "description": "Go to Options UI" + }, "openManage": { "message": "Gérer les styles installés", "description": "Link to open the manage page." @@ -212,6 +276,10 @@ "message": "Désactiver tous les styles", "description": "Label for the checkbox that turns all enabled styles off." }, + "undoGlobal": { + "message": "Tout annuler", + "description": "CSS-beautify global Undo button label" + }, "updateCompleted": { "message": "Mise à jour terminée.", "description": "Text that displays when an update completed" @@ -220,6 +288,10 @@ "message": "Vérification en cours…", "description": "Text to display when checking a style for an update" }, + "cm_smartIndent": { + "message": "Utiliser l'indentation intelligente", + "description": "Label for the checkbox controlling smart indentation option for the style editor." + }, "appliesHelp": { "message": "Utilisez l'option \"S'applique à\" pour préciser les URL auxquelles le code de cette section s'applique.", "description": "Help text for 'applies to' section" @@ -240,14 +312,26 @@ "message": "Une erreur s'est produite dans la base de donnée de Stylus. Voulez-vous visiter une page web avec les solutions possibles ?", "description": "Prompt when a DB error is encountered" }, + "optionsOpen": { + "message": "Ouvrir", + "description": "" + }, "checkAllUpdates": { "message": "Rechercher des mises à jour pour tous les styles", "description": "Label for the button to check all styles for updates" }, + "openOptionsManage": { + "message": "Paramètres d'interface graphique", + "description": "Go to Options UI" + }, "confirmNo": { "message": "Non", "description": "'No' button in a confirm dialog" }, + "undo": { + "message": "Annuler", + "description": "Button label" + }, "deleteStyleLabel": { "message": "Supprimer", "description": "Label for the button to delete a style" @@ -256,10 +340,18 @@ "message": "Créer un nouveau style", "description": "Label for the button to go to the add style page" }, + "backupButtons": { + "message": "Sauvergarde", + "description": "Heading for backup" + }, "editStyleLabel": { "message": "Modifier", "description": "Label for the button to go to the edit style page" }, + "cm_theme": { + "message": "Thème", + "description": "Label for the style editor's CSS theme." + }, "helpKeyMapCommand": { "message": "Tapez un nom de commande", "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" diff --git a/_locales/nl/messages.json b/_locales/nl/messages.json index d92fcdcb..735e7229 100644 --- a/_locales/nl/messages.json +++ b/_locales/nl/messages.json @@ -11,10 +11,70 @@ "message": "standaard", "description": "Default CodeMirror CSS theme option on the edit style page" }, + "styleRegexpTestTitle": { + "message": "Lijst van overeenkomende geopende tabbladen (klik op de URL om het tabblad te focussen)", + "description": "RegExp test report: title of the report" + }, + "bckpInstStyles": { + "message": "Stijlen exporteren", + "description": "" + }, + "sortStylesHelpTitle": { + "message": "Inhoud sorteren", + "description": "Label for the sort info popup on the Manage styles page" + }, + "manageOnlyUsercss": { + "message": "Alleen Usercss-stijlen", + "description": "Checkbox to show only Usercss styles" + }, + "sortStylesHelp": { + "message": "Kies de sorteermethode voor de geïnstalleerde items uit het uitrolmenu. De standaard instelling past een oplopende sortering (A-Z) to op de items. Sorteren op \"Titel - Aflopend\" past het omgekeerde (Z-A) toe.\nDe andere keuzes laten je sorteren op basis van meerdere criteria. Denk aan het sorteren van een tabel met meerdere kolommen en elke categorie in een selectie (tussen de plus-tekens) is een kolom of groep.\nVoorbeeld: als de instelling is \"Ingeschakeld (eerst) + Titel\", dan worden de ingeschakelde items bovenaan geplaatst en de rest wordt oplopend gesorteerd (A-Z).", + "description": "Text in the minihelp displayed when clicking (i) icon to the right of the sort input field on the Manage styles page" + }, + "sortLabelTitleAsc": { + "message": "Titel - Oplopend", + "description": "Text added to option group to indicate a block of options that apply a title ascending (A to Z) sort" + }, + "optionsUpdateInterval": { + "message": "Automatisch bijwerken-periode voor gebruikersstijlen (geef 0 op om dit uit te schakelen)", + "description": "" + }, + "unreachableAMOHintNewFF": { + "message": "In Firefox 60 en hoger moet je ook de AMO-domeinnaam verwijderen uit in .", + "description": "Note in the popup when opened on addons.mozilla.org in Firefox >= 59" + }, + "sortDateOldestFirst": { + "message": "oudste eerst", + "description": "Text added to indicate that sorting a date would add the oldest entries at the top" + }, "exportLabel": { "message": "Exporteren", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" }, + "installButton": { + "message": "Stijl installeren", + "description": "Label for install button" + }, + "styleMetaErrorCheckbox": { + "message": "Ongeldig @var-selectievakje: waarde moet 0 of 1 zijn", + "description": "Error displayed when the value of @var checkbox is invalid" + }, + "linterJSONError": { + "message": "Ongeldige JSON-opmaak", + "description": "Setting linter config with invalid JSON" + }, + "popupHotkeysTooltip": { + "message": "Klik om beschikbare sneltoetsen te tonen", + "description": "Tooltip displayed when hovering the right edge of the extension popup" + }, + "optionsBadgeNormal": { + "message": "Achtergrondkleur", + "description": "" + }, + "updateCheckHistory": { + "message": "Updatecontrole-geschiedenis", + "description": "" + }, "cm_tabSize": { "message": "Tabgrootte", "description": "Label for the text box controlling tab size option for the style editor." @@ -27,6 +87,14 @@ "message": "Vul een naam in", "description": "Error displayed when user saves without providing a name" }, + "genericHistoryLabel": { + "message": "Geschiedenis", + "description": "Used in various places to show a history log of something" + }, + "shortcutsNote": { + "message": "Sneltoetsen opgeven", + "description": "" + }, "appliesDomainOption": { "message": "URL's op het domein", "description": "Option to make the style apply to the entered string as a domain" @@ -35,26 +103,82 @@ "message": "Controleren op update", "description": "Label for the button to check a single style for an update" }, + "styleNotAppliedRegexpProblemTooltip": { + "message": "Stijl is niet toegepast vanwege onjuist gebruik van 'regexp()'", + "description": "Tooltip in the popup for styles that were not applied at all" + }, + "colorpickerSwitchFormatTooltip": { + "message": "Schakel tussen formaten: HEX -> RGB -> HSL.\nShift-klik om de volgorde om te draaien.\nWerkt ook met de toetsen PgUp (PageUp) en PgDn (PageDown).", + "description": "Tooltip for the switch button in the color picker popup in the style editor." + }, + "styleRegexpInvalidExplanation": { + "message": "Sommige 'regexp()'-regels kunnen niet worden gecompileerd.", + "description": "" + }, + "optionsIconDark": { + "message": "Donkere browserthema's", + "description": "" + }, + "styleFromMozillaFormatError": { + "message": "Importeren uit Mozilla-indeling mislukt", + "description": "Label for the import error" + }, "importAppendLabel": { "message": "Toevoegen aan stijl", "description": "Label for the button to import a style and append to the existing sections" }, + "optionsOpenManager": { + "message": "Stijlen beheren", + "description": "" + }, "updateAllCheckSucceededNoUpdate": { - "message": "Alle stijlen zijn bijgewerkt.", + "message": "Geen updates gevonden.", "description": "Text that displays when an update all check completed and no updates are available" }, + "importReportLegendAdded": { + "message": "toegevoegd", + "description": "Text after the number of styles added in the report shown after importing styles" + }, "styleFromMozillaFormatPrompt": { "message": "Plak de Mozilla-opmaakcode", "description": "Prompt in the dialog displayed after clicking 'Import from Mozilla format' button" }, + "dragDropMessage": { + "message": "Versleep je back-upbestand naar deze pagina om het te importeren.", + "description": "Drag'n'drop message" + }, + "styleRegexpTestNote": { + "message": "Let op: gebruik een enkele \\ voor het omzeilen in het regexp-invoerveld, welke automatisch omgezet zal worden naar \\\\ in de stijlcode, zoals opgegeven in de specificatie voor citaten in CSS.", + "description": "RegExp test report: a note displayed at the bottom of the dialog" + }, "helpAlt": { - "message": "Hul", + "message": "Hulp", "description": "Alternate text for help buttons" }, + "confirmOK": { + "message": "Oké", + "description": "" + }, "search": { "message": "Zoeken", "description": "Label before the search input field in the editor shown on Ctrl-F" }, + "genericEnabledLabel": { + "message": "Ingeschakeld", + "description": "Used in various lists/options to indicate that something is enabled" + }, + "previewTooltip": { + "message": "Past de wijzigingen tijdelijk toe zonder deze op te slaan.\nSla de stijl op om de wijzigingen permanent door te voeren.", + "description": "Tooltip for the checkbox in style editor to enable live preview while editing." + }, + "manageFaviconsGray": { + "message": "Niet beschikbaar", + "description": "Label for the checkbox that toggles grayed out mode of applies-to favicons in the new UI on manage page" + }, + "versionInvalidOlder": { + "message": "Deze versie is ouder dan de geïnstalleerde stijl.", + "description": "Displayed when the version of style is older than the installed one" + }, "confirmYes": { "message": "Ja", "description": "'Yes' button in a confirm dialog" @@ -71,22 +195,66 @@ "message": "Mooier maken", "description": "Label for the CSS-beautifier button on the edit style page" }, + "styleRegexpProblemTooltip": { + "message": "Aantal secties dat niet toegepast wordt vanwege onjuist gebruik van 'regexp()'", + "description": "Tooltip in the popup for styles that were applied only partially" + }, "styleEnabledLabel": { "message": "Ingeschakeld", "description": "Label for the enabled state of styles" }, + "configOnChange": { + "message": "bij wijzigingen", + "description": "VERY SHORT label for the checkbox in style config dialog after the save button - when enabled the changes in the dialog are saved and applied automatically without the need to press the Save button" + }, + "linterConfigTooltip": { + "message": "Klik om deze linter te configureren", + "description": "Icon tooltip to indicate that it opens a popup with the selected linter configuration" + }, "styleToMozillaFormatHelp": { - "message": "De Mozilla-opmaak van de code kan worden gebruikt met Stylish voor Firefox en worden ingezonden naar userstyles.org.", + "message": "De Mozilla-opmaak van de code kan worden gebruikt met Stylish voor Firefox en worden ingezonden naar userstyles.org", "description": "Help info for the Mozilla format header section that converts the code to/from Mozilla format" }, "sectionAdd": { "message": "Nog een sectie toevoegen", "description": "Label for the button to add a section" }, + "styleRegexpTestPartial": { + "message": "Niet volledig overeenkomend, dus overgeslagen", + "description": "RegExp test report: label for the partially matching expressions" + }, "styleSaveLabel": { "message": "Opslaan", "description": "Label for save button for style editing" }, + "genericSavedMessage": { + "message": "Opgeslagen", + "description": "Used in various parts of the UI to indicate that something was saved" + }, + "confirmDelete": { + "message": "Verwijderen", + "description": "" + }, + "confirmDefault": { + "message": "Standaard gebruiken", + "description": "'Set to default' button in a confirm dialog" + }, + "confirmCancel": { + "message": "Annuleren", + "description": "" + }, + "cm_autoCloseBracketsTooltip": { + "message": "Automatisch sluitingen toevoegen bij het openen van ()[]{}''\"\"", + "description": "Label for the checkbox in the style editor." + }, + "retrieveBckp": { + "message": "Stijlen importeren", + "description": "" + }, + "cm_selectByTokens": { + "message": "Dubbelklikken selecteert sleutels", + "description": "Label for the checkbox in the editor." + }, "confirmStop": { "message": "Stoppen", "description": "'Stop' button in a confirm dialog" @@ -95,6 +263,10 @@ "message": "deze URL", "description": "Text for link in toolbar pop-up to write a new style for the current URL" }, + "optionsSubheading": { + "message": "Meer opties", + "description": "Subheading for options section on manage page." + }, "appliesAdd": { "message": "Toevoegen", "description": "Label for the button to add an 'applies' entry" @@ -103,6 +275,14 @@ "message": "URL's overeenkomend met de regexp", "description": "Option to make the style apply to the entered string as a regular expression" }, + "optionsAdvancedExposeIframesNote": { + "message": "Legt het bovenliggende domein van de site bloot in elk iframe.\nSchakelt schrijven in voor iframe-specifieke CSS, zoals:\nhtml[stylus-iframe$=\"twitter.com\"] h1 { display:none }", + "description": "" + }, + "importReportLegendUpdatedCode": { + "message": "code bijgewerkt", + "description": "Text after the number of styles with updated code (meta info is unchanged) in the report shown after importing styles" + }, "styleInstall": { "message": "'$stylename$' installeren in Stylus?", "description": "Confirmation when installing a style", @@ -112,6 +292,31 @@ } } }, + "optionsBadgeDisabled": { + "message": "Achtergrondkleur indien uitgeschakeld", + "description": "" + }, + "optionsCheck": { + "message": "Stijlen bijwerken", + "description": "" + }, + "manageOnlyLocal": { + "message": "Alleen lokaal gecreëerde stijlen", + "description": "Checkbox to show only locally created styles i.e. non-updatable" + }, + "styleMetaErrorPreprocessor": { + "message": "Niet-ondersteunde @preprocessor: $preprocessor$", + "description": "Error displayed when the value of @preprocessor is not supported", + "placeholders": { + "preprocessor": { + "content": "$1" + } + } + }, + "searchNumberOfResults2": { + "message": "Aantal overeenkomsten in code en 'toepasbaar op'-items", + "description": "Tooltip for the number of found search results in the editor shown on Ctrl-F" + }, "linterIssuesHelp": { "message": "De door stylelint gevonden problemen, $link$:", "description": "Help popup message for the selected CSS linter issues block on the style edit page", @@ -121,26 +326,66 @@ } } }, + "parseUsercssError": { + "message": "Stylus kan de usercss niet verwerken:", + "description": "The error message to show when stylus failed to parse usercss" + }, "searchStyles": { "message": "Inhoud doorzoeken", "description": "Label for the search filter textbox on the Manage styles page" }, + "optionsUpdateImportNote": { + "message": "Als je stijlen importeert uit een oudere versie of uit Stylish, controleer dan eenmalig op updates in de stijlbeheerder om er zeker van te zijn dat alle stijlen zijn bijgewerkt.", + "description": "" + }, + "checkAllUpdatesForce": { + "message": "Ik heb geen stijlen bewerkt; controleer opnieuw!", + "description": "Label for the button to apply all detected updates" + }, + "manageOnlyNonUsercss": { + "message": "Alleen niet-Usercss-stijlen", + "description": "Checkbox to show only non-Usercss (standard) styles" + }, + "liveReloadLabel": { + "message": "Live herladen", + "description": "The label of live-reload feature" + }, "linkGetStyles": { "message": "Verkrijg stijlen", "description": "Help link text on the manage page e.g. https://userstyles.org" }, + "unreachableFileHint": { + "message": "Stylus kan toegang krijgen tot URL's beginnend met file://, maar alleen als je een vinkje zet in het juiste selectievakje op de pagina chrome://extensions", + "description": "Note in the toolbar popup for file:// URLs" + }, + "sortLabel": { + "message": "Selecteer een sorteermethode om toe te passen op geïnstalleerde stijlen", + "description": "Title on the sort select to indicate it is used for sorting entries" + }, "disableStyleLabel": { "message": "Uitschakelen", "description": "Label for the button to disable a style" }, "prefShowBadge": { - "message": "Aantal actieve stijlen voor de huidige website weergeven op de werkbalkknop", + "message": "Aantal actieve stijlen voor de huidige website", "description": "Label for the checkbox controlling toolbar badge text." }, + "manageFavicons": { + "message": "Favicons in 'toepasbaar op'-kolom", + "description": "Label for the checkbox that toggles applies-to favicons in the new UI on manage page" + }, + "paginationCurrent": { + "message": "Huidige pagina", + "description": "Tooltip for the current page index in search results" + }, "menuShowBadge": { - "message": "Teller voor actieve stijlen weergeven", + "message": "Teller tonen voor actieve stijlen", "description": "Label (must be very short) for the checkbox in the toolbar button context menu controlling toolbar badge text." }, + "popupHotkeysInfo": { + "message": "<1>-<9>, <0>, ook op het numpad - schakelt naar de Nth-stijl (0 is 10)\n- schakelt naar de eerste stijl die begint met de letter\n opent de bewerker i.p.v. deze om te schakelen\n schakelt opgesomde stijlen in\n schakelt opgesomde stijlen uit\n en <`> (accent grave) - schakelt tussen initieel ingeschakelde stijlen; niet van toepassing op stijlen die zijn ingeschakeld met het pop-upvenster geopend, zodat je de initiële selectie kunt herstellen na het uitproberen: schakel alles uit en schakel dan naar bijv. \nMeer informatie is te vinden op de wiki", + "description": "NOTE1: preserve < and > symbols so that is styled as a key.\nNOTE2: the last line is displayed as a text of the link to the wiki page.\nNOTE3: this is the list of hotkeys displayed after clicking the right edge of the extension popup." + }, "cm_lineWrapping": { "message": "Woordomslag", "description": "Label for the checkbox controlling word wrap option for the style editor." @@ -150,31 +395,51 @@ "description": "Label for cancel button for style editing" }, "styleChangesNotSaved": { - "message": "U heeft wijzigingen aangebracht in deze stijl zonder deze op te slaan.", + "message": "Je hebt wijzigingen aangebracht in deze stijl zonder ze op te slaan.", "description": "Text for the prompt when changes are made to a style and the user tries to leave without saving" }, "importLabel": { "message": "Importeren", "description": "Label for the button to import a style ('edit' page) or all styles ('manage' page)" }, + "shortcuts": { + "message": "Sneltoetsen", + "description": "Go to shortcut configuration" + }, "updateCheckFailServerUnreachable": { "message": "Update mislukt: server onbereikbaar.", "description": "Text that displays when an update check failed because the update server is unreachable" }, + "genericError": { + "message": "Fout", + "description": "Used in various places to indicate some error occurred." + }, "applyAllUpdates": { "message": "Alle bijwerkingen toepassen", "description": "Label for the button to apply all detected updates" }, + "optionsReset": { + "message": "Opties terugzetten op standaardwaarden", + "description": "" + }, "deleteStyleConfirm": { - "message": "Weet u zeker dat u deze stijl wilt verwijderen?", + "message": "Weet je zeker dat je deze stijl wilt verwijderen?", "description": "Confirmation before deleting a style" }, + "optionsCustomizePopup": { + "message": "Pop-up", + "description": "" + }, "styleBadRegexp": { "message": "Regexp is ongeldig.", "description": "Validation message for a bad regexp in a style" }, + "license": { + "message": "Licentie", + "description": "Label for the license" + }, "optionsHeading": { - "message": "Voorkeuren", + "message": "Opties", "description": "Heading for options section on manage page." }, "appliesDisplay": { @@ -186,8 +451,16 @@ } } }, + "optionsIconLight": { + "message": "Lichte browserthema's", + "description": "" + }, + "openStylesManager": { + "message": "Stijlbeheerder openen", + "description": "Label for the style maanger opener in the browser action context menu." + }, "styleUpdate": { - "message": "Weet u zeker dat u '$stylename$' wilt updaten?", + "message": "Weet je zeker dat je '$stylename$' wilt bijwerken?", "description": "Confirmation when updating a style", "placeholders": { "stylename": { @@ -199,6 +472,18 @@ "message": "Secties", "description": "Title for the style sections section" }, + "importReportLegendInvalid": { + "message": "ongeldige overgeslagen", + "description": "Text after the number of styles skipped due to being invalid (not a Stylus/Stylish backup file probably) in the report shown after importing styles" + }, + "optionsAdvancedNewStyleAsUsercss": { + "message": "Nieuwe stijl schrijven als usercss", + "description": "" + }, + "genericResetLabel": { + "message": "Standaardwaarden", + "description": "Used in various parts of UI to indicate that something may be reset to its original state" + }, "editStyleTitle": { "message": "Stijl $stylename$ bewerken", "description": "Title of the page for editing styles", @@ -209,27 +494,55 @@ } }, "updateCheckSucceededNoUpdate": { - "message": "Stijl is up-to-date.", + "message": "Stijl is actueel.", "description": "Text that displays when an update check completed and no update is available" }, "appliesUrlPrefixOption": { "message": "URL's beginnend met", "description": "Option to make the style apply to the entered string as a URL prefix" }, + "cm_matchHighlightToken": { + "message": "Sleutel onder cursor", + "description": "Style editor's 'highglight' drop-down list option: highlight the occurrences of the word/token under cursor even if nothing is selected" + }, "searchRegexp": { "message": "Gebruik /re/-syntax voor regexp-zoeken", "description": "Label after the search input field in the editor shown on Ctrl-F" }, + "popupBordersTooltip": { + "message": "Handig voor donkere thema's in Chrome, omdat zijranden niet meer worden gerenderd", + "description": "" + }, + "updateCheckManualUpdateHint": { + "message": "Een update forceren zal lokale bewerkingen overschrijven.", + "description": "Additional text displayed when an update check skipped updating the style to avoid losing local modifications" + }, + "toggleStyle": { + "message": "Stijl inschakelen/uitschakelen", + "description": "Label for the checkbox to enable/disable a style" + }, + "searchNumberOfResults": { + "message": "Aantal overeenkomsten", + "description": "Tooltip for the number of found search results in the editor shown on Ctrl-F" + }, "importReplaceTooltip": { "message": "Verwerp de inhoud van de huidige stijl en overschrijf het met de geïmporteerde stijl", "description": "Label for the button to import and overwrite current style" }, + "installUpdateFromLabel": { + "message": "Controleren op updates", + "description": "Label for the checkbox to save current URL for update check" + }, + "cm_resizeGripHint": { + "message": "Dubbelklik om de hoogte te maximaliseren/herstellen", + "description": "Tooltip for the resize grip in style editor" + }, "popupStylesFirst": { - "message": "Stijlen vóór commando's opsomming in het werkbalkknopmenu", + "message": "Stijlen vóór commando's opsommen", "description": "Label for the checkbox controlling section order in the popup." }, "sectionHelp": { - "message": "Secties stellen u in staat om andere stukken code toe te passen op andere URL's in dezelfde stijl. Bijv.: een enkele stijl kan de homepage van een site aanpassen op een bepaalde manier, terwijl de rest van de site op een andere manier wordt aangepast.", + "message": "Secties stellen je in staat om andere stukken code toe te passen op andere URL's in dezelfde stijl. Bijv.: een enkele stijl kan de startpagina van een site aanpassen op een bepaalde manier, terwijl de rest van de site op een andere manier wordt aangepast.", "description": "Help text for sections" }, "noStylesForSite": { @@ -244,10 +557,22 @@ "message": "Verwijderen", "description": "Label for the button to remove an 'applies' entry" }, + "updatesCurrentlyInstalled": { + "message": "Geïnstalleerde updates:", + "description": "Text that displays when an update is installed on options page. Followed by the number of currently installed updates." + }, "styleToMozillaFormatTitle": { "message": "Stijl in Mozilla-opmaak", "description": "Title of the popup with the style code in Mozilla format, shown after pressing the Export button on Edit style page" }, + "cm_colorpicker": { + "message": "Kleurkiezer voor CSS-kleuren", + "description": "Label for the checkbox controlling colorpicker option for the style editor." + }, + "filteredStylesAllHidden": { + "message": "Geen overeenkomende stijlen met de momenteel toegepaste filters", + "description": "Text shown when no styles match currently applied filter in the style manager" + }, "writeStyleFor": { "message": "Stijl schrijven voor:", "description": "Label for toolbar pop-up that precedes the links to write a new style" @@ -256,16 +581,36 @@ "message": "Vervangen", "description": "Label before the replace input field in the editor shown on Ctrl-H" }, + "styleRegexpTestNone": { + "message": "Geen overeenkomende tabbladen", + "description": "RegExp test report: label for expressions that didn't match any tabs" + }, + "importReportLegendUpdatedMeta": { + "message": "meta-informatie bijgewerkt", + "description": "Text after the number of styles with updated meta info like name/url in the report shown after importing styles" + }, "appliesLabel": { "message": "Toepasbaar op", "description": "Label for 'applies to' fields on the edit/add screen" }, + "sortLabelTitleDesc": { + "message": "Titel - Aflopend", + "description": "Text added to option group to indicate a block of options that apply a title descending (Z to A) sort" + }, + "openOptionsPopup": { + "message": "Opties", + "description": "Go to Options UI" + }, + "usercssConfigIncomplete": { + "message": "De stijl is bijgewerkt of verwijderd nadat het configuratievenster werd getoond. Deze variabelen zijn niet opgeslagen om corruptie te voorkomen:", + "description": "" + }, "openManage": { - "message": "Geïnstalleerde stijlen beheren", + "message": "Beheren", "description": "Link to open the manage page." }, "updateCheckFailBadResponseCode": { - "message": "Update mislukt: server gaf code $code$ als antwoord.", + "message": "Update mislukt: server kwam terug met $code$.", "description": "Text that displays when an update check failed because the response code indicates an error", "placeholders": { "code": { @@ -281,10 +626,70 @@ "message": "Update installeren", "description": "Label for the button to install an update for a single style" }, + "syncStorageErrorSaving": { + "message": "De waarde kan niet worden opgeslagen. Probeer het aantal tekst te verminderen.", + "description": "Displayed when trying to save an excessively big value via storage.sync API" + }, + "optionsCheckUpdate": { + "message": "Controleren op updates en deze installeren", + "description": "" + }, + "clickToUninstall": { + "message": "Klik om te deïnstalleren", + "description": "Label for the overlay on a style thumbnail when installed via inline search in the popup" + }, + "filteredStyles": { + "message": "$numShown$ van de $numTotal$ wordt/worden getoond", + "description": "TL note - make this message short", + "placeholders": { + "numTotal": { + "content": "$2" + }, + "numShown": { + "content": "$1" + } + } + }, + "importReportTitle": { + "message": "Stijlen importeren voltooid", + "description": "Title of the report shown after importing styles" + }, + "unreachableAMOHint": { + "message": "Open, om te machtigen, , klik met de rechtermuisknop op de lijst, kies dan voor 'Nieuw' --> 'Boolean' en plak . Klik daarna op Oké --> --> Oké en herlaad de -pagina.", + "description": "Note in the popup when opened on addons.mozilla.org in Firefox >= 59" + }, "styleMozillaFormatHeading": { "message": "Mozilla-opmaak", "description": "Heading for the section with buttons to import/export Mozilla format of the style" }, + "cm_matchHighlight": { + "message": "Markeren", + "description": "Label for the drop-down list controlling the automatic highlighting of current word/selection occurrences in the style editor." + }, + "styleRegexpPartialExplanation": { + "message": "Deze stijl gebruikt gedeeltelijk overeenkomende regexps. Dit is in strijd met de CSS4 @document-specificatie, welke een volledige URL-overeenkomst vereist. De getroffen CSS-secties zijn niet toegepast op de pagina. Deze stijl is waarschijnlijk gecreëerd met Stylish-voor-Chrome, welke onjuist controleert op 'regexp()'-regels sinds de allereerste versie (bekende fout).", + "description": "" + }, + "linterCSSLintSettings": { + "message": "(stel regel in als volgt: 0 = uitgeschakeld; 1 = waarschuwing; 2 = fout)", + "description": "CSSLint rule config values" + }, + "usercssReplaceTemplateSectionBody": { + "message": "Voer hier code in...", + "description": "The code placeholder comment in a new style created by clicking 'Write style' in the popup" + }, + "searchResultNoneFound": { + "message": "Geen stijlen gevonden voor deze website.", + "description": "Error text in the popup when inline search didn't find any site-specific styles" + }, + "styleBeautifyIndentConditional": { + "message": "@media, @supports inspringen", + "description": "CSS-beautifier option" + }, + "unreachableContentScript": { + "message": "Kan niet communiceren met de pagina. Probeer het tabblad te herladen.", + "description": "Note in the toolbar popup usually on file:// URLs after [re]loading Stylus" + }, "sectionRemove": { "message": "Sectie verwijderen", "description": "Label for the button to remove a section" @@ -293,22 +698,146 @@ "message": "Alle stijlen uitschakelen", "description": "Label for the checkbox that turns all enabled styles off." }, + "appliesLineWidgetLabel": { + "message": "Toont 'Toepasbaar op'-informatie", + "description": "Label for the checkbox to display applies-to information in the single editor" + }, + "updateCheckSkippedMaybeLocallyEdited": { + "message": "Deze stijl is waarschijnlijk lokaal bewerkt.", + "description": "Text that displays when an update check skipped updating the style to avoid losing possible local modifications" + }, "undoGlobal": { - "message": "Ongedaan maken (globaal)", + "message": "Ongedaan maken (alle secties)", "description": "CSS-beautify global Undo button label" }, + "optionsCustomizeIcon": { + "message": "Werkbalkpictogram", + "description": "" + }, + "genericTitle": { + "message": "Titel", + "description": "Used in various parts of the UI to indicate the title of something" + }, "updateCompleted": { "message": "Update voltooid.", "description": "Text that displays when an update completed" }, + "previewLabel": { + "message": "Live-voorbeeld", + "description": "Label for the checkbox in style editor to enable live preview while editing." + }, + "paginationTotal": { + "message": "Totaal aantal pagina's", + "description": "" + }, + "cm_selectByTokensTooltip": { + "message": "Voorbeeldsleutels: .foo-bar-2 #aabbcc 0.32 !important\nIndien uitgeschakeld: punctuatieloze woorden worden geselecteerd.", + "description": "" + }, "checkingForUpdate": { "message": "Bezig met controleren...", "description": "Text to display when checking a style for an update" }, + "styleRegexpTestFull": { + "message": "Overeenkomende tabbladen", + "description": "RegExp test report: label for the fully matching expressions" + }, + "manageMaxTargets": { + "message": "Aantal 'toepasbaar op'-items", + "description": "Label for the numeric input box to limit max number of applies-to targets in the new UI on manage page" + }, + "searchResultRating": { + "message": "Waardering", + "description": "Text for label that shows the search result's rating" + }, + "genericUnknown": { + "message": "Onbekend", + "description": "Used in various parts of the UI to indicate if something is unknown (e.g. an unknown date)" + }, + "popupManageTooltip": { + "message": "Shift-klik of rechtsklik opent de beheerder met stijlen die toepasbaar zijn op de huidige site", + "description": "Tooltip for the 'Manage' button in the popup." + }, + "manageFaviconsHelp": { + "message": "Stylus gebruikt een externe dienst https://www.google.com/s2/favicons", + "description": "Label for the checkbox that toggles applies-to favicons in the new UI on manage page" + }, + "paginationEstimated": { + "message": "Geschatte aantal pagina's", + "description": "Tooltip for the total page count in search results" + }, + "styleInstallOverwrite": { + "message": "'$stylename$' is al geïnstalleerd. Overschrijven?\nVersie: $oldVersion$ -> $newVersion$", + "description": "Confirmation when re-installing a style", + "placeholders": { + "stylename": { + "content": "$1" + }, + "newVersion": { + "content": "$3" + }, + "oldVersion": { + "content": "$2" + } + } + }, + "updateCheckSkippedLocallyEdited": { + "message": "Deze stijl is lokaal bewerkt.", + "description": "Text that displays when an update check skipped updating the style to avoid losing local modifications" + }, + "linterRulesLink": { + "message": "Volledige regellijst bekijken", + "description": "Stylelint or CSSLint rules label added immediately before a link" + }, + "styleUpdateDiscardChanges": { + "message": "Deze stijl is gewijzigd buiten de bewerker om. Wil je de stijl herladen?", + "description": "Confirmation to update the style in the editor" + }, + "optionsResetButton": { + "message": "Standaardwaarden", + "description": "" + }, + "paginationNext": { + "message": "Volgende pagina", + "description": "Tooltip for the '->' (next page) button in search results" + }, + "searchResultInstallCount": { + "message": "Totaal aantal installaties", + "description": "Text for label that shows the number of times a search result was installed" + }, + "externalUsercssDocument": { + "message": "Documentatie voor Usercss", + "description": "Label for the external link to usercss documentation" + }, + "optionsAdvancedContextDelete": { + "message": "'Verwijderen' toevoegen aan rechtermuisknopmenu van bewerker", + "description": "" + }, + "linterConfigPopupTitle": { + "message": "$linter$-regelsconfiguratie instellen", + "description": "Stylelint or CSSLint popup header", + "placeholders": { + "linter": { + "content": "$1" + } + } + }, + "configureStyle": { + "message": "Instellen", + "description": "Label for the button to configure usercss userstyle" + }, + "importReportLegendUpdatedBoth": { + "message": "meta-informatie en code bijgewerkt", + "description": "Text after the number of styles updated entirely in the report shown after importing styles" + }, "cm_smartIndent": { "message": "Slimme inspringing gebruiken", "description": "Label for the checkbox controlling smart indentation option for the style editor." }, + "styleRegexpTestButton": { + "message": "RegExp-test", + "description": "RegExp test button label in the editor shown when applies-to list has a regexp value" + }, "appliesHelp": { "message": "Gebruik de 'Toepasbaar op'-functies om de URL's te limiteren in de sectie.", "description": "Help text for 'applies to' section" @@ -317,58 +846,310 @@ "message": "Verkrijg hulp", "description": "Homepage link text on the manage page e.g. https://add0n.com/stylus.html#features with chat/FAQ/intro/info" }, + "searchStylesHelp": { + "message": "-toets focust het zoekvak.\nPlatte tekst: zoeken in de naam, code, website-URL en de sites waarop het wordt toegepast. Woorden met minder dan 3 letters worden genegeerd.\nOvereenkomende URL: begin de zoekopdracht met , bijv. \nReguliere expressies: inclusief schuine strepen en vlaggen, bijv. \nExacte woorden: gebruik dubbele aanhalingstekens in de zoekterm, bijv. <\".header ~ div\">", + "description": "Text in the minihelp displayed when clicking (i) icon to the right of the search input field on the Manage styles page" + }, + "findStyles": { + "message": "Stijlen zoeken", + "description": "Text for a link that gets a list of styles for the current site" + }, "editStyleHeading": { "message": "Stijl bewerken", "description": "Title of the page for editing styles" }, + "editDeleteText": { + "message": "Verwijderen", + "description": "Label for the context menu item in the editor to delete selected text" + }, + "cm_autocompleteOnTyping": { + "message": "Auto-aanvullen tijdens typen", + "description": "Label for the checkbox in the style editor." + }, + "unreachableAMO": { + "message": "Firefox blokkeert de toegang tot deze website.", + "description": "Note in the popup displayed when opened on addons.mozilla.org" + }, + "linterCSSLintIncompatible": { + "message": "CSSLint heeft geen ondersteuning voor $preprocessorname$", + "description": "The label to display when the preprocessor isn't compatible with CSSLint", + "placeholders": { + "preprocessorname": { + "content": "$1" + } + } + }, + "styleMetaErrorSelectValueMismatch": { + "message": "Ongeldige @select: waarde staat niet op de lijst", + "description": "Error displayed when the value of @select is invalid" + }, + "styleMetaErrorColor": { + "message": "$color$ is geen geldige kleur", + "description": "Error displayed when the value of @var color is invalid", + "placeholders": { + "color": { + "content": "$1" + } + } + }, + "genericPrevious": { + "message": "Vorige", + "description": "Used in various places to select/perform the previous step/action" + }, + "manageOnlyDisabled": { + "message": "Alleen uitgeschakelde stijlen", + "description": "Checkbox to show only disabled styles" + }, + "stylusUnavailableForURLdetails": { + "message": "Omwille van beveiligingsredenen, verbiedt de browser extensies op ingebouwde pagina's (zoals chrome://version, de standaard nieuwe tabblad-pagina sinds Chrome 61, about:addons, enz.) alsmede andere extensiepagina's. Elke browser beperkt ook de toegang tot de extensiegalerij (zoals de Chrome Web Store of AMO).", + "description": "Sub-note in the toolbar pop-up when on a URL Stylus can't affect" + }, + "cm_matchHighlightSelection": { + "message": "Alleen selectie", + "description": "Style editor's 'highglight' drop-down list option: highlight the occurrences of currently selected text" + }, + "updateAllCheckSucceededSomeEdited": { + "message": "Sommige stijlen die kunnen worden bijgewerkt zijn niet gecontroleerd om mogelijke lokale bewerkingen te behouden. Updates kunnen worden geforceerd door de stijlen individueel te controleren of door alle stijlen opnieuw te controleren (lokale bewerkingen worden overschreven).", + "description": "Text that displays when an update all check completed and no updates are available" + }, "stylusUnavailableForURL": { "message": "Stylus werkt niet op pagina's als deze.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" }, + "popupBorders": { + "message": "Witte randen toevoegen aan zijkanten", + "description": "" + }, + "manageOnlyUpdates": { + "message": "Alleen bij updates of problemen", + "description": "Checkbox to show only styles that have updates after check-all-styles-for-updates was performed" + }, "addStyleTitle": { "message": "Stijl toevoegen", "description": "Title of the page for adding styles" }, + "externalLink": { + "message": "Externe link", + "description": "Label for external links" + }, + "externalHomepage": { + "message": "Website", + "description": "Label for the external link to style's homepage" + }, "importReplaceLabel": { "message": "Stijl overschrijven", "description": "Label for the button to import and overwrite current style" }, + "genericNext": { + "message": "Volgende", + "description": "Used in various places to select/perform the next step/action" + }, + "popupOpenEditInWindowTooltip": { + "message": "Wordt tevens ingeschakeld door het losmaken van het bewerker-tabblad,\nen uitgeschakeld door het vastmaken van een los bewerker-tabblad aan een ander venster.", + "description": "Label for the checkbox controlling 'edit' action behavior in the popup." + }, "dbError": { - "message": "Er is een fout opgetreden bij het gebruiken van de Stylus-database. Wilt u een webpagina met mogelijke oplossingen bezoeken?", + "message": "Er is een fout opgetreden bij het gebruiken van de Stylus-database. Wil je een webpagina met mogelijke oplossingen bezoeken?", "description": "Prompt when a DB error is encountered" }, + "dateInstalled": { + "message": "Installatiedatum", + "description": "Option text for the user to sort the style by install date" + }, + "optionsAdvanced": { + "message": "Geavanceerd", + "description": "" + }, + "alphaChannel": { + "message": "Doorzichtigheid", + "description": "Label of color's opacity" + }, "importAppendTooltip": { - "message": "Voeg de geïmporteerde stijl toe aan de huidige stijl", + "message": "Geïmporteerde stijl toevoegen aan huidige stijl", "description": "Tooltip for the button to import a style and append to the existing sections" }, + "liveReloadInstallHint": { + "message": "Live-herladen is ingeschakeld. De geïnstalleerde stijl zal automatisch worden bijgewerkt bij externe wijzigingen als zowel dit tabblad als het tabblad van het bronbestand geopend zijn.", + "description": "The label of live-reload feature" + }, + "editorStylesButton": { + "message": "Bewerkerstijlen zoeken", + "description": "Find styles for the editor" + }, + "optionsOpen": { + "message": "Openen", + "description": "" + }, "helpKeyMapHotkey": { "message": "Druk op een sneltoets", "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" }, + "styleRegexpTestInvalid": { + "message": "Ongeldige regexps overgeslagen", + "description": "RegExp test report: label for the invalid expressions" + }, + "dateUpdated": { + "message": "Bijwerkdatum", + "description": "Option text for the user to sort the style by last update date" + }, + "manageOnlyExternal": { + "message": "Alleen externe stijlen", + "description": "Checkbox to show only externally installed styles i.e. updatable" + }, + "searchResultWeeklyCount": { + "message": "Wekelijks aantal installaties", + "description": "Text for label that shows the number of times a search result was installed during last week" + }, "replaceAll": { "message": "Alles vervangen", "description": "Label before the replace input field in the editor shown on 'replaceAll' hotkey" }, + "importReportUnchanged": { + "message": "Er is niks gewijzigd.", + "description": "Message in the report shown after importing styles" + }, + "confirmDiscardChanges": { + "message": "Wijzigingen verwerpen?", + "description": "Generic label or title displayed when trying to close something (not a style) with unsaved changes" + }, + "searchResultUpdated": { + "message": "Bijgewerkt", + "description": "Text for label that shows the search result's last update date" + }, + "configOnChangeTooltip": { + "message": "Wijzigingen automatisch opslaan en toepassen", + "description": "" + }, + "optionsActions": { + "message": "Acties", + "description": "" + }, "editGotoLine": { "message": "Ga naar regel (of regel:kolom)", "description": "Go to line or line:column on Ctrl-G in style code editor" }, + "manageOnlyLocalTooltip": { + "message": "(de stijlen die niet geïnstalleerd zijn via userstyles.org)", + "description": "Tooltip for the checkbox to show only locally created styles i.e. non-updatable" + }, "checkAllUpdates": { "message": "Controleer alle stijlen op updates", "description": "Label for the button to check all styles for updates" }, + "openOptionsManage": { + "message": "Opties", + "description": "Go to Options UI" + }, + "colorpickerTooltip": { + "message": "Kleurkiezer openen", + "description": "Tooltip for the colored squares shown before CSS colors in the style editor." + }, + "optionsCustomizeBadge": { + "message": "Badge op het werkbalkpictogram", + "description": "" + }, + "sortDateNewestFirst": { + "message": "nieuwste eerst", + "description": "Text added to indicate that sorting a date would add the newest entries at the top" + }, + "paginationPrevious": { + "message": "Vorige pagina", + "description": "Tooltip for the '<-' button in search results" + }, + "installUpdateFrom": { + "message": "De stijl wordt momenteel bijgewerkt via $url$", + "description": "Label to describe where the style gets update", + "placeholders": { + "url": { + "content": "$1" + } + } + }, + "importReportLegendIdentical": { + "message": "gelijke overgeslagen", + "description": "Text after the number of styles skipped due to being identical to the already installed ones in the report shown after importing styles" + }, + "manageNewStyleAsUsercss": { + "message": "als Usercss", + "description": "VERY SHORT label for the checkbox next to the 'Write new style' button in the style manager" + }, + "optionsPopupWidth": { + "message": "Pop-upbreedte (in pixels)", + "description": "" + }, + "cm_autoCloseBrackets": { + "message": "Haken en citaten automatisch sluiten", + "description": "Label for the checkbox in the style editor." + }, + "installButtonReinstall": { + "message": "Stijl herinstalleren", + "description": "Label for reinstall button" + }, + "linterInvalidConfigError": { + "message": "Niet opgeslagen vanwege ongeldige configuratie-instellingen:", + "description": "Invalid linter config will show a message followed by a list of invalid entries" + }, "confirmNo": { "message": "Nee", "description": "'No' button in a confirm dialog" }, + "styleMissingMeta": { + "message": "Ontbrekende metagegevens @ $key$", + "description": "Error displayed when a mandatory metadata is missing", + "placeholders": { + "key": { + "content": "$1" + } + } + }, + "searchCaseSensitive": { + "message": "Hoofdlettergevoelig", + "description": "Tooltip for the 'Aa' icon that enables case-sensitive search in the editor shown on Ctrl-F" + }, + "appliesLineWidgetWarning": { + "message": "Werkt niet met minified CSS", + "description": "A warning that applies-to information won't show properly with minified CSS" + }, + "configureStyleOnHomepage": { + "message": "Instellen op startpagina", + "description": "Label for the button to configure userstyles.org userstyle" + }, "undo": { "message": "Ongedaan maken", "description": "Button label" }, + "usercssReplaceTemplateConfirmation": { + "message": "Wil je het standaard sjabloon voor nieuwe Usercss-stijlen vervangen door de huidige code?", + "description": "" + }, "cm_keyMap": { "message": "Toetsenbordindeling", "description": "Label for the drop-down list controlling the keymap for the style editor." }, + "externalSupport": { + "message": "Ondersteuning", + "description": "Label for the external link to style's support site" + }, + "confirmSave": { + "message": "Opslaan", + "description": "'Save' button in a confirm dialog" + }, + "manageNewUI": { + "message": "Nieuwe indeling van beheerscherm", + "description": "Label for the checkbox that toggles the new UI on manage page" + }, + "unreachableAMOHintOldFF": { + "message": "Alleen Firefox 59 en hoger kunnen worden geconfigureerd om WebExtensies stijlelementen toe te laten voegen op met CSP-beveiligde websites als deze.", + "description": "Note in the popup when opened on addons.mozilla.org in Firefox < 59" + }, + "importReportUndoneTitle": { + "message": "Het importeren is ongedaan gemaakt", + "description": "Title of the message box shown after undoing the import of styles" + }, + "genericDisabledLabel": { + "message": "Uitgeschakeld", + "description": "Used in various lists/options to indicate that something is disabled" + }, "cm_indentWithTabs": { "message": "Tabs met slimme inspringing gebruiken", "description": "Label for the checkbox controlling tabs with smart indentation option for the style editor." @@ -377,14 +1158,47 @@ "message": "Vervangen door", "description": "Label before the replace-with input field in the editor shown on Ctrl-H etc." }, + "liveReloadError": { + "message": "Er is een fout opgetreden tijdens het bekijken van het bestand", + "description": "The label of live-reload error" + }, "deleteStyleLabel": { "message": "Verwijderen", "description": "Label for the button to delete a style" }, + "updateCheckManualUpdateForce": { + "message": "Update installeren (lokale bewerkingen worden overschreven)", + "description": "Additional text displayed when an update check skipped updating the style to avoid losing local modifications" + }, + "styleInstallFailed": { + "message": "Installeren van gebruikersstijl mislukt!\n$error$", + "description": "Warning when installation failed", + "placeholders": { + "error": { + "content": "$1" + } + } + }, + "optionsAdvancedExposeIframes": { + "message": "iframes blootleggen via HTML[stylus-iframe]", + "description": "" + }, + "usercssEditorNamePlaceholder": { + "message": "Specificeer @name in de code", + "description": "Placeholder text for the empty name input field when creating a new Usercss style" + }, "addStyleLabel": { "message": "Nieuwe stijl schrijven", "description": "Label for the button to go to the add style page" }, + "installButtonUpdate": { + "message": "Stijl bijwerken", + "description": "Label for update button" + }, + "backupButtons": { + "message": "Back-uppen", + "description": "Heading for backup" + }, "manageOnlyEnabled": { "message": "Alleen ingeschakelde stijlen", "description": "Checkbox to show only enabled styles" @@ -393,16 +1207,56 @@ "message": "Bewerken", "description": "Label for the button to go to the edit style page" }, + "installButtonInstalled": { + "message": "Stijl geïnstalleerd", + "description": "Text displayed when the style is successfully installed" + }, + "author": { + "message": "Auteur", + "description": "Label for the style author" + }, "cm_theme": { "message": "Thema", "description": "Label for the style editor's CSS theme." }, + "findStylesInlineTooltip": { + "message": "Zoekresultaten tonen in dit venster.", + "description": "Text for a checkbox that displays search results within the Stylus popup." + }, + "popupOpenEditInWindow": { + "message": "Bewerker openen in nieuw venster", + "description": "Label for the checkbox controlling 'edit' action behavior in the popup." + }, + "appliesRemoveError": { + "message": "Laatste 'toepasbaar op'-vermelding kan niet worden verwijderd", + "description": "Error displayed when the last 'applies' is going to be removed" + }, + "backupMessage": { + "message": "Selecteer een bestand of versleep het naar deze pagina.", + "description": "Message for backup" + }, + "importReportUndone": { + "message": "stijlen zijn teruggedraaid", + "description": "Text after the number of styles reverted in the message box shown after undoing the import of styles" + }, "helpKeyMapCommand": { - "message": "Voer een naam in voor het commando", + "message": "Voer een commandonaam in", "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" }, + "linterResetMessage": { + "message": "Druk op Ctrl-Z (of Cmd-Z) in het tekstvak om ongedaan te maken", + "description": "Reset button tooltip to inform user on how to undo an accidental reset" + }, "description": { - "message": "Voorzie het web van een ander uiterlijk met Stylus, een gebruikersstijlbeheerder. Stylus stelt u in staat om eenvoudig thema's en stijlen te installeren voor vele populaire websites.", + "message": "Voorzie het web van een ander uiterlijk met Stylus, een gebruikersstijlbeheerder. Stylus stelt je in staat om eenvoudig thema's en stijlen te installeren voor vele populaire websites.", "description": "Extension description" + }, + "confirmClose": { + "message": "Sluiten", + "description": "'Close' button in a confirm dialog" + }, + "usercssReplaceTemplateName": { + "message": "Lege @name vervangt het standaard sjabloon", + "description": "The text shown after @name when creating a new Usercss style" } } diff --git a/_locales/pt_BR/messages.json b/_locales/pt_BR/messages.json index dee6998e..c3515cac 100644 --- a/_locales/pt_BR/messages.json +++ b/_locales/pt_BR/messages.json @@ -3,6 +3,22 @@ "message": "Tudo", "description": "Text displayed for styles that apply to all sites" }, + "defaultTheme": { + "message": "padrão", + "description": "Default CodeMirror CSS theme option on the edit style page" + }, + "bckpInstStyles": { + "message": "Exportar estilos", + "description": "" + }, + "exportLabel": { + "message": "Exportar ", + "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" + }, + "optionsBadgeNormal": { + "message": "Cor de fundo", + "description": "" + }, "enableStyleLabel": { "message": "Ativar", "description": "Label for the button to enable a style" @@ -19,10 +35,26 @@ "message": "Verificar atualizações", "description": "Label for the button to check a single style for an update" }, + "importAppendLabel": { + "message": "Anexar ao estilo", + "description": "Label for the button to import a style and append to the existing sections" + }, + "updateAllCheckSucceededNoUpdate": { + "message": "Nenhuma atualização encontrada.", + "description": "Text that displays when an update all check completed and no updates are available" + }, "helpAlt": { "message": "Ajuda", "description": "Alternate text for help buttons" }, + "search": { + "message": "Buscar", + "description": "Label before the search input field in the editor shown on Ctrl-F" + }, + "confirmYes": { + "message": "Sim", + "description": "'Yes' button in a confirm dialog" + }, "findStylesForSite": { "message": "Procurar mais estilos para este site", "description": "Text for a link that gets a list of styles for the current site" @@ -31,6 +63,10 @@ "message": "Estilos instalados", "description": "Heading for the manage page" }, + "styleBeautify": { + "message": "Embelezar", + "description": "Label for the CSS-beautifier button on the edit style page" + }, "styleEnabledLabel": { "message": "Ativado", "description": "Label for the enabled state of styles" @@ -47,6 +83,30 @@ "message": "Salvar", "description": "Label for save button for style editing" }, + "confirmDelete": { + "message": "Deletar", + "description": "" + }, + "confirmCancel": { + "message": "Cancelar", + "description": "" + }, + "retrieveBckp": { + "message": "Importar estilos", + "description": "" + }, + "confirmStop": { + "message": "Parar", + "description": "'Stop' button in a confirm dialog" + }, + "writeStyleForURL": { + "message": "esse URL", + "description": "Text for link in toolbar pop-up to write a new style for the current URL" + }, + "optionsSubheading": { + "message": "Mais Opções", + "description": "Subheading for options section on manage page." + }, "appliesAdd": { "message": "Adicionar", "description": "Label for the button to add an 'applies' entry" @@ -64,6 +124,18 @@ } } }, + "optionsBadgeDisabled": { + "message": "Cor de fundo quando desativado", + "description": "" + }, + "optionsCheck": { + "message": "Atualizar estilos", + "description": "" + }, + "searchStyles": { + "message": "Buscar conteúdos", + "description": "Label for the search filter textbox on the Manage styles page" + }, "disableStyleLabel": { "message": "Desativar", "description": "Label for the button to disable a style" @@ -80,14 +152,30 @@ "message": "Você fez alterações neste estilo sem salvar.", "description": "Text for the prompt when changes are made to a style and the user tries to leave without saving" }, + "importLabel": { + "message": "Importar", + "description": "Label for the button to import a style ('edit' page) or all styles ('manage' page)" + }, "updateCheckFailServerUnreachable": { "message": "A atualização falhou: servidor inacessível.", "description": "Text that displays when an update check failed because the update server is unreachable" }, + "applyAllUpdates": { + "message": "Aplicar todas as atualizações", + "description": "Label for the button to apply all detected updates" + }, "deleteStyleConfirm": { "message": "Tem certeza de que deseja excluir este estilo?", "description": "Confirmation before deleting a style" }, + "styleBadRegexp": { + "message": "Expressão regular é inválida", + "description": "Validation message for a bad regexp in a style" + }, + "optionsHeading": { + "message": "Opções", + "description": "Heading for options section on manage page." + }, "appliesDisplay": { "message": "Aplica-se a: $applies$", "description": "Text on the manage screen to describe what the style applies to", @@ -134,10 +222,18 @@ "message": "Remover", "description": "Label for the button to remove an 'applies' entry" }, + "replace": { + "message": "Substituir", + "description": "Label before the replace input field in the editor shown on Ctrl-H" + }, "appliesLabel": { "message": "Aplica-se a", "description": "Label for 'applies to' fields on the edit/add screen" }, + "openOptionsPopup": { + "message": "Opções", + "description": "Go to Options UI" + }, "openManage": { "message": "Gerenciar estilos instalados", "description": "Link to open the manage page." @@ -159,10 +255,22 @@ "message": "Instalar atualização", "description": "Label for the button to install an update for a single style" }, + "styleMozillaFormatHeading": { + "message": "Formato Mozilla", + "description": "Heading for the section with buttons to import/export Mozilla format of the style" + }, "sectionRemove": { "message": "Remover seção", "description": "Label for the button to remove a section" }, + "disableAllStyles": { + "message": "Desativar todos os estilos", + "description": "Label for the checkbox that turns all enabled styles off." + }, + "undoGlobal": { + "message": "Desfazer todas as seções", + "description": "CSS-beautify global Undo button label" + }, "updateCompleted": { "message": "Atualização concluída.", "description": "Text that displays when an update completed" @@ -187,10 +295,46 @@ "message": "Adicionar estilo", "description": "Title of the page for adding styles" }, + "importReplaceLabel": { + "message": "Sobrescrever estilo", + "description": "Label for the button to import and overwrite current style" + }, + "importAppendTooltip": { + "message": "Anexar o estilo importado ao atual", + "description": "Tooltip for the button to import a style and append to the existing sections" + }, + "optionsOpen": { + "message": "Abrir", + "description": "" + }, + "replaceAll": { + "message": "Substituir todos", + "description": "Label before the replace input field in the editor shown on 'replaceAll' hotkey" + }, + "optionsActions": { + "message": "Ações", + "description": "" + }, + "editGotoLine": { + "message": "Ir para linha (ou linha:coluna)", + "description": "Go to line or line:column on Ctrl-G in style code editor" + }, "checkAllUpdates": { "message": "Verificar atualizações para todos os estilos", "description": "Label for the button to check all styles for updates" }, + "confirmNo": { + "message": "Não", + "description": "'No' button in a confirm dialog" + }, + "undo": { + "message": "Desfazer", + "description": "Button label" + }, + "replaceWith": { + "message": "Substituir com", + "description": "Label before the replace-with input field in the editor shown on Ctrl-H etc." + }, "deleteStyleLabel": { "message": "Excluir", "description": "Label for the button to delete a style" @@ -203,6 +347,10 @@ "message": "Editar", "description": "Label for the button to go to the edit style page" }, + "cm_theme": { + "message": "Tema", + "description": "Label for the style editor's CSS theme." + }, "description": { "message": "Mude o estilo da web com o Stylus, um gerenciador de estilos do usuário. O Stylus permite instalar facilmente temas e skins para Google, Facebook, YouTube, Orkut e muitos, muitos outros sites.", "description": "Extension description" diff --git a/_locales/pt_PT/messages.json b/_locales/pt_PT/messages.json index a3fd3ac5..4fb0dcd3 100644 --- a/_locales/pt_PT/messages.json +++ b/_locales/pt_PT/messages.json @@ -19,10 +19,22 @@ "message": "Exportar estilos", "description": "" }, + "sortStylesHelpTitle": { + "message": "Ordenar conteúdos", + "description": "Label for the sort info popup on the Manage styles page" + }, "exportLabel": { "message": "Exportar", "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" }, + "installButton": { + "message": "Instalar estilo", + "description": "Label for install button" + }, + "popupHotkeysTooltip": { + "message": "Clique para ver as teclas de atalho disponíveis", + "description": "Tooltip displayed when hovering the right edge of the extension popup" + }, "optionsBadgeNormal": { "message": "Cor de fundo", "description": "" @@ -316,7 +328,7 @@ "description": "Option to make the style apply to the entered string as a URL prefix" }, "searchRegexp": { - "message": "Usa a syntax /re/ para pesquisas regexp", + "message": "Usa a sintaxe /re/ para pesquisas regexp", "description": "Label after the search input field in the editor shown on Ctrl-F" }, "updateCheckManualUpdateHint": { @@ -436,6 +448,10 @@ "message": "Desfazer em todas as seções", "description": "CSS-beautify global Undo button label" }, + "genericTitle": { + "message": "Título", + "description": "Used in various parts of the UI to indicate the title of something" + }, "updateCompleted": { "message": "Atualização completa.", "description": "Text that displays when an update completed" @@ -452,6 +468,10 @@ "message": "Número de items aos quais se aplica", "description": "Label for the numeric input box to limit max number of applies-to targets in the new UI on manage page" }, + "genericUnknown": { + "message": "Desconhecido", + "description": "Used in various parts of the UI to indicate if something is unknown (e.g. an unknown date)" + }, "manageFaviconsHelp": { "message": "O Stylus usa um serviço externo https://www.google.com/s2/favicons", "description": "Label for the checkbox that toggles applies-to favicons in the new UI on manage page" @@ -516,10 +536,18 @@ "message": "Ocorreu um erro ao usar a base de dados do Stylus. Gostarias de visitar um website com soluções possíveis?", "description": "Prompt when a DB error is encountered" }, + "dateInstalled": { + "message": "Data de instalação", + "description": "Option text for the user to sort the style by install date" + }, "optionsAdvanced": { "message": "Avançado", "description": "" }, + "alphaChannel": { + "message": "Opacidade", + "description": "Label of color's opacity" + }, "importAppendTooltip": { "message": "Anexar o estilo importado ao estilo atual", "description": "Tooltip for the button to import a style and append to the existing sections" @@ -536,6 +564,10 @@ "message": "Carrega numa tecla de atalho", "description": "Placeholder text of inputbox in keymap help popup on the edit style page. Must be very short" }, + "dateUpdated": { + "message": "Última actualização", + "description": "Option text for the user to sort the style by last update date" + }, "replaceAll": { "message": "Substituir todos", "description": "Label before the replace input field in the editor shown on 'replaceAll' hotkey" @@ -544,6 +576,10 @@ "message": "Nada foi mudado", "description": "Message in the report shown after importing styles" }, + "confirmDiscardChanges": { + "message": "Descartar as alterações?", + "description": "Generic label or title displayed when trying to close something (not a style) with unsaved changes" + }, "optionsActions": { "message": "Ações", "description": "" @@ -564,6 +600,19 @@ "message": "Opções de interface", "description": "Go to Options UI" }, + "sortDateNewestFirst": { + "message": "Mais recente primeiro", + "description": "Text added to indicate that sorting a date would add the newest entries at the top" + }, + "installUpdateFrom": { + "message": "Actualmente o estilo é actualizado a partir de $url$", + "description": "Label to describe where the style gets update", + "placeholders": { + "url": { + "content": "$1" + } + } + }, "importReportLegendIdentical": { "message": "idênticos ignorados", "description": "Text after the number of styles skipped due to being identical to the already installed ones in the report shown after importing styles" diff --git a/_locales/sv/messages.json b/_locales/sv/messages.json index 25af1e4e..b6eae82a 100644 --- a/_locales/sv/messages.json +++ b/_locales/sv/messages.json @@ -3,8 +3,16 @@ "message": "Allt", "description": "Text displayed for styles that apply to all sites" }, + "manageOnlyUsercss": { + "message": "Endast Usercss stilar", + "description": "Checkbox to show only Usercss styles" + }, + "exportLabel": { + "message": "Exportera", + "description": "Label for the button to export a style ('edit' page) or all styles ('manage' page)" + }, "cm_tabSize": { - "message": "Flikstorlek", + "message": "Tabbstorlek", "description": "Label for the text box controlling tab size option for the style editor." }, "enableStyleLabel": { @@ -15,6 +23,10 @@ "message": "Ange ett namn", "description": "Error displayed when user saves without providing a name" }, + "genericHistoryLabel": { + "message": "Historik", + "description": "Used in various places to show a history log of something" + }, "appliesDomainOption": { "message": "URL:er på domänen", "description": "Option to make the style apply to the entered string as a domain" @@ -23,14 +35,38 @@ "message": "Leta efter uppdatering", "description": "Label for the button to check a single style for an update" }, + "styleFromMozillaFormatError": { + "message": "Import av Mozilla-format misslyckades", + "description": "Label for the import error" + }, + "importAppendLabel": { + "message": "Lägg till i stil", + "description": "Label for the button to import a style and append to the existing sections" + }, "updateAllCheckSucceededNoUpdate": { "message": "Alla stilar är fullt uppdaterade.", "description": "Text that displays when an update all check completed and no updates are available" }, + "styleFromMozillaFormatPrompt": { + "message": "Klistra in koden i Mozilla-formatet", + "description": "Prompt in the dialog displayed after clicking 'Import from Mozilla format' button" + }, "helpAlt": { "message": "Hjälp", "description": "Alternate text for help buttons" }, + "search": { + "message": "Sök", + "description": "Label before the search input field in the editor shown on Ctrl-F" + }, + "genericEnabledLabel": { + "message": "Aktiverad", + "description": "Used in various lists/options to indicate that something is enabled" + }, + "confirmYes": { + "message": "Ja", + "description": "'Yes' button in a confirm dialog" + }, "findStylesForSite": { "message": "Hitta fler stilar för denna sida", "description": "Text for a link that gets a list of styles for the current site" @@ -76,6 +112,22 @@ } } }, + "manageOnlyLocal": { + "message": "Endast lokalt skapade stilar", + "description": "Checkbox to show only locally created styles i.e. non-updatable" + }, + "searchStyles": { + "message": "Sök innehåll", + "description": "Label for the search filter textbox on the Manage styles page" + }, + "manageOnlyNonUsercss": { + "message": "Endast icke-Usercss stilar", + "description": "Checkbox to show only non-Usercss (standard) styles" + }, + "linkGetStyles": { + "message": "Skaffa stilar", + "description": "Help link text on the manage page e.g. https://userstyles.org" + }, "disableStyleLabel": { "message": "Inaktivera", "description": "Label for the button to disable a style" @@ -100,6 +152,10 @@ "message": "Du har gjort ändringar i denna stil utan att spara.", "description": "Text for the prompt when changes are made to a style and the user tries to leave without saving" }, + "importLabel": { + "message": "Importera", + "description": "Label for the button to import a style ('edit' page) or all styles ('manage' page)" + }, "updateCheckFailServerUnreachable": { "message": "Uppdateringen misslyckades: server onåbar.", "description": "Text that displays when an update check failed because the update server is unreachable" @@ -146,6 +202,10 @@ "message": "Sektioner", "description": "Title for the style sections section" }, + "optionsAdvancedNewStyleAsUsercss": { + "message": "Skriv ny stil som Usercss", + "description": "" + }, "editStyleTitle": { "message": "Ändra i Stil $stylename$", "description": "Title of the page for editing styles", @@ -163,6 +223,10 @@ "message": "URL:er som börjar på", "description": "Option to make the style apply to the entered string as a URL prefix" }, + "searchRegexp": { + "message": "Använd /re/ för regexp-sökning", + "description": "Label after the search input field in the editor shown on Ctrl-F" + }, "popupStylesFirst": { "message": "Lista stilar före kommandon i verktygsfältets knappmeny", "description": "Label for the checkbox controlling section order in the popup." @@ -183,14 +247,18 @@ "message": "Ta bort", "description": "Label for the button to remove an 'applies' entry" }, - "manageTitle": { - "message": "Tyylikäs", - "description": "Title for the manage page" + "styleToMozillaFormatTitle": { + "message": "Stil i Mozilla-format", + "description": "Title of the popup with the style code in Mozilla format, shown after pressing the Export button on Edit style page" }, "writeStyleFor": { "message": "Skriv stil för:", "description": "Label for toolbar pop-up that precedes the links to write a new style" }, + "replace": { + "message": "Ersätt", + "description": "Label before the replace input field in the editor shown on Ctrl-H" + }, "appliesLabel": { "message": "Gäller för", "description": "Label for 'applies to' fields on the edit/add screen" @@ -216,6 +284,10 @@ "message": "Installera uppdatering", "description": "Label for the button to install an update for a single style" }, + "styleMozillaFormatHeading": { + "message": "Mozilla-format", + "description": "Heading for the section with buttons to import/export Mozilla format of the style" + }, "sectionRemove": { "message": "Ta bort sektion", "description": "Label for the button to remove a section" @@ -224,6 +296,10 @@ "message": "Stäng av alla stilar", "description": "Label for the checkbox that turns all enabled styles off." }, + "undoGlobal": { + "message": "Ångra i alla sektioner", + "description": "CSS-beautify global Undo button label" + }, "updateCompleted": { "message": "Uppdatering slutförd.", "description": "Text that displays when an update completed" @@ -236,6 +312,10 @@ "message": "Kod", "description": "Label for the code for a section" }, + "externalUsercssDocument": { + "message": "Dokumentation för Usercss", + "description": "Label for the external link to usercss documentation" + }, "cm_smartIndent": { "message": "Använd smart indrag", "description": "Label for the checkbox controlling smart indentation option for the style editor." @@ -244,10 +324,18 @@ "message": "Använd 'Gäller för' alternativet för att begränsa vilka URL:er koden i denna sektion gäller för.", "description": "Help text for 'applies to' section" }, + "linkGetHelp": { + "message": "Hjälp", + "description": "Homepage link text on the manage page e.g. https://add0n.com/stylus.html#features with chat/FAQ/intro/info" + }, "editStyleHeading": { "message": "Ändra i Stil", "description": "Title of the page for editing styles" }, + "manageOnlyDisabled": { + "message": "Endast inaktiverade stilar", + "description": "Checkbox to show only disabled styles" + }, "stylusUnavailableForURL": { "message": "Stylus fungerar inte på sidor som denna.", "description": "Note in the toolbar pop-up when on a URL Stylus can't affect" @@ -256,26 +344,66 @@ "message": "Lägg till stil", "description": "Title of the page for adding styles" }, + "importReplaceLabel": { + "message": "Ersätt stil", + "description": "Label for the button to import and overwrite current style" + }, "dbError": { "message": "Ett fel inträffades vid hanteringen av Stylus-databasen. Skulle du vilja besöka en sida med eventuella lösningar?", "description": "Prompt when a DB error is encountered" }, + "importAppendTooltip": { + "message": "Lägg till den importerad stilen i aktuell stil", + "description": "Tooltip for the button to import a style and append to the existing sections" + }, + "manageOnlyExternal": { + "message": "Endast externa stilar", + "description": "Checkbox to show only externally installed styles i.e. updatable" + }, + "replaceAll": { + "message": "Ersätt alla", + "description": "Label before the replace input field in the editor shown on 'replaceAll' hotkey" + }, "editGotoLine": { "message": "Gå till rad (eller rad:kol)", "description": "Go to line or line:column on Ctrl-G in style code editor" }, "checkAllUpdates": { - "message": "Leta igenom alla stilar efter uppdateringar", + "message": "Sök efter uppdateringar", "description": "Label for the button to check all styles for updates" }, + "manageNewStyleAsUsercss": { + "message": "som Usercss", + "description": "VERY SHORT label for the checkbox next to the 'Write new style' button in the style manager" + }, + "confirmNo": { + "message": "Nej", + "description": "'No' button in a confirm dialog" + }, + "undo": { + "message": "Ångra", + "description": "Button label" + }, "cm_keyMap": { "message": "Nyckelkarta", "description": "Label for the drop-down list controlling the keymap for the style editor." }, + "confirmSave": { + "message": "Spara", + "description": "'Save' button in a confirm dialog" + }, + "genericDisabledLabel": { + "message": "Inaktiverad", + "description": "Used in various lists/options to indicate that something is disabled" + }, "cm_indentWithTabs": { - "message": "Använd flikar med smart indrag", + "message": "Använd tabbar med smart indrag", "description": "Label for the checkbox controlling tabs with smart indentation option for the style editor." }, + "replaceWith": { + "message": "Ersätt med", + "description": "Label before the replace-with input field in the editor shown on Ctrl-H etc." + }, "deleteStyleLabel": { "message": "Ta bort", "description": "Label for the button to delete a style" @@ -292,8 +420,16 @@ "message": "Ändra", "description": "Label for the button to go to the edit style page" }, + "cm_theme": { + "message": "Tema", + "description": "Label for the style editor's CSS theme." + }, "description": { "message": "Style:a om webben med Stylus, en användarstils-hanterare. Stylus låter dig enkelt installera teman och skal för många populära sidor.", "description": "Extension description" + }, + "confirmClose": { + "message": "Stäng", + "description": "'Close' button in a confirm dialog" } } diff --git a/background/background.js b/background/background.js index 04e08665..cb25bbfe 100644 --- a/background/background.js +++ b/background/background.js @@ -4,6 +4,7 @@ global handleCssTransitionBug detectSloppyRegexps global openEditor global styleViaAPI global loadScript +global usercss */ 'use strict'; @@ -17,7 +18,10 @@ window.API_METHODS = Object.assign(window.API_METHODS || {}, { delete msg.method; return download(msg.url, msg); }, - getPrefs: () => prefs.getAll(), + parseCss({code}) { + return usercss.invokeWorker({action: 'parse', code}); + }, + getPrefs: prefs.getAll, healthCheck: () => dbExec().then(() => true), detectSloppyRegexps, diff --git a/background/usercss-helper.js b/background/usercss-helper.js index c6835805..f6eb02a6 100644 --- a/background/usercss-helper.js +++ b/background/usercss-helper.js @@ -3,7 +3,7 @@ (() => { - API_METHODS.saveUsercss = save; + API_METHODS.saveUsercss = style => save(style, false); API_METHODS.saveUsercssUnsafe = style => save(style, true); API_METHODS.buildUsercss = build; API_METHODS.installUsercss = install; diff --git a/content/install-hook-userstyles.js b/content/install-hook-userstyles.js index 28f84688..d26a88af 100644 --- a/content/install-hook-userstyles.js +++ b/content/install-hook-userstyles.js @@ -10,8 +10,7 @@ chrome.runtime.onMessage.addListener(onMessage); - document.addEventListener('DOMContentLoaded', function _() { - document.removeEventListener('DOMContentLoaded', _); + onDOMready().then(() => { window.postMessage({ direction: 'from-content-script', message: 'StylishInstalled', @@ -42,7 +41,6 @@ sendEvent(sendEvent.lastEvent); }); }); - return; } } @@ -243,6 +241,21 @@ function getStyleJson() { return getResource(getStyleURL(), {responseType: 'json'}) + .then(style => { + if (!style || !Array.isArray(style.sections) || style.sections.length) { + return style; + } + const codeElement = document.getElementById('stylish-code'); + if (codeElement && !codeElement.textContent.trim()) { + return style; + } + return getResource(getMeta('stylish-update-url')).then(code => new Promise(resolve => { + chrome.runtime.sendMessage({method: 'parseCss', code}, ({sections}) => { + style.sections = sections; + resolve(style); + }); + })); + }) .catch(() => null); } @@ -324,21 +337,65 @@ // In Chrome content script is orphaned on an extension update/reload // so we need to detach event listeners window.removeEventListener(chrome.runtime.id + '-install', orphanCheck, true); - ['Update', 'Install'].forEach(type => - ['', 'Chrome', 'Opera'].forEach(browser => - document.addEventListener('stylish' + type + browser, onClick))); + document.removeEventListener('stylishInstallChrome', onClick); + document.removeEventListener('stylishUpdateChrome', onClick); try { chrome.runtime.onMessage.removeListener(onMessage); } catch (e) {} } })(); -// TODO: remove the following statement when USO is fixed -document.documentElement.appendChild(document.createElement('script')).text = '(' + - function () { +// run in page context +document.documentElement.appendChild(document.createElement('script')).text = '(' + ( + EXTENSION_ORIGIN => { + document.currentScript.remove(); + + // spoof Stylish extension presence in Chrome + if (window.chrome && chrome.app) { + const realImage = window.Image; + window.Image = function Image(...args) { + return new Proxy(new realImage(...args), { + get(obj, key) { + return obj[key]; + }, + set(obj, key, value) { + if (key === 'src' && /^chrome-extension:/i.test(value)) { + setTimeout(() => typeof obj.onload === 'function' && obj.onload()); + } else { + obj[key] = value; + } + return true; + }, + }); + }; + } + + // spoof USO referrer for style search in the popup + if (window !== top && location.pathname === '/') { + window.addEventListener('message', ({data, origin}) => { + if (!data || + !data.xhr || + origin !== EXTENSION_ORIGIN) { + return; + } + const xhr = new XMLHttpRequest(); + xhr.onloadend = xhr.onerror = () => { + top.postMessage({ + id: data.xhr.id, + status: xhr.status, + // [being overcautious] a string response is used instead of relying on responseType=json + // because it was invoked in a web page context so another extension may have incorrectly spoofed it + response: xhr.response, + }, EXTENSION_ORIGIN); + }; + xhr.open('GET', data.xhr.url); + xhr.send(); + }); + } + + // USO bug workaround: use the actual style settings in API response let settings; const originalResponseJson = Response.prototype.json; - document.currentScript.remove(); document.addEventListener('stylusFixBuggyUSOsettings', function _({detail}) { document.removeEventListener('stylusFixBuggyUSOsettings', _); // TODO: remove .replace(/^\?/, '') when minimum_chrome_version >= 52 (https://crbug.com/601425) @@ -408,7 +465,8 @@ document.documentElement.appendChild(document.createElement('script')).text = '( return json; }); }; - } + ')()'; + } +) + `)('${chrome.runtime.getURL('').slice(0, -1)}')`; // TODO: remove the following statement when USO pagination is fixed if (location.search.includes('category=')) { diff --git a/edit/codemirror-default.js b/edit/codemirror-default.js index 90215a8a..0912f445 100644 --- a/edit/codemirror-default.js +++ b/edit/codemirror-default.js @@ -229,7 +229,7 @@ }); // doubleclick option - { + if (typeof editors !== 'undefined') { const fn = (cm, repeat) => repeat === 'double' ? {unit: selectTokenOnDoubleclick} : diff --git a/vendor-overwrites/csslint/csslint-loader.js b/edit/csslint-loader.js similarity index 81% rename from vendor-overwrites/csslint/csslint-loader.js rename to edit/csslint-loader.js index 54776d57..dfe7811f 100644 --- a/vendor-overwrites/csslint/csslint-loader.js +++ b/edit/csslint-loader.js @@ -1,7 +1,9 @@ -/* global parserlib CSSLint parseMozFormat */ +/* global importScripts parserlib CSSLint parseMozFormat */ 'use strict'; -self.importScripts('./parserlib.js'); +const CSSLINT_PATH = '/vendor-overwrites/csslint/'; +importScripts(CSSLINT_PATH + 'parserlib.js'); + parserlib.css.Tokens[parserlib.css.Tokens.COMMENT].hide = false; self.onmessage = ({data}) => { @@ -14,7 +16,7 @@ self.onmessage = ({data}) => { return; } - if (!self.CSSLint) self.importScripts('./csslint.js'); + if (!self.CSSLint) self.importScripts(CSSLINT_PATH + 'csslint.js'); switch (action) { case 'getAllRuleIds': diff --git a/edit/global-search.js b/edit/global-search.js index d55923d9..6d2ebe7f 100644 --- a/edit/global-search.js +++ b/edit/global-search.js @@ -93,11 +93,7 @@ onDOMready().then(() => { replaceAll: () => doReplaceAll(), undo: () => doUndo(), clear() { - this._input.focus(); - document.execCommand('selectAll', false, null); - document.execCommand('delete', false, null); - // some versions of Firefox ignore the above - this._input.value = ''; + setInputValue(this._input, ''); }, case() { state.icase = !state.icase; @@ -545,11 +541,7 @@ onDOMready().then(() => { destroyDialog(); createDialog(type); } else if (sel) { - state.input.focus(); - state.input.select(); - document.execCommand('insertText', false, sel); - // some versions of Firefox ignore the above - state.input.value = sel; + setInputValue(state.input, sel); } state.input.focus(); @@ -933,4 +925,19 @@ onDOMready().then(() => { }) })); } + + + function setInputValue(input, value) { + input.focus(); + input.select(); + // using execCommand to add to the input's undo history + document.execCommand(value ? 'insertText' : 'delete', false, value); + // some versions of Firefox ignore execCommand + if (input.value !== value) { + input.value = value; + input.dispatchEvent(new Event('input', {bubbles: true})); + } + } + + //endregion }); diff --git a/edit/lint.js b/edit/lint.js index 87d092e3..d6c64fc2 100644 --- a/edit/lint.js +++ b/edit/lint.js @@ -20,8 +20,8 @@ var linterConfig = { stylelint: 'editorStylelintConfig', }, worker: { - csslint: {path: '/vendor-overwrites/csslint/csslint-loader.js'}, - stylelint: {path: '/vendor-overwrites/stylelint/stylelint-bundle.min.js'}, + csslint: {path: '/edit/csslint-loader.js'}, + stylelint: {path: '/edit/stylelint-loader.js'}, }, allRuleIds: { csslint: null, diff --git a/edit/stylelint-loader.js b/edit/stylelint-loader.js new file mode 100644 index 00000000..d7ac7c9a --- /dev/null +++ b/edit/stylelint-loader.js @@ -0,0 +1,58 @@ +/* global require importScripts */ +'use strict'; + +importScripts('/vendor/stylelint-bundle/stylelint-bundle.min.js'); + +const stylelint = require('stylelint'); + +self.onmessage = ({data: {action = 'run', code, config}}) => { + switch (action) { + case 'getAllRuleIds': + // the functions are non-tranferable + self.postMessage(Object.keys(stylelint.rules)); + return; + case 'getAllRuleOptions': + self.postMessage(getAllRuleOptions()); + return; + case 'run': + stylelint.lint({code, config}).then(results => + self.postMessage(results)); + return; + } +}; + +function getAllRuleOptions() { + const options = {}; + const rxPossible = /\bpossible:("(?:[^"]*?)"|\[(?:[^\]]*?)\]|\{(?:[^}]*?)\})/g; + const rxString = /"([-\w\s]{3,}?)"/g; + for (const id of Object.keys(stylelint.rules)) { + const ruleCode = String(stylelint.rules[id]); + const sets = []; + let m, mStr; + while ((m = rxPossible.exec(ruleCode))) { + const possible = m[1]; + const set = []; + while ((mStr = rxString.exec(possible))) { + const s = mStr[1]; + if (s.includes(' ')) { + set.push(...s.split(/\s+/)); + } else { + set.push(s); + } + } + if (possible.includes('ignoreAtRules')) { + set.push('ignoreAtRules'); + } + if (possible.includes('ignoreShorthands')) { + set.push('ignoreShorthands'); + } + if (set.length) { + sets.push(set); + } + } + if (sets.length) { + options[id] = sets; + } + } + return options; +} diff --git a/install-usercss/install-usercss.css b/install-usercss/install-usercss.css index dede9d2e..a5049f49 100644 --- a/install-usercss/install-usercss.css +++ b/install-usercss/install-usercss.css @@ -79,6 +79,7 @@ input:disabled + span { overflow-wrap: break-word; white-space: pre-wrap; margin: 1ex 0 0; + font-family: monospace; font-weight: normal; font-size: 80%; } diff --git a/install-usercss/install-usercss.js b/install-usercss/install-usercss.js index 95bea8f2..27f233ef 100644 --- a/install-usercss/install-usercss.js +++ b/install-usercss/install-usercss.js @@ -141,7 +141,7 @@ requestAnimationFrame(adjustCodeHeight); function makeAuthor(text) { - const match = text.match(/^(.+?)(?:\s+<(.+?)>)?(?:\s+\((.+?)\))$/); + const match = text.match(/^(.+?)(?:\s+<(.+?)>)?(?:\s+\((.+?)\))?$/); if (!match) { return document.createTextNode(text); } @@ -230,7 +230,7 @@ function buildWarning(err) { const contents = Array.isArray(err) ? [$create('pre', err.join('\n'))] : - [err && err.message || err || 'Unknown error']; + [err && err.message && $create('pre', err.message) || err || 'Unknown error']; if (Number.isInteger(err.index)) { const pos = cm.posFromIndex(err.index); contents[0] = `${pos.line + 1}:${pos.ch + 1} ` + contents[0]; diff --git a/js/usercss.js b/js/usercss.js index 5b67a746..072bbe68 100644 --- a/js/usercss.js +++ b/js/usercss.js @@ -51,6 +51,7 @@ var usercss = (() => { return loadScript('/vendor/stylus-lang/stylus.min.js').then(() => ( new Promise((resolve, reject) => { const varDef = Object.keys(vars).map(key => `${key} = ${vars[key].value};\n`).join(''); + if (!Error.captureStackTrace) Error.captureStackTrace = () => {}; window.stylus(varDef + source).render((err, output) => { if (err) { reject(err); @@ -599,7 +600,7 @@ var usercss = (() => { function invokeWorker(message) { if (!worker.queue) { - worker.instance = new Worker('/vendor-overwrites/csslint/csslint-loader.js'); + worker.instance = new Worker('/edit/csslint-loader.js'); worker.queue = []; worker.instance.onmessage = ({data}) => { worker.queue.shift().resolve(data.__ERROR__ ? Promise.reject(data.__ERROR__) : data); @@ -616,5 +617,5 @@ var usercss = (() => { }); } - return {buildMeta, buildCode, assignVars}; + return {buildMeta, buildCode, assignVars, invokeWorker}; })(); diff --git a/manage/filters.js b/manage/filters.js index c3b24ca6..24bb8e7b 100644 --- a/manage/filters.js +++ b/manage/filters.js @@ -23,8 +23,9 @@ HTMLSelectElement.prototype.adjustWidth = function () { singleSelect.style.width = ''; singleSelect.appendChild(option0.cloneNode(true)); parent.replaceChild(singleSelect, this); - if (this.style.width !== singleSelect.offsetWidth + 'px') { - this.style.width = singleSelect.offsetWidth + 'px'; + const w = singleSelect.offsetWidth; + if (w && this.style.width !== w + 'px') { + this.style.width = w + 'px'; } parent.replaceChild(this, singleSelect); }; diff --git a/manage/manage.js b/manage/manage.js index 66620799..c74e9e2d 100644 --- a/manage/manage.js +++ b/manage/manage.js @@ -409,7 +409,13 @@ Object.assign(handleEvent, { if (chrome.windows && openWindow) { chrome.windows.create(Object.assign(prefs.get('windowPosition'), {url})); } else { - openURL({url, active: openForegroundTab}); + getOwnTab().then(({index}) => { + openURL({ + url, + index: index + 1, + active: openForegroundTab + }); + }); } } else { rememberScrollPosition(); @@ -458,7 +464,17 @@ Object.assign(handleEvent, { }, external(event) { - openURL({url: event.target.closest('a').href}); + if (event.shiftKey && !event.altKey && !event.ctrlKey && !event.metaKey) { + // Shift-click = the built-in 'open in a new window' action + return; + } + getOwnTab().then(({index}) => { + openURL({ + url: event.target.closest('a').href, + index: index + 1, + active: !event.ctrlKey || event.shiftKey, + }); + }); event.preventDefault(); }, diff --git a/manifest.json b/manifest.json index e28f8f34..4a335bf4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "Stylus", - "version": "1.4.8", + "version": "1.4.16", "minimum_chrome_version": "49", "description": "__MSG_description__", "homepage_url": "https://add0n.com/stylus.html", @@ -14,6 +14,8 @@ "permissions": [ "tabs", "webNavigation", + "webRequest", + "webRequestBlocking", "contextMenus", "storage", "alarms", @@ -60,7 +62,7 @@ { "matches": ["http://userstyles.org/*", "https://userstyles.org/*"], "run_at": "document_start", - "all_frames": false, + "all_frames": true, "js": ["content/install-hook-userstyles.js"] }, { @@ -70,8 +72,25 @@ "js": ["content/install-hook-openusercss.js"] }, { - "matches": [""], - "include_globs": ["*.user.css", "*.user.styl"], + "matches": [ + "*://*/*.user.css", + "*://*/*.user.styl", + + "file://*/*.user.css", + "file://*/*.user.styl", + + "ftp://*/*.user.css", + "ftp://*/*.user.styl", + + "*://*/*.user.css?*", + "*://*/*.user.styl?*", + + "file://*/*.user.css?*", + "file://*/*.user.styl?*", + + "ftp://*/*.user.css?*", + "ftp://*/*.user.styl?*" + ], "run_at": "document_idle", "all_frames": false, "js": ["content/install-hook-usercss.js"] diff --git a/popup.html b/popup.html index 7bb779eb..6c96fdfd 100644 --- a/popup.html +++ b/popup.html @@ -213,9 +213,10 @@ - + diff --git a/popup/popup.css b/popup/popup.css index 58873200..15e11918 100644 --- a/popup/popup.css +++ b/popup/popup.css @@ -471,7 +471,7 @@ body.blocked .actions > .main-controls { margin-right: 4px; /* several languages have labels of wildly different lengths so we try to maintain the proportion */ flex: 1 1 auto; - min-width: 4em; + min-width: 2em; } #popup-options button:last-child { diff --git a/popup/popup.js b/popup/popup.js index b16e8e42..5db20042 100644 --- a/popup/popup.js +++ b/popup/popup.js @@ -96,16 +96,7 @@ function initPopup() { window.close(); }; - const shortcutsButton = $('#popup-shortcuts-button'); - shortcutsButton.dataset.href = URLS.configureCommands; - shortcutsButton.onclick = handleEvent.openURLandHide; - - if (FIREFOX && 'update' in (chrome.commands || {})) { - shortcutsButton.classList.remove('chromium-only'); - shortcutsButton.onclick = () => API.optionsCustomizeHotkeys().then(window.close); - } else if (FIREFOX) { - shortcutsButton.remove(); - } + $('#popup-wiki-button').onclick = handleEvent.openURLandHide; if (!prefs.get('popup.stylesFirst')) { document.body.insertBefore( diff --git a/popup/search-results.js b/popup/search-results.js index 5f6a0ab8..0a7b489b 100755 --- a/popup/search-results.js +++ b/popup/search-results.js @@ -44,13 +44,17 @@ window.addEventListener('showStyles:done', function _() { const CACHE_SIZE = 1e6; const CACHE_PREFIX = 'usoSearchCache/'; const CACHE_DURATION = 24 * 3600e3; - const CACHE_CLEANUP_THROTTLE = 60e3; + const CACHE_CLEANUP_THROTTLE = 10e3; + const CACHE_CLEANUP_NEEDED = CACHE_PREFIX + 'clean?'; const CACHE_EXCEPT_PROPS = ['css', 'discussions', 'additional_info']; let searchTotalPages; let searchCurrentPage = 1; let searchExhausted = false; + let usoFrame; + let usoFrameQueue; + const processedResults = []; const unprocessedResults = []; @@ -145,6 +149,9 @@ window.addEventListener('showStyles:done', function _() { renderActionButtons($('#' + RESULT_ID_PREFIX + usoId)); } }); + + chromeLocal.getValue(CACHE_CLEANUP_NEEDED).then(value => + value && debounce(cleanupCache, CACHE_CLEANUP_THROTTLE)); } //endregion @@ -644,9 +651,7 @@ window.addEventListener('showStyles:done', function _() { function fetchStyleJson(result) { return Promise.resolve( result.json || - download(BASE_URL + '/styles/chrome/' + result.id + '.json', { - responseType: 'json', - }).then(json => { + downloadInFrame(BASE_URL + '/styles/chrome/' + result.id + '.json').then(json => { result.json = json; return json; })); @@ -660,15 +665,7 @@ window.addEventListener('showStyles:done', function _() { function fetchStyle(userstylesId) { return readCache(userstylesId).then(json => json || - download(BASE_URL + '/api/v1/styles/' + userstylesId, { - method: 'GET', - headers: { - 'Content-type': 'application/json', - 'Accept': '*/*' - }, - responseType: 'json', - body: null - }).then(writeCache)); + downloadInFrame(BASE_URL + '/api/v1/styles/' + userstylesId).then(writeCache)); } /** @@ -697,15 +694,7 @@ window.addEventListener('showStyles:done', function _() { return readCache(cacheKey) .then(json => json || - download(searchURL, { - method: 'GET', - headers: { - 'Content-type': 'application/json', - 'Accept': '*/*' - }, - responseType: 'json', - body: null - }).then(writeCache)) + downloadInFrame(searchURL).then(writeCache)) .then(json => { searchCurrentPage = json.current_page + 1; searchTotalPages = json.total_pages; @@ -742,6 +731,7 @@ window.addEventListener('showStyles:done', function _() { setTimeout(writeCache, 100, data, true); return data; } else { + chromeLocal.setValue(CACHE_CLEANUP_NEEDED, true); debounce(cleanupCache, CACHE_CLEANUP_THROTTLE); return chromeLocal.loadLZStringScript().then(() => chromeLocal.setValue(CACHE_PREFIX + data.id, { @@ -756,15 +746,16 @@ window.addEventListener('showStyles:done', function _() { } function cleanupCache() { - if (!chrome.storage.local.getBytesInUse) { - chrome.storage.local.get(null, cleanupCacheInternal); - } else { + chromeLocal.remove(CACHE_CLEANUP_NEEDED); + if (chrome.storage.local.getBytesInUse) { chrome.storage.local.getBytesInUse(null, size => { if (size > CACHE_SIZE) { chrome.storage.local.get(null, cleanupCacheInternal); } ignoreChromeError(); }); + } else { + chrome.storage.local.get(null, cleanupCacheInternal); } } @@ -783,5 +774,91 @@ window.addEventListener('showStyles:done', function _() { ignoreChromeError(); } + //endregion + //region USO referrer spoofing via iframe + + function downloadInFrame(url) { + return usoFrame ? new Promise((resolve, reject) => { + const id = performance.now(); + const timeout = setTimeout(() => { + const {reject} = usoFrameQueue.get(id) || {}; + usoFrameQueue.delete(id); + if (reject) reject(); + }, 10e3); + const data = {url, resolve, reject, timeout}; + usoFrameQueue.set(id, data); + usoFrame.contentWindow.postMessage({xhr: {id, url}}, '*'); + }) : setupFrame().then(() => downloadInFrame(url)); + } + + function setupFrame() { + usoFrame = $create('iframe', {src: BASE_URL}); + usoFrameQueue = new Map(); + + const stripHeaders = info => ({ + responseHeaders: info.responseHeaders.filter(({name}) => !/^X-Frame-Options$/i.test(name)), + }); + chrome.webRequest.onHeadersReceived.addListener(stripHeaders, { + urls: [BASE_URL + '/'], + types: ['sub_frame'], + }, [ + 'blocking', + 'responseHeaders', + ]); + + let frameId; + const stripResources = info => { + if (!frameId && + info.frameId && + info.type === 'sub_frame' && + (info.initiator === location.origin || !info.initiator) && // Chrome 63+ + (info.originUrl === location.href || !info.originUrl) && // FF 48+ + info.url === BASE_URL + '/') { + frameId = info.frameId; + } else if (frameId === info.frameId && info.type !== 'xmlhttprequest') { + return {redirectUrl: 'data:,'}; + } + }; + chrome.webRequest.onBeforeRequest.addListener(stripResources, { + urls: [''], + }, [ + 'blocking', + ]); + setTimeout(() => { + chrome.webRequest.onBeforeRequest.removeListener(stripResources); + }, 10e3); + + window.addEventListener('message', ({data, origin}) => { + if (!data || origin !== BASE_URL) return; + const {resolve, reject, timeout} = usoFrameQueue.get(data.id) || {}; + if (!resolve) return; + chrome.webRequest.onBeforeRequest.removeListener(stripResources); + usoFrameQueue.delete(data.id); + clearTimeout(timeout); + // [being overcautious] a string response is used instead of relying on responseType=json + // because it was invoked in a web page context so another extension may have incorrectly spoofed it + const json = tryJSONparse(data.response); + if (json && data.status < 400) { + resolve(json); + } else { + reject(data.status); + } + }); + + return new Promise((resolve, reject) => { + const done = event => { + chrome.webRequest.onHeadersReceived.removeListener(stripHeaders); + (event.type === 'load' ? resolve : reject)(); + usoFrameQueue.forEach(({url}, id) => { + usoFrame.contentWindow.postMessage({xhr: {id, url}}, '*'); + }); + }; + usoFrame.addEventListener('load', done, {once: true}); + usoFrame.addEventListener('error', done, {once: true}); + usoFrame.style.setProperty('display', 'none', 'important'); + document.body.appendChild(usoFrame); + }); + } + //endregion }); diff --git a/vendor-overwrites/beautify/LICENSE b/vendor-overwrites/beautify/LICENSE new file mode 100644 index 00000000..30878fd6 --- /dev/null +++ b/vendor-overwrites/beautify/LICENSE @@ -0,0 +1,34 @@ +CSS Beautifier +Written by Harutyun Amirjanyan, (amirjanyan@gmail.com) +https://github.com/beautify-web/js-beautify + +Based on code initially developed by +Einar Lielmanis, +http://jsbeautifier.org/ + +https://github.com/beautify-web/js-beautify/blob/master/LICENSE + + +The MIT License (MIT) + +Copyright (c) 2007-2017 Einar Lielmanis, Liam Newman, and contributors. + +Permission is hereby granted, free of charge, to any person +obtaining a copy of this software and associated documentation files +(the "Software"), to deal in the Software without restriction, +including without limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of the Software, +and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS +BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN +ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/vendor-overwrites/colorpicker/LICENSE b/vendor-overwrites/colorpicker/LICENSE index 1ea38875..3135ceac 100644 --- a/vendor-overwrites/colorpicker/LICENSE +++ b/vendor-overwrites/colorpicker/LICENSE @@ -1,3 +1,8 @@ +https://github.com/easylogic/codemirror-colorpicker + +https://github.com/easylogic/codemirror-colorpicker/blob/master/LICENSE + + MIT License Copyright (c) 2017 jinho park (cyberuls@gmail.com, easylogic) diff --git a/vendor-overwrites/csslint/LICENSE b/vendor-overwrites/csslint/LICENSE new file mode 100644 index 00000000..0e2c48d5 --- /dev/null +++ b/vendor-overwrites/csslint/LICENSE @@ -0,0 +1,27 @@ +http://csslint.net/ +https://github.com/CSSLint/csslint + +https://github.com/CSSLint/csslint/blob/master/LICENSE + + +MIT License + +Copyright (c) 2011 Nicole Sullivan and Nicholas C. Zakas. All rights reserved. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/vendor-overwrites/stylelint/stylelint-bundle.min.js b/vendor-overwrites/stylelint/stylelint-bundle.min.js deleted file mode 100644 index 8e4acb41..00000000 --- a/vendor-overwrites/stylelint/stylelint-bundle.min.js +++ /dev/null @@ -1,1731 +0,0 @@ -/* Stripped down stylelint v8.0.0 from https://github.com/Mottie/stylelint/tree/mod */ -var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,l,g){a!=Array.prototype&&a!=Object.prototype&&(a[l]=g.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.SYMBOL_PREFIX="jscomp_symbol_"; -$jscomp.initSymbol=function(){$jscomp.initSymbol=function(){};$jscomp.global.Symbol||($jscomp.global.Symbol=$jscomp.Symbol)};$jscomp.Symbol=function(){var a=0;return function(l){return $jscomp.SYMBOL_PREFIX+(l||"")+a++}}(); -$jscomp.initSymbolIterator=function(){$jscomp.initSymbol();var a=$jscomp.global.Symbol.iterator;a||(a=$jscomp.global.Symbol.iterator=$jscomp.global.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&$jscomp.defineProperty(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.arrayIterator(this)}});$jscomp.initSymbolIterator=function(){}};$jscomp.arrayIterator=function(a){var l=0;return $jscomp.iteratorPrototype(function(){return l>18&63]+f[c>>12&63]+f[c>>6&63]+f[c&63]);return b.join("")}g.byteLength=function(a){return 3*a.length/4-k(a)};g.toByteArray=function(a){var b=a.length;var f=k(a);var q=new c(3*b/4-f);var e=0>16&255;q[n++]=r>>8&255;q[n++]=r&255}2===f?(r=d[a.charCodeAt(b)]<< -2|d[a.charCodeAt(b+1)]>>4,q[n++]=r&255):1===f&&(r=d[a.charCodeAt(b)]<<10|d[a.charCodeAt(b+1)]<<4|d[a.charCodeAt(b+2)]>>2,q[n++]=r>>8&255,q[n++]=r&255);return q};g.fromByteArray=function(a){for(var b=a.length,c=b%3,d="",e=[],n=0,r=b-c;nr?r:n+16383));1===c?(a=a[b-1],d+=f[a>>2],d+=f[a<<4&63],d+="=="):2===c&&(a=(a[b-2]<<8)+a[b-1],d+=f[a>>10],d+=f[a>>4&63],d+=f[a<<2&63],d+="=");e.push(d);return e.join("")};var f=[],d=[],c="undefined"!==typeof Uint8Array?Uint8Array:Array; -for(a=0;64>a;++a)f[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[a],d["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charCodeAt(a)]=a;d[45]=62;d[95]=63},{}],4:[function(a,l,g){arguments[4][1][0].apply(g,arguments)},{dup:1}],5:[function(a,l,g){function k(a){if(a>P)throw new RangeError("Invalid typed array length");a=new Uint8Array(a);a.__proto__=h.prototype;return a}function h(a,b,e){if("number"===typeof a){if("string"===typeof b)throw Error("If encoding is specified then the first argument must be a string"); -return c(a)}return f(a,b,e)}function f(a,b,c){if("number"===typeof a)throw new TypeError('"value" argument must not be a number');if(I(a)){if(0>b||a.byteLengtha)throw new RangeError('"size" argument must not be negative');}function c(a){d(a);return k(0>a?0:m(a)|0)}function b(a){for(var b=0>a.length?0:m(a.length)|0,c=k(b),e=0;e=P)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+P.toString(16)+" bytes");return a|0}function q(a,b){if(h.isBuffer(a))return a.length;if("function"=== -typeof ArrayBuffer.isView&&ArrayBuffer.isView(a)||I(a))return a.byteLength;"string"!==typeof a&&(a=""+a);var c=a.length;if(0===c)return 0;for(var e=!1;;)switch(b){case "ascii":case "latin1":case "binary":return c;case "utf8":case "utf-8":case void 0:return K(a).length;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return 2*c;case "hex":return c>>>1;case "base64":return D.toByteArray(F(a)).length;default:if(e)return K(a).length;b=(""+b).toLowerCase();e=!0}}function e(a,b,c){var e=!1;if(void 0=== -b||0>b)b=0;if(b>this.length)return"";if(void 0===c||c>this.length)c=this.length;if(0>=c)return"";c>>>=0;b>>>=0;if(c<=b)return"";for(a||(a="utf8");;)switch(a){case "hex":a=b;b=c;c=this.length;if(!a||0>a)a=0;if(!b||0>b||b>c)b=c;e="";for(c=a;ce?"0"+e.toString(16):e.toString(16),e=a+e;return e;case "utf8":case "utf-8":return u(this,b,c);case "ascii":a="";for(c=Math.min(this.length,c);bc&&(c=-2147483648);c=+c;c!==c&&(c=d?0:a.length-1);0>c&&(c=a.length+c);if(c>=a.length){if(d)return-1;c=a.length-1}else if(0>c)if(d)c=0;else return-1;"string"===typeof b&&(b=h.from(b,e));if(h.isBuffer(b))return 0===b.length?-1:t(a,b,c,e,d);if("number"===typeof b)return b&=255,"function"===typeof Uint8Array.prototype.indexOf?d?Uint8Array.prototype.indexOf.call(a,b,c):Uint8Array.prototype.lastIndexOf.call(a,b,c):t(a,[b],c,e,d);throw new TypeError("val must be string, number or Buffer"); -}function t(a,b,c,e,d){function p(a,b){return 1===f?a[b]:a.readUInt16BE(b*f)}var f=1,n=a.length,q=b.length;if(void 0!==e&&(e=String(e).toLowerCase(),"ucs2"===e||"ucs-2"===e||"utf16le"===e||"utf-16le"===e)){if(2>a.length||2>b.length)return-1;f=2;n/=2;q/=2;c/=2}if(d)for(e=-1;cn&&(c=n-q);0<=c;c--){n=!0;for(e=0;ed&&(p=d);break;case 2:var n=a[b+1];128===(n&192)&&(d=(d&31)<<6|n&63,127d||57343d&&(p=d))}null===p?(p= -65533,f=1):65535>>10&1023|55296),p=56320|p&1023);e.push(p);b+=f}a=e.length;if(a<=y)e=String.fromCharCode.apply(String,e);else{c="";for(b=0;ba)throw new RangeError("offset is not uint");if(a+b>c)throw new RangeError("Trying to access beyond buffer length");}function x(a,b,c,e,d,p){if(!h.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>d||b< -p)throw new RangeError('"value" argument is out of bounds');if(c+e>a.length)throw new RangeError("Index out of range");}function A(a,b,c,e,d,p){if(c+e>a.length)throw new RangeError("Index out of range");if(0>c)throw new RangeError("Index out of range");}function L(a,b,c,e,d){b=+b;c>>>=0;d||A(a,b,c,4,3.4028234663852886E38,-3.4028234663852886E38);E.write(a,b,c,e,23,4);return c+4}function C(a,b,c,e,d){b=+b;c>>>=0;d||A(a,b,c,8,1.7976931348623157E308,-1.7976931348623157E308);E.write(a,b,c,e,52,8);return c+ -8}function F(a){a=a.trim().replace(z,"");if(2>a.length)return"";for(;0!==a.length%4;)a+="=";return a}function K(a,b){b=b||Infinity;for(var c,e=a.length,d=null,p=[],f=0;fc){if(!d){if(56319c){-1<(b-=3)&&p.push(239,191,189);d=c;continue}c=(d-55296<<10|c-56320)+65536}else d&&-1<(b-=3)&&p.push(239,191,189);d=null;if(128>c){if(0>--b)break; -p.push(c)}else if(2048>c){if(0>(b-=2))break;p.push(c>>6|192,c&63|128)}else if(65536>c){if(0>(b-=3))break;p.push(c>>12|224,c>>6&63|128,c&63|128)}else if(1114112>c){if(0>(b-=4))break;p.push(c>>18|240,c>>12&63|128,c>>6&63|128,c&63|128)}else throw Error("Invalid code point");}return p}function M(a){for(var b=[],c=0;c=b.length||d>=a.length);++d)b[d+c]=a[d];return d}function I(a){return a instanceof ArrayBuffer|| -null!=a&&null!=a.constructor&&"ArrayBuffer"===a.constructor.name&&"number"===typeof a.byteLength}var D=a("base64-js"),E=a("ieee754");g.Buffer=h;g.SlowBuffer=function(a){+a!=a&&(a=0);return h.alloc(+a)};g.INSPECT_MAX_BYTES=50;var P=2147483647;g.kMaxLength=P;h.TYPED_ARRAY_SUPPORT=function(){try{var a=new Uint8Array(1);a.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return 42===a.foo()}catch(Q){return!1}}();h.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error|| -console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();"undefined"!==typeof Symbol&&Symbol.species&&h[Symbol.species]===h&&($jscomp.initSymbol(),Object.defineProperty(h,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1}));h.poolSize=8192;h.from=function(a,b,c){return f(a,b,c)};h.prototype.__proto__=Uint8Array.prototype; -h.__proto__=Uint8Array;h.alloc=function(a,b,c){d(a);a=0>=a?k(a):void 0!==b?"string"===typeof c?k(a).fill(b,c):k(a).fill(b):k(a);return a};h.allocUnsafe=function(a){return c(a)};h.allocUnsafeSlow=function(a){return c(a)};h.isBuffer=function(a){return null!=a&&!0===a._isBuffer};h.compare=function(a,b){if(!h.isBuffer(a)||!h.isBuffer(b))throw new TypeError("Arguments must be Buffers");if(a===b)return 0;for(var c=a.length,e=b.length,d=0,p=Math.min(c,e);db&&(a+=" ... "));return""};h.prototype.compare=function(a,b,c,e,d){if(!h.isBuffer(a))throw new TypeError("Argument must be a Buffer");void 0===b&&(b=0);void 0===c&&(c=a?a.length:0);void 0===e&&(e=0);void 0===d&&(d=this.length);if(0>b||c>a.length||0>e||d>this.length)throw new RangeError("out of range index");if(e>=d&&b>=c)return 0;if(e>=d)return-1; -if(b>=c)return 1;b>>>=0;c>>>=0;e>>>=0;d>>>=0;if(this===a)return 0;var p=d-e,f=c-b,n=Math.min(p,f);e=this.slice(e,d);a=a.slice(b,c);for(b=0;b>>=0,isFinite(c)?(c>>>=0,void 0===e&&(e="utf8")):(e=c,c=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var d=this.length-b;if(void 0===c||c>d)c=d;if(0c||0>b)||b>this.length)throw new RangeError("Attempt to write outside buffer bounds");e||(e="utf8");for(d=!1;;)switch(e){case "hex":a:{b=Number(b)||0;e=this.length-b;c?(c=Number(c),c>e&&(c=e)):c=e;e=a.length;if(0!==e%2)throw new TypeError("Invalid hex string"); -c>e/2&&(c=e/2);for(e=0;e(d-=2));++f){var n=e.charCodeAt(f);a=n>>8;n%=256;p.push(n);p.push(a)}return B(p, -this,b,c);default:if(d)throw new TypeError("Unknown encoding: "+e);e=(""+e).toLowerCase();d=!0}};h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var y=4096;h.prototype.slice=function(a,b){var c=this.length;a=~~a;b=void 0===b?c:~~b;0>a?(a+=c,0>a&&(a=0)):a>c&&(a=c);0>b?(b+=c,0>b&&(b=0)):b>c&&(b=c);b>>=0;b>>>=0;c||w(a,b,this.length);c=this[a]; -for(var e=1,d=0;++d>>=0;b>>>=0;c||w(a,b,this.length);c=this[a+--b];for(var e=1;0>>=0;b||w(a,1,this.length);return this[a]};h.prototype.readUInt16LE=function(a,b){a>>>=0;b||w(a,2,this.length);return this[a]|this[a+1]<<8};h.prototype.readUInt16BE=function(a,b){a>>>=0;b||w(a,2,this.length);return this[a]<<8|this[a+1]};h.prototype.readUInt32LE= -function(a,b){a>>>=0;b||w(a,4,this.length);return(this[a]|this[a+1]<<8|this[a+2]<<16)+16777216*this[a+3]};h.prototype.readUInt32BE=function(a,b){a>>>=0;b||w(a,4,this.length);return 16777216*this[a]+(this[a+1]<<16|this[a+2]<<8|this[a+3])};h.prototype.readIntLE=function(a,b,c){a>>>=0;b>>>=0;c||w(a,b,this.length);c=this[a];for(var e=1,d=0;++d=128*e&&(c-=Math.pow(2,8*b));return c};h.prototype.readIntBE=function(a,b,c){a>>>=0;b>>>=0;c||w(a,b,this.length);c=b;for(var e=1, -d=this[a+--c];0=128*e&&(d-=Math.pow(2,8*b));return d};h.prototype.readInt8=function(a,b){a>>>=0;b||w(a,1,this.length);return this[a]&128?-1*(255-this[a]+1):this[a]};h.prototype.readInt16LE=function(a,b){a>>>=0;b||w(a,2,this.length);var c=this[a]|this[a+1]<<8;return c&32768?c|4294901760:c};h.prototype.readInt16BE=function(a,b){a>>>=0;b||w(a,2,this.length);var c=this[a+1]|this[a]<<8;return c&32768?c|4294901760:c};h.prototype.readInt32LE=function(a,b){a>>>=0;b||w(a,4, -this.length);return this[a]|this[a+1]<<8|this[a+2]<<16|this[a+3]<<24};h.prototype.readInt32BE=function(a,b){a>>>=0;b||w(a,4,this.length);return this[a]<<24|this[a+1]<<16|this[a+2]<<8|this[a+3]};h.prototype.readFloatLE=function(a,b){a>>>=0;b||w(a,4,this.length);return E.read(this,a,!0,23,4)};h.prototype.readFloatBE=function(a,b){a>>>=0;b||w(a,4,this.length);return E.read(this,a,!1,23,4)};h.prototype.readDoubleLE=function(a,b){a>>>=0;b||w(a,8,this.length);return E.read(this,a,!0,52,8)};h.prototype.readDoubleBE= -function(a,b){a>>>=0;b||w(a,8,this.length);return E.read(this,a,!1,52,8)};h.prototype.writeUIntLE=function(a,b,c,e){a=+a;b>>>=0;c>>>=0;e||x(this,a,b,c,Math.pow(2,8*c)-1,0);e=1;var d=0;for(this[b]=a&255;++d>>=0;c>>>=0;e||x(this,a,b,c,Math.pow(2,8*c)-1,0);e=c-1;var d=1;for(this[b+e]=a&255;0<=--e&&(d*=256);)this[b+e]=a/d&255;return b+c};h.prototype.writeUInt8=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,1,255,0); -this[b]=a&255;return b+1};h.prototype.writeUInt16LE=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,2,65535,0);this[b]=a&255;this[b+1]=a>>>8;return b+2};h.prototype.writeUInt16BE=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,2,65535,0);this[b]=a>>>8;this[b+1]=a&255;return b+2};h.prototype.writeUInt32LE=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,4,4294967295,0);this[b+3]=a>>>24;this[b+2]=a>>>16;this[b+1]=a>>>8;this[b]=a&255;return b+4};h.prototype.writeUInt32BE=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,4,4294967295, -0);this[b]=a>>>24;this[b+1]=a>>>16;this[b+2]=a>>>8;this[b+3]=a&255;return b+4};h.prototype.writeIntLE=function(a,b,c,e){a=+a;b>>>=0;e||(e=Math.pow(2,8*c-1),x(this,a,b,c,e-1,-e));e=0;var d=1,p=0;for(this[b]=a&255;++ea&&0===p&&0!==this[b+e-1]&&(p=1),this[b+e]=(a/d>>0)-p&255;return b+c};h.prototype.writeIntBE=function(a,b,c,e){a=+a;b>>>=0;e||(e=Math.pow(2,8*c-1),x(this,a,b,c,e-1,-e));e=c-1;var d=1,p=0;for(this[b+e]=a&255;0<=--e&&(d*=256);)0>a&&0===p&&0!==this[b+e+1]&&(p=1),this[b+e]= -(a/d>>0)-p&255;return b+c};h.prototype.writeInt8=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,1,127,-128);0>a&&(a=255+a+1);this[b]=a&255;return b+1};h.prototype.writeInt16LE=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,2,32767,-32768);this[b]=a&255;this[b+1]=a>>>8;return b+2};h.prototype.writeInt16BE=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,2,32767,-32768);this[b]=a>>>8;this[b+1]=a&255;return b+2};h.prototype.writeInt32LE=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,4,2147483647,-2147483648);this[b]=a&255; -this[b+1]=a>>>8;this[b+2]=a>>>16;this[b+3]=a>>>24;return b+4};h.prototype.writeInt32BE=function(a,b,c){a=+a;b>>>=0;c||x(this,a,b,4,2147483647,-2147483648);0>a&&(a=4294967295+a+1);this[b]=a>>>24;this[b+1]=a>>>16;this[b+2]=a>>>8;this[b+3]=a&255;return b+4};h.prototype.writeFloatLE=function(a,b,c){return L(this,a,b,!0,c)};h.prototype.writeFloatBE=function(a,b,c){return L(this,a,b,!1,c)};h.prototype.writeDoubleLE=function(a,b,c){return C(this,a,b,!0,c)};h.prototype.writeDoubleBE=function(a,b,c){return C(this, -a,b,!1,c)};h.prototype.copy=function(a,b,c,e){c||(c=0);e||0===e||(e=this.length);b>=a.length&&(b=a.length);b||(b=0);0b)throw new RangeError("targetStart out of bounds");if(0>c||c>=this.length)throw new RangeError("sourceStart out of bounds");if(0>e)throw new RangeError("sourceEnd out of bounds");e>this.length&&(e=this.length);a.length-b -d)for(e=0;ed&&(a=d)}if(void 0!==e&&"string"!==typeof e)throw new TypeError("encoding must be a string");if("string"===typeof e&&!h.isEncoding(e))throw new TypeError("Unknown encoding: "+e);}else"number"===typeof a&&(a&= -255);if(0>b||this.length>>=0;c=void 0===c?this.length:c>>>0;a||(a=0);if("number"===typeof a)for(e=b;ea||isNaN(a))throw TypeError("n must be a positive number");this._maxListeners=a;return this};k.prototype.emit=function(a){var c;this._events||(this._events={});if("error"===a&&(!this._events.error||f(this._events.error)&&!this._events.error.length)){var b=arguments[1];if(b instanceof Error)throw b;var d=Error('Uncaught, unspecified "error" event. ('+ -b+")");d.context=b;throw d;}d=this._events[a];if(void 0===d)return!1;if(h(d))switch(arguments.length){case 1:d.call(this);break;case 2:d.call(this,arguments[1]);break;case 3:d.call(this,arguments[1],arguments[2]);break;default:b=Array.prototype.slice.call(arguments,1),d.apply(this,b)}else if(f(d)){b=Array.prototype.slice.call(arguments,1);var m=d.slice();d=m.length;for(c=0;cb&&(this._events[a].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.", -this._events[a].length),"function"===typeof console.trace&&console.trace());return this};k.prototype.on=k.prototype.addListener;k.prototype.once=function(a,c){function b(){this.removeListener(a,b);d||(d=!0,c.apply(this,arguments))}if(!h(c))throw TypeError("listener must be a function");var d=!1;b.listener=c;this.on(a,b);return this};k.prototype.removeListener=function(a,c){if(!h(c))throw TypeError("listener must be a function");if(!this._events||!this._events[a])return this;var b=this._events[a]; -var d=b.length;var m=-1;if(b===c||h(b.listener)&&b.listener===c)delete this._events[a],this._events.removeListener&&this.emit("removeListener",a,c);else if(f(b)){for(;0m)return this;1===b.length?(b.length=0,delete this._events[a]):b.splice(m,1);this._events.removeListener&&this.emit("removeListener",a,c)}return this};k.prototype.removeAllListeners=function(a){if(!this._events)return this;if(!this._events.removeListener)return 0=== -arguments.length?this._events={}:this._events[a]&&delete this._events[a],this;if(0===arguments.length){for(c in this._events)"removeListener"!==c&&this.removeAllListeners(c);this.removeAllListeners("removeListener");this._events={};return this}var c=this._events[a];if(h(c))this.removeListener(a,c);else if(c)for(;c.length;)this.removeListener(a,c[c.length-1]);delete this._events[a];return this};k.prototype.listeners=function(a){return this._events&&this._events[a]?h(this._events[a])?[this._events[a]]: -this._events[a].slice():[]};k.prototype.listenerCount=function(a){if(this._events){a=this._events[a];if(h(a))return 1;if(a)return a.length}return 0};k.listenerCount=function(a,c){return a.listenerCount(c)}},{}],9:[function(a,l,g){g.read=function(a,h,f,d,c){var b=8*c-d-1;var p=(1<>1,q=-7;c=f?c-1:0;var e=f?-1:1,n=a[h+c];c+=e;f=n&(1<<-q)-1;n>>=-q;for(q+=b;0>=-q;for(q+=d;0>1,n=23===c?Math.pow(2,-24)-Math.pow(2,-77):0;b=d?0:b-1;var r=d?1:-1,k=0>h||0===h&&0>1/h?1:0;h=Math.abs(h);isNaN(h)||Infinity===h?(h=isNaN(h)?1:0,d=q):(d=Math.floor(Math.log(h)/Math.LN2),1>h*(p=Math.pow(2,-d))&&(d--,p*=2),h=1<=d+e?h+n/p:h+n*Math.pow(2,1-e),2<=h*p&&(d++,p/=2),d+e>=q?(h=0,d=q):1<=d+e?(h=(h*p-1)*Math.pow(2,c),d+=e):(h=h*Math.pow(2,e-1)*Math.pow(2,c),d=0));for(;8<= -c;a[f+b]=h&255,b+=r,h/=256,c-=8);d=d<c?[]:a.slice(b,c-b+1)}a=g.resolve(a).substr(1);c=g.resolve(c).substr(1);for(var d=b(a.split("/")),e=b(c.split("/")),f=Math.min(d.length,e.length),p=f,h=0;hc&&(c=a.length+c);return a.substr(c,d)}}).call(this,a("_process"))},{_process:16}],15:[function(a,l,g){(function(a){function h(f,d,c,b){if("function"!==typeof f)throw new TypeError('"callback" argument must be a function'); -var p=arguments.length;switch(p){case 0:case 1:return a.nextTick(f);case 2:return a.nextTick(function(){f.call(null,d)});case 3:return a.nextTick(function(){f.call(null,d,c)});case 4:return a.nextTick(function(){f.call(null,d,c,b)});default:var h=Array(p-1);for(p=0;p= -d&&c>>10&1023|55296),a=56320|a&1023);return b+=F(a)}).join("")}function m(a,b){return a+22+75*(26>a)-((0!=b)<<5)}function q(a,b,c){var e=0;a=c?C(a/700):a>>1;for(a+=C(a/b);455m&&(m=0);for(r=0;r< -m;++r)128<=a.charCodeAt(r)&&f("not-basic"),b.push(a.charCodeAt(r));for(m=0=c&&f("invalid-input");var t=a.charCodeAt(m++);t=10>t-48?t-22:26>t-65?t-65:26>t-97?t-97:36;(36<=t||t>C((2147483647-e)/k))&&f("overflow");e+=t*k;var u=h<=n?1:h>=n+26?26:h-n;if(tC(2147483647/t)&&f("overflow");k*=t}k=b.length+1;n=q(e-r,k,0==r);C(e/k)>2147483647-d&&f("overflow");d+=C(e/k);e%=k;b.splice(e++,0,d)}return p(b)}function n(a){var c,e,d,p=[];a=b(a);var n= -a.length;var r=128;var h=0;var k=72;for(d=0;dt&&p.push(F(t))}for((c=e=p.length)&&p.push("-");c=r&&tC((2147483647-h)/g)&&f("overflow");h+=(u-r)*g;r=u;for(d=0;d=k+26?26:u-k;if(w= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=Math.floor,F=String.fromCharCode,K;var M={version:"1.4.1",ucs2:{decode:b,encode:p},decode:e,encode:n,toASCII:function(a){return c(a,function(a){return x.test(a)? -"xn--"+n(a):a})},toUnicode:function(a){return c(a,function(a){return w.test(a)?e(a.slice(4).toLowerCase()):a})}};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return M});else if(r&&k)if(l.exports==r)k.exports=M;else for(K in M)M.hasOwnProperty(K)&&(r[K]=M[K]);else h.punycode=M})(this)}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],18:[function(a,l,g){l.exports=function(a, -f,d,c){d=d||"=";var b={};if("string"!==typeof a||0===a.length)return b;var p=/\+/g;a=a.split(f||"&");f=1E3;c&&"number"===typeof c.maxKeys&&(f=c.maxKeys);c=a.length;0f&&(c=f);for(f=0;f=a||0===b.length&&b.ended)return 0;if(b.objectMode)return 1;if(a!==a)return b.flowing&&b.length?b.buffer.head.data.length:b.length;if(a>b.highWaterMark){var c=a;8388608<=c?c=8388608: -(c--,c|=c>>>1,c|=c>>>2,c|=c>>>4,c|=c>>>8,c|=c>>>16,c++);b.highWaterMark=c}return a<=b.length?a:b.ended?b.length:(b.needReadable=!0,0)}function q(a){var b=a._readableState;b.needReadable=!1;b.emittedReadable||(y("emitReadable",b.flowing),b.emittedReadable=!0,b.sync?F(e,a):e(a))}function e(a){y("emit readable");a.emit("readable");g(a)}function n(a,b){for(var c=b.length;!b.reading&&!b.flowing&&!b.ended&&b.length=b.length)c=b.decoder?b.buffer.join(""):1===b.buffer.length?b.buffer.head.data:b.buffer.concat(b.length),b.buffer.clear();else{c=b.buffer;var e=b.decoder;if(an.length?n.length:e;p=q===n.length?p+n:p+n.slice(0,e);e-=q;if(0=== -e){q===n.length?(++f,c.head=d.next?d.next:c.tail=null):(c.head=d,d.data=n.slice(q));break}++f}c.length-=f;c=p}else{e=a;d=I.allocUnsafe(e);f=c.head;p=1;f.data.copy(d);for(e-=f.data.length;f=f.next;){n=f.data;q=e>n.length?n.length:e;n.copy(d,d.length-e,0,q);e-=q;if(0===e){q===n.length?(++p,c.head=f.next?f.next:c.tail=null):(c.head=f,f.data=n.slice(q));break}++p}c.length-=p;c=d}e=c}c=e}return c}function A(a){var b=a._readableState;if(0=b.highWaterMark||b.ended))return y("read: emitReadable",b.length,b.ended),0===b.length&&b.ended?A(this):q(this),null;a=m(a,b);if(0===a&&b.ended)return 0===b.length&&A(this),null;var e=b.needReadable;y("need readable",e);if(0===b.length||b.length-a>>0);for(var d=this.head,c=0;d;)d.data.copy(a,c),c+=d.data.length,d=d.next;return a};return a}()},{"safe-buffer":34}],28:[function(a,l,g){function k(a,d){a.emit("error",d)}var h=a("process-nextick-args");l.exports={destroy:function(a,d){var c=this,b=this._writableState&&this._writableState.destroyed;this._readableState&&this._readableState.destroyed||b?d?d(a):!a||this._writableState&&this._writableState.errorEmitted||h(k,this,a):(this._readableState&& -(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(a){!d&&a?(h(k,c,a),c._writableState&&(c._writableState.errorEmitted=!0)):d&&d(a)}))},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1);this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished= -!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":15}],29:[function(a,l,g){l.exports=a("events").EventEmitter},{events:8}],30:[function(a,l,g){l.exports=a("./readable").PassThrough},{"./readable":31}],31:[function(a,l,g){g=l.exports=a("./lib/_stream_readable.js");g.Stream=g;g.Readable=g;g.Writable=a("./lib/_stream_writable.js");g.Duplex=a("./lib/_stream_duplex.js");g.Transform=a("./lib/_stream_transform.js");g.PassThrough=a("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":22, -"./lib/_stream_passthrough.js":23,"./lib/_stream_readable.js":24,"./lib/_stream_transform.js":25,"./lib/_stream_writable.js":26}],32:[function(a,l,g){l.exports=a("./readable").Transform},{"./readable":31}],33:[function(a,l,g){l.exports=a("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":26}],34:[function(a,l,g){function k(a,b){for(var c in a)b[c]=a[c]}function h(a,b,f){return d(a,b,f)}var f=a("buffer"),d=f.Buffer;d.from&&d.alloc&&d.allocUnsafe&&d.allocUnsafeSlow?l.exports=f:(k(f,g),g.Buffer= -h);k(d,h);h.from=function(a,b,f){if("number"===typeof a)throw new TypeError("Argument must not be a number");return d(a,b,f)};h.alloc=function(a,b,f){if("number"!==typeof a)throw new TypeError("Argument must be a number");a=d(a);void 0!==b?"string"===typeof f?a.fill(b,f):a.fill(b):a.fill(0);return a};h.allocUnsafe=function(a){if("number"!==typeof a)throw new TypeError("Argument must be a number");return d(a)};h.allocUnsafeSlow=function(a){if("number"!==typeof a)throw new TypeError("Argument must be a number"); -return f.SlowBuffer(a)}},{buffer:5}],35:[function(a,l,g){function k(){h.call(this)}l.exports=k;var h=a("events").EventEmitter;a("inherits")(k,h);k.Readable=a("readable-stream/readable.js");k.Writable=a("readable-stream/writable.js");k.Duplex=a("readable-stream/duplex.js");k.Transform=a("readable-stream/transform.js");k.PassThrough=a("readable-stream/passthrough.js");k.Stream=k;k.prototype.pipe=function(a,d){function c(b){a.writable&&!1===a.write(b)&&n.pause&&n.pause()}function b(){n.readable&&n.resume&& -n.resume()}function f(){r||(r=!0,a.end())}function m(){r||(r=!0,"function"===typeof a.destroy&&a.destroy())}function q(a){e();if(0===h.listenerCount(this,"error"))throw a;}function e(){n.removeListener("data",c);a.removeListener("drain",b);n.removeListener("end",f);n.removeListener("close",m);n.removeListener("error",q);a.removeListener("error",q);n.removeListener("end",e);n.removeListener("close",e);a.removeListener("close",e)}var n=this;n.on("data",c);a.on("drain",b);a._isStdio||d&&!1===d.end|| -(n.on("end",f),n.on("close",m));var r=!1;n.on("error",q);a.on("error",q);n.on("end",e);n.on("close",e);a.on("close",e);a.emit("pipe",n);return a}},{events:8,inherits:10,"readable-stream/duplex.js":21,"readable-stream/passthrough.js":30,"readable-stream/readable.js":31,"readable-stream/transform.js":32,"readable-stream/writable.js":33}],36:[function(a,l,g){function k(a){if(!a)return"utf8";for(var b;;)switch(a){case "utf8":case "utf-8":return"utf8";case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return"utf16le"; -case "latin1":case "binary":return"latin1";case "base64":case "ascii":case "hex":return a;default:if(b)return;a=(""+a).toLowerCase();b=!0}}function h(a){var d=k(a);if("string"!==typeof d&&(r.isEncoding===t||!t(a)))throw Error("Unknown encoding: "+a);this.encoding=d||a;switch(this.encoding){case "utf16le":this.text=b;this.end=p;a=4;break;case "utf8":this.fillLast=c;a=4;break;case "base64":this.text=m;this.end=q;a=3;break;default:this.write=e;this.end=n;return}this.lastTotal=this.lastNeed=0;this.lastChar= -r.allocUnsafe(a)}function f(a){return 127>=a?0:6===a>>5?2:14===a>>4?3:30===a>>3?4:-1}function d(a,b,c){var e=b.length-1;if(e=e)return this.lastNeed=2, -this.lastTotal=4,this.lastChar[0]=a[a.length-2],this.lastChar[1]=a[a.length-1],c.slice(0,-1)}return c}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=a[a.length-1];return a.toString("utf16le",b,a.length-1)}function p(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):a}function m(a,b){var c=(a.length-b)%3;if(0===c)return a.toString("base64",b);this.lastNeed=3-c;this.lastTotal=3;1===c?this.lastChar[0]=a[a.length-1]:(this.lastChar[0]= -a[a.length-2],this.lastChar[1]=a[a.length-1]);return a.toString("base64",b,a.length-c)}function q(a){a=a&&a.length?this.write(a):"";return this.lastNeed?a+this.lastChar.toString("base64",0,3-this.lastNeed):a}function e(a){return a.toString(this.encoding)}function n(a){return a&&a.length?this.write(a):""}var r=a("safe-buffer").Buffer,t=r.isEncoding||function(a){a=""+a;switch(a&&a.toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0; -default:return!1}};g.StringDecoder=h;h.prototype.write=function(a){if(0===a.length)return"";if(this.lastNeed){var b=this.fillLast(a);if(void 0===b)return"";var c=this.lastNeed;this.lastNeed=0}else c=0;return c"` \r\n\t'.split(""));var m=["'"].concat(l),q=["%","/","?",";","#"].concat(m),e=["/","?","#"],n=/^[+a-z0-9A-Z_-]{0,63}$/,r=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,t={javascript:!0,"javascript:":!0},u={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},x=a("querystring");k.prototype.parse=function(a,b,h){var k,g;if(!d.isString(a))throw new TypeError("Parameter 'url' must be a string, not "+typeof a); -var l=a.indexOf("?");l=-1!==l&&lb.length&&b.unshift("");c.pathname=b.join("/")}c.search=a.search;c.query=a.query;c.host=a.host||"";c.auth=a.auth;c.hostname=a.hostname||a.host;c.port=a.port;if(c.pathname||c.search)c.path=(c.pathname||"")+(c.search||"");c.slashes=c.slashes||a.slashes;c.href=c.format();return c}e=c.pathname&&"/"=== -c.pathname.charAt(0);var n=a.host||a.pathname&&"/"===a.pathname.charAt(0),q=e=n||e||c.host&&a.pathname;f=c.pathname&&c.pathname.split("/")||[];b=a.pathname&&a.pathname.split("/")||[];if(p=c.protocol&&!w[c.protocol])c.hostname="",c.port=null,c.host&&(""===f[0]?f[0]=c.host:f.unshift(c.host)),c.host="",a.protocol&&(a.hostname=null,a.port=null,a.host&&(""===b[0]?b[0]=a.host:b.unshift(a.host)),a.host=null),e=e&&(""===b[0]||""===f[0]);if(n)c.host=a.host||""===a.host?a.host:c.host,c.hostname=a.hostname|| -""===a.hostname?a.hostname:c.hostname,c.search=a.search,c.query=a.query,f=b;else if(b.length)f||(f=[]),f.pop(),f=f.concat(b),c.search=a.search,c.query=a.query;else if(!d.isNullOrUndefined(a.search))return p&&(c.hostname=c.host=f.shift(),p=c.host&&0d)return L(c)?a.stylize(RegExp.prototype.toString.call(c),"regexp"):a.stylize("[Object]", -"special");a.seen.push(c);h=u?e(a,c,d,k,h):h.map(function(b){return n(a,c,d,k,b,u)});a.seen.pop();return r(h,f,w)}function m(a,b){if(l(b))return a.stylize("undefined","undefined");if(x(b)){var c="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(c,"string")}if(w(b))return a.stylize(""+b,"number");if(u(b))return a.stylize(""+b,"boolean");if(null===b)return a.stylize("null","null")}function q(a){return"["+Error.prototype.toString.call(a)+"]"}function e(a, -b,c,e,d){for(var f=[],p=0,q=b.length;pa.seen.indexOf(b.value)? -(q=null===c?p(a,b.value,null):p(a,b.value,c-1),-1a?"0"+a.toString(10):a.toString(10)}function I(){var a=new Date,b=[B(a.getHours()),B(a.getMinutes()),B(a.getSeconds())].join(":");return[a.getDate(),y[a.getMonth()],b].join(" ")}var D=/%[sdj%]/g;g.format=function(a){if(!x(a)){for(var b= -[],c=0;c=d)return a;switch(a){case "%s":return String(e[c++]);case "%d":return Number(e[c++]);case "%j":try{return JSON.stringify(e[c++])}catch(O){return"[Circular]"}default:return a}});for(var p=e[c];c<]/g}},{}],44:[function(a,l,g){var k=a("color-convert"),h=function(a,b){return function(){return"\u001b["+(a.apply(k,arguments)+b)+"m"}},f=function(a,b){return function(){var c= -a.apply(k,arguments);return"\u001b["+(38+b)+";5;"+c+"m"}},d=function(a,b){return function(){var c=a.apply(k,arguments);return"\u001b["+(38+b)+";2;"+c[0]+";"+c[1]+";"+c[2]+"m"}};Object.defineProperty(l,"exports",{enumerable:!0,get:function(){var a=new Map,b={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39], -gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};b.color.grey=b.color.gray;for(var p= -$jscomp.makeIterator(Object.keys(b)),m=p.next();!m.done;m=p.next()){m=m.value;for(var q=b[m],e=$jscomp.makeIterator(Object.keys(q)),n=e.next();!n.done;n=e.next()){n=n.value;var r=q[n];b[n]={open:"\u001b["+r[0]+"m",close:"\u001b["+r[1]+"m"};q[n]=b[n];a.set(r[0],r[1])}Object.defineProperty(b,m,{value:q,enumerable:!1});Object.defineProperty(b,"codes",{value:a,enumerable:!1})}a=function(a,b,c){return[a,b,c]};b.color.close="\u001b[39m";b.bgColor.close="\u001b[49m";b.color.ansi={};b.color.ansi256={};b.color.ansi16m= -{rgb:d(a,0)};b.bgColor.ansi={};b.bgColor.ansi256={};b.bgColor.ansi16m={rgb:d(a,10)};a=$jscomp.makeIterator(Object.keys(k));for(p=a.next();!p.done;p=a.next())p=p.value,"object"===typeof k[p]&&(m=k[p],"ansi16"in m&&(b.color.ansi[p]=h(m.ansi16,0),b.bgColor.ansi[p]=h(m.ansi16,10)),"ansi256"in m&&(b.color.ansi256[p]=f(m.ansi256,0),b.bgColor.ansi256[p]=f(m.ansi256,10)),"rgb"in m&&(b.color.ansi16m[p]=d(m.rgb,0),b.bgColor.ansi16m[p]=d(m.rgb,10)));return b}})},{"color-convert":59}],45:[function(a,l,g){var k= -a("arr-flatten"),h=[].slice;l.exports=function(a,d){var c=arguments.length,b=a.length,f=-1,m=[];if(1===c)return a;for(2=b}function m(a,n){var r=[],h=e("{","}",a);if(!h||/\$$/.test(h.pre))return[a];var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(h.body),g=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(h.body);u=u||g;var w=0<=h.body.indexOf(",");if(!u&&!w)return h.post.match(/,.*\}/)?(a=h.pre+"{"+h.body+t+h.post,m(a)):[a];if(u)var l=h.body.split(/\.\./);else if(l=f(h.body),1===l.length&&(l=m(l[0],!1).map(d),1===l.length))return w=h.post.length?m(h.post,!1):[""],w.map(function(a){return h.pre+ -l[0]+a});var x=h.pre;w=h.post.length?m(h.post,!1):[""];var A;if(u){var E=k(l[0]),P=k(l[1]),y=Math.max(l[0].length,l[1].length),z=3==l.length?Math.abs(k(l[2])):1,H=b;PE?"-"+N+J.slice(1):N+J)}A.push(J)}}else A=q(l,function(a){return m(a,!1)});for(g=0;g=this.level||!c)return c;a=m.dim.open; -n&&this.hasGrey&&(m.dim.open="");b=$jscomp.makeIterator(this._styles.slice().reverse());for(e=b.next();!e.done;e=b.next())e=e.value,c=e.open+c.replace(e.closeRe,e.open)+e.close,c=c.replace(/\r?\n/g,e.close+"$&"+e.open);m.dim.open=a;return c}function b(a,b){if(!Array.isArray(b))return[].slice.call(arguments,1).join(" ");for(var c=[].slice.call(arguments,2),d=[b.raw[0]],f=1;fq.call(n,g)&&n.push(m=g),k=n.length,t=q.call(h,g),0>t?(t=h.push(g)-1,f?(p.push((""+a).replace(b,d)),r[t]="~"+p.join("~")):r[t]=r[0]):g=r[t]):"string"===typeof g&& -f&&(g=g.replace(d,c).replace("~",d)));return g}}function h(a){return function(b,p){var n="string"===typeof p;if(n&&"~"===p.charAt(0))return new e(p.slice(1));""===b&&(p=f(p,p,{}));n&&(p=p.replace(m,"$1~").replace(c,d));return a?a.call(this,b,p):p}}function f(a,b,c){if(b instanceof Array)for(var d=0,n=b.length;dh&&(h+=360);b=(a+e)/2;return[h,100*(e===a?0:.5>=b?f/(e+a):f/(2-e-a)),100*b]};d.rgb.hsv=function(a){var b=a[0],c=a[1];a=a[2];var d=Math.min(b,c,a),e=Math.max(b,c,a),f=e-d,h;e===d?h=0:b===e?h=(c-a)/f:c===e?h=2+(a-b)/f:a===e&&(h=4+(b-c)/f);h=Math.min(60*h,360);0>h&&(h+=360);return[h,0===e?0:f/e*1E3/10,e/255*1E3/10]};d.rgb.hwb=function(a){var b=a[0],c=a[1],f=a[2];a=d.rgb.hsl(a)[0];var e=1/255*Math.min(b,Math.min(c,f));f=1-1/255* -Math.max(b,Math.max(c,f));return[a,100*e,100*f]};d.rgb.cmyk=function(a){var b=a[0]/255,c=a[1]/255;a=a[2]/255;var d=Math.min(1-b,1-c,1-a);return[100*((1-b-d)/(1-d)||0),100*((1-c-d)/(1-d)||0),100*((1-a-d)/(1-d)||0),100*d]};d.rgb.keyword=function(a){var b=h[a];if(b)return b;b=Infinity;var c;for(c in k)if(k.hasOwnProperty(c)){var d=k[c];d=Math.pow(a[0]-d[0],2)+Math.pow(a[1]-d[1],2)+Math.pow(a[2]-d[2],2);if(da?a*(1+c):a+c-a*c;a=2*a-c;var e=[0,0,0];for(var f=0;3>f;f++)d=b+1/3*-(f-1),0>d&&d++,16*d?a+6*(c-a)*d:1>2*d?c:2>3*d?a+(c-a)*(2/3-d)*6:a,e[f]=255*d;return e};d.hsl.hsv=function(a){var b=a[0],c=a[1]/100;a=a[2]/100;var d=c,e=Math.max(a,.01);a*=2;c*=1>=a?a:2-a;d*=1>=e?e:2-e;return[b,100*(0===a?2*d/(e+d):2*c/(a+c)),(a+c)/2*100]};d.hsv.rgb=function(a){var b=a[0]/60,c= -a[1]/100;a=a[2]/100;var d=Math.floor(b)%6,e=b-Math.floor(b);b=255*a*(1-c);var f=255*a*(1-c*e);c=255*a*(1-c*(1-e));a*=255;switch(d){case 0:return[a,c,b];case 1:return[f,a,b];case 2:return[b,a,c];case 3:return[b,f,a];case 4:return[c,b,a];case 5:return[a,b,f]}};d.hsv.hsl=function(a){var b=a[0],c=a[1]/100;a=a[2]/100;var d=Math.max(a,.01);var e=(2-c)*d;d=c*d/(1>=e?e:2-e)||0;return[b,100*d,(2-c)*a/2*100]};d.hwb.rgb=function(a){var b=a[0]/360,c=a[1]/100;a=a[2]/100;var d=c+a;1d&&(d+=360);return[b,Math.sqrt(c*c+a*a),d]};d.lch.lab=function(a){var b=a[0],c=a[1];a=a[2]/360*2*Math.PI;return[b,c*Math.cos(a), -c*Math.sin(a)]};d.rgb.ansi16=function(a){var b=a[0],c=a[1],f=a[2],e=1 in arguments?arguments[1]:d.rgb.hsv(a)[2];e=Math.round(e/50);if(0===e)return 30;b=30+(Math.round(f/255)<<2|Math.round(c/255)<<1|Math.round(b/255));2===e&&(b+=60);return b};d.hsv.ansi16=function(a){return d.rgb.ansi16(d.hsv.rgb(a),a[2])};d.rgb.ansi256=function(a){var b=a[0],c=a[1];a=a[2];return b===c&&c===a?8>b?16:248>1&1)*a*255,(b>>2&1)*a*255]};d.ansi256.rgb=function(a){if(232<=a){var b=10*(a-232)+8;return[b,b,b]}a-=16;b=Math.floor(a/36)/5*255;var c=Math.floor((a%=36)/6)/5*255;return[b,c,a%6/5*255]};d.rgb.hex=function(a){a=(((Math.round(a[0])&255)<<16)+((Math.round(a[1])&255)<<8)+(Math.round(a[2])&255)).toString(16).toUpperCase();return"000000".substring(a.length)+a};d.hex.rgb=function(a){a= -a.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!a)return[0,0,0];var b=a[0];3===a[0].length&&(b=b.split("").map(function(a){return a+a}).join(""));a=parseInt(b,16);return[a>>16&255,a>>8&255,a&255]};d.rgb.hcg=function(a){var b=a[0]/255,c=a[1]/255;a=a[2]/255;var d=Math.max(Math.max(b,c),a),e=Math.min(Math.min(b,c),a),f=d-e;return[(0>=f?0:d===b?(c-a)/f%6:d===c?2+(a-b)/f:(b-c)/f+8)/6%1*360,100*f,100*(1>f?e/(1-f):0)]};d.hsl.hcg=function(a){var b=a[1]/100,c=a[2]/100,d=0;b=.5>c?2*b*c:2*b*(1-c);1>b&& -(d=(c-.5*b)/(1-b));return[a[0],100*b,100*d]};d.hsv.hcg=function(a){var b=a[2]/100,c=a[1]/100*b,d=0;1>c&&(d=(b-c)/(1-c));return[a[0],100*c,100*d]};d.hcg.rgb=function(a){var b=a[1]/100,c=a[2]/100;if(0===b)return[255*c,255*c,255*c];var d=[0,0,0];a=a[0]/360%1*6;var e=a%1,f=1-e;switch(Math.floor(a)){case 0:d[0]=1;d[1]=e;d[2]=0;break;case 1:d[0]=f;d[1]=1;d[2]=0;break;case 2:d[0]=0;d[1]=1;d[2]=e;break;case 3:d[0]=0;d[1]=f;d[2]=1;break;case 4:d[0]=e;d[1]=0;d[2]=1;break;default:d[0]=1,d[1]=0,d[2]=f}c*=1-b; -return[255*(b*d[0]+c),255*(b*d[1]+c),255*(b*d[2]+c)]};d.hcg.hsv=function(a){var b=a[1]/100,c=b+a[2]/100*(1-b),d=0;0c?d=b/(2*c):.5<=c&&1>c&&(d=b/(2*(1-c)));return[a[0],100*d,100*c]};d.hcg.hwb=function(a){var b=a[1]/100,c=b+a[2]/100*(1-b);return[a[0],100*(c-b),100*(1-c)]};d.hwb.hcg=function(a){var b=1-a[2]/100,c=b-a[1]/100,d=0;1>c&&(d=(b-c)/(1-c));return[a[0],100*c,100*d]};d.apple.rgb=function(a){return[a[0]/ -65535*255,a[1]/65535*255,a[2]/65535*255]};d.rgb.apple=function(a){return[a[0]/255*65535,a[1]/255*65535,a[2]/255*65535]};d.gray.rgb=function(a){return[a[0]/100*255,a[0]/100*255,a[0]/100*255]};d.gray.hsl=d.gray.hsv=function(a){return[0,0,a[0]]};d.gray.hwb=function(a){return[0,100,a[0]]};d.gray.cmyk=function(a){return[0,0,0,a[0]]};d.gray.lab=function(a){return[a[0],0,0]};d.gray.hex=function(a){a=Math.round(a[0]/100*255)&255;a=((a<<16)+(a<<8)+a).toString(16).toUpperCase();return"000000".substring(a.length)+ -a};d.rgb.gray=function(a){return[(a[0]+a[1]+a[2])/3/255*100]}},{"color-name":61}],59:[function(a,l,g){function k(a){var b=function(b){if(void 0===b||null===b)return b;1?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};l.exports= -k;k.makeRe=function(a){try{return new RegExp(k(a))}catch(c){}};k.isMatch=function(a,c){try{return k.makeRe(c).test(a)}catch(b){return!1}};k.match=function(a,c){for(var b=a.length,d=0,f=a.slice(),h=k.makeRe(c);d=a&&9>=b:a=e?c:e;return function(a){return m("0",d-a.toString().length)}}return!1}var c=a("isobject"),b=a("is-number"),p=a("randomatic"), -m=a("repeat-string"),q=a("repeat-element");l.exports=function(a,n,r,m,g){if(null==a||null==n)throw Error("fill-range expects the first and second args to be strings.");"function"===typeof r&&(g=r,m={},r=null);"function"===typeof m&&(g=m,m={});c(r)&&(m=r,r="");var e,t=!1,u="";m=m||{};"undefined"===typeof m.silent&&(m.silent=!0);r=r||m.step;var l=a,C=n;n="-0"===n.toString()?0:n;if(m.optimize||m.makeRe)r=r?r+="~":r,t=e=!0,u="~";if("string"===typeof r){var F=/\?|>|\||\+|\~/g.exec(r);if(F){var K=F.index; -F=F[0];if("+"===F)return q(a,n);if("?"===F)return[p(a,n)];">"===F?(r=r.substr(0,K)+r.substr(K+1),e=!0):"|"===F?(r=r.substr(0,K)+r.substr(K+1),t=e=!0,u=F):"~"===F&&(r=r.substr(0,K)+r.substr(K+1),t=e=!0,u=F)}else if(!b(r)){if(!m.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(a)||/[.&*()[\]^%$#@!]/.test(n)){if(!m.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!/[a-z0-9]/i.test(a)||!/[a-z0-9]/i.test(n)||/[a-z][0-9]|[0-9][a-z]/i.test(a)|| -/[a-z][0-9]|[0-9][a-z]/i.test(n)){if(!m.silent)throw new RangeError("fill-range: invalid range arguments.");return null}K=b(f(a));F=b(f(n));if(!K&&F||K&&!F){if(!m.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}r=Math.abs(r>>0)||1;K?(a=+a,n=+n):(a=a.charCodeAt(0),n=n.charCodeAt(0));F=a>n;if(0>a||0>n)t=e=!1;var M=d(l,C),B,I=[],D=0;if(t&&(K&&(9=n:a<=n;){M&& -K&&(B=M(a));if("function"===typeof g)l=g(a,K,B,D++);else if(K){l=a;var E=(C=B)?C+l:l;C&&"-"===l.toString().charAt(0)&&(E="-"+C+l.toString().substr(1));l=E.toString()}else{if(l=t)l=String.fromCharCode(a),l="\\"===l||"["===l||"]"===l||"^"===l||"("===l||")"===l||"`"===l;l=l?null:String.fromCharCode(a)}null!==l&&I.push(l);a=F?a-r:a+r}if((t||e)&&!m.noexpand){if("|"===u||"~"===u)u=h(a,n,r,K,F);return 1===I.length||0>a||0>n?I:k(I,u,m)}return I}},{"is-number":120,isobject:129,randomatic:307,"repeat-element":313, -"repeat-string":314}],85:[function(a,l,g){(function(k){var h=a("path"),f=a("graceful-fs"),d=a("del").sync,c=a("./utils"),b=c.writeJSON,p={load:function(a,b){this._visited={};this._persisted={};this._pathToFile=b?h.resolve(b,a):h.resolve(k,"./.cache/",a);f.existsSync(this._pathToFile)&&(this._persisted=c.tryParse(this._pathToFile,{}))},loadFile:function(a){var b=h.dirname(a);a=h.basename(a);this.load(a,b)},keys:function(){return Object.keys(this._persisted)},setKey:function(a,b){this._visited[a]=!0; -this._persisted[a]=b},removeKey:function(a){delete this._visited[a];delete this._persisted[a]},getKey:function(a){this._visited[a]=!0;return this._persisted[a]},_prune:function(){var a=this,b={},c=Object.keys(a._visited);0!==c.length&&(c.forEach(function(c){b[c]=a._persisted[c]}),a._visited={},a._persisted=b)},save:function(a){!a&&this._prune();b(this._pathToFile,this._persisted)},removeCacheFile:function(){return d(this._pathToFile,{force:!0})},destroy:function(){this._visited={};this._persisted= -{};this.removeCacheFile()}};l.exports={load:function(a,b){return this.create(a,b)},create:function(a,b){var c=Object.create(p);c.load(a,b);return c},createFromFile:function(a){var b=Object.create(p);b.loadFile(a);return b},clearCacheById:function(a,b){var c=b?h.resolve(b,a):h.resolve(k,"./.cache/",a);return 0=a.length)return b&&(b[x]=a),n(null,a);p.lastIndex=C;var d=p.exec(a); -M=F;F+=d[0];K=M+d[1];C=p.lastIndex;if(L[K]||b&&b[K]===K)return k.nextTick(q);if(b&&Object.prototype.hasOwnProperty.call(b,K))a=f.resolve(b[K],a.slice(C)),e();else return c.lstat(K,g)}function g(a,e){if(a)return n(a);if(!e.isSymbolicLink())return L[K]=!0,b&&(b[K]=K),k.nextTick(q);if(!d){var f=e.dev.toString(32)+":"+e.ino.toString(32);if(A.hasOwnProperty(f))return l(null,A[f],K)}c.stat(K,function(a){if(a)return n(a);c.readlink(K,function(a,b){d||(A[f]=b);l(a,b)})})}function l(c,d,h){if(c)return n(c); -c=f.resolve(M,d);b&&(b[h]=c);a=f.resolve(c,a.slice(C));e()}"function"!==typeof n&&(n="function"===typeof b?b:h(),b=null);a=f.resolve(a);if(b&&Object.prototype.hasOwnProperty.call(b,a))return k.nextTick(n.bind(null,null,b[a]));var x=a,A={},L={},C,F,K,M;e()}}).call(this,a("_process"))},{_process:16,fs:1,path:14}],92:[function(a,l,g){var k=a("path"),h=a("glob-parent"),f=a("is-glob");l.exports=function(a){if("string"!==typeof a)throw new TypeError("glob-base expects a string.");var c={};c.base=h(a);c.isGlob= -f(a);"."!==c.base?(c.glob=a.substr(c.base.length),"/"===c.glob.charAt(0)&&(c.glob=c.glob.substr(1))):c.glob=a;if(!c.isGlob){var b="/"===a.slice(-1)?a:k.dirname(a);c.base=b;c.glob="."!==c.base?a.substr(c.base.length):a}"./"===c.glob.substr(0,2)&&(c.glob=c.glob.substr(2));"/"===c.glob.charAt(0)&&(c.glob=c.glob.substr(1));return c}},{"glob-parent":93,"is-glob":119,path:14}],93:[function(a,l,g){var k=a("path"),h=a("is-glob");l.exports=function(a){a+="a";do a=k.dirname(a);while(h(a));return a}},{"is-glob":119, -path:14}],94:[function(a,l,g){(function(k){function h(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function f(a,b){return a.toLowerCase().localeCompare(b.toLowerCase())}function d(a,b){return a.localeCompare(b)}function c(a){var b=null;"/**"===a.slice(-3)&&(b=a.replace(/(\/\*\*)+$/,""),b=new n(b,{dot:!0}));return{matcher:new n(a,{dot:!0}),gmatcher:b}}function b(a,b){var c="/"===b.charAt(0)?m.join(a.root,b):e(b)||""===b?b:a.changedCwd?m.resolve(a.cwd,b):m.resolve(b);"win32"===k.platform&& -(c=c.replace(/\\/g,"/"));return c}function p(a,b){return a.ignore.length?a.ignore.some(function(a){return a.matcher.match(b)||!(!a.gmatcher||!a.gmatcher.match(b))}):!1}g.alphasort=d;g.alphasorti=f;g.setopts=function(a,d,f){f||(f={});if(f.matchBase&&-1===d.indexOf("/")){if(f.noglobstar)throw Error("base matching requires globstar");d="**/"+d}a.silent=!!f.silent;a.pattern=d;a.strict=!1!==f.strict;a.realpath=!!f.realpath;a.realpathCache=f.realpathCache||Object.create(null);a.follow=!!f.follow;a.dot= -!!f.dot;a.mark=!!f.mark;a.nodir=!!f.nodir;a.nodir&&(a.mark=!0);a.sync=!!f.sync;a.nounique=!!f.nounique;a.nonull=!!f.nonull;a.nosort=!!f.nosort;a.nocase=!!f.nocase;a.stat=!!f.stat;a.noprocess=!!f.noprocess;a.absolute=!!f.absolute;a.maxLength=f.maxLength||Infinity;a.cache=f.cache||Object.create(null);a.statCache=f.statCache||Object.create(null);a.symlinks=f.symlinks||Object.create(null);a.ignore=f.ignore||[];Array.isArray(a.ignore)||(a.ignore=[a.ignore]);a.ignore.length&&(a.ignore=a.ignore.map(c)); -a.changedCwd=!1;var p=k.cwd();h(f,"cwd")?(a.cwd=m.resolve(f.cwd),a.changedCwd=a.cwd!==p):a.cwd=p;a.root=f.root||m.resolve(a.cwd,"/");a.root=m.resolve(a.root);"win32"===k.platform&&(a.root=a.root.replace(/\\/g,"/"));a.cwdAbs=e(a.cwd)?a.cwd:b(a,a.cwd);"win32"===k.platform&&(a.cwdAbs=a.cwdAbs.replace(/\\/g,"/"));a.nomount=!!f.nomount;f.nonegate=!0;f.nocomment=!0;a.minimatch=new n(d,f);a.options=a.minimatch.options};g.ownProp=h;g.makeAbs=b;g.finish=function(a){for(var c=a.nounique,e=c?[]:Object.create(null), -n=0,h=a.matches.length;n=d._processing&&(n?k.nextTick(function(){d._finish()}):d._finish())}"function"===typeof b&&(c=b,b=null);if(b&&b.sync){if(c)throw new TypeError("callback provided to sync glob");return new K(a,b)}if(!(this instanceof -f))return new f(a,b,c);w(this,a,b);this._didRealPath=!1;a=this.minimatch.set.length;this.matches=Array(a);"function"===typeof c&&(c=F(c),this.on("error",c),this.on("end",function(a){c(null,a)}));var d=this;this._processing=0;this._emitQueue=[];this._processQueue=[];this.paused=!1;if(this.noprocess)return this;if(0===a)return e();var n=!0;for(b=0;bthis.maxLength)return b();if(!this.stat&&x(this.cache,e)){var f=this.cache[e];Array.isArray(f)&&(f="DIR");if(!d||"DIR"===f)return b(null, -f);if(d&&"FILE"===f)return b()}f=this.statCache[e];if(void 0!==f){if(!1===f)return b(null,f);var n=f.isDirectory()?"DIR":"FILE";return d&&"FILE"===n?b():b(null,n,f)}var h=this;(d=A("stat\x00"+e,function(d,f){if(f&&f.isSymbolicLink())return c.stat(e,function(c,d){c?h._stat2(a,e,null,f,b):h._stat2(a,e,c,d,b)});h._stat2(a,e,d,f,b)}))&&c.lstat(e,d)};f.prototype._stat2=function(a,b,c,e,d){if(c&&("ENOENT"===c.code||"ENOTDIR"===c.code))return this.statCache[b]=!1,d();a="/"===a.slice(-1);this.statCache[b]= -e;if("/"===b.slice(-1)&&e&&!e.isDirectory())return d(null,!1,e);c=!0;e&&(c=e.isDirectory()?"DIR":"FILE");this.cache[b]=this.cache[b]||c;return a&&"FILE"===c?d():d(null,c,e)}}).call(this,a("_process"))},{"./common.js":94,"./sync.js":96,_process:16,assert:2,events:8,fs:1,"fs.realpath":90,inflight:110,inherits:111,minimatch:171,once:179,path:14,"path-is-absolute":185,util:42}],96:[function(a,l,g){(function(k){function h(a,b){if("function"===typeof b||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167"); -return(new f(a,b)).found}function f(a,b){if(!a)throw Error("must provide pattern");if("function"===typeof b||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof f))return new f(a,b);n(this,a,b);if(this.noprocess)return this;var c=this.minimatch.set.length;this.matches=Array(c);for(var e=0;ethis.maxLength)return!1;if(!this.stat&&r(this.cache,b)){a=this.cache[b];Array.isArray(a)&&(a="DIR");if(!c||"DIR"===a)return a;if(c&&"FILE"===a)return!1}var e=this.statCache[b];if(!e){try{var f=d.lstatSync(b)}catch(F){if(F&&("ENOENT"===F.code||"ENOTDIR"===F.code))return this.statCache[b]=!1}if(f&&f.isSymbolicLink())try{e=d.statSync(b)}catch(F){e=f}else e=f}this.statCache[b]=e;a=!0;e&&(a= -e.isDirectory()?"DIR":"FILE");this.cache[b]=this.cache[b]||a;return c&&"FILE"===a?!1:a};f.prototype._mark=function(a){return e.mark(this,a)};f.prototype._makeAbs=function(a){return e.makeAbs(this,a)}}).call(this,a("_process"))},{"./common.js":94,"./glob.js":95,_process:16,assert:2,fs:1,"fs.realpath":90,minimatch:171,path:14,"path-is-absolute":185,util:42}],97:[function(a,l,g){function k(a){return"!"===a[0]}function h(a){return"string"===typeof a}function f(a,c){a=[].concat(a);if(!a.every(h))throw new TypeError("patterns must be a string or an array of strings"); -var e=[];c=b({cache:Object.create(null),statCache:Object.create(null),realpathCache:Object.create(null),symlinks:Object.create(null),ignore:[]},c);a.forEach(function(d,f){if(!k(d)){var n=a.slice(f).filter(k).map(function(a){return a.slice(1)});e.push({pattern:d,opts:b({},c,{ignore:c.ignore.concat(n)})})}});return e}var d=a("pinkie-promise"),c=a("array-union"),b=a("object-assign"),p=a("glob"),m=a("pify")(p,d).bind(p);l.exports=function(a,b){try{var e=f(a,b)}catch(r){return d.reject(r)}return d.all(e.map(function(a){return m(a.pattern, -a.opts)})).then(function(a){return c.apply(null,a)})};l.exports.sync=function(a,b){return f(a,b).reduce(function(a,b){return c(a,p.sync(b.pattern,b.opts))},[])};l.exports.generateGlobTasks=f;l.exports.hasMagic=function(a,b){return[].concat(a).some(function(a){return p.hasMagic(a,b)})}},{"array-union":47,glob:95,"object-assign":177,pify:98,"pinkie-promise":188}],98:[function(a,l,g){arguments[4][75][0].apply(g,arguments)},{dup:75}],99:[function(a,l,g){function k(a,c){return Array.isArray(a)?a.reduce(function(a, -d){return a.concat(c(d))},[]):c(a)}var h=a("path"),f=Array.prototype.slice;l.exports=function(){return f.call(arguments,0).reduce(function(a,c){return k(a,function(a){return k(c,function(b){if("!"===b[0]){var c=b.substr(1);b="!"===a[0]?"":"!";b+=h.join(a,c)}else b=h.join(a,b);return b})})},"")}},{path:14}],100:[function(a,l,g){a=a("fs");l.exports=function(a){if(null===a||"object"!==typeof a)return a;var h=a instanceof Object?{__proto__:a.__proto__}:Object.create(null);Object.getOwnPropertyNames(a).forEach(function(f){Object.defineProperty(h, -f,Object.getOwnPropertyDescriptor(a,f))});return h}(a)},{fs:1}],101:[function(a,l,g){(function(k){function h(a){function c(a,b,c,e){function h(a,b,c,e){return C(a,b,c,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"===typeof e&&e.apply(this,arguments),d()):f([h,[a,b,c,e]])})}"function"===typeof c&&(e=c,c=null);return h(a,b,c,e)}function e(b){return F.apply(a,b)}function n(a,b){return this instanceof n?(M.apply(this,arguments),this):n.apply(Object.create(n.prototype),arguments)}function q(a, -b){return this instanceof q?(B.apply(this,arguments),this):q.apply(Object.create(q.prototype),arguments)}function m(a,b,c,e){function h(a,b,c,e){return I(a,b,c,function(n,p){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"===typeof e&&e.apply(this,arguments),d()):f([h,[a,b,c,e]])})}"function"===typeof c&&(e=c,c=null);return h(a,b,c,e)}b(a);a.gracefulify=h;a.FileReadStream=n;a.FileWriteStream=q;a.createReadStream=function(a,b){return new n(a,b)};a.createWriteStream=function(a,b){return new q(a, -b)};var g=a.readFile;a.readFile=function(a,b,c){function e(a,b,c){return g(a,b,function(h){!h||"EMFILE"!==h.code&&"ENFILE"!==h.code?("function"===typeof c&&c.apply(this,arguments),d()):f([e,[a,b,c]])})}"function"===typeof b&&(c=b,b=null);return e(a,b,c)};var l=a.writeFile;a.writeFile=function(a,b,c,e){function h(a,b,c,e){return l(a,b,c,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"===typeof e&&e.apply(this,arguments),d()):f([h,[a,b,c,e]])})}"function"===typeof c&&(e=c,c=null);return h(a, -b,c,e)};var C=a.appendFile;C&&(a.appendFile=c);var F=a.readdir;a.readdir=function(a,b,c){var h=[a];"function"!==typeof b?h.push(b):c=b;h.push(function(a,b){b&&b.sort&&b.sort();!a||"EMFILE"!==a.code&&"ENFILE"!==a.code?("function"===typeof c&&c.apply(this,arguments),d()):f([e,[h]])});return e(h)};if("v0.8"===k.version.substr(0,4)){var K=p(a);n=K.ReadStream;q=K.WriteStream}var M=a.ReadStream;n.prototype=Object.create(M.prototype);n.prototype.open=function(){var a=this;m(a.path,a.flags,a.mode,function(b, -c){b?(a.autoClose&&a.destroy(),a.emit("error",b)):(a.fd=c,a.emit("open",c),a.read())})};var B=a.WriteStream;q.prototype=Object.create(B.prototype);q.prototype.open=function(){var a=this;m(a.path,a.flags,a.mode,function(b,c){b?(a.destroy(),a.emit("error",b)):(a.fd=c,a.emit("open",c))})};a.ReadStream=n;a.WriteStream=q;var I=a.open;a.open=m;return a}function f(a){e("ENQUEUE",a[0].name,a[1]);m.push(a)}function d(){var a=m.shift();a&&(e("RETRY",a[0].name,a[1]),a[0].apply(null,a[1]))}var c=a("fs"),b=a("./polyfills.js"), -p=a("./legacy-streams.js"),m=[],q=a("util"),e=function(){};q.debuglog?e=q.debuglog("gfs4"):/\bgfs4\b/i.test(k.env.NODE_DEBUG||"")&&(e=function(){var a=q.format.apply(q,arguments);a="GFS4: "+a.split(/\n/).join("\nGFS4: ");console.error(a)});if(/\bgfs4\b/i.test(k.env.NODE_DEBUG||""))k.on("exit",function(){e(m);a("assert").equal(m.length,0)});l.exports=h(a("./fs.js"));k.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&(l.exports=h(c));l.exports.close=c.close=function(a){return function(b,e){return a.call(c,b,function(a){a|| -d();"function"===typeof e&&e.apply(this,arguments)})}}(c.close);l.exports.closeSync=c.closeSync=function(a){return function(b){var e=a.apply(c,arguments);d();return e}}(c.closeSync)}).call(this,a("_process"))},{"./fs.js":100,"./legacy-streams.js":102,"./polyfills.js":103,_process:16,assert:2,fs:1,util:42}],102:[function(a,l,g){(function(k){var h=a("stream").Stream;l.exports=function(a){function d(b,c){if(!(this instanceof d))return new d(b,c);h.call(this);var f=this;this.path=b;this.fd=null;this.readable= -!0;this.paused=!1;this.flags="r";this.mode=438;this.bufferSize=65536;c=c||{};for(var p=Object.keys(c),e=0,n=p.length;ethis.end)throw Error("start must be <= end");this.pos=this.start}null!==this.fd? -k.nextTick(function(){f._read()}):a.open(this.path,this.flags,this.mode,function(a,b){a?(f.emit("error",a),f.readable=!1):(f.fd=b,f.emit("open",b),f._read())})}function c(b,d){if(!(this instanceof c))return new c(b,d);h.call(this);this.path=b;this.fd=null;this.writable=!0;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;d=d||{};for(var f=Object.keys(d),p=0,e=f.length;pthis.start)throw Error("start must be >= zero");this.pos=this.start}this.busy=!1;this._queue=[];null===this.fd&&(this._open=a.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}return{ReadStream:d,WriteStream:c}}}).call(this,a("_process"))},{_process:16,stream:35}],103:[function(a,l,g){(function(k){function h(a){a.lchmod=function(b,c,e){a.open(b,r.O_WRONLY|r.O_SYMLINK,c,function(b,d){b?e&&e(b):a.fchmod(d,c,function(b){a.close(d,function(a){e&&e(b||a)})})})}; -a.lchmodSync=function(b,c){var e=a.openSync(b,r.O_WRONLY|r.O_SYMLINK,c),d=!0;try{var f=a.fchmodSync(e,c);d=!1}finally{if(d)try{a.closeSync(e)}catch(B){}else a.closeSync(e)}return f}}function f(a){r.hasOwnProperty("O_SYMLINK")?(a.lutimes=function(b,c,e,d){a.open(b,r.O_SYMLINK,function(b,f){b?d&&d(b):a.futimes(f,c,e,function(b){a.close(f,function(a){d&&d(b||a)})})})},a.lutimesSync=function(b,c,e){b=a.openSync(b,r.O_SYMLINK);var d=!0;try{var f=a.futimesSync(b,c,e);d=!1}finally{if(d)try{a.closeSync(b)}catch(B){}else a.closeSync(b)}return f}): -(a.lutimes=function(a,b,c,e){e&&k.nextTick(e)},a.lutimesSync=function(){})}function d(a){return a?function(b,c,d){return a.call(n,b,c,function(a){e(a)&&(a=null);d&&d.apply(this,arguments)})}:a}function c(a){return a?function(b,c){try{return a.call(n,b,c)}catch(F){if(!e(F))throw F;}}:a}function b(a){return a?function(b,c,d,f){return a.call(n,b,c,d,function(a){e(a)&&(a=null);f&&f.apply(this,arguments)})}:a}function p(a){return a?function(b,c,d){try{return a.call(n,b,c,d)}catch(K){if(!e(K))throw K;}}: -a}function m(a){return a?function(b,c){return a.call(n,b,function(a,b){if(!b)return c.apply(this,arguments);0>b.uid&&(b.uid+=4294967296);0>b.gid&&(b.gid+=4294967296);c&&c.apply(this,arguments)})}:a}function q(a){return a?function(b){b=a.call(n,b);0>b.uid&&(b.uid+=4294967296);0>b.gid&&(b.gid+=4294967296);return b}:a}function e(a){if(!a||"ENOSYS"===a.code)return!0;if(!k.getuid||0!==k.getuid())if("EINVAL"===a.code||"EPERM"===a.code)return!0;return!1}var n=a("./fs.js"),r=a("constants"),g=k.cwd,u=null, -w=k.env.GRACEFUL_FS_PLATFORM||k.platform;k.cwd=function(){u||(u=g.call(k));return u};try{k.cwd()}catch(A){}var x=k.chdir;k.chdir=function(a){u=null;x.call(k,a)};l.exports=function(a){r.hasOwnProperty("O_SYMLINK")&&k.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&h(a);a.lutimes||f(a);a.chown=b(a.chown);a.fchown=b(a.fchown);a.lchown=b(a.lchown);a.chmod=d(a.chmod);a.fchmod=d(a.fchmod);a.lchmod=d(a.lchmod);a.chownSync=p(a.chownSync);a.fchownSync=p(a.fchownSync);a.lchownSync=p(a.lchownSync);a.chmodSync=c(a.chmodSync); -a.fchmodSync=c(a.fchmodSync);a.lchmodSync=c(a.lchmodSync);a.stat=m(a.stat);a.fstat=m(a.fstat);a.lstat=m(a.lstat);a.statSync=q(a.statSync);a.fstatSync=q(a.fstatSync);a.lstatSync=q(a.lstatSync);a.lchmod||(a.lchmod=function(a,b,c){c&&k.nextTick(c)},a.lchmodSync=function(){});a.lchown||(a.lchown=function(a,b,c,e){e&&k.nextTick(e)},a.lchownSync=function(){});"win32"===w&&(a.rename=function(b){return function(c,e,d){var f=Date.now(),h=0;b(c,e,function D(n){n&&("EACCES"===n.code||"EPERM"===n.code)&&6E4> -Date.now()-f?(setTimeout(function(){a.stat(e,function(a,f){a&&"ENOENT"===a.code?b(c,e,D):d(n)})},h),100>h&&(h+=10)):d&&d(n)})}}(a.rename));a.read=function(b){return function(c,e,d,f,h,n){if(n&&"function"===typeof n){var p=0;var k=function(q,r,m){if(q&&"EAGAIN"===q.code&&10>p)return p++,b.call(a,c,e,d,f,h,k);n.apply(this,arguments)}}return b.call(a,c,e,d,f,h,k)}}(a.read);a.readSync=function(b){return function(c,e,d,f,h){for(var n=0;;)try{return b.call(a,c,e,d,f,h)}catch(D){if("EAGAIN"===D.code&&10> -n)n++;else throw D;}}}(a.readSync)}}).call(this,a("_process"))},{"./fs.js":100,_process:16,constants:6}],104:[function(a,l,g){a=a("ansi-regex");a=new RegExp(a().source);l.exports=a.test.bind(a)},{"ansi-regex":43}],105:[function(a,l,g){l.exports="a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark math menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rb rp rt rtc ruby s samp script section select slot small source span strong style sub summary sup svg table tbody td template textarea tfoot th thead time title tr track u ul var video wbr".split(" ")}, -{}],106:[function(a,l,g){l.exports=a("./html-tags.json")},{"./html-tags.json":105}],107:[function(a,l,g){(function(a){function h(a){return Array.isArray(a)?a:[a]}function f(a,b){var c=g[a];if(c)return c;c=(b?r:n).reduce(function(b,c){return b.replace(c[0],c[1].bind(a))},a);return g[a]=new RegExp(c,"i")}var d=function(){function a(a,b){for(var c=0;cf?a.charCodeAt(f++)&65535:0;case 1:b^=c>f?(a.charCodeAt(f++)&65535)<<8:0;case 2:b^=c>f?(a.charCodeAt(f++)&65535)<<16:0;case 3:b^=c>f?(a.charCodeAt(f)&255)<<24:0,b^=c>f?(a.charCodeAt(f++)&65280)>>8:0}this.rem= -c+this.rem&3;c-=this.rem;if(0>>17;b=13715*b+461832192*(b&65535)&4294967295;d^=b;d=d<<13|d>>>19;d=5*d+3864292196&4294967295;if(f>=c)break;b=a.charCodeAt(f++)&65535^(a.charCodeAt(f++)&65535)<<8^(a.charCodeAt(f++)&65535)<<16;var h=a.charCodeAt(f++);b^=(h&255)<<24^(h&65280)>>8}b=0;switch(this.rem){case 3:b^=(a.charCodeAt(f+2)&65535)<<16;case 2:b^=(a.charCodeAt(f+1)&65535)<<8;case 1:b^=a.charCodeAt(f)&65535}this.h1=d}this.k1=b;return this}; -a.prototype.result=function(){var a=this.k1;var d=this.h1;0>>17,d^=13715*a+461832192*(a&65535)&4294967295);d^=this.len;d^=d>>>16;d=51819*d+2246770688*(d&65535)&4294967295;d^=d>>>13;d=44597*d+3266445312*(d&65535)&4294967295;return(d^d>>>16)>>>0};a.prototype.reset=function(a){this.h1="number"===typeof a?a:0;this.rem=this.k1=this.len=0;return this};var h=new a;"undefined"!=typeof l?l.exports=a:this.MurmurHash3=a})()},{}],109:[function(a,l,g){l.exports= -function(a,h){for(var f=-1,d=[];-1!==(f=a.indexOf(h,f+1));)d.push(f);return d}},{}],110:[function(a,l,g){(function(k){function h(a){return b(function q(){var b=c[a],d=b.length,h=f(arguments);try{for(var p=0;pd?(b.splice(0,d),k.nextTick(function(){q.apply(null,h)})):delete c[a]}})}function f(a){for(var b=a.length,c=[],e=0;ea.length){var b=a.charCodeAt(0);return 128>b?a:2048>b?c(192|b>>>6)+c(128|b&63):c(224|b>>>12&15)+c(128|b>>>6&63)+c(128|b&63)}b=65536+1024*(a.charCodeAt(0)-55296)+(a.charCodeAt(1)-56320);return c(240|b>>>18&7)+c(128|b>>>12&63)+c(128|b>>>6&63)+c(128|b&63)},p=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,m=function(a){return a.replace(p,b)},q=function(a){var b= -[0,2,1][a.length%3];a=a.charCodeAt(0)<<16|(1>>18),"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(a>>>12&63),2<=b?"=":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(a>>>6&63),1<=b?"=":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(a&63)].join("")},e=k.btoa?function(a){return k.btoa(a)}: -function(a){return a.replace(/[\s\S]{1,3}/g,q)},n=f?function(a){return(a.constructor===f.constructor?a:new f(a)).toString("base64")}:function(a){return e(m(a))},r=function(a,b){return b?n(String(a)).replace(/[+\/]/g,function(a){return"+"==a?"-":"_"}).replace(/=/g,""):n(String(a))},g=RegExp("[\u00c0-\u00df][\u0080-\u00bf]|[\u00e0-\u00ef][\u0080-\u00bf]{2}|[\u00f0-\u00f7][\u0080-\u00bf]{3}","g"),u=function(a){switch(a.length){case 4:return a=((7&a.charCodeAt(0))<<18|(63&a.charCodeAt(1))<<12|(63&a.charCodeAt(2))<< -6|63&a.charCodeAt(3))-65536,c((a>>>10)+55296)+c((a&1023)+56320);case 3:return c((15&a.charCodeAt(0))<<12|(63&a.charCodeAt(1))<<6|63&a.charCodeAt(2));default:return c((31&a.charCodeAt(0))<<6|63&a.charCodeAt(1))}},w=function(a){return a.replace(g,u)},x=function(a){var b=a.length,e=b%4;a=(0>>16),c(a>>>8&255),c(a&255)];a.length-=[0,0,2,1][e];return a.join("")},A=k.atob?function(a){return k.atob(a)}: -function(a){return a.replace(/[\s\S]{1,4}/g,x)},L=f?function(a){return(a.constructor===f.constructor?a:new f(a,"base64")).toString()}:function(a){return w(A(a))},C=function(a){return L(String(a).replace(/[-_]/g,function(a){return"-"==a?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};k.Base64={VERSION:"2.1.9",atob:A,btoa:e,fromBase64:C,toBase64:r,utob:m,encode:r,encodeURI:function(a){return r(a,!0)},btou:w,decode:C,noConflict:function(){var a=k.Base64;k.Base64=h;return a}};if("function"===typeof Object.defineProperty){var F= -function(a){return{value:a,enumerable:!1,writable:!0,configurable:!0}};k.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",F(function(){return C(this)}));Object.defineProperty(String.prototype,"toBase64",F(function(a){return r(this,a)}));Object.defineProperty(String.prototype,"toBase64URI",F(function(){return r(this,!0)}))}}k.Meteor&&(Base64=k.Base64)})(this)},{buffer:5}],131:[function(a,l,g){a=a("./lib/js-yaml.js");l.exports=a},{"./lib/js-yaml.js":132}],132:[function(a, -l,g){function k(a){return function(){throw Error("Function "+a+" is deprecated and cannot be used.");}}g=a("./js-yaml/loader");var h=a("./js-yaml/dumper");l.exports.Type=a("./js-yaml/type");l.exports.Schema=a("./js-yaml/schema");l.exports.FAILSAFE_SCHEMA=a("./js-yaml/schema/failsafe");l.exports.JSON_SCHEMA=a("./js-yaml/schema/json");l.exports.CORE_SCHEMA=a("./js-yaml/schema/core");l.exports.DEFAULT_SAFE_SCHEMA=a("./js-yaml/schema/default_safe");l.exports.DEFAULT_FULL_SCHEMA=a("./js-yaml/schema/default_full"); -l.exports.load=g.load;l.exports.loadAll=g.loadAll;l.exports.safeLoad=g.safeLoad;l.exports.safeLoadAll=g.safeLoadAll;l.exports.dump=h.dump;l.exports.safeDump=h.safeDump;l.exports.YAMLException=a("./js-yaml/exception");l.exports.MINIMAL_SCHEMA=a("./js-yaml/schema/failsafe");l.exports.SAFE_SCHEMA=a("./js-yaml/schema/default_safe");l.exports.DEFAULT_SCHEMA=a("./js-yaml/schema/default_full");l.exports.scan=k("scan");l.exports.parse=k("parse");l.exports.compose=k("compose");l.exports.addConstructor=k("addConstructor")}, -{"./js-yaml/dumper":134,"./js-yaml/exception":135,"./js-yaml/loader":136,"./js-yaml/schema":138,"./js-yaml/schema/core":139,"./js-yaml/schema/default_full":140,"./js-yaml/schema/default_safe":141,"./js-yaml/schema/failsafe":142,"./js-yaml/schema/json":143,"./js-yaml/type":144}],133:[function(a,l,g){function k(a){return"undefined"===typeof a||null===a}l.exports.isNothing=k;l.exports.isObject=function(a){return"object"===typeof a&&null!==a};l.exports.toArray=function(a){return Array.isArray(a)?a:k(a)? -[]:[a]};l.exports.repeat=function(a,f){var d="",c;for(c=0;c=a||161<=a&&55295>=a&&8232!==a&&8233!==a||57344<=a&&65533>=a&&65279!==a||65536<=a&&1114111>=a}function d(a){return f(a)&&65279!==a&&44!==a&&91!==a&&93!==a&&123!==a&& -125!==a&&58!==a&&35!==a}function c(a,b,c,e,h){var n=!1,p=!1,k=-1!==e,q=-1,r=a.charCodeAt(0);if(r=f(r)&&65279!==r&&!(32===r||9===r)&&45!==r&&63!==r&&58!==r&&44!==r&&91!==r&&93!==r&&123!==r&&125!==r&&35!==r&&38!==r&&42!==r&&33!==r&&124!==r&&62!==r&&39!==r&&34!==r&&37!==r&&64!==r&&96!==r)r=a.charCodeAt(a.length-1),r=!(32===r||9===r);if(b)for(b=0;be&&" "!==a[q+ -1],q=b);else if(!f(m))return 5;r=r&&d(m)}p=p||k&&b-q-1>e&&" "!==a[q+1]}return n||p?" "===a[0]&&9=a.flowLevel,a.indent,k,function(b){a:{var c;var e=0;for(c=a.implicitTypes.length;e"+p(b,a.indent)+m(h(q(b,k),f));case 5:return'"'+n(b,k)+'"';default:throw new A("impossible error: invalid scalar style");}}()}function p(a,b){var c="\n"===a[a.length-1];return(" "===a[0]?String(b):"")+(!c||"\n"!==a[a.length-2]&&"\n"!==a?c?"":"-":"+")+"\n"}function m(a){return"\n"===a[a.length-1]?a.slice(0,-1):a}function q(a,b){var c=/(\n+)([^\n]*)/g;var d= -a.indexOf("\n");d=-1!==d?d:a.length;c.lastIndex=d;d=e(a.slice(0,d),b);for(var f="\n"===a[0]||" "===a[0],h;h=c.exec(a);){var n=h[1],p=h[2];h=" "===p[0];d+=n+(f||h||""===p?"":"\n")+e(p,b);f=h}return d}function e(a,b){if(""===a||" "===a[0])return a;var c=/ [^ ]/g,e,d=0;var f=0;for(var h="";e=c.exec(a);)e=e.index,e-d>b&&(f=f>d?f:e,h+="\n"+a.slice(d,f),d=f+1),f=e;h+="\n";h=a.length-d>b&&f>d?h+(a.slice(d,f)+"\n"+a.slice(f+1)):h+a.slice(d);return h.slice(1)}function n(a){for(var b="",c,e,d=0;d=e){var h="x";e=2}else if(65535>=e)h="u",e=4;else if(4294967295>=e)h="U",e=8;else throw new A("code point within a string may not be greater than 0xFFFFFFFF");e="\\"+h+x.repeat("0",e-c.length)+c}c=e}b+=c}return b}function r(a,b,c){var e;var d=c?a.explicitTypes:a.implicitTypes;var f=0;for(e=d.length;f tag resolver accepts not "'+c+'" style');a.dump=b}return!0}}return!1}function t(a,c,e,d,f,h){a.tag=null;a.dump=e;r(a,e,!1)||r(a,e,!0);var n=F.call(a.dump);d&&(d=0>a.flowLevel||a.flowLevel>c);var p="[object Object]"===n||"[object Array]"===n;if(p){var k= -a.duplicates.indexOf(e);var q=-1!==k}if(null!==a.tag&&"?"!==a.tag||q||2!==a.indent&&0 "+a.dump)}return!0}function u(a,b,c){var e;if(null!==a&&"object"===typeof a){var d=b.indexOf(a);if(-1!==d)-1===c.indexOf(d)&&c.push(d);else if(b.push(a),Array.isArray(a))for(d= -0,e=a.length;d=d||m(a,"expected valid JSON character")}else H.test(b)&&m(a,"the stream contains non-printable characters");a.result+=b}}function n(a,b,c,e){var d;I.isObject(c)||m(a,"cannot merge mappings; the provided source object is unacceptable");a=Object.keys(c);var f=0;for(d=a.length;fb)&&0!==n)m(a,"bad indentation of a sequence entry");else if(a.lineIndentb?l=1:a.lineIndent===b?l=0:a.lineIndentb?l=1:a.lineIndent===b?l=0:a.lineIndentn)F(a,n,4,!0,N)&&(P?E=a.result:Q=a.result),P||(r(a,D,y,H,E,Q,l,p),H=E=Q=null),u(a, -!0,-1),R=a.input.charCodeAt(a.position);if(a.lineIndent>n&&0!==R)m(a,"bad indentation of a mapping entry");else if(a.lineIndent=B?B-48:-1))0===D?m(a,"bad explicit indentation width of a block scalar; it cannot be less than one"): -g?m(a,"repeat of an indentation width identifier"):(l=b+D-1,g=!0);else break;if(h(B)){do B=a.input.charCodeAt(++a.position);while(h(B));if(35===B){do B=a.input.charCodeAt(++a.position);while(!k(B)&&0!==B)}}for(;0!==B;){t(a);a.lineIndent=0;for(B=a.input.charCodeAt(a.position);(!g||a.lineIndentl&&(l=a.lineIndent);if(k(B))p++;else{if(a.lineIndentg&&G[g])a.result+=O[g],a.position++;else if(0<(n=120===g?2:117===g?4:85===g?8:0)){N=n;for(q=0;0=g?g-=48:(g|=32,g=97<=g&&102>=g?g-97+10:-1),0<=(n=g)?q=(q<<4)+n:m(a,"expected hexadecimal character");N=a.result;q=65535>=q?String.fromCharCode(q):String.fromCharCode((q-65536>>10)+55296,(q-65536&1023)+56320);a.result=N+q; -a.position++}else m(a,"unknown escape sequence");q=N=a.position}else k(g)?(e(a,q,N,!0),x(a,u(a,!1,b)),q=N=a.position):a.position===a.lineStart&&w(a)?m(a,"unexpected end of the document within a double quoted scalar"):(a.position++,N=a.position);m(a,"unexpected end of the stream within a double quoted scalar");q=void 0}if(q)K=!0;else{N=a.input.charCodeAt(a.position);if(42!==N)q=!1;else{N=a.input.charCodeAt(++a.position);for(q=a.position;0!==N&&!f(N)&&!d(N);)N=a.input.charCodeAt(++a.position);a.position=== -q&&m(a,"name of an alias node must contain at least one character");q=a.input.slice(q,a.position);a.anchorMap.hasOwnProperty(q)||m(a,'unidentified alias "'+q+'"');a.result=a.anchorMap[q];u(a,!0,-1);q=!0}if(q)K=!0,null===a.tag&&null===a.anchor||m(a,"alias node should not have any properties");else{a:if(c=1===c,n=a.kind,g=a.result,p=a.input.charCodeAt(a.position),f(p)||d(p)||35===p||38===p||42===p||33===p||124===p||62===p||39===p||34===p||37===p||64===p||96===p)var S=!1;else{if(63===p||45===p)if(M= -a.input.charCodeAt(a.position+1),f(M)||c&&d(M)){S=!1;break a}a.kind="scalar";a.result="";q=N=a.position;for(l=!1;0!==p;){if(58===p){if(M=a.input.charCodeAt(a.position+1),f(M)||c&&d(M))break}else if(35===p){if(M=a.input.charCodeAt(a.position-1),f(M))break}else if(a.position===a.lineStart&&w(a)||c&&d(p))break;else if(k(p))if(S=a.line,l=a.lineStart,p=a.lineIndent,u(a,!1,-1),a.lineIndent>=b){l=!0;p=a.input.charCodeAt(a.position);continue}else{a.position=N;a.line=S;a.lineStart=l;a.lineIndent=p;break}l&& -(e(a,q,N,!1),x(a,a.line-S),q=N=a.position,l=!1);h(p)||(N=a.position+1);p=a.input.charCodeAt(++a.position)}e(a,q,N,!1);a.result?S=!0:(a.kind=n,a.result=g,S=!1)}S&&(K=!0,null===a.tag&&(a.tag="?"))}}null!==a.anchor&&(a.anchorMap[a.anchor]=a.result)}}else 0===l&&(K=g&&A(a,n));if(null!==a.tag&&"!"!==a.tag)if("?"===a.tag)for(S=0,b=a.implicitTypes.length;S tag; it should be "'+c.kind+'", not "'+a.kind+'"'),c.resolve(a.result)?(a.result=c.construct(a.result),null!==a.anchor&&(a.anchorMap[a.anchor]=a.result)):m(a,"cannot resolve a node with !<"+a.tag+"> explicit tag")):m(a,"unknown tag !<"+a.tag+">");null!==a.listener&&a.listener("close",a);return null!==a.tag||null!==a.anchor||K}function K(a,c){a=String(a);c=c||{}; -0!==a.length&&(10!==a.charCodeAt(a.length-1)&&13!==a.charCodeAt(a.length-1)&&(a+="\n"),65279===a.charCodeAt(0)&&(a=a.slice(1)));var e=new b(a,c);for(e.input+="\x00";32===e.input.charCodeAt(e.position);)e.lineIndent+=1,e.position+=1;for(;e.positionl.length&&m(n,"directive name must not be less than one character in length");0!==g;){for(;h(g);)g=n.input.charCodeAt(++n.position);if(35===g){do g=n.input.charCodeAt(++n.position);while(0!==g&&!k(g));break}if(k(g))break;for(d=n.position;0!==g&&!f(g);)g=n.input.charCodeAt(++n.position);x.push(n.input.slice(d,n.position))}0!==g&&t(n);if(z.call(S,l))S[l](n,l,x);else q(n,'unknown document directive "'+ -l+'"')}u(n,!0,-1);0===n.lineIndent&&45===n.input.charCodeAt(n.position)&&45===n.input.charCodeAt(n.position+1)&&45===n.input.charCodeAt(n.position+2)?(n.position+=3,u(n,!0,-1)):r&&m(n,"directives end mark is expected");F(n,n.lineIndent-1,4,!1,!0);u(n,!0,-1);n.checkLineBreaks&&Q.test(n.input.slice(p,n.position))&&q(n,"non-ASCII line breaks are interpreted as content");n.documents.push(n.result);n.position===n.lineStart&&w(n)?46===n.input.charCodeAt(n.position)&&(n.position+=3,u(n,!0,-1)):n.position< -n.length-1&&m(n,"end of the stream or a document separator is expected")}return e.documents}function M(a,b,c){a=K(a,c);var e;if("function"!==typeof b)return a;c=0;for(e=a.length;ca;a++)G[a]=c(a)?1:0,O[a]=c(a);var S={YAML:function(a,b,c){null!==a.version&&m(a,"duplication of %YAML directive");1!==c.length&&m(a,"YAML directive accepts exactly one argument");var e=/^([0-9]+)\.([0-9]+)$/.exec(c[0]);null===e&&m(a,"ill-formed argument of the YAML directive");b=parseInt(e[1],10);e=parseInt(e[2], -10);1!==b&&m(a,"unacceptable YAML version of the document");a.version=c[0];a.checkLineBreaks=2>e;1!==e&&2!==e&&q(a,"unsupported YAML version of the document")},TAG:function(a,b,c){2!==c.length&&m(a,"TAG directive accepts exactly two arguments");b=c[0];c=c[1];N.test(b)||m(a,"ill-formed tag handle (first argument) of the TAG directive");z.call(a.tagMap,b)&&m(a,'there is a previously declared suffix for "'+b+'" tag handle');R.test(c)||m(a,"ill-formed tag prefix (second argument) of the TAG directive"); -a.tagMap[b]=c}};l.exports.loadAll=M;l.exports.load=B;l.exports.safeLoadAll=function(a,b,c){if("function"===typeof b)M(a,b,I.extend({schema:P},c));else return M(a,I.extend({schema:P},c))};l.exports.safeLoad=function(a,b){return B(a,I.extend({schema:P},b))}},{"./common":133,"./exception":135,"./mark":137,"./schema/default_full":140,"./schema/default_safe":141}],137:[function(a,l,g){function k(a,d,c,b,h){this.name=a;this.buffer=d;this.position=c;this.line=b;this.column=h}var h=a("./common");k.prototype.getSnippet= -function(a,d){var c,b;if(!this.buffer)return null;a=a||4;d=d||75;var f="";for(c=this.position;0d/2-1){f=" ... ";c+=5;break}var k="";for(b=this.position;bd/2-1){k=" ... ";b-=5;break}b=this.buffer.slice(c,b);return h.repeat(" ",a)+f+b+k+"\n"+h.repeat(" ",a+this.position-c+f.length)+"^"};k.prototype.toString= -function(a){var d="";this.name&&(d+='in "'+this.name+'" ');d+="at line "+(this.line+1)+", column "+(this.column+1);a||(a=this.getSnippet())&&(d+=":\n"+a);return d};l.exports=k},{"./common":133}],138:[function(a,l,g){function k(a,b,c){var e=[];a.include.forEach(function(a){c=k(a,b,c)});a[b].forEach(function(a){c.forEach(function(b,c){b.tag===a.tag&&b.kind===a.kind&&e.push(c)});c.push(a)});return c.filter(function(a,b){return-1===e.indexOf(b)})}function h(){function a(a){b[a.kind][a.tag]=b.fallback[a.tag]= -a}var b={scalar:{},sequence:{},mapping:{},fallback:{}},c;var e=0;for(c=arguments.length;eb)return!1;d+=6}}return 0===d%8},construct:function(a){var f,d=a.replace(/[\r\n=]/g,""),c=d.length;a=0;var b=[];for(f=0;f>16&255),b.push(a>>8&255),b.push(a&255)),a=a<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r".indexOf(d.charAt(f)); -f=c%4*6;0===f?(b.push(a>>16&255),b.push(a>>8&255),b.push(a&255)):18===f?(b.push(a>>10&255),b.push(a>>2&255)):12===f&&b.push(a>>4&255);return k?k.from?k.from(b):new k(b):b},predicate:function(a){return k&&k.isBuffer(a)},represent:function(a){var f="",d=0,c,b=a.length;for(c=0;c>18&63],f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d>>12&63],f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d>> -6&63],f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d&63]),d=(d<<8)+a[c];a=b%3;0===a?(f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d>>18&63],f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d>>12&63],f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d>>6&63],f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d&63]):2===a?(f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d>> -10&63],f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d>>4&63],f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d<<2&63],f+="="):1===a&&(f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d>>2&63],f+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r"[d<<4&63],f+="==");return f}})},{"../type":144}],146:[function(a,l,g){a=a("../type");l.exports=new a("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(a){if(null=== -a)return!1;var h=a.length;return 4===h&&("true"===a||"True"===a||"TRUE"===a)||5===h&&("false"===a||"False"===a||"FALSE"===a)},construct:function(a){return"true"===a||"True"===a||"TRUE"===a},predicate:function(a){return"[object Boolean]"===Object.prototype.toString.call(a)},represent:{lowercase:function(a){return a?"true":"false"},uppercase:function(a){return a?"TRUE":"FALSE"},camelcase:function(a){return a?"True":"False"}},defaultStyle:"lowercase"})},{"../type":144}],147:[function(a,l,g){var k=a("../common"); -a=a("../type");var h=/^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*|[-+]?\.(?:inf|Inf|INF)|\.(?:nan|NaN|NAN))$/,f=/^[-+]?[0-9]+e/;l.exports=new a("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(a){return null!==a&&h.test(a)&&"_"!==a[a.length-1]?!0:!1},construct:function(a){var c=a.replace(/_/g,"").toLowerCase();a="-"===c[0]?-1:1;var b=[];0<="+-".indexOf(c[0])&&(c=c.slice(1));if(".inf"===c)return 1=== -a?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(".nan"===c)return NaN;if(0<=c.indexOf(":")){c.split(":").forEach(function(a){b.unshift(parseFloat(a,10))});c=0;var d=1;b.forEach(function(a){c+=a*d;d*=60});return a*c}return a*parseFloat(c,10)},predicate:function(a){return"[object Number]"===Object.prototype.toString.call(a)&&(0!==a%1||k.isNegativeZero(a))},represent:function(a,c){if(isNaN(a))switch(c){case "lowercase":return".nan";case "uppercase":return".NAN";case "camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY=== -a)switch(c){case "lowercase":return".inf";case "uppercase":return".INF";case "camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===a)switch(c){case "lowercase":return"-.inf";case "uppercase":return"-.INF";case "camelcase":return"-.Inf"}else if(k.isNegativeZero(a))return"-0.0";var b=a.toString(10);return f.test(b)?b.replace("e",".e"):b},defaultStyle:"lowercase"})},{"../common":133,"../type":144}],148:[function(a,l,g){var k=a("../common");a=a("../type");l.exports=new a("tag:yaml.org,2002:int", -{kind:"scalar",resolve:function(a){if(null===a)return!1;var f=a.length,d=0,c=!1;if(!f)return!1;var b=a[d];if("-"===b||"+"===b)b=a[++d];if("0"===b){if(d+1===f)return!0;b=a[++d];if("b"===b){for(d++;d=c||65<=c&&70>=c||97<=c&&102>=c))return!1;c=!0}return c&&"_"!==b}for(;d=c))return!1;c=!0}return c&& -"_"!==b}if("_"===b)return!1;for(;d=c))return!1;c=!0}return c&&"_"!==b?":"!==b?!0:/^(:[0-5]?[0-9])+$/.test(a.slice(d)):!1},construct:function(a){var f=a;a=1;var d=[];-1!==f.indexOf("_")&&(f=f.replace(/_/g,""));var c=f[0];if("-"===c||"+"===c)"-"===c&&(a=-1),f=f.slice(1),c=f[0];if("0"===f)return 0;if("0"===c)return"b"===f[1]?a*parseInt(f.slice(2),2):"x"===f[1]?a*parseInt(f,16):a*parseInt(f,8);if(-1!==f.indexOf(":")){f.split(":").forEach(function(a){d.unshift(parseInt(a, -10))});f=0;var b=1;d.forEach(function(a){f+=a*b;b*=60});return a*f}return a*parseInt(f,10)},predicate:function(a){return"[object Number]"===Object.prototype.toString.call(a)&&0===a%1&&!k.isNegativeZero(a)},represent:{binary:function(a){return"0b"+a.toString(2)},octal:function(a){return"0"+a.toString(8)},decimal:function(a){return a.toString(10)},hexadecimal:function(a){return"0x"+a.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"], -hexadecimal:[16,"hex"]}})},{"../common":133,"../type":144}],149:[function(a,l,g){try{var k=a("esprima")}catch(h){"undefined"!==typeof window&&(k=window.esprima)}a=a("../../type");l.exports=new a("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(a){if(null===a)return!1;try{var f=k.parse("("+a+")",{range:!0});return"Program"!==f.type||1!==f.body.length||"ExpressionStatement"!==f.body[0].type||"FunctionExpression"!==f.body[0].expression.type?!1:!0}catch(d){return!1}},construct:function(a){a= -"("+a+")";var f=k.parse(a,{range:!0}),d=[];if("Program"!==f.type||1!==f.body.length||"ExpressionStatement"!==f.body[0].type||"FunctionExpression"!==f.body[0].expression.type)throw Error("Failed to resolve function");f.body[0].expression.params.forEach(function(a){d.push(a.name)});f=f.body[0].expression.body.range;return new Function(d,a.slice(f[0]+1,f[1]-1))},predicate:function(a){return"[object Function]"===Object.prototype.toString.call(a)},represent:function(a){return a.toString()}})},{"../../type":144}], -150:[function(a,l,g){a=a("../../type");l.exports=new a("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(a){if(null===a||0===a.length)return!1;var h=/\/([gim]*)$/.exec(a),f="";return"/"===a[0]&&(h&&(f=h[1]),3d.length;)d+="0";d=+d}if(b[9]){c=+b[10];var r=+(b[11]||0);c=6E4*(60*c+r);"-"===b[9]&&(c=-c)}b= -new Date(Date.UTC(a,f,m,q,e,n,d));c&&b.setTime(b.getTime()-c);return b},instanceOf:Date,represent:function(a){return a.toISOString()}})},{"../type":144}],161:[function(a,l,g){var k=a("is-buffer"),h=Object.prototype.toString;l.exports=function(a){if("undefined"===typeof a)return"undefined";if(null===a)return"null";if(!0===a||!1===a||a instanceof Boolean)return"boolean";if("string"===typeof a||a instanceof String)return"string";if("number"===typeof a||a instanceof Number)return"number";if("function"=== -typeof a||a instanceof Function)return"function";if("undefined"!==typeof Array.isArray&&Array.isArray(a))return"array";if(a instanceof RegExp)return"regexp";if(a instanceof Date)return"date";var d=h.call(a);return"[object RegExp]"===d?"regexp":"[object Date]"===d?"date":"[object Arguments]"===d?"arguments":"[object Error]"===d?"error":k(a)?"buffer":"[object Set]"===d?"set":"[object WeakSet]"===d?"weakset":"[object Map]"===d?"map":"[object WeakMap]"===d?"weakmap":"[object Symbol]"===d?"symbol":"[object Int8Array]"=== -d?"int8array":"[object Uint8Array]"===d?"uint8array":"[object Uint8ClampedArray]"===d?"uint8clampedarray":"[object Int16Array]"===d?"int16array":"[object Uint16Array]"===d?"uint16array":"[object Int32Array]"===d?"int32array":"[object Uint32Array]"===d?"uint32array":"[object Float32Array]"===d?"float32array":"[object Float64Array]"===d?"float64array":"object"}},{"is-buffer":113}],162:[function(a,l,g){l.exports={properties:"accelerator -wap-accesskey align-content -webkit-align-content align-items -webkit-align-items align-self -webkit-align-self alignment-baseline all alt -webkit-alt animation animation-delay -moz-animation-delay -ms-animation-delay -webkit-animation-delay animation-direction -moz-animation-direction -ms-animation-direction -webkit-animation-direction animation-duration -moz-animation-duration -ms-animation-duration -webkit-animation-duration animation-fill-mode -moz-animation-fill-mode -ms-animation-fill-mode -webkit-animation-fill-mode animation-iteration-count -moz-animation-iteration-count -ms-animation-iteration-count -webkit-animation-iteration-count -moz-animation -ms-animation animation-name -moz-animation-name -ms-animation-name -webkit-animation-name animation-play-state -moz-animation-play-state -ms-animation-play-state -webkit-animation-play-state animation-timing-function -moz-animation-timing-function -ms-animation-timing-function -webkit-animation-timing-function -webkit-animation -webkit-app-region appearance -moz-appearance -webkit-appearance -webkit-aspect-ratio audio-level azimuth backdrop-filter -webkit-backdrop-filter backface-visibility -moz-backface-visibility -ms-backface-visibility -webkit-backface-visibility background background-attachment -webkit-background-attachment background-blend-mode background-clip -moz-background-clip -webkit-background-clip background-color -webkit-background-color -webkit-background-composite background-image -webkit-background-image -moz-background-inline-policy background-origin -moz-background-origin -webkit-background-origin background-position -webkit-background-position background-position-x -webkit-background-position-x background-position-y -webkit-background-position-y background-repeat -webkit-background-repeat background-repeat-x background-repeat-y background-size -moz-background-size -webkit-background-size -webkit-background baseline-shift behavior -moz-binding -ms-block-progression block-size bookmark-label bookmark-level bookmark-state border -webkit-border-after-color -webkit-border-after-style -webkit-border-after -webkit-border-after-width -webkit-border-before-color -webkit-border-before-style -webkit-border-before -webkit-border-before-width border-block-end border-block-end-color border-block-end-style border-block-end-width border-block-start border-block-start-color border-block-start-style border-block-start-width border-bottom border-bottom-color -moz-border-bottom-colors border-bottom-left-radius -webkit-border-bottom-left-radius border-bottom-right-radius -webkit-border-bottom-right-radius border-bottom-style border-bottom-width border-boundary border-collapse border-color -moz-border-end-color -webkit-border-end-color -moz-border-end -moz-border-end-style -webkit-border-end-style -webkit-border-end -moz-border-end-width -webkit-border-end-width -webkit-border-fit -webkit-border-horizontal-spacing border-image -moz-border-image -o-border-image border-image-outset -webkit-border-image-outset border-image-repeat -webkit-border-image-repeat border-image-slice -webkit-border-image-slice border-image-source -webkit-border-image-source -webkit-border-image border-image-width -webkit-border-image-width border-inline-end border-inline-end-color border-inline-end-style border-inline-end-width border-inline-start border-inline-start-color border-inline-start-style border-inline-start-width border-left border-left-color -moz-border-left-colors border-left-style border-left-width border-radius -moz-border-radius-bottomleft -moz-border-radius-bottomright -moz-border-radius -moz-border-radius-topleft -moz-border-radius-topright -webkit-border-radius border-right border-right-color -moz-border-right-colors border-right-style border-right-width border-spacing -moz-border-start-color -webkit-border-start-color -moz-border-start -moz-border-start-style -webkit-border-start-style -webkit-border-start -moz-border-start-width -webkit-border-start-width border-style border-top border-top-color -moz-border-top-colors border-top-left-radius -webkit-border-top-left-radius border-top-right-radius -webkit-border-top-right-radius border-top-style border-top-width -webkit-border-vertical-spacing border-width bottom -moz-box-align -webkit-box-align box-decoration-break -webkit-box-decoration-break -moz-box-direction -webkit-box-direction -webkit-box-flex-group -moz-box-flex -webkit-box-flex -webkit-box-lines -moz-box-ordinal-group -webkit-box-ordinal-group -moz-box-orient -webkit-box-orient -moz-box-pack -webkit-box-pack -webkit-box-reflect box-shadow -moz-box-shadow -webkit-box-shadow box-sizing -moz-box-sizing -webkit-box-sizing box-snap box-suppress break-after break-before break-inside buffered-rendering caption-side caret caret-animation caret-color caret-shape clear clip clip-path -webkit-clip-path clip-rule color color-adjust -webkit-color-correction color-interpolation color-interpolation-filters color-profile color-rendering -webkit-column-axis -webkit-column-break-after -webkit-column-break-before -webkit-column-break-inside column-count -moz-column-count -webkit-column-count column-fill -moz-column-fill -webkit-column-fill column-gap -moz-column-gap -webkit-column-gap column-progression -webkit-column-progression column-rule column-rule-color -moz-column-rule-color -webkit-column-rule-color -moz-column-rule column-rule-style -moz-column-rule-style -webkit-column-rule-style -webkit-column-rule column-rule-width -moz-column-rule-width -webkit-column-rule-width column-span -webkit-column-span column-width -moz-column-width -webkit-column-width columns -moz-columns -webkit-columns -webkit-composition-fill-color -webkit-composition-frame-color contain content -ms-content-zoom-chaining -ms-content-zoom-limit-max -ms-content-zoom-limit-min -ms-content-zoom-limit -ms-content-zoom-snap -ms-content-zoom-snap-points -ms-content-zoom-snap-type -ms-content-zooming counter-increment counter-reset counter-set cue cue-after cue-before cursor -webkit-cursor-visibility cx cy d -apple-dashboard-region -webkit-dashboard-region direction display display-align dominant-baseline elevation empty-cells enable-background fill fill-opacity fill-rule filter -ms-filter -webkit-filter flex -ms-flex-align -webkit-flex-align flex-basis -webkit-flex-basis flex-direction -ms-flex-direction -webkit-flex-direction flex-flow -ms-flex-flow -webkit-flex-flow flex-grow -webkit-flex-grow -ms-flex-item-align -webkit-flex-item-align -ms-flex-line-pack -webkit-flex-line-pack -ms-flex -ms-flex-negative -ms-flex-order -webkit-flex-order -ms-flex-pack -webkit-flex-pack -ms-flex-positive -ms-flex-preferred-size flex-shrink -webkit-flex-shrink -webkit-flex flex-wrap -ms-flex-wrap -webkit-flex-wrap float float-defer -moz-float-edge float-offset float-reference flood-color flood-opacity flow-from -ms-flow-from -webkit-flow-from flow-into -ms-flow-into -webkit-flow-into font font-display font-family font-feature-settings -moz-font-feature-settings -ms-font-feature-settings -webkit-font-feature-settings font-kerning -webkit-font-kerning font-language-override -moz-font-language-override font-size font-size-adjust -webkit-font-size-delta -webkit-font-smoothing font-stretch font-style font-synthesis font-variant font-variant-alternates font-variant-caps font-variant-east-asian font-variant-ligatures -webkit-font-variant-ligatures font-variant-numeric font-variant-position font-variation-settings font-weight footnote-display footnote-policy -moz-force-broken-image-icon glyph-orientation-horizontal glyph-orientation-vertical grid -webkit-grid-after grid-area grid-auto-columns -webkit-grid-auto-columns grid-auto-flow -webkit-grid-auto-flow grid-auto-rows -webkit-grid-auto-rows -webkit-grid-before grid-column -ms-grid-column-align grid-column-end grid-column-gap -ms-grid-column -ms-grid-column-span grid-column-start -webkit-grid-column -ms-grid-columns -webkit-grid-columns -webkit-grid-end grid-gap grid-row -ms-grid-row-align grid-row-end grid-row-gap -ms-grid-row -ms-grid-row-span grid-row-start -webkit-grid-row -ms-grid-rows -webkit-grid-rows -webkit-grid-start grid-template grid-template-areas grid-template-columns grid-template-rows hanging-punctuation height -ms-high-contrast-adjust -webkit-highlight hyphenate-character -webkit-hyphenate-character -webkit-hyphenate-limit-after -webkit-hyphenate-limit-before hyphenate-limit-chars -ms-hyphenate-limit-chars hyphenate-limit-last hyphenate-limit-lines -ms-hyphenate-limit-lines -webkit-hyphenate-limit-lines hyphenate-limit-zone -ms-hyphenate-limit-zone hyphens -moz-hyphens -ms-hyphens -webkit-hyphens image-orientation -moz-image-region image-rendering image-resolution -ms-ime-align ime-mode initial-letter initial-letter-align -webkit-initial-letter initial-letter-wrap inline-size input-format -wap-input-format -wap-input-required -ms-interpolation-mode isolation justify-content -webkit-justify-content justify-items justify-self -webkit-justify-self kerning layout-flow layout-grid layout-grid-char layout-grid-line layout-grid-mode layout-grid-type left letter-spacing lighting-color -webkit-line-align -webkit-line-box-contain line-break -webkit-line-break -webkit-line-clamp line-grid -webkit-line-grid-snap -webkit-line-grid line-height line-height-step line-increment line-snap -webkit-line-snap -o-link -o-link-source list-style list-style-image list-style-position list-style-type -webkit-locale -webkit-logical-height -webkit-logical-width margin -webkit-margin-after-collapse -webkit-margin-after -webkit-margin-before-collapse -webkit-margin-before margin-block-end margin-block-start margin-bottom -webkit-margin-bottom-collapse -webkit-margin-collapse -moz-margin-end -webkit-margin-end margin-inline-end margin-inline-start margin-left margin-right -moz-margin-start -webkit-margin-start margin-top -webkit-margin-top-collapse marker marker-end marker-knockout-left marker-knockout-right marker-mid marker-offset marker-pattern marker-segment marker-side marker-start marks -wap-marquee-dir marquee-direction -webkit-marquee-direction -webkit-marquee-increment marquee-loop -wap-marquee-loop -webkit-marquee-repetition marquee-speed -wap-marquee-speed -webkit-marquee-speed marquee-style -wap-marquee-style -webkit-marquee-style -webkit-marquee mask -webkit-mask-attachment mask-border mask-border-mode mask-border-outset mask-border-repeat mask-border-slice mask-border-source mask-border-width -webkit-mask-box-image-outset -webkit-mask-box-image-repeat -webkit-mask-box-image-slice -webkit-mask-box-image-source -webkit-mask-box-image -webkit-mask-box-image-width mask-clip -webkit-mask-clip mask-composite -webkit-mask-composite mask-image -webkit-mask-image mask-mode mask-origin -webkit-mask-origin mask-position -webkit-mask-position mask-position-x -webkit-mask-position-x mask-position-y -webkit-mask-position-y mask-repeat -webkit-mask-repeat -webkit-mask-repeat-x -webkit-mask-repeat-y mask-size -webkit-mask-size mask-source-type -webkit-mask-source-type mask-type -webkit-mask -webkit-match-nearest-mail-blockquote-color max-block-size max-height max-inline-size max-lines -webkit-max-logical-height -webkit-max-logical-width max-width max-zoom min-block-size min-height min-inline-size -webkit-min-logical-height -webkit-min-logical-width min-width min-zoom mix-blend-mode motion motion-offset motion-path motion-rotation nav-down nav-index nav-left nav-right nav-up -webkit-nbsp-mode object-fit -o-object-fit object-position -o-object-position offset offset-after offset-anchor offset-before offset-block-end offset-block-start offset-distance offset-end offset-inline-end offset-inline-start offset-path offset-position offset-rotate offset-rotation offset-start opacity -moz-opacity order -webkit-order -moz-orient orientation orphans -moz-osx-font-smoothing outline outline-color -moz-outline-color -moz-outline outline-offset -moz-outline-offset -moz-outline-radius-bottomleft -moz-outline-radius-bottomright -moz-outline-radius -moz-outline-radius-topleft -moz-outline-radius-topright outline-style -moz-outline-style outline-width -moz-outline-width overflow overflow-anchor -webkit-overflow-scrolling overflow-style -ms-overflow-style overflow-wrap overflow-x overflow-y padding -webkit-padding-after -webkit-padding-before padding-block-end padding-block-start padding-bottom -moz-padding-end -webkit-padding-end padding-inline-end padding-inline-start padding-left padding-right -moz-padding-start -webkit-padding-start padding-top page page-break-after page-break-before page-break-inside paint-order pause pause-after pause-before perspective -moz-perspective -ms-perspective perspective-origin -moz-perspective-origin -ms-perspective-origin -webkit-perspective-origin perspective-origin-x -webkit-perspective-origin-x perspective-origin-y -webkit-perspective-origin-y -webkit-perspective pitch pitch-range place-content place-items place-self play-during pointer-events polar-anchor polar-angle polar-distance polar-origin position -webkit-print-color-adjust quotes r -webkit-region-break-after -webkit-region-break-before -webkit-region-break-inside region-fragment -webkit-region-fragment -webkit-region-overflow resize rest rest-after rest-before richness right rotate rotation rotation-point -webkit-rtl-ordering ruby-align ruby-merge ruby-overhang ruby-position -webkit-ruby-position running rx ry scale scroll-behavior -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 scroll-snap-align scroll-snap-coordinate -webkit-scroll-snap-coordinate scroll-snap-destination -webkit-scroll-snap-destination scroll-snap-margin scroll-snap-padding scroll-snap-points-x -ms-scroll-snap-points-x -webkit-scroll-snap-points-x scroll-snap-points-y -ms-scroll-snap-points-y -webkit-scroll-snap-points-y scroll-snap-type -ms-scroll-snap-type -webkit-scroll-snap-type scroll-snap-type-x scroll-snap-type-y -ms-scroll-snap-x -ms-scroll-snap-y -ms-scroll-translation scrollbar-arrow-color scrollbar-base-color scrollbar-dark-shadow-color scrollbar-darkshadow-color scrollbar-face-color scrollbar-highlight-color scrollbar-shadow-color scrollbar-track-color scrollbar3d-light-color scrollbar3dlight-color shape-image-threshold -webkit-shape-image-threshold shape-inside -webkit-shape-inside shape-margin -webkit-shape-margin shape-outside -webkit-shape-outside -webkit-shape-padding shape-rendering size snap-height solid-color solid-opacity speak speak-as speak-header speak-numeral speak-punctuation speech-rate src -moz-stack-sizing stop-color stop-opacity stress string-set stroke stroke-alignment stroke-dashadjust stroke-dasharray stroke-dashcorner stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width -webkit-svg-shadow tab-size -moz-tab-size -o-tab-size -o-table-baseline table-layout -webkit-tap-highlight-color text-align text-align-last -moz-text-align-last text-anchor text-autospace -moz-text-blink -ms-text-combine-horizontal text-combine-upright -webkit-text-combine text-decoration text-decoration-blink text-decoration-color -moz-text-decoration-color -webkit-text-decoration-color text-decoration-line -moz-text-decoration-line text-decoration-line-through -webkit-text-decoration-line text-decoration-none text-decoration-overline text-decoration-skip -webkit-text-decoration-skip text-decoration-style -moz-text-decoration-style -webkit-text-decoration-style text-decoration-underline -webkit-text-decoration -webkit-text-decorations-in-effect text-emphasis text-emphasis-color -webkit-text-emphasis-color text-emphasis-position -webkit-text-emphasis-position text-emphasis-style -webkit-text-emphasis-style -webkit-text-emphasis -webkit-text-fill-color text-indent text-justify text-justify-trim text-kashida text-kashida-space text-line-through text-line-through-color text-line-through-mode text-line-through-style text-line-through-width text-orientation -webkit-text-orientation text-overflow text-overline text-overline-color text-overline-mode text-overline-style text-overline-width text-rendering -webkit-text-security text-shadow text-size-adjust -moz-text-size-adjust -ms-text-size-adjust -webkit-text-size-adjust text-space-collapse text-space-trim text-spacing -webkit-text-stroke-color -webkit-text-stroke -webkit-text-stroke-width text-transform text-underline text-underline-color text-underline-mode text-underline-position -webkit-text-underline-position text-underline-style text-underline-width text-wrap -webkit-text-zoom top touch-action touch-action-delay -ms-touch-action -webkit-touch-callout -ms-touch-select transform transform-box -moz-transform -ms-transform -o-transform transform-origin -moz-transform-origin -ms-transform-origin -o-transform-origin -webkit-transform-origin transform-origin-x -webkit-transform-origin-x transform-origin-y -webkit-transform-origin-y transform-origin-z -webkit-transform-origin-z transform-style -moz-transform-style -ms-transform-style -webkit-transform-style -webkit-transform transition transition-delay -moz-transition-delay -ms-transition-delay -o-transition-delay -webkit-transition-delay transition-duration -moz-transition-duration -ms-transition-duration -o-transition-duration -webkit-transition-duration -moz-transition -ms-transition -o-transition transition-property -moz-transition-property -ms-transition-property -o-transition-property -webkit-transition-property transition-timing-function -moz-transition-timing-function -ms-transition-timing-function -o-transition-timing-function -webkit-transition-timing-function -webkit-transition translate uc-alt-skin uc-skin unicode-bidi unicode-range -webkit-user-drag -moz-user-focus -moz-user-input -moz-user-modify -webkit-user-modify user-select -moz-user-select -ms-user-select -webkit-user-select user-zoom vector-effect vertical-align viewport-fill viewport-fill-opacity visibility voice-balance voice-duration voice-family voice-pitch voice-range voice-rate voice-stress voice-volume volume white-space -webkit-widget-region widows width will-change -moz-window-dragging -moz-window-shadow word-break word-spacing word-wrap wrap-after wrap-before wrap-flow -ms-wrap-flow -webkit-wrap-flow wrap-inside -ms-wrap-margin -webkit-wrap-margin -webkit-wrap-padding -webkit-wrap-shape-inside -webkit-wrap-shape-outside wrap-through -ms-wrap-through -webkit-wrap-through -webkit-wrap writing-mode -webkit-writing-mode x y z-index zoom".split(" ")}}, -{}],163:[function(a,l,g){l.exports.all=a("./data/all").properties},{"./data/all":162}],164:[function(a,l,g){(function(a){(function(){function h(a,b){a.set(b[0],b[1]);return a}function f(a,b){a.add(b);return a}function d(a,b,c){switch(c.length){case 0:return a.call(b);case 1:return a.call(b,c[0]);case 2:return a.call(b,c[0],c[1]);case 3:return a.call(b,c[0],c[1],c[2])}return a.apply(b,c)}function c(a,b,c,e){for(var d=-1,f=null==a?0:a.length;++d"']/g,cd=RegExp(gb.source),dd=RegExp(Ya.source),ed=/<%-([\s\S]+?)%>/g,fd=/<%([\s\S]+?)%>/g,ic=/<%=([\s\S]+?)%>/g,gd=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hd=/^\w*$/,kd=/^\./,ld=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pb=/[\\^$.*+?()[\]{}|]/g,md=RegExp(Pb.source),jc=/^\s+|\s+$/g,kc=/^\s+/,nd=/\s+$/,od=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pd=/\{\n\/\* \[wrapped with (.+)\] \*/,qd=/,? & /, -rd=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,sd=/\\(\\)?/g,td=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lc=/\w*$/,ud=/^[-+]0x[0-9a-f]+$/i,vd=/^0b[01]+$/i,wd=/^\[object .+?Constructor\]$/,xd=/^0o[0-7]+$/i,yd=/^(?:0|[1-9]\d*)$/,zd=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zb=/($^)/,Ad=/['\n\r\u2028\u2029\\]/g,qb="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?(?:\\u200d(?:[^\\ud800-\\udfff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*", -Qb="(?:[\\u2700-\\u27bf]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff])"+qb,Bd=RegExp("['\u2019]","g"),Cd=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),ib=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|(?:[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?|[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|(?:\\ud83c[\\udde6-\\uddff]){2}|[\\ud800-\\udbff][\\udc00-\\udfff]|[\\ud800-\\udfff])"+qb,"g"),Dd=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde]|$)|(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?=[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]|[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])|$)|[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?|[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?|\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)|\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)|\\d+", -Qb].join("|"),"g"),hb=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Ed=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fd="Array Buffer DataView Date Error Float32Array Float64Array Function Int8Array Int16Array Int32Array Map Math Object Promise RegExp Set String Symbol TypeError Uint8Array Uint8ClampedArray Uint16Array Uint32Array WeakMap _ clearTimeout isFinite parseInt setTimeout".split(" "),Gd=-1,ja={};ja["[object Float32Array]"]= -ja["[object Float64Array]"]=ja["[object Int8Array]"]=ja["[object Int16Array]"]=ja["[object Int32Array]"]=ja["[object Uint8Array]"]=ja["[object Uint8ClampedArray]"]=ja["[object Uint16Array]"]=ja["[object Uint32Array]"]=!0;ja["[object Arguments]"]=ja["[object Array]"]=ja["[object ArrayBuffer]"]=ja["[object Boolean]"]=ja["[object DataView]"]=ja["[object Date]"]=ja["[object Error]"]=ja["[object Function]"]=ja["[object Map]"]=ja["[object Number]"]=ja["[object Object]"]=ja["[object RegExp]"]=ja["[object Set]"]= -ja["[object String]"]=ja["[object WeakMap]"]=!1;var ia={};ia["[object Arguments]"]=ia["[object Array]"]=ia["[object ArrayBuffer]"]=ia["[object DataView]"]=ia["[object Boolean]"]=ia["[object Date]"]=ia["[object Float32Array]"]=ia["[object Float64Array]"]=ia["[object Int8Array]"]=ia["[object Int16Array]"]=ia["[object Int32Array]"]=ia["[object Map]"]=ia["[object Number]"]=ia["[object Object]"]=ia["[object RegExp]"]=ia["[object Set]"]=ia["[object String]"]=ia["[object Symbol]"]=ia["[object Uint8Array]"]= -ia["[object Uint8ClampedArray]"]=ia["[object Uint16Array]"]=ia["[object Uint32Array]"]=!0;ia["[object Error]"]=ia["[object Function]"]=ia["[object WeakMap]"]=!1;var Nb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Hd=parseFloat,Id=parseInt,Ab="object"==typeof a&&a&&a.Object===Object&&a,Rb="object"==typeof self&&self&&self.Object===Object&&self,sa=Ab||Rb||Function("return this")(),rb="object"==typeof g&&g&&!g.nodeType&&g,Za=rb&&"object"==typeof l&&l&&!l.nodeType&&l,mc=Za&& -Za.exports===rb,sb=mc&&Ab.process;a:{try{var na=sb&&sb.binding&&sb.binding("util");break a}catch(De){}na=void 0}var nc=na&&na.isArrayBuffer,oc=na&&na.isDate,pc=na&&na.isMap,qc=na&&na.isRegExp,rc=na&&na.isSet,sc=na&&na.isTypedArray,Ob=B("length"),Jd=I({"\u00c0":"A","\u00c1":"A","\u00c2":"A","\u00c3":"A","\u00c4":"A","\u00c5":"A","\u00e0":"a","\u00e1":"a","\u00e2":"a","\u00e3":"a","\u00e4":"a","\u00e5":"a","\u00c7":"C","\u00e7":"c","\u00d0":"D","\u00f0":"d","\u00c8":"E","\u00c9":"E","\u00ca":"E","\u00cb":"E", -"\u00e8":"e","\u00e9":"e","\u00ea":"e","\u00eb":"e","\u00cc":"I","\u00cd":"I","\u00ce":"I","\u00cf":"I","\u00ec":"i","\u00ed":"i","\u00ee":"i","\u00ef":"i","\u00d1":"N","\u00f1":"n","\u00d2":"O","\u00d3":"O","\u00d4":"O","\u00d5":"O","\u00d6":"O","\u00d8":"O","\u00f2":"o","\u00f3":"o","\u00f4":"o","\u00f5":"o","\u00f6":"o","\u00f8":"o","\u00d9":"U","\u00da":"U","\u00db":"U","\u00dc":"U","\u00f9":"u","\u00fa":"u","\u00fb":"u","\u00fc":"u","\u00dd":"Y","\u00fd":"y","\u00ff":"y","\u00c6":"Ae","\u00e6":"ae", -"\u00de":"Th","\u00fe":"th","\u00df":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g", -"\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O", -"\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y", -"\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),Kd=I({"&":"&","<":"<",">":">",'"':""","'":"'"}),Ld=I({"&":"&","<":"<",">":">",""":'"',"'":"'"}),Xa=function id(a){function m(a){if(oa(a)&&!Z(a)&&!(a instanceof I)){if(a instanceof l)return a;if(ka.call(a,"__wrapped__"))return Ee(a)}return new l(a)}function g(){}function l(a, -b){this.__wrapped__=a;this.__actions__=[];this.__chain__=!!b;this.__index__=0;this.__values__=v}function I(a){this.__wrapped__=a;this.__actions__=[];this.__dir__=1;this.__filtered__=!1;this.__iteratees__=[];this.__takeCount__=4294967295;this.__views__=[]}function na(a){var b=-1,c=null==a?0:a.length;for(this.clear();++b=b?a:b));return a}function Ha(a,c,e,d,f,n){var h,m=c&1,p=c&2,q=c&4;e&&(h=f?e(a,d,f,n):e(a));if(h!==v)return h;if(!la(a))return a;if(d=Z(a)){if(h=wg(a),!m)return Ba(a,h)}else{var r=za(a),k="[object Function]"==r||"[object GeneratorFunction]"==r;if(jb(a))return Fe(a, -m);if("[object Object]"==r||"[object Arguments]"==r||k&&!f){if(h=p||k?{}:Ge(a),!m)return p?xg(a,Nb(h,a)):yg(a,uc(h,a))}else{if(!ia[r])return f?a:{};h=zg(a,r,Ha,m)}}n||(n=new Fa);if(f=n.get(a))return f;n.set(a,h);p=q?p?Od:Pd:p?Ga:xa;var da=d?v:p(a);b(da||a,function(b,d){da&&(d=b,b=a[d]);ub(h,d,Ha(b,c,e,d,a,n))});return h}function Ob(a){var b=xa(a);return function(c){return wc(c,a,b)}}function wc(a,b,c){var e=c.length;if(null==a)return!e;for(a=ma(a);e--;){var d=c[e],f=b[d],n=a[d];if(n===v&&!(d in a)|| -!f(n))return!1}return!0}function xc(a,b,c){if("function"!=typeof a)throw new La("Expected a function");return Ub(function(){a.apply(v,c)},b)}function vb(a,b,c,d){var f=-1,h=e,m=!0,p=a.length,q=[],k=b.length;if(!p)return q;c&&(b=r(b,H(c)));d?(h=n,m=!1):200<=b.length&&(h=J,m=!1,b=new $a(b));a:for(;++fb}function Rb(a,b){return null!=a&&ka.call(a,b)}function jd(a,b){return null!=a&&b in ma(a)}function Rd(a, -b,c){for(var d,f=c?n:e,h=a[0].length,m=a.length,p=m,q=ua(m),k=Infinity,da=[];p--;)d=a[p],p&&b&&(d=r(d,H(b))),k=Aa(d.length,k),q[p]=!c&&(b||120<=h&&120<=d.length)?new $a(p&&d):v;d=a[0];var g=-1,t=q[0];a:for(;++gb.length? -a:Va(a,Ja(b,0,-1));b=null==a?a:a[Wa(Na(b))];return null==b?v:d(b,a,c)}function Je(a){return oa(a)&&"[object Arguments]"==ya(a)}function Fg(a){return oa(a)&&"[object ArrayBuffer]"==ya(a)}function Gg(a){return oa(a)&&"[object Date]"==ya(a)}function mb(a,b,c,e,d){if(a===b)return!0;if(null==a||null==b||!oa(a)&&!oa(b))return a!==a&&b!==b;a:{var f=Z(a),n=Z(b),h=f?"[object Array]":za(a),m=n?"[object Array]":za(b);h="[object Arguments]"==h?"[object Object]":h;m="[object Arguments]"==m?"[object Object]":m; -var p="[object Object]"==h;n="[object Object]"==m;if((m=h==m)&&jb(a)){if(!jb(b)){b=!1;break a}f=!0;p=!1}if(m&&!p)d||(d=new Fa),b=f||Bb(a)?Ke(a,b,c,e,mb,d):Hg(a,b,h,c,e,mb,d);else{if(!(c&1)&&(f=p&&ka.call(a,"__wrapped__"),h=n&&ka.call(b,"__wrapped__"),f||h)){a=f?a.value():a;b=h?b.value():b;d||(d=new Fa);b=mb(a,b,c,e,d);break a}if(m){d||(d=new Fa);b:{var q;f=c&1;h=Pd(a);n=h.length;m=Pd(b).length;if(n==m||f){for(p=n;p--;){var r=h[p];if(!(f?r in b:ka.call(b,r))){b=!1;break b}}if((m=d.get(a))&&d.get(b))b= -m==b;else{m=!0;d.set(a,b);d.set(b,a);for(var k=f;++pb?c:0,ab(b,c)?a[b]:v}function We(a,b,c){var e=-1;b=r(b.length?b:[Ca],H(W()));a=Re(a,function(a,c,d){return{criteria:r(b,function(b){return b(a)}),index:++e,value:a}});return E(a,function(a,b){a:{var e=-1;for(var d=a.criteria,f=b.criteria,n=d.length,h=c.length;++e=h){e=m;break a}e=m*("desc"==c[e]?-1:1);break a}}e=a.index-b.index}return e})}function Og(a, -b){return Ye(a,b,function(b,c){return Xd(a,c)})}function Ye(a,b,c){for(var e=-1,d=b.length,f={};++eb||9007199254740991b&&(b=-b>d?0:d+b);c=c>d?d:c;0>c&&(c+=d);d=b>c?0:c-b>>>0;b>>>=0;for(c=ua(d);++e=d){for(;e>>1,n=a[f];null!==n&&!Ia(n)&&(c?n<=b:nb.length?a:Va(a,Ja(b,0,-1));return null==a||delete a[Wa(Na(b))]} -function Fc(a,b,c,e){for(var d=a.length,f=e?d:-1;(e?f--:++fe)return e?nb(a[0]):[];for(var d=-1,f=ua(e);++d=e?a:Ja(a,b,c)}function Fe(a,b){if(b)return a.slice();var c=a.length;c=hf?hf(c):new a.constructor(c);a.copy(c);return c}function fe(a){var b=new a.constructor(a.byteLength);(new Gc(b)).set(new Gc(a));return b}function Te(a,b){var c=b?fe(a.buffer):a.buffer;return new a.constructor(c,a.byteOffset, -a.length)}function Xe(a,b){if(a!==b){var c=a!==v,e=null===a,d=a===a,f=Ia(a),n=b!==v,h=null===b,m=b===b,p=Ia(b);if(!h&&!p&&!f&&a>b||f&&n&&m&&!h&&!p||e&&n&&m||!c&&m||!d)return 1;if(!e&&!f&&!p&&ad?v:f,d=1);for(b=ma(b);++en&&h[0]!==p&&h[n-1]!==p?[]:ca(h,p);n-=m.length;return nc)return c?$d(b,a):b;c=$d(b,Mc(a/ea(b)));return hb.test(b)?ob(ta(c),0,a).join(""):c.slice(0,a)}function Xg(a,b,c,e){function f(){for(var b=-1,m=arguments.length,p=-1,q=e.length,r=ua(q+m),k=this&&this!== -sa&&this instanceof f?h:a;++pb||e)){a&1&&(f[2]=k[2],b|=c&1?0:4);if(e=k[3])c=f[3],f[3]=c?jf(c,e,k[4]):e,f[4]=c?ca(f[3],"__lodash_placeholder__"):k[4];if(e=k[5])c=f[5],f[5]=c?kf(c,e,k[6]): -e,f[6]=c?ca(f[5],"__lodash_placeholder__"):k[6];(e=k[7])&&(f[7]=e);a&128&&(f[8]=null==f[8]?k[8]:Aa(f[8],k[8]));null==f[9]&&(f[9]=k[9]);f[0]=k[0];f[1]=b}a=f[0];b=f[1];c=f[2];e=f[3];d=f[4];h=f[9]=f[9]===v?m?0:a.length:wa(f[9]-p,0);!h&&b&24&&(b&=-25);m=b&&1!=b?8==b||16==b?Wg(a,b,h):32!=b&&33!=b||d.length?Ic.apply(v,f):Xg(a,b,c,e):Vg(a,b,c);return xf((k?zf:wf)(m,f),a,b)}function le(a,b,c,e){return a===v||Ta(a,ac[c])&&!ka.call(e,c)?b:a}function Af(a,b,c,e,d,f){la(a)&&la(b)&&(f.set(b,a),Bc(a,b,v,Af,f), -f["delete"](b));return a}function Yg(a){return Zb(a)?v:a}function Ke(a,b,c,e,d,f){var n,h=c&1,m=a.length,p=b.length;if(m!=p&&!(h&&p>m))return!1;if((p=f.get(a))&&f.get(b))return p==b;p=-1;var q=!0,r=c&2?new $a:v;f.set(a,b);for(f.set(b,a);++pc&&(c=wa(e+c,0));return L(a,W(b,3),c)}function Gf(a,b,c){var e=null==a?0:a.length;if(!e)return-1;var d=e-1;c!==v&&(d=aa(c),d=0>c?wa(e+d,0):Aa(d,e-1));return L(a,W(b,3),d,!0)}function Bf(a){return(null==a?0:a.length)?va(a,1):[]}function Hf(a){return a&&a.length?a[0]:v}function Na(a){var b=null==a?0:a.length;return b?a[b-1]:v}function If(a,b){return a&&a.length&& -b&&b.length?Yd(a,b):a}function ne(a){return null==a?a:ah.call(a)}function oe(a){if(!a||!a.length)return[];var b=0;a=q(a,function(a){if(qa(a))return b=wa(a.length,b),!0});return y(b,function(b){return r(a,B(b))})}function Jf(a,b){if(!a||!a.length)return[];var c=oe(a);return null==b?c:r(c,function(a){return d(b,v,a)})}function Kf(a){a=m(a);a.__chain__=!0;return a}function Rc(a,b){return b(a)}function bh(){return this}function Lf(a,c){return(Z(a)?b:kb)(a,W(c,3))}function Mf(a,b){return(Z(a)?p:Nf)(a, -W(b,3))}function Sc(a,b){return(Z(a)?r:Re)(a,W(b,3))}function Of(a,b,c){b=c?v:b;b=a&&null==b?a.length:b;return fb(a,128,v,v,v,v,b)}function Pf(a,b){var c;if("function"!=typeof b)throw new La("Expected a function");a=aa(a);return function(){0<--a&&(c=b.apply(this,arguments));1>=a&&(b=v);return c}}function Qf(a,b,c){b=c?v:b;a=fb(a,8,v,v,v,v,v,b);a.placeholder=Qf.placeholder;return a}function Rf(a,b,c){b=c?v:b;a=fb(a,16,v,v,v,v,v,b);a.placeholder=Rf.placeholder;return a}function Sf(a,b,c){function e(b){var c= -m,e=p;m=p=v;g=b;return q=a.apply(e,c)}function d(a){var c=a-k;a-=g;return k===v||c>=b||0>c||l&&a>=da}function f(){var a=Tc();if(d(a))return n(a);var c=Ub;var e=a-g;a=b-(a-k);e=l?Aa(a,da-e):a;r=c(f,e)}function n(a){r=v;if(u&&m)return e(a);m=p=v;return q}function h(){var a=Tc(),c=d(a);m=arguments;p=this;k=a;if(c){if(r===v)return g=a=k,r=Ub(f,b),t?e(a):q;if(l)return r=Ub(f,b),e(k)}r===v&&(r=Ub(f,b));return q}var m,p,q,r,k,g=0,t=!1,l=!1,u=!0;if("function"!=typeof a)throw new La("Expected a function"); -b=Oa(b)||0;if(la(c)){t=!!c.leading;var da=(l="maxWait"in c)?wa(Oa(c.maxWait)||0,b):da;u="trailing"in c?!!c.trailing:u}h.cancel=function(){r!==v&&ch(r);g=0;m=k=p=r=v};h.flush=function(){return r===v?q:n(Tc())};return h}function Uc(a,b){if("function"!=typeof a||null!=b&&"function"!=typeof b)throw new La("Expected a function");var c=function(){var e=arguments,d=b?b.apply(this,e):e[0],f=c.cache;if(f.has(d))return f.get(d);e=a.apply(this,e);c.cache=f.set(d,e)||f;return e};c.cache=new (Uc.Cache||Qa);return c} -function Vc(a){if("function"!=typeof a)throw new La("Expected a function");return function(){var b=arguments;switch(b.length){case 0:return!a.call(this);case 1:return!a.call(this,b[0]);case 2:return!a.call(this,b[0],b[1]);case 3:return!a.call(this,b[0],b[1],b[2])}return!a.apply(this,b)}}function Ta(a,b){return a===b||a!==a&&b!==b}function Da(a){return null!=a&&Ac(a.length)&&!cb(a)}function qa(a){return oa(a)&&Da(a)}function pe(a){if(!oa(a))return!1;var b=ya(a);return"[object Error]"==b||"[object DOMException]"== -b||"string"==typeof a.message&&"string"==typeof a.name&&!Zb(a)}function cb(a){if(!la(a))return!1;a=ya(a);return"[object Function]"==a||"[object GeneratorFunction]"==a||"[object AsyncFunction]"==a||"[object Proxy]"==a}function Tf(a){return"number"==typeof a&&a==aa(a)}function Ac(a){return"number"==typeof a&&-1=a}function la(a){var b=typeof a;return null!=a&&("object"==b||"function"==b)}function oa(a){return null!=a&&"object"==typeof a}function Uf(a){return"number"==typeof a|| -oa(a)&&"[object Number]"==ya(a)}function Zb(a){if(!oa(a)||"[object Object]"!=ya(a))return!1;a=Pc(a);if(null===a)return!0;a=ka.call(a,"constructor")&&a.constructor;return"function"==typeof a&&a instanceof a&&Qc.call(a)==dh}function Wc(a){return"string"==typeof a||!Z(a)&&oa(a)&&"[object String]"==ya(a)}function Ia(a){return"symbol"==typeof a||oa(a)&&"[object Symbol]"==ya(a)}function Vf(a){if(!a)return[];if(Da(a))return Wc(a)?ta(a):Ba(a);if(dc&&a[dc]){a=a[dc]();for(var b,c=[];!(b=a.next()).done;)c.push(b.value); -return c}b=za(a);return("[object Map]"==b?O:"[object Set]"==b?ha:Gb)(a)}function eb(a){if(!a)return 0===a?a:0;a=Oa(a);return a===U||a===-U?1.7976931348623157E308*(0>a?-1:1):a===a?a:0}function aa(a){a=eb(a);var b=a%1;return a===a?b?a-b:a:0}function Wf(a){return a?bb(aa(a),0,4294967295):0}function Oa(a){if("number"==typeof a)return a;if(Ia(a))return T;la(a)&&(a="function"==typeof a.valueOf?a.valueOf():a,a=la(a)?a+"":a);if("string"!=typeof a)return 0===a?a:+a;a=a.replace(jc,"");var b=vd.test(a);return b|| -xd.test(a)?Id(a.slice(2),b?2:8):ud.test(a)?T:+a}function Ue(a){return Ua(a,Ga(a))}function fa(a){return null==a?"":Ka(a)}function Nd(a,b,c){a=null==a?v:Va(a,b);return a===v?c:a}function Xd(a,b){return null!=a&&Cf(a,b,jd)}function xa(a){return Da(a)?Za(a):Td(a)}function Ga(a){if(Da(a))a=Za(a,!0);else if(la(a)){var b=Yb(a),c=[];for(e in a)("constructor"!=e||!b&&ka.call(a,e))&&c.push(e);a=c}else{var e=[];if(null!=a)for(b in ma(a))e.push(b);a=e}return a}function Xf(a,b){if(null==a)return{};var c=r(Od(a), -function(a){return[a]});b=W(b);return Ye(a,c,function(a,c){return b(a,c[0])})}function Gb(a){return null==a?[]:Q(a,xa(a))}function Yf(a){return qe(fa(a).toLowerCase())}function qf(a){return(a=fa(a))&&a.replace(zd,Jd).replace(Cd,"")}function pf(a,b,c){a=fa(a);b=c?v:b;return b===v?Ed.test(a)?a.match(Dd)||[]:a.match(rd)||[]:a.match(b)||[]}function re(a){return function(){return a}}function Ca(a){return a}function me(a){return Ne("function"==typeof a?a:Ha(a,1))}function se(a,c,e){var d=xa(c),f=Eb(c,d); -null!=e||la(c)&&(f.length||!d.length)||(e=c,c=a,a=this,f=Eb(c,xa(c)));var n=!(la(e)&&"chain"in e)||!!e.chain,h=cb(a);b(f,function(b){var e=c[b];a[b]=e;h&&(a.prototype[b]=function(){var b=this.__chain__;if(n||b){var c=a(this.__wrapped__);(c.__actions__=Ba(this.__actions__)).push({func:e,args:arguments,thisArg:a});c.__chain__=b;return c}return e.apply(a,t([this.value()],arguments))})});return a}function te(){}function Qe(a){return Wd(a)?B(Wa(a)):Pg(a)}function ue(){return[]}function ve(){return!1}a= -null==a?sa:Xa.defaults(sa.Object(),a,Xa.pick(sa,Fd));var ua=a.Array,Xc=a.Date,Zf=a.Error,$f=a.Function,Lb=a.Math,ma=a.Object,we=a.RegExp,pg=a.String,La=a.TypeError,Yc=ua.prototype,ac=ma.prototype,Zc=a["__core-js_shared__"],Qc=$f.prototype.toString,ka=ac.hasOwnProperty,eh=0,Me=function(){var a=/[^.]+$/.exec(Zc&&Zc.keys&&Zc.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}(),Ie=ac.toString,dh=Qc.call(ma),fh=sa._,Jg=we("^"+Qc.call(ka).replace(Pb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, -"$1.*?")+"$"),$c=mc?a.Buffer:v,pb=a.Symbol,Gc=a.Uint8Array,hf=$c?$c.allocUnsafe:v,Pc=S(ma.getPrototypeOf,ma),ag=ma.create,bg=ac.propertyIsEnumerable,Cc=Yc.splice,Df=pb?pb.isConcatSpreadable:v,dc=pb?pb.iterator:v,wb=pb?pb.toStringTag:v,vc=function(){try{var a=yb(ma,"defineProperty");a({},"",{});return a}catch(pa){}}(),gh=a.clearTimeout!==sa.clearTimeout&&a.clearTimeout,hh=Xc&&Xc.now!==sa.Date.now&&Xc.now,ih=a.setTimeout!==sa.setTimeout&&a.setTimeout,Mc=Lb.ceil,Dc=Lb.floor,xe=ma.getOwnPropertySymbols, -jh=$c?$c.isBuffer:v,kh=a.isFinite,lh=Yc.join,Ng=S(ma.keys,ma),wa=Lb.max,Aa=Lb.min,$g=Xc.now,mh=a.parseInt,$e=Lb.random,ah=Yc.reverse,ye=yb(a,"DataView"),ec=yb(a,"Map"),ze=yb(a,"Promise"),Mb=yb(a,"Set"),fc=yb(a,"WeakMap"),gc=yb(ma,"create"),ad=fc&&new fc,cc={},nh=xb(ye),oh=xb(ec),ph=xb(ze),qh=xb(Mb),rh=xb(fc),bd=pb?pb.prototype:v,bc=bd?bd.valueOf:v,df=bd?bd.toString:v,Jb=function(){function a(){}return function(b){if(!la(b))return{};if(ag)return ag(b);a.prototype=b;b=new a;a.prototype=v;return b}}(); -m.templateSettings={escape:ed,evaluate:fd,interpolate:ic,variable:"",imports:{_:m}};m.prototype=g.prototype;m.prototype.constructor=m;l.prototype=Jb(g.prototype);l.prototype.constructor=l;I.prototype=Jb(g.prototype);I.prototype.constructor=I;na.prototype.clear=function(){this.__data__=gc?gc(null):{};this.size=0};na.prototype["delete"]=function(a){a=this.has(a)&&delete this.__data__[a];this.size-=a?1:0;return a};na.prototype.get=function(a){var b=this.__data__;return gc?(a=b[a],"__lodash_hash_undefined__"=== -a?v:a):ka.call(b,a)?b[a]:v};na.prototype.has=function(a){var b=this.__data__;return gc?b[a]!==v:ka.call(b,a)};na.prototype.set=function(a,b){var c=this.__data__;this.size+=this.has(a)?0:1;c[a]=gc&&b===v?"__lodash_hash_undefined__":b;return this};Pa.prototype.clear=function(){this.__data__=[];this.size=0};Pa.prototype["delete"]=function(a){var b=this.__data__;a=Cb(b,a);if(0>a)return!1;a==b.length-1?b.pop():Cc.call(b,a,1);--this.size;return!0};Pa.prototype.get=function(a){var b=this.__data__;a=Cb(b, -a);return 0>a?v:b[a][1]};Pa.prototype.has=function(a){return-1e?(++this.size,c.push([a,b])):c[e][1]=b;return this};Qa.prototype.clear=function(){this.size=0;this.__data__={hash:new na,map:new (ec||Pa),string:new na}};Qa.prototype["delete"]=function(a){a=Oc(this,a)["delete"](a);this.size-=a?1:0;return a};Qa.prototype.get=function(a){return Oc(this,a).get(a)};Qa.prototype.has=function(a){return Oc(this,a).has(a)};Qa.prototype.set= -function(a,b){var c=Oc(this,a),e=c.size;c.set(a,b);this.size+=c.size==e?0:1;return this};$a.prototype.add=$a.prototype.push=function(a){this.__data__.set(a,"__lodash_hash_undefined__");return this};$a.prototype.has=function(a){return this.__data__.has(a)};Fa.prototype.clear=function(){this.__data__=new Pa;this.size=0};Fa.prototype["delete"]=function(a){var b=this.__data__;a=b["delete"](a);this.size=b.size;return a};Fa.prototype.get=function(a){return this.__data__.get(a)};Fa.prototype.has=function(a){return this.__data__.has(a)}; -Fa.prototype.set=function(a,b){var c=this.__data__;if(c instanceof Pa){var e=c.__data__;if(!ec||199>e.length)return e.push([a,b]),this.size=++c.size,this;c=this.__data__=new Qa(e)}c.set(a,b);this.size=c.size;return this};var kb=mf(Ma),Nf=mf(Vb,!0),Qd=nf(),He=nf(!0),zf=ad?function(a,b){ad.set(a,b);return a}:Ca,sh=vc?function(a,b){return vc(a,"toString",{configurable:!0,enumerable:!1,value:re(b),writable:!0})}:Ca,ch=gh||function(a){return sa.clearTimeout(a)},Ug=Mb&&1/ha(new Mb([,-0]))[1]==U?function(a){return new Mb(a)}: -te,he=ad?function(a){return ad.get(a)}:te,ge=xe?function(a){if(null==a)return[];a=ma(a);return q(xe(a),function(b){return bg.call(a,b)})}:ue,lf=xe?function(a){for(var b=[];a;)t(b,ge(a)),a=Pc(a);return b}:ue,za=ya;if(ye&&"[object DataView]"!=za(new ye(new ArrayBuffer(1)))||ec&&"[object Map]"!=za(new ec)||ze&&"[object Promise]"!=za(ze.resolve())||Mb&&"[object Set]"!=za(new Mb)||fc&&"[object WeakMap]"!=za(new fc))za=function(a){var b=ya(a);if(a=(a="[object Object]"==b?a.constructor:v)?xb(a):"")switch(a){case nh:return"[object DataView]"; -case oh:return"[object Map]";case ph:return"[object Promise]";case qh:return"[object Set]";case rh:return"[object WeakMap]"}return b};var th=Zc?cb:ve,wf=Ef(zf),Ub=ih||function(a,b){return sa.setTimeout(a,b)},ae=Ef(sh),gf=function(a){a=Uc(a,function(a){500===b.size&&b.clear();return a});var b=a.cache;return a}(function(a){var b=[];kd.test(a)&&b.push("");a.replace(ld,function(a,c,e,d){b.push(e?d.replace(sd,"$1"):c||a)});return b}),uh=ba(function(a,b){return qa(a)?vb(a,va(b,1,qa,!0)):[]}),vh=ba(function(a, -b){var c=Na(b);qa(c)&&(c=v);return qa(a)?vb(a,va(b,1,qa,!0),W(c,2)):[]}),wh=ba(function(a,b){var c=Na(b);qa(c)&&(c=v);return qa(a)?vb(a,va(b,1,qa,!0),v,c):[]}),xh=ba(function(a){var b=r(a,de);return b.length&&b[0]===a[0]?Rd(b):[]}),yh=ba(function(a){var b=Na(a),c=r(a,de);b===Na(c)?b=v:c.pop();return c.length&&c[0]===a[0]?Rd(c,W(b,2)):[]}),zh=ba(function(a){var b=Na(a),c=r(a,de);(b="function"==typeof b?b:v)&&c.pop();return c.length&&c[0]===a[0]?Rd(c,v,b):[]}),Ah=ba(If),Bh=db(function(a,b){var c=null== -a?0:a.length,e=Tb(a,b);Ze(a,r(b,function(a){return ab(a,c)?+a:a}).sort(Xe));return e}),Ch=ba(function(a){return nb(va(a,1,qa,!0))}),Dh=ba(function(a){var b=Na(a);qa(b)&&(b=v);return nb(va(a,1,qa,!0),W(b,2))}),Eh=ba(function(a){var b=Na(a);b="function"==typeof b?b:v;return nb(va(a,1,qa,!0),v,b)}),Fh=ba(function(a,b){return qa(a)?vb(a,b):[]}),Gh=ba(function(a){return ce(q(a,qa))}),Hh=ba(function(a){var b=Na(a);qa(b)&&(b=v);return ce(q(a,qa),W(b,2))}),Ih=ba(function(a){var b=Na(a);b="function"==typeof b? -b:v;return ce(q(a,qa),v,b)}),Jh=ba(oe),Kh=ba(function(a){var b=a.length;b=1=b}),tb=Je(function(){return arguments}())?Je:function(a){return oa(a)&&ka.call(a,"callee")&&!bg.call(a,"callee")},Z=ua.isArray,$h=nc?H(nc):Fg,jb=jh||ve,ai=oc?H(oc):Gg,bi=pc?H(pc):Ig,Ce=qc?H(qc):Kg,ci=rc?H(rc):Lg,Bb=sc?H(sc):Mg,di=Nc(Ud),ei=Nc(function(a,b){return a<=b}),fi=Hb(function(a,b){if(Yb(b)||Da(b))Ua(b, -xa(b),a);else for(var c in b)ka.call(b,c)&&ub(a,c,b[c])}),eg=Hb(function(a,b){Ua(b,Ga(b),a)}),hc=Hb(function(a,b,c,e){Ua(b,Ga(b),a,e)}),gi=Hb(function(a,b,c,e){Ua(b,xa(b),a,e)}),hi=db(Tb),ii=ba(function(a){a.push(v,le);return d(hc,v,a)}),ji=ba(function(a){a.push(v,Af);return d(fg,v,a)}),ki=uf(function(a,b,c){a[b]=c},re(Ca)),li=uf(function(a,b,c){ka.call(a,b)?a[b].push(c):a[b]=[c]},W),mi=ba(Xb),ni=Hb(function(a,b,c){Bc(a,b,c)}),fg=Hb(function(a,b,c,e){Bc(a,b,c,e)}),oi=db(function(a,b){var c={};if(null== -a)return c;var e=!1;b=r(b,function(b){b=lb(b,a);e||(e=1--a)return b.apply(this,arguments)}};m.ary=Of;m.assign=fi;m.assignIn=eg;m.assignInWith=hc;m.assignWith=gi;m.at=hi;m.before=Pf;m.bind=Ae;m.bindAll=xi;m.bindKey=cg;m.castArray=function(){if(!arguments.length)return[];var a=arguments[0];return Z(a)?a:[a]}; -m.chain=Kf;m.chunk=function(a,b,c){b=(c?Ea(a,b,c):b===v)?1:wa(aa(b),0);c=null==a?0:a.length;if(!c||1>b)return[];for(var e=0,d=0,f=ua(Mc(c/b));eb?0:b,e)};m.dropRight=function(a,b,c){var e=null==a?0:a.length;if(!e)return[];b=c||b===v?1:aa(b);b=e-b;return Ja(a,0,0>b?0:b)};m.dropRightWhile=function(a,b){return a&&a.length?Fc(a,W(b,3),!0,!0):[]};m.dropWhile=function(a,b){return a&&a.length?Fc(a,W(b,3),!0):[]};m.fill=function(a,b,c,e){var d=null==a?0:a.length;if(!d)return[];c&&"number"!=typeof c&&Ea(a,b,c)&&(c=0,e=d);d=a.length;c=aa(c);0>c&&(c=-c>d?0:d+c);e=e===v||e>d?d:aa(e);0>e&&(e+=d);for(e=c>e?0:Wf(e);c>>0;return c?(a=fa(a))&&("string"== -typeof b||null!=b&&!Ce(b))&&(b=Ka(b),!b&&hb.test(a))?ob(ta(a),0,c):a.split(b,c):[]};m.spread=function(a,b){if("function"!=typeof a)throw new La("Expected a function");b=null==b?0:wa(aa(b),0);return ba(function(c){var e=c[b];c=ob(c,0,b);e&&t(c,e);return d(a,this,c)})};m.tail=function(a){var b=null==a?0:a.length;return b?Ja(a,1,b):[]};m.take=function(a,b,c){if(!a||!a.length)return[];b=c||b===v?1:aa(b);return Ja(a,0,0>b?0:b)};m.takeRight=function(a,b,c){var e=null==a?0:a.length;if(!e)return[];b=c||b=== -v?1:aa(b);b=e-b;return Ja(a,0>b?0:b,e)};m.takeRightWhile=function(a,b){return a&&a.length?Fc(a,W(b,3),!1,!0):[]};m.takeWhile=function(a,b){return a&&a.length?Fc(a,W(b,3)):[]};m.tap=function(a,b){b(a);return a};m.throttle=function(a,b,c){var e=!0,d=!0;if("function"!=typeof a)throw new La("Expected a function");la(c)&&(e="leading"in c?!!c.leading:e,d="trailing"in c?!!c.trailing:d);return Sf(a,b,{leading:e,maxWait:b,trailing:d})};m.thru=Rc;m.toArray=Vf;m.toPairs=gg;m.toPairsIn=hg;m.toPath=function(a){return Z(a)? -r(a,Wa):Ia(a)?[a]:Ba(gf(fa(a)))};m.toPlainObject=Ue;m.transform=function(a,c,e){var d=Z(a),f=d||jb(a)||Bb(a);c=W(c,4);if(null==e){var n=a&&a.constructor;e=f?d?new n:[]:la(a)?cb(n)?Jb(Pc(a)):{}:{}}(f?b:Ma)(a,function(a,b,d){return c(e,a,b,d)});return e};m.unary=function(a){return Of(a,1)};m.union=Ch;m.unionBy=Dh;m.unionWith=Eh;m.uniq=function(a){return a&&a.length?nb(a):[]};m.uniqBy=function(a,b){return a&&a.length?nb(a,W(b,2)):[]};m.uniqWith=function(a,b){b="function"==typeof b?b:v;return a&&a.length? -nb(a,v,b):[]};m.unset=function(a,b){return null==a?!0:Zd(a,b)};m.unzip=oe;m.unzipWith=Jf;m.update=function(a,b,c){null!=a&&(c=ee(c),a=Fb(a,b,c(Va(a,b)),void 0));return a};m.updateWith=function(a,b,c,e){e="function"==typeof e?e:v;null!=a&&(c=ee(c),a=Fb(a,b,c(Va(a,b)),e));return a};m.values=Gb;m.valuesIn=function(a){return null==a?[]:Q(a,Ga(a))};m.without=Fh;m.words=pf;m.wrap=function(a,b){return Be(ee(b),a)};m.xor=Gh;m.xorBy=Hh;m.xorWith=Ih;m.zip=Jh;m.zipObject=function(a,b){return ff(a||[],b||[], -ub)};m.zipObjectDeep=function(a,b){return ff(a||[],b||[],Fb)};m.zipWith=Kh;m.entries=gg;m.entriesIn=hg;m.extend=eg;m.extendWith=hc;se(m,m);m.add=Hi;m.attempt=ig;m.camelCase=qi;m.capitalize=Yf;m.ceil=Ii;m.clamp=function(a,b,c){c===v&&(c=b,b=v);c!==v&&(c=Oa(c),c=c===c?c:0);b!==v&&(b=Oa(b),b=b===b?b:0);return bb(Oa(a),b,c)};m.clone=function(a){return Ha(a,4)};m.cloneDeep=function(a){return Ha(a,5)};m.cloneDeepWith=function(a,b){b="function"==typeof b?b:v;return Ha(a,5,b)};m.cloneWith=function(a,b){b= -"function"==typeof b?b:v;return Ha(a,4,b)};m.conformsTo=function(a,b){return null==b||wc(a,b,xa(b))};m.deburr=qf;m.defaultTo=function(a,b){return null==a||a!==a?b:a};m.divide=Ji;m.endsWith=function(a,b,c){a=fa(a);b=Ka(b);var e=a.length;e=c=c===v?e:bb(aa(c),0,e);c-=b.length;return 0<=c&&a.slice(c,e)==b};m.eq=Ta;m.escape=function(a){return(a=fa(a))&&dd.test(a)?a.replace(Ya,Kd):a};m.escapeRegExp=function(a){return(a=fa(a))&&md.test(a)?a.replace(Pb,"\\$&"):a};m.every=function(a,b,c){var e=Z(a)?k:Qb;c&& -Ea(a,b,c)&&(b=v);return e(a,W(b,3))};m.find=Nh;m.findIndex=Ff;m.findKey=function(a,b){return A(a,W(b,3),Ma)};m.findLast=Oh;m.findLastIndex=Gf;m.findLastKey=function(a,b){return A(a,W(b,3),Vb)};m.floor=Ki;m.forEach=Lf;m.forEachRight=Mf;m.forIn=function(a,b){return null==a?a:Qd(a,W(b,3),Ga)};m.forInRight=function(a,b){return null==a?a:He(a,W(b,3),Ga)};m.forOwn=function(a,b){return a&&Ma(a,W(b,3))};m.forOwnRight=function(a,b){return a&&Vb(a,W(b,3))};m.get=Nd;m.gt=Yh;m.gte=Zh;m.has=function(a,b){return null!= -a&&Cf(a,b,Rb)};m.hasIn=Xd;m.head=Hf;m.identity=Ca;m.includes=function(a,b,c,e){a=Da(a)?a:Gb(a);c=c&&!e?aa(c):0;e=a.length;0>c&&(c=wa(e+c,0));return Wc(a)?c<=e&&-1c&&(c=wa(e+c,0));return C(a,b,c)};m.inRange=function(a,b,c){b=eb(b);c===v?(c=b,b=0):c=eb(c);a=Oa(a);return a>=Aa(b,c)&&a=a};m.isSet=ci;m.isString=Wc;m.isSymbol=Ia;m.isTypedArray=Bb;m.isUndefined=function(a){return a===v};m.isWeakMap=function(a){return oa(a)&&"[object WeakMap]"==za(a)};m.isWeakSet=function(a){return oa(a)&&"[object WeakSet]"==ya(a)};m.join=function(a,b){return null== -a?"":lh.call(a,b)};m.kebabCase=ri;m.last=Na;m.lastIndexOf=function(a,b,c){var e=null==a?0:a.length;if(!e)return-1;var d=e;c!==v&&(d=aa(c),d=0>d?wa(e+d,0):Aa(d,e-1));if(b===b)a:{for(c=d+1;c--;)if(a[c]===b){a=c;break a}a=c}else a=L(a,K,d,!0);return a};m.lowerCase=si;m.lowerFirst=ti;m.lt=di;m.lte=ei;m.max=function(a){return a&&a.length?Db(a,Ca,Wb):v};m.maxBy=function(a,b){return a&&a.length?Db(a,W(b,2),Wb):v};m.mean=function(a){return M(a,Ca)};m.meanBy=function(a,b){return M(a,W(b,2))};m.min=function(a){return a&& -a.length?Db(a,Ca,Ud):v};m.minBy=function(a,b){return a&&a.length?Db(a,W(b,2),Ud):v};m.stubArray=ue;m.stubFalse=ve;m.stubObject=function(){return{}};m.stubString=function(){return""};m.stubTrue=function(){return!0};m.multiply=Li;m.nth=function(a,b){return a&&a.length?Ve(a,aa(b)):v};m.noConflict=function(){sa._===this&&(sa._=fh);return this};m.noop=te;m.now=Tc;m.pad=function(a,b,c){a=fa(a);var e=(b=aa(b))?ea(a):0;if(!b||e>=b)return a;b=(b-e)/2;return Lc(Dc(b),c)+a+Lc(Mc(b),c)};m.padEnd=function(a,b, -c){a=fa(a);var e=(b=aa(b))?ea(a):0;return b&&eb){var e=a;a=b;b=e}return c||a%1||b%1?(c=$e(),Aa(a+c*(b-a+Hd("1e-"+ -((c+"").length-1))),b)):Md(a,b)};m.reduce=function(a,b,c){var e=Z(a)?u:D,d=3>arguments.length;return e(a,W(b,4),c,d,kb)};m.reduceRight=function(a,b,c){var e=Z(a)?w:D,d=3>arguments.length;return e(a,W(b,4),c,d,Nf)};m.repeat=function(a,b,c){b=(c?Ea(a,b,c):b===v)?1:aa(b);return $d(fa(a),b)};m.replace=function(){var a=arguments,b=fa(a[0]);return 3>a.length?b:b.replace(a[1],a[2])};m.result=function(a,b,c){b=lb(b,a);var e=-1,d=b.length;d||(d=1,a=v);for(;++ea||9007199254740991=f)return a;f=c-ea(e);if(1>f)return e;c=n?ob(n,0,f).join(""):a.slice(0,f);if(d===v)return c+e;n&&(f+=c.length-f);if(Ce(d)){if(a.slice(f).search(d)){var h=c;d.global||(d=we(d.source,fa(lc.exec(d))+"g"));for(d.lastIndex=0;n=d.exec(h);)var m=n.index;c=c.slice(0,m===v?f:m)}}else a.indexOf(Ka(d),f)!=f&&(m=c.lastIndexOf(d),-1e.__dir__?"Right":"")});return e};I.prototype[a+"Right"]=function(b){return this.reverse()[a](b).reverse()}});b(["filter","map","takeWhile"],function(a,b){var c=b+1,e=1==c||3==c;I.prototype[a]=function(a){var b=this.clone();b.__iteratees__.push({iteratee:W(a,3),type:c});b.__filtered__=b.__filtered__||e;return b}});b(["head","last"],function(a,b){var c="take"+(b?"Right": -"");I.prototype[a]=function(){return this[c](1).value()[0]}});b(["initial","tail"],function(a,b){var c="drop"+(b?"":"Right");I.prototype[a]=function(){return this.__filtered__?new I(this):this[c](1)}});I.prototype.compact=function(){return this.filter(Ca)};I.prototype.find=function(a){return this.filter(a).head()};I.prototype.findLast=function(a){return this.reverse().find(a)};I.prototype.invokeMap=ba(function(a,b){return"function"==typeof a?new I(this):this.map(function(c){return Xb(c,a,b)})});I.prototype.reject= -function(a){return this.filter(Vc(W(a)))};I.prototype.slice=function(a,b){a=aa(a);var c=this;if(c.__filtered__&&(0b))return new I(c);0>a?c=c.takeRight(-a):a&&(c=c.drop(a));b!==v&&(b=aa(b),c=0>b?c.dropRight(-b):c.take(b-a));return c};I.prototype.takeRightWhile=function(a){return this.reverse().takeWhile(a).reverse()};I.prototype.toArray=function(){return this.take(4294967295)};Ma(I.prototype,function(a,b){var c=/^(?:filter|find|map|reject)|While$/.test(b),e=/^(?:head|last)$/.test(b),d=m[e?"take"+ -("last"==b?"Right":""):b],f=e||/^find/.test(b);d&&(m.prototype[b]=function(){var b=this.__wrapped__;var n=e?[1]:arguments,h=b instanceof I,p=n[0],q=h||Z(b),r=function(a){a=d.apply(m,t([a],n));return e&&k?a[0]:a};q&&c&&"function"==typeof p&&1!=p.length&&(h=q=!1);var k=this.__chain__,g=!!this.__actions__.length;p=f&&!k;h=h&&!g;if(!f&&q)return b=h?b:new I(this),b=a.apply(b,n),b.__actions__.push({func:Rc,args:[r],thisArg:v}),new l(b,k);if(p&&h)return a.apply(this,n);b=this.thru(r);return p?e?b.value()[0]: -b.value():b})});b("pop push shift sort splice unshift".split(" "),function(a){var b=Yc[a],c=/^(?:push|sort|unshift)$/.test(a)?"tap":"thru",e=/^(?:pop|shift)$/.test(a);m.prototype[a]=function(){var a=arguments;if(e&&!this.__chain__){var d=this.value();return b.apply(Z(d)?d:[],a)}return this[c](function(c){return b.apply(Z(c)?c:[],a)})}});Ma(I.prototype,function(a,b){var c=m[b];if(c){var e=c.name+"";(cc[e]||(cc[e]=[])).push({name:b,func:c})}});cc[Ic(v,2).name]=[{name:"wrapper",func:v}];I.prototype.clone= -function(){var a=new I(this.__wrapped__);a.__actions__=Ba(this.__actions__);a.__dir__=this.__dir__;a.__filtered__=this.__filtered__;a.__iteratees__=Ba(this.__iteratees__);a.__takeCount__=this.__takeCount__;a.__views__=Ba(this.__views__);return a};I.prototype.reverse=function(){if(this.__filtered__){var a=new I(this);a.__dir__=-1;a.__filtered__=!0}else a=this.clone(),a.__dir__*=-1;return a};I.prototype.value=function(){var a=this.__wrapped__.value(),b=this.__dir__,c=Z(a),e=0>b,d=c?a.length:0;var f= -0;for(var n=d,h=this.__views__,m=-1,p=h.length;++m=this.__values__.length,b=a?v:this.__values__[this.__index__++];return{done:a,value:b}};m.prototype.plant=function(a){for(var b,c,e=this;e instanceof g;){var d=Ee(e);d.__index__=0;d.__values__=v;c?b.__wrapped__=d:c=d;b=d;e=e.__wrapped__}b.__wrapped__=a;return c}; -m.prototype.reverse=function(){var a=this.__wrapped__;return a instanceof I?(this.__actions__.length&&(a=new I(this)),a=a.reverse(),a.__actions__.push({func:Rc,args:[ne],thisArg:v}),new l(a,this.__chain__)):this.thru(ne)};m.prototype.toJSON=m.prototype.valueOf=m.prototype.value=function(){return ef(this.__wrapped__,this.__actions__)};m.prototype.first=m.prototype.head;dc&&(m.prototype[dc]=bh);return m}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(sa._=Xa,define(function(){return Xa})): -Za?((Za.exports=Xa)._=Xa,rb._=Xa):sa._=Xa}).call(this)}).call(this,"undefined"!==typeof global?global:"undefined"!==typeof self?self:"undefined"!==typeof window?window:{})},{}],165:[function(a,l,g){l.exports='abs and annotation annotation-xml apply approx arccos arccosh arccot arccoth arccsc arccsch arcsec arcsech arcsin arcsinh arctan arctanh arg bind bvar card cartesianproduct cbytes ceiling cerror ci cn codomain complexes compose condition conjugate cos cosh cot coth cs csc csch csymbol curl declare degree determinant diff divergence divide domain domainofapplication emptyset encoding eq equivalent eulergamma exists exp exponentiale factorial factorof false floor fn forall function gcd geq grad gt ident image imaginary imaginaryi implies in infinity int integers intersect interval inverse lambda laplacian lcm leq limit list ln log logbase lowlimit lt m:apply m:mrow maction malign maligngroup malignmark malignscope math matrix matrixrow max mean median menclose merror mfenced mfrac mfraction mglyph mi mi" min minus mlabeledtr mlongdiv mmultiscripts mn mo mode moment momentabout mover mpadded mphantom mprescripts mroot mrow ms mscarries mscarry msgroup msline mspace msqrt msrow mstack mstyle msub msubsup msup mtable mtd mtext mtr munder munderover naturalnumbers neq none not notanumber notin notprsubset notsubset or otherwise outerproduct partialdiff pi piece piecewice piecewise plus power primes product prsubset quotient rationals real reals reln rem root scalarproduct sdev sec sech select selector semantics sep set setdiff share sin sinh span subset sum tan tanh tendsto times transpose true union uplimit var variance vector vectorproduct xor'.split(" ")}, -{}],166:[function(a,l,g){function k(a,b,c){if(!a||!b)return[];c=c||{};"undefined"===typeof c.cache&&(c.cache=!0);if(!Array.isArray(b))return h(a,b,c);for(var e=b.length,d=0,f=[],n=[];e--;){var p=b[d++];"string"===typeof p&&33===p.charCodeAt(0)?f.push.apply(f,h(a,p.slice(1),c)):n.push.apply(n,h(a,p,c))}return m.diff(n,f)}function h(a,c,d){if("string"!==m.typeOf(a)&&!Array.isArray(a))throw Error(b("match","files","a string or array"));a=m.arrayify(a);d=d||{};var e=d.negate||!1,n=c;"string"===typeof c&& -((e="!"===c.charAt(0))&&(c=c.slice(1)),!0===d.nonegate&&(e=!1));c=f(c,d);for(var h=a.length,p=0,q=[];p>> no match, partial?",a,p,c,n),p===h)?!0:!1}if("string"===typeof p){var k=d.nocase?q.toLowerCase()===p.toLowerCase():q===p;this.debug("string match",p,q,k)}else k=q.match(p),this.debug("pattern match",p,q,k);if(!k)return!1}if(f===h&&n===m)return!0;if(f===h)return e;if(n===m)return f===h-1&&""===a[f];throw Error("wtf?");}},{"brace-expansion":52,path:14}],172:[function(a, -l,g){function k(a,d){var c=a;d.slice(0,-1).forEach(function(a){c=c[a]||{}});return d[d.length-1]in c}function h(a){return"number"===typeof a||/^0x[0-9a-f]+$/i.test(a)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(a)}l.exports=function(a,d){function c(a,b){return q.allBools&&/^--[^=]+$/.test(b)||q.strings[a]||q.bools[a]||e[a]}function b(a,b,d){if(!d||!q.unknownFn||c(a,d)||!1!==q.unknownFn(d)){var n=!q.strings[a]&&h(b)?Number(b):b;f(r,a.split("."),n);(e[a]||[]).forEach(function(a){f(r,a.split("."), -n)})}}function f(a,b,c){var e=a;b.slice(0,-1).forEach(function(a){void 0===e[a]&&(e[a]={});e=e[a]});a=b[b.length-1];void 0===e[a]||q.bools[a]||"boolean"===typeof e[a]?e[a]=c:Array.isArray(e[a])?e[a].push(c):e[a]=[e[a],c]}function m(a){return e[a].some(function(a){return q.bools[a]})}d||(d={});var q={bools:{},strings:{},unknownFn:null};"function"===typeof d.unknown&&(q.unknownFn=d.unknown);"boolean"===typeof d["boolean"]&&d["boolean"]?q.allBools=!0:[].concat(d["boolean"]).filter(Boolean).forEach(function(a){q.bools[a]= -!0});var e={};Object.keys(d.alias||{}).forEach(function(a){e[a]=[].concat(d.alias[a]);e[a].forEach(function(b){e[b]=[a].concat(e[a].filter(function(a){return b!==a}))})});[].concat(d.string).filter(Boolean).forEach(function(a){q.strings[a]=!0;e[a]&&(q.strings[e[a]]=!0)});var n=d["default"]||{},r={_:[]};Object.keys(q.bools).forEach(function(a){b(a,void 0===n[a]?!1:n[a])});var g=[];-1!==a.indexOf("--")&&(g=a.slice(a.indexOf("--")+1),a=a.slice(0,a.indexOf("--")));for(var l=0;l=f?Math.round(a/f)+"d":36E5<=a?Math.round(a/36E5)+"h":6E4<=a?Math.round(a/6E4)+"m":1E3<=a?Math.round(a/1E3)+"s":a+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(a));}},{}],175:[function(a,l,g){var k=a("remove-trailing-separator");l.exports=function(a,f){if("string"!==typeof a)throw new TypeError("expected a string"); -a=a.replace(/[\\\/]+/g,"/");!1!==f&&(a=k(a));return a}},{"remove-trailing-separator":312}],176:[function(a,l,g){(function(a,h,f){"undefined"!==typeof l&&l.exports?l.exports=f():"function"===typeof define&&define.amd?define(f):h[a]=f(a,h)})("normalizeSelector",this,function(a,h){return function(a){function d(){g&&(0]$/.test(c[c.length-1])&&c.push(" "),c.push(g))}var c=[],b,f=[0],h=0,q=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,e=/^\s+$/,n=/[^\s=~!^|$*\[\]\(\)]{2}/,k=[/\s+|\/\*|["'>~+\[\(]/g, -/\s+|\/\*|["'\[\]\(\)]/g,/\s+|\/\*|["'\[\]\(\)]/g,null,/\*\//g];for(a=a.trim();;){var g="";var l=k[f[f.length-1]];l.lastIndex=h;if(b=l.exec(a)){var w=h;h=l.lastIndex;wf[f.length-1]){d();if("["===b[0])f.push(1);else if("("===b[0])f.push(2);else if(/^["']$/.test(b[0]))f.push(3),k[3]=new RegExp(b[0],"g");else if("/*"===b[0])f.push(4);else if(/^[\]\)]$/.test(b[0])&&0])$/.test(b[0])&&(0c.length||e.test(c[c.length-2])?c.pop():c[c.length-1]=" ",b[0]=""),f.pop()),c[c.length-1]+=b[0]}else{g=a.substr(h);d();break}}return c.join("").trim()}})},{}],177:[function(a,l,g){var k=Object.getOwnPropertySymbols,h=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable;l.exports= -function(){try{if(!Object.assign)return!1;var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var c={};for(a=0;10>a;a++)c["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(c).map(function(a){return c[a]}).join(""))return!1;var b={};"abcdefghijklmnopqrst".split("").forEach(function(a){b[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},b)).join("")?!1:!0}catch(p){return!1}}()?Object.assign:function(a,c){if(null===a||void 0=== -a)throw new TypeError("Object.assign cannot be called with null or undefined");var b=Object(a);for(var d,m=1;m=a||"A"<=a&&"F">=a||"a"<=a&&"f">=a}function h(a){return"0"<=a&&"7">=a}function f(a){return"0"<=a&&"9">=a}function d(a,d){function m(b){var e=D- -I;if(!b)if(D=n&&(m+="^");break}h+=k;f===n?m+="^":f>n&&(m+="\t"===a[n]?"\t":" ");if(78=M||b[d]!=a[D])D=c-1,m();D++}}function w(){for(var b,c=d.null_prototype?Object.create(null):{},e={},f=!1;D=c){for(;D=M&&m(),d=a[D++],b[d]&&(C||"v"!=d&&"'"!=d))f+=b[d];else if(C&&F(d))e(d);else if("u"===d||"x"===d&&C){d="u"===d?4:2;for(var n=0;n=M&&m(),k(a[D])||m("Bad escape sequence"),D++;f+=String.fromCharCode(parseInt(a.substr(D-d,d),16))}else C&&h(d)?(d="4">d&&h(a[D])&&h(a[D+1])?3:h(a[D])?2:1,D+=d-1,f+=String.fromCharCode(parseInt(a.substr(D-d,d),8))):C?f+=d:(D--,m());else F(d)?m():(!C&&32>d.charCodeAt(0)&&(D--,m("Unexpected control character")),f+=d)}m()}var C=!("json"=== -d.mode||d.legacy),F=C?c.isLineTerminator:c.isLineTerminatorJSON,K=C?c.isWhiteSpace:c.isWhiteSpaceJSON,M=a.length,B=0,I=0,D=0,E=[],P=function(){},y=function(a){return a};d._tokenize&&function(){var b=null;P=function(){if(null!==b)throw Error("internal error, token overlap");b=D};y=function(c,e){if(b!=D){var f={raw:a.substr(b,D-b),type:e,stack:E.slice(0)};void 0!==c&&(f.value=c);d._tokenize.call(null,f)}b=null;return c}}();g();var z=n();if(void 0!==z||D=M)return"function"===typeof d.reviver&& -(z=d.reviver.call(null,"",z)),z;m()}else D?m("No data, only a whitespace"):m("No data, empty input")}var c=a("./unicode"),b={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v","/":"/"};l.exports.parse=function(a,b){"function"===typeof b&&(b={reviver:b});if(void 0!==a){"string"!==typeof a&&(a=String(a));null==b&&(b={});null==b.reserved_keys&&(b.reserved_keys="ignore");"throw"!==b.reserved_keys&&"ignore"!==b.reserved_keys||null!=b.null_prototype||(b.null_prototype=!0);try{return d(a, -b)}catch(e){if(e instanceof SyntaxError&&null!=e.row&&null!=e.column){var c=e;e=SyntaxError(c.message);e.column=c.column;e.row=c.row}throw e;}}};l.exports.tokenize=function(a,b){null==b&&(b={});b._tokenize=function(a){b._addstack&&a.stack.unshift.apply(a.stack,b._addstack);c.push(a)};var c=[];c.data=l.exports.parse(a,b);return c}},{"./unicode":184}],184:[function(a,l,g){var k=l.exports;l.exports.isWhiteSpace=function(a){return" "===a||"\u00a0"===a||"\ufeff"===a||"\t"<=a&&"\r">=a||"\u1680"===a||"\u180e"=== -a||"\u2000"<=a&&"\u200a">=a||"\u2028"===a||"\u2029"===a||"\u202f"===a||"\u205f"===a||"\u3000"===a};l.exports.isWhiteSpaceJSON=function(a){return" "===a||"\t"===a||"\n"===a||"\r"===a};l.exports.isLineTerminator=function(a){return"\n"===a||"\r"===a||"\u2028"===a||"\u2029"===a};l.exports.isLineTerminatorJSON=function(a){return"\n"===a||"\r"===a};l.exports.isIdentifierStart=function(a){return"$"===a||"_"===a||"A"<=a&&"Z">=a||"a"<=a&&"z">=a||"\u0080"<=a&&k.NonAsciiIdentifierStart.test(a)};l.exports.isIdentifierPart= -function(a){return"$"===a||"_"===a||"A"<=a&&"Z">=a||"a"<=a&&"z">=a||"0"<=a&&"9">=a||"\u0080"<=a&&k.NonAsciiIdentifierPart.test(a)};l.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/; -l.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/}, -{}],185:[function(a,l,g){(function(a){function h(a){return"/"===a.charAt(0)}function f(a){a=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(a);var c=a[1]||"";c=!(!c||":"===c.charAt(1));return!(!a[2]&&!c)}l.exports="win32"===a.platform?f:h;l.exports.posix=h;l.exports.win32=f}).call(this,a("_process"))},{_process:16}],186:[function(a,l,g){(function(k){function h(a){return a[a.length-1]===f.sep?a.slice(0,-1):a}var f=a("path");l.exports=function(a,c){a=h(a);c=h(c);"win32"=== -k.platform&&(a=a.toLowerCase(),c=c.toLowerCase());return 0===a.lastIndexOf(c,0)&&(a[c.length]===f.sep||void 0===a[c.length])}}).call(this,a("_process"))},{_process:16,path:14}],187:[function(a,l,g){var k=function(a,f){return function(){for(var d=this,c=f.promiseModule,b=Array(arguments.length),h=0;hb;){a=this.tokens[this.pos][0];if("space"!==a&&"comment"!==a)break;--this.pos}this.createDeclaration({start:b});return!0}return!1}}, -{key:"tokenize",value:function(){this.tokens=(0,t["default"])(this.input)}}]);return c}(c["default"]);g["default"]=a;l.exports=g["default"]},{"./find-extend-rule":190,"./import":191,"./is-mixin-token":192,"./less-tokenize":198,"./root":199,"./rule":200,"postcss/lib/comment":220,"postcss/lib/parser":230}],195:[function(a,l,g){function k(a,c){if("function"!==typeof c&&null!==c)throw new TypeError("Super expression must either be null or a function, not "+typeof c);a.prototype=Object.create(c&&c.prototype, -{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});c&&(Object.setPrototypeOf?Object.setPrototypeOf(a,c):a.__proto__=c)}Object.defineProperty(g,"__esModule",{value:!0});var h=function(){function a(a,b){for(var c=0;ce?(0,m["default"])(a,"escaping"):a.nextPos=e):(h.wordEndPattern.lastIndex=a.pos+1,h.wordEndPattern.test(a.css),a.nextPos=0===h.wordEndPattern.lastIndex?a.css.length- -1:h.wordEndPattern.lastIndex-2),a.cssPart=a.css.slice(a.pos,a.nextPos+1),a.tokens.push(["word",a.cssPart,a.line,a.pos-a.offset,a.line,a.nextPos-a.offset]),a.pos=a.nextPos)};var h=a("./globals"),f=a("./find-end-of-escaping"),d=k(f);f=a("./is-escaping");var c=k(f);f=a("./tokenize-inline-comment");var b=k(f);f=a("./tokenize-multiline-comment");var p=k(f);a=a("./unclosed");var m=k(a);l.exports=g["default"]},{"./find-end-of-escaping":201,"./globals":202,"./is-escaping":203,"./tokenize-inline-comment":209, -"./tokenize-multiline-comment":210,"./unclosed":215}],209:[function(a,l,g){Object.defineProperty(g,"__esModule",{value:!0});g["default"]=function(a){a.nextPos=a.css.indexOf("\n",a.pos+2)-1;-2===a.nextPos&&(a.nextPos=a.css.length-1);a.tokens.push(["comment",a.css.slice(a.pos,a.nextPos+1),a.line,a.pos-a.offset,a.line,a.nextPos-a.offset,"inline"]);a.pos=a.nextPos};l.exports=g["default"]},{}],210:[function(a,l,g){Object.defineProperty(g,"__esModule",{value:!0});g["default"]=function(a){a.nextPos=a.css.indexOf("*/", -a.pos+2)+1;0===a.nextPos&&(0,k["default"])(a,"comment");a.cssPart=a.css.slice(a.pos,a.nextPos+1);a.lines=a.cssPart.split("\n");a.lastLine=a.lines.length-1;0=a.length)break;var e=a[c++]}else{c=a.next();if(c.done)break;e=c.value}e=this.normalize(e,this.last);$jscomp.initSymbol();$jscomp.initSymbolIterator();var d=Array.isArray(e),f=0;for(e=d?e:e[Symbol.iterator]();;){if(d){if(f>=e.length)break;var h=e[f++]}else{f= -e.next();if(f.done)break;h=f.value}this.nodes.push(h)}}return this};e.prototype.prepend=function(){for(var a=arguments.length,b=Array(a),c=0;c=a.length)break;var e=a[c++]}else{c=a.next();if(c.done)break;e=c.value}e=this.normalize(e,this.first,"prepend").reverse();$jscomp.initSymbol();$jscomp.initSymbolIterator();var d=e,f=Array.isArray(d), -h=0;for(d=f?d:d[Symbol.iterator]();;){if(f){if(h>=d.length)break;var m=d[h++]}else{h=d.next();if(h.done)break;m=h.value}this.nodes.unshift(m)}for(var k in this.indexes)this.indexes[k]+=e.length}return this};e.prototype.cleanRaws=function(a){c.prototype.cleanRaws.call(this,a);if(this.nodes){$jscomp.initSymbol();$jscomp.initSymbolIterator();var b=this.nodes,e=Array.isArray(b),d=0;for(b=e?b:b[Symbol.iterator]();;){if(e){if(d>=b.length)break;var f=b[d++]}else{d=b.next();if(d.done)break;f=d.value}f.cleanRaws(a)}}}; -e.prototype.insertBefore=function(a,b){a=this.index(a);var c=this.normalize(b,this.nodes[a],0===a?"prepend":!1).reverse();$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=c,d=Array.isArray(e),f=0;for(e=d?e:e[Symbol.iterator]();;){if(d){if(f>=e.length)break;var n=e[f++]}else{f=e.next();if(f.done)break;n=f.value}this.nodes.splice(a,0,n)}for(var h in this.indexes)e=this.indexes[h],a<=e&&(this.indexes[h]=e+c.length);return this};e.prototype.insertAfter=function(a,b){a=this.index(a);var c=this.normalize(b, -this.nodes[a]).reverse();$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=c,d=Array.isArray(e),f=0;for(e=d?e:e[Symbol.iterator]();;){if(d){if(f>=e.length)break;var n=e[f++]}else{f=e.next();if(f.done)break;n=f.value}this.nodes.splice(a+1,0,n)}for(var h in this.indexes)e=this.indexes[h],a=a&&(this.indexes[b]=c-1)}return this};e.prototype.removeAll=function(){$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=this.nodes,b=Array.isArray(a),c=0;for(a=b?a:a[Symbol.iterator]();;){if(b){if(c>=a.length)break;var e=a[c++]}else{c=a.next();if(c.done)break;e=c.value}e.parent=void 0}this.nodes=[];return this};e.prototype.replaceValues= -function(a,b,c){c||(c=b,b={});this.walkDecls(function(e){b.props&&-1===b.props.indexOf(e.prop)||b.fast&&-1===e.value.indexOf(b.fast)||(e.value=e.value.replace(a,c))});return this};e.prototype.every=function(a){return this.nodes.every(a)};e.prototype.some=function(a){return this.nodes.some(a)};e.prototype.index=function(a){return"number"===typeof a?a:this.nodes.indexOf(a)};e.prototype.normalize=function(c,e){var d=this;if("string"===typeof c){var n=a("./parse");c=f(n(c).nodes)}else if(!Array.isArray(c))if("root"=== -c.type)c=c.nodes;else if(c.type)c=[c];else if(c.prop){if("undefined"===typeof c.value)throw Error("Value field is missed in node creation");"string"!==typeof c.value&&(c.value=String(c.value));c=[new b["default"](c)]}else if(c.selector)c=[new (a("./rule"))(c)];else if(c.name)c=[new (a("./at-rule"))(c)];else if(c.text)c=[new m["default"](c)];else throw Error("Unknown node type in node creation");return c.map(function(a){"undefined"===typeof a.raws&&(a=d.rebuild(a));a.parent&&(a=a.clone());"undefined"=== -typeof a.raws.before&&e&&"undefined"!==typeof e.raws.before&&(a.raws.before=e.raws.before.replace(/[^\s]/g,""));a.parent=d;return a})};e.prototype.rebuild=function(c,e){var d=this,f=void 0;"root"===c.type?f=new (a("./root")):"atrule"===c.type?f=new (a("./at-rule")):"rule"===c.type?f=new (a("./rule")):"decl"===c.type?f=new b["default"]:"comment"===c.type&&(f=new m["default"]);for(var n in c)"nodes"===n?f.nodes=c.nodes.map(function(a){return d.rebuild(a,f)}):"parent"===n&&e?f.parent=e:c.hasOwnProperty(n)&& -(f[n]=c[n]);return f};e.prototype.eachInside=function(a){(0,p["default"])("Container#eachInside is deprecated. Use Container#walk instead.");return this.walk(a)};e.prototype.eachDecl=function(a,b){(0,p["default"])("Container#eachDecl is deprecated. Use Container#walkDecls instead.");return this.walkDecls(a,b)};e.prototype.eachRule=function(a,b){(0,p["default"])("Container#eachRule is deprecated. Use Container#walkRules instead.");return this.walkRules(a,b)};e.prototype.eachAtRule=function(a,b){(0, -p["default"])("Container#eachAtRule is deprecated. Use Container#walkAtRules instead.");return this.walkAtRules(a,b)};e.prototype.eachComment=function(a){(0,p["default"])("Container#eachComment is deprecated. Use Container#walkComments instead.");return this.walkComments(a)};d(e,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}},{key:"semicolon",get:function(){(0,p["default"])("Node#semicolon is deprecated. Use Node#raws.semicolon"); -return this.raws.semicolon},set:function(a){(0,p["default"])("Node#semicolon is deprecated. Use Node#raws.semicolon");this.raws.semicolon=a}},{key:"after",get:function(){(0,p["default"])("Node#after is deprecated. Use Node#raws.after");return this.raws.after},set:function(a){(0,p["default"])("Node#after is deprecated. Use Node#raws.after");this.raws.after=a}}]);return e}(k(c)["default"]);g["default"]=c;l.exports=g["default"]},{"./at-rule":219,"./comment":220,"./declaration":223,"./node":228,"./parse":229, -"./root":234,"./rule":235,"./warn-once":240}],222:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}g.__esModule=!0;var h=function(){function a(a,b){for(var c=0;c";"undefined"!== -typeof this.line&&(this.message+=":"+this.line+":"+this.column);this.message+=": "+this.reason};a.prototype.showSourceCode=function(a){function e(b){return a?g.gray(b):b}var f=this;if(!this.source)return"";var h=this.source;"undefined"===typeof a&&(a=d["default"]);a&&(h=(0,b["default"])(h));h=h.split(/\r?\n/);var m=Math.max(this.line-3,0),k=Math.min(this.line+2,h.length),p=String(k).length,g=new c["default"].constructor({enabled:!0});return h.slice(m,k).map(function(b,c){var d=m+1+c,h=" "+(" "+d).slice(-p)+ -" | ";return d===f.line?(d=e(h.replace(/\d/g," "))+b.slice(0,f.column-1).replace(/[^\t]/g," "),(a?g.red.bold(">"):">")+e(h)+b+"\n "+d+(a?g.red.bold("^"):"^")):" "+e(h)+b}).join("\n")};a.prototype.toString=function(){var a=this.showSourceCode();a&&(a="\n\n"+a+"\n");return this.name+": "+this.message+a};h(a,[{key:"generated",get:function(){(0,p["default"])("CssSyntaxError#generated is deprecated. Use input instead.");return this.input}}]);return a}();g["default"]=a;l.exports=g["default"]},{"./terminal-highlight":238, -"./warn-once":240,chalk:217,"supports-color":242}],223:[function(a,l,g){function k(a,b){if("function"!==typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);a.prototype=Object.create(b&&b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});b&&(Object.setPrototypeOf?Object.setPrototypeOf(a,b):a.__proto__=b)}g.__esModule=!0;var h=function(){function a(a,c){for(var b=0;b");this.map&&(this.map.file=this.from)}a.prototype.error=function(a,b,c){var e=3parseInt(h[1]))&&(0,m["default"])("Your current PostCSS version is "+ -d+", but "+c+" uses "+e+". Perhaps this is the source of the error below.")}}catch(C){console&&console.error&&console.error(C)}};a.prototype.asyncTick=function(a,b){var c=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,a();try{var e=this.processor.plugins[this.plugin],d=this.run(e);this.plugin+=1;h(d)?d.then(function(){c.asyncTick(a,b)})["catch"](function(a){c.handleError(a,e);c.processed=!0;b(a)}):this.asyncTick(a,b)}catch(A){this.processed=!0,b(A)}};a.prototype.async= -function(){var a=this;return this.processed?new Promise(function(b,c){a.error?c(a.error):b(a.stringify())}):this.processing?this.processing:this.processing=(new Promise(function(b,c){if(a.error)return c(a.error);a.plugin=0;a.asyncTick(b,c)})).then(function(){a.processed=!0;return a.stringify()})};a.prototype.sync=function(){if(this.processed)return this.result;this.processed=!0;if(this.processing)throw Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;$jscomp.initSymbol(); -$jscomp.initSymbolIterator();var a=this.result.processor.plugins,b=Array.isArray(a),c=0;for(a=b?a:a[Symbol.iterator]();;){if(b){if(c>=a.length)break;var e=a[c++]}else{c=a.next();if(c.done)break;e=c.value}e=this.run(e);if(h(e))throw Error("Use process(css).then(cb) to work with async plugins");}return this.result};a.prototype.run=function(a){this.result.lastPlugin=a;try{return a(this.result.root,this.result)}catch(t){throw this.handleError(t,a),t;}};a.prototype.stringify=function(){if(this.stringified)return this.result; -this.stringified=!0;this.sync();var a=this.result.opts,c=p["default"];a.syntax&&(c=a.syntax.stringify);a.stringifier&&(c=a.stringifier);c.stringify&&(c=c.stringify);a=(new b["default"](c,this.result.root,this.result.opts)).generate();this.result.css=a[0];this.result.map=a[1];return this.result};f(a,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}}, -{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]);return a}();g["default"]=a;l.exports=g["default"]},{"./map-generator":227,"./parse":229,"./result":233,"./stringify":237,"./warn-once":240}],226:[function(a,l,g){g.__esModule=!0;var k={split:function(a,f,d){for(var c=[],b="",h=!1,m=0,k=!1,e=!1,n=0;n",original:{line:1,column:0},generated:{line:c,column:d-1}}));(h=b.match(/\n/g))?(c+=h.length,e=b.lastIndexOf("\n"),d=b.length-e):d+=b.length;f&&"start"!==m&&(f.source&&f.source.end?a.map.addMapping({source:a.sourcePath(f),generated:{line:c,column:d-1},original:{line:f.source.end.line,column:f.source.end.column}}):a.map.addMapping({source:"",original:{line:1,column:0},generated:{line:c, -column:d-1}}))})};a.prototype.generate=function(){this.clearAnnotation();if(this.isMap())return this.generateMap();var a="";this.stringify(this.root,function(b){a+=b});return[a]};return a}();g["default"]=a;l.exports=g["default"]},{"js-base64":130,path:14,"source-map":328}],228:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}g.__esModule=!0;var h=function(){function a(a,b){for(var c=0;c=a.length)break;var d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}this.parent.insertBefore(this,d)}this.remove()}return this};a.prototype.moveTo=function(a){this.cleanRaws(this.root()===a.root());this.remove();a.append(this);return this};a.prototype.moveBefore=function(a){this.cleanRaws(this.root()===a.root());this.remove();a.parent.insertBefore(a,this);return this};a.prototype.moveAfter=function(a){this.cleanRaws(this.root()===a.root());this.remove(); -a.parent.insertAfter(a,this);return this};a.prototype.next=function(){var a=this.parent.index(this);return this.parent.nodes[a+1]};a.prototype.prev=function(){var a=this.parent.index(this);return this.parent.nodes[a-1]};a.prototype.toJSON=function(){var a={},b;for(b in this)if(this.hasOwnProperty(b)&&"parent"!==b){var c=this[b];c instanceof Array?a[b]=c.map(function(a){return"object"===("undefined"===typeof a?"undefined":f(a))&&a.toJSON?a.toJSON():a}):"object"===("undefined"===typeof c?"undefined": -f(c))&&c.toJSON?a[b]=c.toJSON():a[b]=c}return a};a.prototype.raw=function(a,c){return(new b["default"]).raw(this,a,c)};a.prototype.root=function(){for(var a=this;a.parent;)a=a.parent;return a};a.prototype.cleanRaws=function(a){delete this.raws.before;delete this.raws.after;a||delete this.raws.between};a.prototype.positionInside=function(a){for(var b=this.toString(),c=this.source.start.column,d=this.source.start.line,f=0;fm;){a=this.tokens[this.pos][0];if("space"!==a&&"comment"!== -a)break;--this.pos}this.decl(this.tokens.slice(m,this.pos+1))}else this.unknownWord(m)};a.prototype.rule=function(a){a.pop();var b=new m["default"];this.init(b,a[0][2],a[0][3]);b.raws.between=this.spacesAndCommentsFromEnd(a);this.raw(b,"selector",a);this.current=b};a.prototype.decl=function(a){var b=new f["default"];this.init(b);var c=a[a.length-1];";"===c[0]&&(this.semicolon=!0,a.pop());for(b.source.end=c[4]?{line:c[4],column:c[5]}:{line:c[2],column:c[3]};"word"!==a[0][0];)b.raws.before+=a.shift()[1]; -b.source.start={line:a[0][2],column:a[0][3]};for(b.prop="";a.length;){c=a[0][0];if(":"===c||"space"===c||"comment"===c)break;b.prop+=a.shift()[1]}for(b.raws.between="";a.length;)if(c=a.shift(),":"===c[0]){b.raws.between+=c[1];break}else b.raws.between+=c[1];if("_"===b.prop[0]||"*"===b.prop[0])b.raws.before+=b.prop[0],b.prop=b.prop.slice(1);b.raws.between+=this.spacesAndCommentsFromStart(a);this.precheckMissedSemicolon(a);for(var e=a.length-1;0=a.length)break;var f=a[d++]}else{d=a.next();if(d.done)break;f=d.value}f.postcss&&(f=f.postcss);if("object"===("undefined"===typeof f?"undefined":k(f))&&Array.isArray(f.plugins))c=c.concat(f.plugins);else if("function"===typeof f)c.push(f);else{if("object"===("undefined"=== -typeof f?"undefined":k(f))&&(f.parse||f.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");throw Error(f+" is not a PostCSS plugin");}}return c};return a}();g["default"]=a;l.exports=g["default"]},{"./lazy-result":225}],233:[function(a,l,g){g.__esModule=!0;var k=function(){function a(a,c){for(var b=0;b=d.length)break;var h=d[f++]}else{f=d.next();if(f.done)break;h=f.value}h.raws.before=b.raws.before}}return a};b.prototype.toResult=function(){var b=0=arguments.length||void 0===arguments[0]?function(){}:arguments[0],f=0;f=arguments.length||void 0===arguments[1]?0:arguments[1],g=a;"("===a[0]&&")"===a[a.length-1]&&(g=a.substring(1,a.length-1), -k++);for(var l=0;l=arguments.length||void 0===arguments[1]?0:arguments[1],c=[],h=0,g=!1;var e={before:"",after:"",value:""};for(var n=0;n=h.length)break;var g=h[m++]}else{m=h.next();if(m.done)break;g=m.value}if(e)"comment"!==g[0]&&"{"!==g[0]&&(f+=g[1]);else if("space"===g[0]&&-1!==g[1].indexOf("\n"))break;else"("=== -g[0]?d+=1:")"===g[0]?--d:0===d&&":"===g[0]&&(e=!0)}if(!e||""===f.trim()||/^[a-zA-Z-:#]/.test(f))a.prototype.rule.call(this,c);else{c.pop();e=new b["default"];this.init(e);d=c[c.length-1];for(e.source.end=d[4]?{line:d[4],column:d[5]}:{line:d[2],column:d[3]};"word"!==c[0][0];)e.raws.before+=c.shift()[1];e.source.start={line:c[0][2],column:c[0][3]};for(e.prop="";c.length;){d=c[0][0];if(":"===d||"space"===d||"comment"===d)break;e.prop+=c.shift()[1]}for(e.raws.between="";c.length;)if(d=c.shift(),":"=== -d[0]){e.raws.between+=d[1];break}else e.raws.between+=d[1];if("_"===e.prop[0]||"*"===e.prop[0])e.raws.before+=e.prop[0],e.prop=e.prop.slice(1);e.raws.between+=this.spacesAndCommentsFromStart(c);this.precheckMissedSemicolon(c);for(f=c.length-1;0=Sa)){Q=l.charCodeAt(V);if(Q===c||Q===p||Q===q&&l.charCodeAt(V+1)!==c)X=V,Y+=1;switch(Q){case c:case b:case m:case q:case p:J=V;do J+=1,Q=l.charCodeAt(J),Q===c&&(X=J,Y+=1);while(Q===b||Q===c||Q===m||Q===q||Q===p);U=["space",l.slice(V,J)];V=J-1;break;case e:U=["[","[",Y,V-X];break;case n:U=["]","]",Y,V-X];break;case u:U=["{","{",Y,V-X];break;case w:U=["}","}",Y,V-X];break; -case F:U=["word",",",Y,V-X,Y,V-X+1];break;case L:U=[":",":",Y,V-X];break;case x:U=[";",";",Y,V-X];break;case r:ta=gb.length?gb.pop()[1]:"";v=l.charCodeAt(V+1);if("url"===ta&&v!==k&&v!==h&&v!==b&&v!==c&&v!==m&&v!==p&&v!==q){T=1;ra=!1;for(J=V+1;J<=l.length-1;){v=l.charCodeAt(J);if(v===f)ra=!ra;else if(v===r)T+=1;else if(v===t&&(--T,0===T))break;J+=1}O=l.slice(V,J+1);R=O.split("\n");G=R.length-1;0=Sa}}};var k=39,h=34,f=92,d=47,c=10,b=32,p=12,m=9,q=13,e=91,n=93,r=40,t=41,u=123,w=125,x=59,A=42,L=58,C=64,F=44,K=35,M=/[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g,B=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,I=/.[\\\/\("'\n]/,D=/[a-f0-9]/i,E=/[\r\f\n]/g;l.exports=g["default"]},{}],255:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}g.__esModule= -!0;var h=a("./processor"),f=k(h);h=a("./selectors/attribute");var d=k(h);h=a("./selectors/className");var c=k(h);h=a("./selectors/combinator");var b=k(h);h=a("./selectors/comment");var p=k(h);h=a("./selectors/id");var m=k(h);h=a("./selectors/nesting");var q=k(h);h=a("./selectors/pseudo");var e=k(h);h=a("./selectors/root");var n=k(h);h=a("./selectors/selector");var r=k(h);h=a("./selectors/string");var t=k(h);h=a("./selectors/tag");var u=k(h);h=a("./selectors/universal");var w=k(h),x=function(a){if(a&& -a.__esModule)return a;var b={};if(null!=a)for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&(b[c]=a[c]);b["default"]=a;return b}(a("./selectors/types")),A=function(a){return new f["default"](a)};A.attribute=function(a){return new d["default"](a)};A.className=function(a){return new c["default"](a)};A.combinator=function(a){return new b["default"](a)};A.comment=function(a){return new p["default"](a)};A.id=function(a){return new m["default"](a)};A.nesting=function(a){return new q["default"](a)}; -A.pseudo=function(a){return new e["default"](a)};A.root=function(a){return new n["default"](a)};A.selector=function(a){return new r["default"](a)};A.string=function(a){return new t["default"](a)};A.tag=function(a){return new u["default"](a)};A.universal=function(a){return new w["default"](a)};Object.keys(x).forEach(function(a){"__esModule"!==a&&(A[a]=x[a])});g["default"]=A;l.exports=g["default"]},{"./processor":257,"./selectors/attribute":258,"./selectors/className":259,"./selectors/combinator":260, -"./selectors/comment":261,"./selectors/id":263,"./selectors/nesting":265,"./selectors/pseudo":267,"./selectors/root":268,"./selectors/selector":269,"./selectors/string":270,"./selectors/tag":271,"./selectors/types":272,"./selectors/universal":273}],256:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}g.__esModule=!0;var h=function(){function a(a,b){for(var c=0;c=a&&(this.indexes[b]= -c-1)}return this};b.prototype.removeAll=function(){$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=this.nodes,b=Array.isArray(a),c=0;for(a=b?a:a[Symbol.iterator]();;){if(b){if(c>=a.length)break;var e=a[c++]}else{c=a.next();if(c.done)break;e=c.value}e.parent=void 0}this.nodes=[];return this};b.prototype.empty=function(){return this.removeAll()};b.prototype.insertAfter=function(a,b){var c=this.index(a);this.nodes.splice(c+1,0,b);var e;for(e in this.indexes){var d=this.indexes[e];c<=d&&(this.indexes[e]= -d+this.nodes.length)}return this};b.prototype.insertBefore=function(a,b){var c=this.index(a);this.nodes.splice(c,0,b);var e;for(e in this.indexes){var d=this.indexes[e];c<=d&&(this.indexes[e]=d+this.nodes.length)}return this};b.prototype.each=function(a){this.lastEach||(this.lastEach=0);this.indexes||(this.indexes={});this.lastEach++;var b=this.lastEach;this.indexes[b]=0;if(this.length){var c;for(c=void 0;this.indexes[b],\[\]\\]|\/(?=\*)/g;l.exports=g["default"]},{}],276:[function(a,l,g){function k(a){return this instanceof k?(this.nodes=h(a),this):new k(a)}var h= -a("./parse"),f=a("./walk"),d=a("./stringify");k.prototype.toString=function(){return Array.isArray(this.nodes)?d(this.nodes):""};k.prototype.walk=function(a,b){f(this.nodes,a,b);return this};k.unit=a("./unit");k.walk=f;k.stringify=d;l.exports=k},{"./parse":277,"./stringify":278,"./unit":279,"./walk":280}],277:[function(a,l,g){l.exports=function(a){var h=[],f,d,c=0;var b=a.charCodeAt(c);for(var k=a.length,g=[{nodes:h}],l=0,e,n=d="",r="";c=b){var t=c;do t+=1,b=a.charCodeAt(t);while(32>=b); -var u=a.slice(c,t);var w=h[h.length-1];41===b&&l?r=u:w&&"div"===w.type?w.after=u:44===b||58===b||47===b&&42!==a.charCodeAt(t+1)?n=u:h.push({type:"space",sourceIndex:c,value:u});c=t}else if(39===b||34===b){t=c;b=39===b?"'":'"';u={type:"string",sourceIndex:c,quote:b};do if(w=!1,t=a.indexOf(b,t+1),~t)for(f=t;92===a.charCodeAt(f-1);)--f,w=!w;else a+=b,t=a.length-1,u.unclosed=!0;while(w);u.value=a.slice(c+1,t);h.push(u);c=t+1;b=a.charCodeAt(c)}else if(47===b&&42===a.charCodeAt(c+1))u={type:"comment",sourceIndex:c}, -t=a.indexOf("*/",c),-1===t&&(u.unclosed=!0,t=a.length),u.value=a.slice(c+2,t),h.push(u),c=t+2,b=a.charCodeAt(c);else if(47===b||44===b||58===b)u=a[c],h.push({type:"div",sourceIndex:c-n.length,value:u,before:n,after:""}),n="",c+=1,b=a.charCodeAt(c);else if(40===b){t=c;do t+=1,b=a.charCodeAt(t);while(32>=b);u={type:"function",sourceIndex:c-d.length,value:d,before:a.slice(c+1,t)};c=t;if("url"===d&&39!==b&&34!==b){--t;do if(w=!1,t=a.indexOf(")",t+1),~t)for(f=t;92===a.charCodeAt(f-1);)--f,w=!w;else a+= -")",t=a.length-1,u.unclosed=!0;while(w);d=t;do--d,b=a.charCodeAt(d);while(32>=b);u.nodes=c!==d+1?[{type:"word",sourceIndex:c,value:a.slice(c,d+1)}]:[];u.unclosed&&d+1!==t?(u.after="",u.nodes.push({type:"space",sourceIndex:d+1,value:a.slice(d+1,t)})):u.after=a.slice(d+1,t);c=t+1;b=a.charCodeAt(c);h.push(u)}else l+=1,u.after="",h.push(u),g.push(u),h=u.nodes=[],e=u;d=""}else if(41===b&&l)c+=1,b=a.charCodeAt(c),e.after=r,r="",--l,g.pop(),e=g[l],h=e.nodes;else{t=c;do 92===b&&(t+=1),t+=1,b=a.charCodeAt(t); -while(t=b||39===b||34===b||44===b||58===b||47===b||40===b||41===b&&l));u=a.slice(c,t);40===b?d=u:h.push({type:"word",sourceIndex:c,value:u});c=t}for(c=g.length-1;c;--c)g[c].unclosed=!0;return g[0].nodes}},{}],278:[function(a,l,g){function k(a,d){var c=a.type,b=a.value,f;if(d&&void 0!==(f=d(a)))return f;if("word"!==c&&"space"!==c){if("string"===c)return f=a.quote||"",f+b+(a.unclosed?"":f);if("comment"===c)return"/*"+b+(a.unclosed?"":"*/");if("div"===c)return(a.before||"")+b+(a.after||""); -if(Array.isArray(a.nodes))return f=h(a.nodes),"function"!==c?f:b+"("+(a.before||"")+f+(a.after||"")+(a.unclosed?"":")")}return b}function h(a,d){var c;if(Array.isArray(a)){var b="";for(c=a.length-1;~c;--c)b=k(a[c],d)+b;return b}return k(a,d)}l.exports=h},{}],279:[function(a,l,g){l.exports=function(a){for(var h=0,f=a.length,d=!1,c=!1,b,k="";h=b)k+=a[h],c=!0;else if(46===b){if(d)break;d=!0;k+=a[h]}else if(43===b||45===b){if(0!==h)break;k+=a[h]}else break;h+=1}return c? -{number:k,unit:a.slice(h)}:!1}},{}],280:[function(a,l,g){l.exports=function h(a,d,c){var b,f;var g=0;for(b=a.length;g=a.length)break;var d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=this.normalize(d,this.last);$jscomp.initSymbol();$jscomp.initSymbolIterator(); -var f=Array.isArray(d),h=0;for(d=f?d:d[Symbol.iterator]();;){if(f){if(h>=d.length)break;var k=d[h++]}else{h=d.next();if(h.done)break;k=h.value}this.nodes.push(k)}}return this};k.prototype.prepend=function(){for(var a=arguments.length,b=Array(a),c=0;c=a.length)break;var d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d=this.normalize(d, -this.first,"prepend").reverse();$jscomp.initSymbol();$jscomp.initSymbolIterator();var f=d,h=Array.isArray(f),k=0;for(f=h?f:f[Symbol.iterator]();;){if(h){if(k>=f.length)break;var g=f[k++]}else{k=f.next();if(k.done)break;g=k.value}this.nodes.unshift(g)}for(var m in this.indexes)this.indexes[m]+=d.length}return this};k.prototype.cleanRaws=function(a){c.prototype.cleanRaws.call(this,a);if(this.nodes){$jscomp.initSymbol();$jscomp.initSymbolIterator();var b=this.nodes,e=Array.isArray(b),d=0;for(b=e?b:b[Symbol.iterator]();;){if(e){if(d>= -b.length)break;var f=b[d++]}else{d=b.next();if(d.done)break;f=d.value}f.cleanRaws(a)}}};k.prototype.insertBefore=function(a,b){a=this.index(a);var c=this.normalize(b,this.nodes[a],0===a?"prepend":!1).reverse();$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=c,d=Array.isArray(e),f=0;for(e=d?e:e[Symbol.iterator]();;){if(d){if(f>=e.length)break;var h=e[f++]}else{f=e.next();if(f.done)break;h=f.value}this.nodes.splice(a,0,h)}for(var n in this.indexes)e=this.indexes[n],a<=e&&(this.indexes[n]=e+ -c.length);return this};k.prototype.insertAfter=function(a,b){a=this.index(a);var c=this.normalize(b,this.nodes[a]).reverse();$jscomp.initSymbol();$jscomp.initSymbolIterator();var e=c,d=Array.isArray(e),f=0;for(e=d?e:e[Symbol.iterator]();;){if(d){if(f>=e.length)break;var h=e[f++]}else{f=e.next();if(f.done)break;h=f.value}this.nodes.splice(a+1,0,h)}for(var n in this.indexes)e=this.indexes[n],a=a&&(this.indexes[b]=c-1)}return this};k.prototype.removeAll=function(){$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=this.nodes,b=Array.isArray(a),c=0;for(a=b?a:a[Symbol.iterator]();;){if(b){if(c>=a.length)break;var d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}d.parent=void 0}this.nodes=[];return this};k.prototype.replaceValues=function(a,b,c){c||(c=b,b={});this.walkDecls(function(e){b.props&&-1=== -b.props.indexOf(e.prop)||b.fast&&-1===e.value.indexOf(b.fast)||(e.value=e.value.replace(a,c))});return this};k.prototype.every=function(a){return this.nodes.every(a)};k.prototype.some=function(a){return this.nodes.some(a)};k.prototype.index=function(a){return"number"===typeof a?a:this.nodes.indexOf(a)};k.prototype.normalize=function(c,d){var e=this;if("string"===typeof c){var h=a("./parse");c=f(h(c).nodes)}else if(Array.isArray(c)){c=c.slice(0);$jscomp.initSymbol();$jscomp.initSymbolIterator();h= -c;var k=Array.isArray(h),n=0;for(h=k?h:h[Symbol.iterator]();;){if(k){if(n>=h.length)break;var g=h[n++]}else{n=h.next();if(n.done)break;g=n.value}g.parent&&g.parent.removeChild(g,"ignore")}}else if("root"===c.type)for(c=c.nodes.slice(0),$jscomp.initSymbol(),$jscomp.initSymbolIterator(),h=c,k=Array.isArray(h),n=0,h=k?h:h[Symbol.iterator]();;){if(k){if(n>=h.length)break;g=h[n++]}else{n=h.next();if(n.done)break;g=n.value}g.parent&&g.parent.removeChild(g,"ignore")}else if(c.type)c=[c];else if(c.prop){if("undefined"=== -typeof c.value)throw Error("Value field is missed in node creation");"string"!==typeof c.value&&(c.value=String(c.value));c=[new b["default"](c)]}else if(c.selector)c=[new (a("./rule"))(c)];else if(c.name)c=[new (a("./at-rule"))(c)];else if(c.text)c=[new p["default"](c)];else throw Error("Unknown node type in node creation");return c.map(function(a){"function"!==typeof a.before&&(a=e.rebuild(a));a.parent&&a.parent.removeChild(a);"undefined"===typeof a.raws.before&&d&&"undefined"!==typeof d.raws.before&& -(a.raws.before=d.raws.before.replace(/[^\s]/g,""));a.parent=e;return a})};k.prototype.rebuild=function(c,d){var e=this,f=void 0;"root"===c.type?f=new (a("./root")):"atrule"===c.type?f=new (a("./at-rule")):"rule"===c.type?f=new (a("./rule")):"decl"===c.type?f=new b["default"]:"comment"===c.type&&(f=new p["default"]);for(var h in c)"nodes"===h?f.nodes=c.nodes.map(function(a){return e.rebuild(a,f)}):"parent"===h&&d?f.parent=d:c.hasOwnProperty(h)&&(f[h]=c[h]);return f};d(k,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}}, -{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]);return k}(k(c)["default"]);g["default"]=c;l.exports=g["default"]},{"./at-rule":281,"./comment":282,"./declaration":285,"./node":290,"./parse":291,"./root":297,"./rule":298}],284:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}g.__esModule=!0;var h=a("supports-color"),f=k(h);h=a("chalk");var d=k(h);a=a("./terminal-highlight");var c=k(a);a=function(){function a(b,c,d,e,f,h){if(!(this instanceof -a))throw new TypeError("Cannot call a class as a function");this.name="CssSyntaxError";this.reason=b;f&&(this.file=f);e&&(this.source=e);h&&(this.plugin=h);"undefined"!==typeof c&&"undefined"!==typeof d&&(this.line=c,this.column=d);this.setMessage();Error.captureStackTrace&&Error.captureStackTrace(this,a)}a.prototype.setMessage=function(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";"undefined"!==typeof this.line&&(this.message+=":"+this.line+":"+this.column); -this.message+=": "+this.reason};a.prototype.showSourceCode=function(a){function b(b){return a?d["default"].gray(b):b}var h=this;if(!this.source)return"";var e=this.source;"undefined"===typeof a&&(a=f["default"]);a&&(e=(0,c["default"])(e));e=e.split(/\r?\n/);var k=Math.max(this.line-3,0),g=Math.min(this.line+2,e.length),p=String(g).length;return e.slice(k,g).map(function(c,e){var f=k+1+e,n=" "+(" "+f).slice(-p)+" | ";return f===h.line?(f=b(n.replace(/\d/g," "))+c.slice(0,h.column-1).replace(/[^\t]/g, -" "),(a?d["default"].red.bold(">"):">")+b(n)+c+"\n "+f+(a?d["default"].red.bold("^"):"^")):" "+b(n)+c}).join("\n")};a.prototype.toString=function(){var a=this.showSourceCode();a&&(a="\n\n"+a+"\n");return this.name+": "+this.message+a};return a}();g["default"]=a;l.exports=g["default"]},{"./terminal-highlight":301,chalk:54,"supports-color":606}],285:[function(a,l,g){function k(a,f){if("function"!==typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f); -a.prototype=Object.create(f&&f.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});f&&(Object.setPrototypeOf?Object.setPrototypeOf(a,f):a.__proto__=f)}g.__esModule=!0;a=a("./node");a=function(a){function f(d){if(!(this instanceof f))throw new TypeError("Cannot call a class as a function");d=a.call(this,d);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");d=!d||"object"!==typeof d&&"function"!==typeof d?this:d;d.type="decl";return d} -k(f,a);return f}((a&&a.__esModule?a:{"default":a})["default"]);g["default"]=a;l.exports=g["default"]},{"./node":290}],286:[function(a,l,g){arguments[4][224][0].apply(g,arguments)},{"./css-syntax-error":284,"./previous-map":294,dup:224,path:14}],287:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}function h(a){return"object"===("undefined"===typeof a?"undefined":d(a))&&"function"===typeof a.then}g.__esModule=!0;var f=function(){function a(a,b){for(var c=0;cparseInt(h[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+e+", but "+c+" uses "+d+". Perhaps this is the source of the error below.")}}catch(L){console&&console.error&&console.error(L)}};a.prototype.asyncTick=function(a,b){var c=this;if(this.plugin>= -this.processor.plugins.length)return this.processed=!0,a();try{var d=this.processor.plugins[this.plugin],e=this.run(d);this.plugin+=1;h(e)?e.then(function(){c.asyncTick(a,b)})["catch"](function(a){c.handleError(a,d);c.processed=!0;b(a)}):this.asyncTick(a,b)}catch(x){this.processed=!0,b(x)}};a.prototype.async=function(){var a=this;return this.processed?new Promise(function(b,c){a.error?c(a.error):b(a.stringify())}):this.processing?this.processing:this.processing=(new Promise(function(b,c){if(a.error)return c(a.error); -a.plugin=0;a.asyncTick(b,c)})).then(function(){a.processed=!0;return a.stringify()})};a.prototype.sync=function(){if(this.processed)return this.result;this.processed=!0;if(this.processing)throw Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;$jscomp.initSymbol();$jscomp.initSymbolIterator();var a=this.result.processor.plugins,b=Array.isArray(a),c=0;for(a=b?a:a[Symbol.iterator]();;){if(b){if(c>=a.length)break;var d=a[c++]}else{c=a.next();if(c.done)break; -d=c.value}d=this.run(d);if(h(d))throw Error("Use process(css).then(cb) to work with async plugins");}return this.result};a.prototype.run=function(a){this.result.lastPlugin=a;try{return a(this.result.root,this.result)}catch(r){throw this.handleError(r,a),r;}};a.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0;this.sync();var a=this.result.opts,c=p["default"];a.syntax&&(c=a.syntax.stringify);a.stringifier&&(c=a.stringifier);c.stringify&&(c=c.stringify);a=(new b["default"](c, -this.result.root,this.result.opts)).generate();this.result.css=a[0];this.result.map=a[1];return this.result};f(a,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]); -return a}();g["default"]=a;l.exports=g["default"]},{"./map-generator":289,"./parse":291,"./result":296,"./stringify":300}],288:[function(a,l,g){arguments[4][226][0].apply(g,arguments)},{dup:226}],289:[function(a,l,g){(function(k){g.__esModule=!0;var h=a("source-map"),f=h&&h.__esModule?h:{"default":h},d=(h=a("path"))&&h.__esModule?h:{"default":h};h=function(){function a(b,c,d){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.stringify=b;this.mapOpts=d.map||{};this.root= -c;this.opts=d}a.prototype.isMap=function(){return"undefined"!==typeof this.opts.map?!!this.opts.map:0",original:{line:1,column:0},generated:{line:c,column:d-1}}));(h=b.match(/\n/g))?(c+=h.length,e=b.lastIndexOf("\n"),d=b.length-e):d+=b.length;f&&"start"!==k&&(f.source&&f.source.end?a.map.addMapping({source:a.sourcePath(f),generated:{line:c,column:d-1},original:{line:f.source.end.line,column:f.source.end.column}}): -a.map.addMapping({source:"",original:{line:1,column:0},generated:{line:c,column:d-1}}))})};a.prototype.generate=function(){this.clearAnnotation();if(this.isMap())return this.generateMap();var a="";this.stringify(this.root,function(b){a+=b});return[a]};return a}();g["default"]=h;l.exports=g["default"]}).call(this,a("buffer").Buffer)},{buffer:5,path:14,"source-map":328}],290:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}g.__esModule=!0;$jscomp.initSymbol();$jscomp.initSymbol(); -$jscomp.initSymbolIterator();var h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(a){return typeof a}:function(a){$jscomp.initSymbol();$jscomp.initSymbol();$jscomp.initSymbol();return a&&"function"===typeof Symbol&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a},f=a("./css-syntax-error"),d=k(f);f=a("./stringifier");var c=k(f);f=a("./stringify");var b=k(f);a=a("./warn-once");var p=k(a),m=function e(a,b){var c=new a.constructor,d;for(d in a)if(a.hasOwnProperty(d)){var f= -a[d],k="undefined"===typeof f?"undefined":h(f);"parent"===d&&"object"===k?b&&(c[d]=b):"source"===d?c[d]=f:f instanceof Array?c[d]=f.map(function(a){return e(a,c)}):("object"===k&&null!==f&&(f=e(f)),c[d]=f)}return c};a=function(){function a(){var b=0=a.length)break;var d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}this.parent.insertBefore(this,d)}this.remove()}return this};a.prototype.moveTo=function(a){(0,p["default"])("Node#moveTo was deprecated. Use Container#append."); -this.cleanRaws(this.root()===a.root());this.remove();a.append(this);return this};a.prototype.moveBefore=function(a){(0,p["default"])("Node#moveBefore was deprecated. Use Node#before.");this.cleanRaws(this.root()===a.root());this.remove();a.parent.insertBefore(a,this);return this};a.prototype.moveAfter=function(a){(0,p["default"])("Node#moveAfter was deprecated. Use Node#after.");this.cleanRaws(this.root()===a.root());this.remove();a.parent.insertAfter(a,this);return this};a.prototype.next=function(){var a= -this.parent.index(this);return this.parent.nodes[a+1]};a.prototype.prev=function(){var a=this.parent.index(this);return this.parent.nodes[a-1]};a.prototype.before=function(a){this.parent.insertBefore(this,a);return this};a.prototype.after=function(a){this.parent.insertAfter(this,a);return this};a.prototype.toJSON=function(){var a={},b;for(b in this)if(this.hasOwnProperty(b)&&"parent"!==b){var c=this[b];c instanceof Array?a[b]=c.map(function(a){return"object"===("undefined"===typeof a?"undefined": -h(a))&&a.toJSON?a.toJSON():a}):"object"===("undefined"===typeof c?"undefined":h(c))&&c.toJSON?a[b]=c.toJSON():a[b]=c}return a};a.prototype.raw=function(a,b){return(new c["default"]).raw(this,a,b)};a.prototype.root=function(){for(var a=this;a.parent;)a=a.parent;return a};a.prototype.cleanRaws=function(a){delete this.raws.before;delete this.raws.after;a||delete this.raws.between};a.prototype.positionInside=function(a){for(var b=this.toString(),c=this.source.start.column,d=this.source.start.line,e=0;e< -a;e++)"\n"===b[e]?(c=1,d+=1):c+=1;return{line:d,column:c}};a.prototype.positionBy=function(a){var b=this.source.start;a.index?b=this.positionInside(a.index):a.word&&(a=this.toString().indexOf(a.word),-1!==a&&(b=this.positionInside(a)));return b};return a}();g["default"]=a;l.exports=g["default"]},{"./css-syntax-error":284,"./stringifier":299,"./stringify":300,"./warn-once":304}],291:[function(a,l,g){g.__esModule=!0;g["default"]=function(a,c){if(c&&c.safe)throw Error('Option safe was removed. Use parser: require("postcss-safe-parser")'); -var b=new f["default"](a,c);b=new h["default"](b);try{b.parse()}catch(p){throw"CssSyntaxError"===p.name&&c&&c.from&&(/\.scss$/i.test(c.from)?p.message+="\nYou tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser":/\.sass/i.test(c.from)?p.message+="\nYou tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser":/\.less$/i.test(c.from)&&(p.message+="\nYou tried to parse Less with the standard CSS parser; try again with the postcss-less parser")), -p;}return b.root};var k=a("./parser"),h=k&&k.__esModule?k:{"default":k},f=(a=a("./input"))&&a.__esModule?a:{"default":a};l.exports=g["default"]},{"./input":286,"./parser":292}],292:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}g.__esModule=!0;var h=a("./declaration"),f=k(h);h=a("./tokenize");var d=k(h);h=a("./comment");var c=k(h);h=a("./at-rule");var b=k(h);h=a("./root");var p=k(h);a=a("./rule");var m=k(a);a=function(){function a(b){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function"); -this.input=b;this.current=this.root=new p["default"];this.spaces="";this.semicolon=!1;this.createTokenizer();this.root.source={input:b,start:{line:1,column:1}}}a.prototype.createTokenizer=function(){this.tokenizer=(0,d["default"])(this.input)};a.prototype.parse=function(){for(var a;!this.tokenizer.endOfFile();)switch(a=this.tokenizer.nextToken(),a[0]){case "space":this.spaces+=a[1];break;case ";":this.freeSemicolon(a);break;case "}":this.end(a);break;case "comment":this.comment(a);break;case "at-word":this.atrule(a); -break;case "{":this.emptyRule(a);break;default:this.other(a)}this.endFile()};a.prototype.comment=function(a){var b=new c["default"];this.init(b,a[2],a[3]);b.source.end={line:a[4],column:a[5]};a=a[1].slice(2,-2);/^\s*$/.test(a)?(b.text="",b.raws.left=a,b.raws.right=""):(a=a.match(/^(\s*)([^]*[^\s])(\s*)$/),b.text=a[2],b.raws.left=a[1],b.raws.right=a[3])};a.prototype.emptyRule=function(a){var b=new m["default"];this.init(b,a[2],a[3]);b.selector="";b.raws.between="";this.current=b};a.prototype.other= -function(a){for(var b=!1,c=!1,d=null,e=[],f=[],h=a;h;){a=h[0];f.push(h);if("("===a||"["===a)d||(d=h),e.push("("===a?")":"]");else if(0===e.length)if(";"===a){if(c){this.decl(f);return}break}else{if("{"===a){this.rule(f);return}if("}"===a){this.tokenizer.back(f.pop());b=!0;break}else":"===a&&(c=!0)}else a===e[e.length-1]&&(e.pop(),0===e.length&&(d=null));h=this.tokenizer.nextToken()}this.tokenizer.endOfFile()&&(b=!0);0=a.length)break;var f=a[d++]}else{d=a.next();if(d.done)break;f=d.value}f.postcss&&(f=f.postcss);if("object"===("undefined"===typeof f?"undefined":k(f))&&Array.isArray(f.plugins))c= -c.concat(f.plugins);else if("function"===typeof f)c.push(f);else{if("object"===("undefined"===typeof f?"undefined":k(f))&&(f.parse||f.stringify))throw Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.");throw Error(f+" is not a PostCSS plugin");}}return c};return a}();g["default"]=a;l.exports=g["default"]},{"./lazy-result":287}],296:[function(a,l,g){arguments[4][233][0].apply(g,arguments)}, -{"./warning":305,dup:233}],297:[function(a,l,g){function k(a,d){if("function"!==typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);a.prototype=Object.create(d&&d.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}});d&&(Object.setPrototypeOf?Object.setPrototypeOf(a,d):a.__proto__=d)}g.__esModule=!0;var h=a("./container");h=function(f){function d(a){if(!(this instanceof d))throw new TypeError("Cannot call a class as a function"); -a=f.call(this,a);if(!this)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");a=!a||"object"!==typeof a&&"function"!==typeof a?this:a;a.type="root";a.nodes||(a.nodes=[]);return a}k(d,f);d.prototype.removeChild=function(a,b){var c=this.index(a);!b&&0===c&&1=d.length)break;var e=d[h++]}else{h=d.next();if(h.done)break;e=h.value}e.raws.before=b.raws.before}}return a};d.prototype.toResult=function(){var c=0=ta)){y=l.charCodeAt(T);if(y===c||y===p||y===q&&l.charCodeAt(T+1)!==c)v=T,U+=1;switch(y){case c:case b:case m:case q:case p:z=T;do z+=1,y=l.charCodeAt(z),y===c&&(v=z,U+=1);while(y===b||y===c||y===m||y===q||y===p);ea=["space",l.slice(T,z)];T=z-1;break;case e:ea=["[","[",U,T-v];break;case n:ea=["]","]",U,T-v];break;case u:ea=["{","{",U,T-v];break;case w:ea=["}","}",U,T-v];break;case L:ea=[":",":",U,T-v];break;case x:ea=[";",";",U,T-v];break;case r:ha= -Sa.length?Sa.pop()[1]:"";ra=l.charCodeAt(T+1);if("url"===ha&&ra!==k&&ra!==h&&ra!==b&&ra!==c&&ra!==m&&ra!==p&&ra!==q){z=T;do{S=!1;z=l.indexOf(")",z+1);if(-1===z)if(I){z=T;break}else g("bracket");for(ca=z;l.charCodeAt(ca-1)===f;)--ca,S=!S}while(S);ea=["brackets",l.slice(T,z+1),U,T-v,U,z-v];T=z}else z=l.indexOf(")",T+1),N=l.slice(T,z+1),-1===z||M.test(N)?ea=["(","(",U,T-v]:(ea=["brackets",N,U,T-v,U,z-v],T=z);break;case t:ea=[")",")",U,T-v];break;case k:case h:H=y===k?"'":'"';z=T;do{S=!1;z=l.indexOf(H, -z+1);if(-1===z)if(I){z=T+1;break}else g("string");for(ca=z;l.charCodeAt(ca-1)===f;)--ca,S=!S}while(S);N=l.slice(T,z+1);Q=N.split("\n");J=Q.length-1;0=ta}}}; -var k=39,h=34,f=92,d=47,c=10,b=32,p=12,m=9,q=13,e=91,n=93,r=40,t=41,u=123,w=125,x=59,A=42,L=58,C=64,F=/[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g,K=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,M=/.[\\\/\("'\n]/,B=/[a-f0-9]/i;l.exports=g["default"]},{}],303:[function(a,l,g){g.__esModule=!0;g["default"]={prefix:function(a){return(a=a.match(/^(-\w+-)/))?a[0]:""},unprefixed:function(a){return a.replace(/^-\w+-/,"")}};l.exports=g["default"]},{}],304:[function(a,l,g){arguments[4][240][0].apply(g,arguments)},{dup:240}], -305:[function(a,l,g){arguments[4][241][0].apply(g,arguments)},{dup:241}],306:[function(a,l,g){g.before=function(a,f){return a.replace(f,function(a){var c=Math.random().toString().slice(2,7);k[c]=a;return"__ID"+c+"__"})};g.after=function(a){return a.replace(/__ID(.{5})__/g,function(a,d){return k[d]})};var k={}},{}],307:[function(a,l,g){var k=a("is-number"),h=a("kind-of");l.exports=function(a,c,b){if("undefined"===typeof a)throw Error("randomatic expects a string or number.");var d=!1;1===arguments.length&& -("string"===typeof a?c=a.length:k(a)&&(b={},c=a,a="*"));"object"===h(c)&&c.hasOwnProperty("chars")&&(b=c,a=b.chars,c=a.length,d=!0);var g=b||{},l="",e="";-1!==a.indexOf("?")&&(l+=g.chars);-1!==a.indexOf("a")&&(l+=f.lower);-1!==a.indexOf("A")&&(l+=f.upper);-1!==a.indexOf("0")&&(l+=f.number);-1!==a.indexOf("!")&&(l+=f.special);-1!==a.indexOf("*")&&(l+=f.all);for(d&&(l+=a);c--;)e+=l.charAt(parseInt(Math.random()*l.length,10));return e};var f={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ", -number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};f.all=f.lower+f.upper+f.number+f.special},{"is-number":308,"kind-of":310}],308:[function(a,l,g){var k=a("kind-of");l.exports=function(a){var f=k(a);if("string"===f){if(!a.trim())return!1}else if("number"!==f)return!1;return 0<=a-a+1}},{"kind-of":309}],309:[function(a,l,g){arguments[4][161][0].apply(g,arguments)},{dup:161,"is-buffer":113}],310:[function(a,l,g){var k=a("is-buffer"),h=Object.prototype.toString;l.exports=function(a){if("undefined"=== -typeof a)return"undefined";if(null===a)return"null";if(!0===a||!1===a||a instanceof Boolean)return"boolean";if("string"===typeof a||a instanceof String)return"string";if("number"===typeof a||a instanceof Number)return"number";if("function"===typeof a||a instanceof Function)return"function";if("undefined"!==typeof Array.isArray&&Array.isArray(a))return"array";if(a instanceof RegExp)return"regexp";if(a instanceof Date)return"date";var d=h.call(a);return"[object RegExp]"===d?"regexp":"[object Date]"=== -d?"date":"[object Arguments]"===d?"arguments":"[object Error]"===d?"error":"[object Promise]"===d?"promise":k(a)?"buffer":"[object Set]"===d?"set":"[object WeakSet]"===d?"weakset":"[object Map]"===d?"map":"[object WeakMap]"===d?"weakmap":"[object Symbol]"===d?"symbol":"[object Int8Array]"===d?"int8array":"[object Uint8Array]"===d?"uint8array":"[object Uint8ClampedArray]"===d?"uint8clampedarray":"[object Int16Array]"===d?"int16array":"[object Uint16Array]"===d?"uint16array":"[object Int32Array]"=== -d?"int32array":"[object Uint32Array]"===d?"uint32array":"[object Float32Array]"===d?"float32array":"[object Float64Array]"===d?"float64array":"object"}},{"is-buffer":113}],311:[function(a,l,g){a("is-primitive");var k=a("is-equal-shallow"),h={},f={};l.exports=function(a,c,b){var d="_default_",g;if(!c&&!b)return"function"!==typeof a?a:h[d]||(h[d]=a(c));if("string"===typeof c){if(!b)return h[c]||(h[c]=a(c));d=c}else b=c;if((g=f[d])&&k(g.opts,b))return g.regex;c=a=a(c,b);f[d]={regex:c,opts:b};return a}; -l.exports.cache=f;l.exports.basic=h},{"is-equal-shallow":116,"is-primitive":125}],312:[function(a,l,g){(function(a){function h(a){var c=a[a.length-1];return 1=c)return k.substr(0,c);for(;c>k.length&&1>=1,a+=a;k+=a;return k=k.substr(0,c)}},{}],315:[function(a,l,g){var k=a("module"),h=a("path");l.exports=function(a,d,c){"object"===typeof d&&(c=d,d=void 0);c=c||{};d=d||"";c.appendPaths=c.appendPaths||[];c.prependPaths=c.prependPaths||[];if("string"!==typeof a)throw Error("code must be a string, not "+typeof a);var b=k._nodeModulePaths(h.dirname(d)), -f=new k(d,l.parent);f.filename=d;f.paths=[].concat(c.prependPaths).concat(b).concat(c.appendPaths);f._compile(a,d);return f.exports}},{module:1,path:14}],316:[function(a,l,g){var k=a("path"),h=a("module"),f=function(a,c,b){if("string"!==typeof a)throw new TypeError("Expected `fromDir` to be of type `string`, got `"+typeof a+"`");if("string"!==typeof c)throw new TypeError("Expected `moduleId` to be of type `string`, got `"+typeof c+"`");a=k.resolve(a);var d=k.join(a,"noop.js"),f=function(){return h._resolveFilename(c, -{id:d,filename:d,paths:h._nodeModulePaths(a)})};if(b)try{return f()}catch(q){return null}return f()};l.exports=function(a,c){return f(a,c)};l.exports.silent=function(a,c){return f(a,c,!0)}},{module:1,path:14}],317:[function(a,l,g){(function(k){function h(a){"unlink chmod stat lstat rmdir readdir".split(" ").forEach(function(b){a[b]=a[b]||u[b];b+="Sync";a[b]=a[b]||u[b]});a.maxBusyTries=a.maxBusyTries||3;a.emfileWait=a.emfileWait||1E3;!1===a.glob&&(a.disableGlob=!0);a.disableGlob=a.disableGlob||!1; -a.glob=a.glob||x}function f(a,b,c){function e(a,e){if(a)return c(a);g=e.length;if(0===g)return c();e.forEach(function(a){d(a,b,function H(e){if(e){if(("EBUSY"===e.code||"ENOTEMPTY"===e.code||"EPERM"===e.code)&&fa?(-a<<1)+1:(a<<1)+0;do a=d&31,d>>>=5,0=c)throw Error("Expected more digits in base 64 VLQ value.");var g=k.decode(a.charCodeAt(f++));if(-1===g)throw Error("Invalid base64 digit: "+ -a.charAt(f-1));var l=!!(g&32);g&=31;b+=g<>1;d.value=1===(b&1)?-a:a;d.rest=f}},{"./base64":320}],320:[function(a,l,g){var k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");g.encode=function(a){if(0<=a&&a=a?a-65:97<=a&&122>=a?a-97+26:48<=a&&57>=a?a-48+52:43==a?62:47==a?63:-1}},{}],321:[function(a,l,g){function k(a,f,d,c,b,l){var h=Math.floor((f- -a)/2)+a,p=b(d,c[h],!0);return 0===p?h:0a?-1:a}g.GREATEST_LOWER_BOUND=1;g.LEAST_UPPER_BOUND=2;g.search=function(a,f,d,c){if(0===f.length)return-1;a=k(-1,f.length,a,f,d,c||g.GREATEST_LOWER_BOUND);if(0>a)return-1;for(;0<=a-1&&0===d(f[a],f[a-1],!0);)--a;return a}},{}],322:[function(a,l,g){function k(){this._array=[];this._sorted=!0;this._last={generatedLine:-1,generatedColumn:0}}var h=a("./util"); -k.prototype.unsortedForEach=function(a,d){this._array.forEach(a,d)};k.prototype.add=function(a){var d=this._last,c=d.generatedLine,b=a.generatedLine,f=d.generatedColumn,k=a.generatedColumn;b>c||b==c&&k>=f||0>=h.compareByGeneratedPositionsInflated(d,a)?this._last=a:this._sorted=!1;this._array.push(a)};k.prototype.toArray=function(){this._sorted||(this._array.sort(h.compareByGeneratedPositionsInflated),this._sorted=!0);return this._array};g.MappingList=k},{"./util":327}],323:[function(a,l,g){function k(a, -d,c){var b=a[d];a[d]=a[c];a[c]=b}function h(a,d,c,b){if(c=d(a[l],g)&&(f+=1,k(a,f,l));k(a,f+1,l);f+=1;h(a,d,c,f-1);h(a,d,f+1,b)}}g.quickSort=function(a,d){h(a,d,0,a.length-1)}},{}],324:[function(a,l,g){function k(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));return null!=b.sections?new d(b):new h(b)}function h(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));a=c.getArg(b, -"version");var d=c.getArg(b,"sources"),e=c.getArg(b,"names",[]),f=c.getArg(b,"sourceRoot",null),h=c.getArg(b,"sourcesContent",null),k=c.getArg(b,"mappings");b=c.getArg(b,"file",null);if(a!=this._version)throw Error("Unsupported version: "+a);d=d.map(String).map(c.normalize).map(function(a){return f&&c.isAbsolute(f)&&c.isAbsolute(a)?c.relative(f,a):a});this._names=p.fromArray(e.map(String),!0);this._sources=p.fromArray(d,!0);this.sourceRoot=f;this.sourcesContent=h;this._mappings=k;this.file=b}function f(){this.generatedColumn= -this.generatedLine=0;this.name=this.originalColumn=this.originalLine=this.source=null}function d(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));a=c.getArg(b,"version");b=c.getArg(b,"sections");if(a!=this._version)throw Error("Unsupported version: "+a);this._sources=new p;this._names=new p;var d={line:-1,column:0};this._sections=b.map(function(a){if(a.url)throw Error("Support for url field in sections not implemented.");var b=c.getArg(a,"offset"),e=c.getArg(b,"line"),f=c.getArg(b, -"column");if(e=a[d])throw new TypeError("Line must be greater than or equal to 1, got "+a[d]);if(0>a[f])throw new TypeError("Column must be greater than or equal to 0, got "+a[f]);return b.search(a,c,h,k)};h.prototype.computeColumnSpans=function(){for(var a=0;a=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}):!1};h.prototype.sourceContentFor=function(a,b){if(!this.sourcesContent)return null;null!=this.sourceRoot&&(a=c.relative(this.sourceRoot, -a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var d;if(null!=this.sourceRoot&&(d=c.urlParse(this.sourceRoot))){var e=a.replace(/^file:\/\//,"");if("file"==d.scheme&&this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if((!d.path||"/"==d.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(b)return null;throw Error('"'+a+'" is not in the SourceMap.');};h.prototype.generatedPositionFor=function(a){var b= -c.getArg(a,"source");null!=this.sourceRoot&&(b=c.relative(this.sourceRoot,b));if(!this._sources.has(b))return{line:null,column:null,lastColumn:null};b=this._sources.indexOf(b);b={source:b,originalLine:c.getArg(a,"line"),originalColumn:c.getArg(a,"column")};a=this._findMapping(b,this._originalMappings,"originalLine","originalColumn",c.compareByOriginalPositions,c.getArg(a,"bias",k.GREATEST_LOWER_BOUND));return 0<=a&&(a=this._originalMappings[a],a.source===b.source)?{line:c.getArg(a,"generatedLine", -null),column:c.getArg(a,"generatedColumn",null),lastColumn:c.getArg(a,"lastGeneratedColumn",null)}:{line:null,column:null,lastColumn:null}};g.BasicSourceMapConsumer=h;d.prototype=Object.create(k.prototype);d.prototype.constructor=k;d.prototype._version=3;Object.defineProperty(d.prototype,"sources",{get:function(){for(var a=[],b=0;bb||95!==a.charCodeAt(b-1)||95!==a.charCodeAt(b-2)||111!==a.charCodeAt(b-3)||116!==a.charCodeAt(b-4)||111!==a.charCodeAt(b-5)||114!==a.charCodeAt(b-6)||112!==a.charCodeAt(b-7)||95!==a.charCodeAt(b-8)||95!== -a.charCodeAt(b-9))return!1;for(b-=10;0<=b;b--)if(36!==a.charCodeAt(b))return!1;return!0}g.getArg=function(a,b,c){if(b in a)return a[b];if(3===arguments.length)return c;throw Error('"'+b+'" is a required argument.');};var m=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.]*)(?::(\d+))?(\S*)$/,q=/^data:.+\,.+$/;g.urlParse=k;g.urlGenerate=h;g.normalize=f;g.join=function(a,b){""===a&&(a=".");""===b&&(b=".");var c=k(b),d=k(a);d&&(a=d.path||"/");if(c&&!c.scheme)return d&&(c.scheme=d.scheme),h(c);if(c||b.match(q))return b; -if(d&&!d.host&&!d.path)return d.host=b,h(d);c="/"===b.charAt(0)?b:f(a.replace(/\/+$/,"")+"/"+b);return d?(d.path=c,h(d)):c};g.isAbsolute=function(a){return"/"===a.charAt(0)||!!a.match(m)};g.relative=function(a,b){""===a&&(a=".");a=a.replace(/\/$/,"");for(var c=0;0!==b.indexOf(a+"/");){var d=a.lastIndexOf("/");if(0>d)return b;a=a.slice(0,d);if(a.match(/^([^\/]+:\/)?\/*$/))return b;++c}return Array(c+1).join("../")+b.substr(a.length+1)};a=!("__proto__"in Object.create(null));g.toSetString=a?d:c;g.fromSetString= -a?d:b;g.compareByOriginalPositions=function(a,b,c){var d=a.source-b.source;if(0!==d)return d;d=a.originalLine-b.originalLine;if(0!==d)return d;d=a.originalColumn-b.originalColumn;if(0!==d||c)return d;d=a.generatedColumn-b.generatedColumn;if(0!==d)return d;d=a.generatedLine-b.generatedLine;return 0!==d?d:a.name-b.name};g.compareByGeneratedPositionsDeflated=function(a,b,c){var d=a.generatedLine-b.generatedLine;if(0!==d)return d;d=a.generatedColumn-b.generatedColumn;if(0!==d||c)return d;d=a.source-b.source; -if(0!==d)return d;d=a.originalLine-b.originalLine;if(0!==d)return d;d=a.originalColumn-b.originalColumn;return 0!==d?d:a.name-b.name};g.compareByGeneratedPositionsInflated=function(a,b){var c=a.generatedLine-b.generatedLine;if(0!==c)return c;c=a.generatedColumn-b.generatedColumn;if(0!==c)return c;c=a.source;var d=b.source;c=c===d?0:c>d?1:-1;if(0!==c)return c;c=a.originalLine-b.originalLine;if(0!==c)return c;c=a.originalColumn-b.originalColumn;0===c&&(c=a.name,d=b.name,c=c===d?0:c>d?1:-1);return c}}, -{}],328:[function(a,l,g){g.SourceMapGenerator=a("./lib/source-map-generator").SourceMapGenerator;g.SourceMapConsumer=a("./lib/source-map-consumer").SourceMapConsumer;g.SourceNode=a("./lib/source-node").SourceNode},{"./lib/source-map-consumer":324,"./lib/source-map-generator":325,"./lib/source-node":326}],329:[function(a,l,g){a=function(){var a=function(a){var f=a,d={a:0,b:0,c:0},c=[];var b=function(b,h){var k;if(b.test(f)){var e=f.match(b);var g=0;for(k=e.length;g~\.\[:]+)/g,"a");b(/(\.[^\s\+>~\.\[:]+)/g,"b");b(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c");b(/(:[\w-]+\([^\)]*\))/gi,"b");b(/(:[^\s\+>~\.\[:]+)/g,"b");f=f.replace(/[\*\s\+>~]/g," ");f=f.replace(/[#\.]/g," ");b(/([^\s\+>~\.\[:]+)/g,"c");c.sort(function(a,b){return a.index-b.index});return{selector:a,specificity:"0,"+d.a.toString()+","+d.b.toString()+","+d.c.toString(), -specificityArray:[0,d.a,d.b,d.c],parts:c}};return{calculate:function(h){var f,d=[];h=h.split(",");var c=0;for(f=h.length;cd;d+=1){if(c[d]b[d])return 1}return 0}}}();"undefined"!==typeof g&&(g.calculate=a.calculate,g.compare=a.compare)},{}],330:[function(a,l,g){var k=a("ansi-regex")();l.exports=function(a){return"string"=== -typeof a?a.replace(k,""):a}},{"ansi-regex":43}],331:[function(a,l,g){l.exports=function(a,h){function f(a,b){var d=a.length;return 1===d&&c[b]!==a||c.substr(b,d)!==a?!1:{insideParens:K,insideFunctionArguments:M,insideComment:C,insideString:L,startIndex:b,endIndex:b+d,target:a}}function d(a){if(!A||K)if(!n||!K)if(!x||M)if(!e||!M)if(!u||L)if(!t||C)I++,h(a,I)}var c=a.source,b=a.target,k=a.comments?"skip"===a.comments:!0,g=a.strings?"skip"===a.strings:!0,l=a.functionNames?"skip"===a.functionNames:!0, -e="skip"===a.functionArguments,n="skip"===a.parentheticals,r=!1;Object.keys(a).forEach(function(b){if("only"===a[b]){if(r)throw Error('Only one syntax feature option can be the "only" one to check');r=!0}});for(var t="only"===a.comments,u="only"===a.strings,w="only"===a.functionNames,x="only"===a.functionArguments,A="only"===a.parentheticals,L=!1,C=!1,F=!1,K=!1,M=!1,B=0,I=0,D,E=Array.isArray(b),P=function(){return E?function(a){for(var c=0,d=b.length;c=b||void 0===d.end)&&(!d.rules||-1!==d.rules.indexOf(c))}var h=a("lodash");l.exports=function(a){var d=[];a.forEach(function(a){if(a._postcssResult){var b={source:a.source,ranges:[]},c=h.cloneDeep(a._postcssResult.stylelint.disabledRanges);c&&(a.warnings.forEach(function(a){var b= -c[a.rule];if(b){b=$jscomp.makeIterator(b.reverse());for(var d=b.next();!d.done;d=b.next())if(d=d.value,k(a,d)){d.used=!0;return}}b=$jscomp.makeIterator(c.all.reverse());for(d=b.next();!d.done;d=b.next())if(d=d.value,k(a,d)){d.used=!0;break}}),Object.keys(c).forEach(function(a){c[a].forEach(function(a){var c=b.ranges.find(function(b){return b.start===a.start&&b.end===a.end});a.used||c||b.ranges.push(a);a.used&&c&&h.remove(b.ranges,c)})}),b.ranges=h.sortBy(b.ranges,["start","end"]),d.push(b))}});return d}}, -{lodash:164}],345:[function(a,l,g){var k=a("lodash"),h=a("./rules");l.exports=function(a,d,c){if(null===a)return null;if(!Array.isArray(a))return[a];if(null===a[0])return null;void 0===c&&(c=k.get(h[d],"primaryOptionArray"));return!c||1===a.length&&Array.isArray(a[0])||2===a.length&&!k.isPlainObject(a[0])&&k.isPlainObject(a[1])?a:[a]}},{"./rules":429,lodash:164}],346:[function(a,l,g){(function(k){var h=a("lodash"),f=a("./createStylelint"),d=a("path"),c=a("postcss");l.exports=c.plugin("stylelint", -function(a){a=a||{};var b=f(a.rules?{config:a}:a);return function(c,f){var e=a.from||h.get(c,"source.input.file");void 0===e||d.isAbsolute(e)||(e=d.join(k.cwd(),e));return b._lintSource({filePath:e,existingPostcssResult:f})}})}).call(this,a("_process"))},{"./createStylelint":335,_process:16,lodash:164,path:14,postcss:293}],347:[function(a,l,g){function k(){var a=Array.from(arguments);return new Set(a.reduce(function(a,c){return a.concat(h.toArray(c))},[]))}var h=a("lodash");a={};a.nonLengthUnits= -new Set("% s ms deg grad turn rad Hz kHz dpi dpcm dppx".split(" "));a.lengthUnits=new Set("em ex ch rem vh vw vmin vmax vm px mm cm in pt pc q fr".split(" "));a.units=k(a.nonLengthUnits,a.lengthUnits);a.colorFunctionNames=new Set("rgb rgba hsl hsla hwb gray".split(" "));a.camelCaseFunctionNames=new Set("translateX translateY translateZ scaleX scaleY scaleZ rotateX rotateY rotateZ skewX skewY".split(" "));a.basicKeywords=new Set(["initial","inherit","unset"]);a.fontFamilyKeywords=k(a.basicKeywords, -["serif","sans-serif","cursive","fantasy","monospace"]);a.fontWeightRelativeKeywords=new Set(["bolder","lighter"]);a.fontWeightAbsoluteKeywords=new Set(["bold"]);a.fontWeightNumericKeywords=new Set("100 200 300 400 500 600 700 800 900".split(" "));a.fontWeightKeywords=k(a.basicKeywords,a.fontWeightRelativeKeywords,a.fontWeightAbsoluteKeywords,a.fontWeightNumericKeywords);a.animationNameKeywords=k(a.basicKeywords,["none"]);a.animationTimingFunctionKeywords=k(a.basicKeywords,"linear ease ease-in ease-in-out ease-out step-start step-end steps cubic-bezier".split(" ")); -a.animationIterationCountKeywords=new Set(["infinite"]);a.animationDirectionKeywords=k(a.basicKeywords,["normal","reverse","alternate","alternate-reverse"]);a.animationFillModeKeywords=new Set(["none","forwards","backwards","both"]);a.animationPlayStateKeywords=k(a.basicKeywords,["running","paused"]);a.animationShorthandKeywords=k(a.basicKeywords,a.animationNameKeywords,a.animationTimingFunctionKeywords,a.animationIterationCountKeywords,a.animationDirectionKeywords,a.animationFillModeKeywords,a.animationPlayStateKeywords); -a.levelOneAndTwoPseudoElements=new Set(["before","after","first-line","first-letter"]);a.levelThreePseudoElements=new Set("before after first-line first-letter selection spelling-error grammar-error backdrop marker placeholder shadow slotted content".split(" "));a.pseudoElements=k(a.levelOneAndTwoPseudoElements,a.levelThreePseudoElements);a.aNPlusBNotationPseudoClasses=new Set("nth-child nth-column nth-last-child nth-last-column nth-last-of-type nth-of-type".split(" "));a.linguisticPseudoClasses= -new Set(["dir","lang"]);a.atRulePagePseudoClasses=new Set(["first","right","left","blank"]);a.otherPseudoClasses=new Set("active any-link blank checked contains current default disabled drop empty enabled first-child first-of-type focus focus-ring focus-within fullscreen future has host host-context hover indeterminate in-range invalid last-child last-of-type link matches not only-child only-of-type optional out-of-range past placeholder-shown playing paused read-only read-write required root scope target user-error user-invalid val valid visited".split(" ")); -a.webkitProprietaryPseudoElements=new Set("scrollbar scrollbar-button scrollbar-track scrollbar-track-piece scrollbar-thumb scrollbar-corner resize".split(" "));a.webkitProprietaryPseudoClasses=new Set("horizontal vertical decrement increment start end double-button single-button no-button corner-present window-inactive".split(" "));a.pseudoClasses=k(a.aNPlusBNotationPseudoClasses,a.linguisticPseudoClasses,a.otherPseudoClasses);a.shorthandTimeProperties=new Set(["transition","animation"]);a.longhandTimeProperties= -new Set(["transition-duration","transition-delay","animation-duration","animation-delay"]);a.timeProperties=k(a.shorthandTimeProperties,a.longhandTimeProperties);a.camelCaseKeywords=new Set("optimizeSpeed optimizeQuality optimizeLegibility geometricPrecision currentColor crispEdges visiblePainted visibleFill visibleStroke sRGB linearRGB".split(" "));a.counterIncrementKeywords=k(a.basicKeywords,["none"]);a.counterResetKeywords=k(a.basicKeywords,["none"]);a.gridRowKeywords=k(a.basicKeywords,["auto", -"span"]);a.gridColumnKeywords=k(a.basicKeywords,["auto","span"]);a.gridAreaKeywords=k(a.basicKeywords,["auto","span"]);a.listStyleTypeKeywords=k(a.basicKeywords,"none disc circle square decimal cjk-decimal decimal-leading-zero lower-roman upper-roman lower-greek lower-alpha lower-latin upper-alpha upper-latin arabic-indic armenian bengali cambodian cjk-earthly-branch cjk-ideographic devanagari ethiopic-numeric georgian gujarati gurmukhi hebrew hiragana hiragana-iroha japanese-formal japanese-informal kannada katakana katakana-iroha khmer korean-hangul-formal korean-hanja-formal korean-hanja-informal lao lower-armenian malayalam mongolian myanmar oriya persian simp-chinese-formal simp-chinese-informal tamil telugu thai tibetan trad-chinese-formal trad-chinese-informal upper-armenian disclosure-open disclosure-closed ethiopic-halehame ethiopic-halehame-am ethiopic-halehame-ti-er ethiopic-halehame-ti-et hangul hangul-consonant urdu".split(" ")); -a.listStylePositionKeywords=k(a.basicKeywords,["inside","outside"]);a.listStyleImageKeywords=k(a.basicKeywords,["none"]);a.listStyleShorthandKeywords=k(a.basicKeywords,a.listStyleTypeKeywords,a.listStylePositionKeywords,a.listStyleImageKeywords);a.fontStyleKeywords=k(a.basicKeywords,["normal","italic","oblique"]);a.fontVariantKeywords=k(a.basicKeywords,"normal none historical-forms none common-ligatures no-common-ligatures discretionary-ligatures no-discretionary-ligatures historical-ligatures no-historical-ligatures contextual no-contextual small-caps small-caps all-small-caps petite-caps all-petite-caps unicase titling-caps lining-nums oldstyle-nums proportional-nums tabular-nums diagonal-fractions stacked-fractions ordinal slashed-zero jis78 jis83 jis90 jis04 simplified traditional full-width proportional-width ruby".split(" ")); -a.fontStretchKeywords=k(a.basicKeywords,"semi-condensed condensed extra-condensed ultra-condensed semi-expanded expanded extra-expanded ultra-expanded".split(" "));a.fontSizeKeywords=k(a.basicKeywords,"xx-small x-small small medium large x-large xx-large larger smaller".split(" "));a.lineHeightKeywords=k(a.basicKeywords,["normal"]);a.fontShorthandKeywords=k(a.basicKeywords,a.fontStyleKeywords,a.fontVariantKeywords,a.fontWeightKeywords,a.fontStretchKeywords,a.fontSizeKeywords,a.lineHeightKeywords, -a.fontFamilyKeywords);a.keyframeSelectorKeywords=new Set(["from","to"]);a.atRules=new Set("apply annotation character-variant charset counter-style custom-media custom-selector document font-face font-feature-values import keyframes media namespace nest ornaments page styleset stylistic supports swash viewport".split(" "));a.deprecatedMediaFeatureNames=new Set("device-aspect-ratio device-height device-width max-device-aspect-ratio max-device-height max-device-width min-device-aspect-ratio min-device-height min-device-width".split(" ")); -a.mediaFeatureNames=k(a.deprecatedMediaFeatureNames,"any-hover any-pointer aspect-ratio color color-gamut color-index grid height hover max-aspect-ratio max-color max-color-index max-height max-monochrome max-resolution max-width min-aspect-ratio min-color min-color-index min-height min-monochrome min-resolution min-width monochrome orientation overflow-block overflow-inline pointer resolution scan scripting update width".split(" "));a.systemColors=new Set("activeborder activecaption appworkspace background buttonface buttonhighlight buttonshadow buttontext captiontext graytext highlight highlighttext inactiveborder inactivecaption inactivecaptiontext infobackground infotext menu menutext scrollbar threeddarkshadow threedface threedhighlight threedlightshadow threedshadow window windowframe windowtext".split(" ")); -a.nonStandardHtmlTags=new Set("acronym applet basefont big blink center content dir font frame frameset hgroup isindex keygen listing marquee noembed plaintext spacer strike tt xmp".split(" "));l.exports=a},{lodash:164}],348:[function(a,l,g){l.exports={aliceblue:{hex:["#f0f8ff","#fff0f8ff"],func:[]},antiquewhite:{hex:["#faebd7","#fffaebd7"],func:[]},aqua:{hex:["#00ffff","#ff00ffff","#0ff","#f0ff"],func:[]},aquamarine:{hex:["#7fffd4","#ff7fffd4"],func:[]},azure:{hex:["#f0ffff","#fff0ffff"],func:[]}, -beige:{hex:["#f5f5dc","#fff5f5dc"],func:[]},bisque:{hex:["#ffe4c4","#ffffe4c4"],func:[]},black:{hex:["#000000","#ff000000","#000","#f000"],func:[]},blanchedalmond:{hex:["#ffebcd","#ffffebcd"],func:[]},blue:{hex:["#0000ff","#ff0000ff","#00f","#f00f"],func:[]},blueviolet:{hex:["#8a2be2","#ff8a2be2"],func:[]},brown:{hex:["#a52a2a","#ffa52a2a"],func:[]},burlywood:{hex:["#deb887","#ffdeb887"],func:[]},cadetblue:{hex:["#5f9ea0","#ff5f9ea0"],func:[]},chartreuse:{hex:["#7fff00","#ff7fff00"],func:[]},chocolate:{hex:["#d2691e", -"#ffd2691e"],func:[]},coral:{hex:["#ff7f50","#ffff7f50"],func:[]},cornflowerblue:{hex:["#6495ed","#ff6495ed"],func:[]},cornsilk:{hex:["#fff8dc","#fffff8dc"],func:[]},crimson:{hex:["#dc143c","#ffdc143c"],func:[]},cyan:{hex:["#00ffff","#ff00ffff","#0ff","#f0ff"],func:[]},darkblue:{hex:["#00008b","#ff00008b"],func:[]},darkcyan:{hex:["#008b8b","#ff008b8b"],func:[]},darkgoldenrod:{hex:["#b8860b","#ffb8860b"],func:[]},darkgray:{hex:["#a9a9a9","#ffa9a9a9"],func:[]},darkgreen:{hex:["#006400","#ff006400"], -func:[]},darkgrey:{hex:["#a9a9a9","#ffa9a9a9"],func:[]},darkkhaki:{hex:["#bdb76b","#ffbdb76b"],func:[]},darkmagenta:{hex:["#8b008b","#ff8b008b"],func:[]},darkolivegreen:{hex:["#556b2f","#ff556b2f"],func:[]},darkorange:{hex:["#ff8c00","#ffff8c00"],func:[]},darkorchid:{hex:["#9932cc","#ff9932cc"],func:[]},darkred:{hex:["#8b0000","#ff8b0000"],func:[]},darksalmon:{hex:["#e9967a","#ffe9967a"],func:[]},darkseagreen:{hex:["#8fbc8f","#ff8fbc8f"],func:[]},darkslateblue:{hex:["#483d8b","#ff483d8b"],func:[]}, -darkslategray:{hex:["#2f4f4f","#ff2f4f4f"],func:[]},darkslategrey:{hex:["#2f4f4f","#ff2f4f4f"],func:[]},darkturquoise:{hex:["#00ced1","#ff00ced1"],func:[]},darkviolet:{hex:["#9400d3","#ff9400d3"],func:[]},deeppink:{hex:["#ff1493","#ffff1493"],func:[]},deepskyblue:{hex:["#00bfff","#ff00bfff"],func:[]},dimgray:{hex:["#696969","#ff696969"],func:[]},dimgrey:{hex:["#696969","#ff696969"],func:[]},dodgerblue:{hex:["#1e90ff","#ff1e90ff"],func:[]},firebrick:{hex:["#b22222","#ffb22222"],func:[]},floralwhite:{hex:["#fffaf0", -"#fffffaf0"],func:[]},forestgreen:{hex:["#228b22","#ff228b22"],func:[]},fuchsia:{hex:["#ff00ff","#ffff00ff","#f0f","#ff0f"],func:[]},gainsboro:{hex:["#dcdcdc","#ffdcdcdc"],func:[]},ghostwhite:{hex:["#f8f8ff","#fff8f8ff"],func:[]},gold:{hex:["#ffd700","#ffffd700"],func:[]},goldenrod:{hex:["#daa520","#ffdaa520"],func:[]},gray:{hex:["#808080","#ff808080"],func:[]},green:{hex:["#008000","#ff008000"],func:[]},greenyellow:{hex:["#adff2f","#ffadff2f"],func:[]},grey:{hex:["#808080","#ff808080"],func:[]}, -honeydew:{hex:["#f0fff0","#fff0fff0"],func:[]},hotpink:{hex:["#ff69b4","#ffff69b4"],func:[]},indianred:{hex:["#cd5c5c","#ffcd5c5c"],func:[]},indigo:{hex:["#4b0082","#ff4b0082"],func:[]},ivory:{hex:["#fffff0","#fffffff0"],func:[]},khaki:{hex:["#f0e68c","#fff0e68c"],func:[]},lavender:{hex:["#e6e6fa","#ffe6e6fa"],func:[]},lavenderblush:{hex:["#fff0f5","#fffff0f5"],func:[]},lawngreen:{hex:["#7cfc00","#ff7cfc00"],func:[]},lemonchiffon:{hex:["#fffacd","#fffffacd"],func:[]},lightblue:{hex:["#add8e6","#ffadd8e6"], -func:[]},lightcoral:{hex:["#f08080","#fff08080"],func:[]},lightcyan:{hex:["#e0ffff","#ffe0ffff"],func:[]},lightgoldenrodyellow:{hex:["#fafad2","#fffafad2"],func:[]},lightgray:{hex:["#d3d3d3","#ffd3d3d3"],func:[]},lightgreen:{hex:["#90ee90","#ff90ee90"],func:[]},lightgrey:{hex:["#d3d3d3","#ffd3d3d3"],func:[]},lightpink:{hex:["#ffb6c1","#ffffb6c1"],func:[]},lightsalmon:{hex:["#ffa07a","#ffffa07a"],func:[]},lightseagreen:{hex:["#20b2aa","#ff20b2aa"],func:[]},lightskyblue:{hex:["#87cefa","#ff87cefa"], -func:[]},lightslategray:{hex:["#778899","#ff778899","#789","#f789"],func:[]},lightslategrey:{hex:["#778899","#ff778899","#789","#f789"],func:[]},lightsteelblue:{hex:["#b0c4de","#ffb0c4de"],func:[]},lightyellow:{hex:["#ffffe0","#ffffffe0"],func:[]},lime:{hex:["#00ff00","#ff00ff00","#0f0","#f0f0"],func:[]},limegreen:{hex:["#32cd32","#ff32cd32"],func:[]},linen:{hex:["#faf0e6","#fffaf0e6"],func:[]},magenta:{hex:["#ff00ff","#ffff00ff","#f0f","#ff0f"],func:[]},maroon:{hex:["#800000","#ff800000"],func:[]}, -mediumaquamarine:{hex:["#66cdaa","#ff66cdaa"],func:[]},mediumblue:{hex:["#0000cd","#ff0000cd"],func:[]},mediumorchid:{hex:["#ba55d3","#ffba55d3"],func:[]},mediumpurple:{hex:["#9370db","#ff9370db"],func:[]},mediumseagreen:{hex:["#3cb371","#ff3cb371"],func:[]},mediumslateblue:{hex:["#7b68ee","#ff7b68ee"],func:[]},mediumspringgreen:{hex:["#00fa9a","#ff00fa9a"],func:[]},mediumturquoise:{hex:["#48d1cc","#ff48d1cc"],func:[]},mediumvioletred:{hex:["#c71585","#ffc71585"],func:[]},midnightblue:{hex:["#191970", -"#ff191970"],func:[]},mintcream:{hex:["#f5fffa","#fff5fffa"],func:[]},mistyrose:{hex:["#ffe4e1","#ffffe4e1"],func:[]},moccasin:{hex:["#ffe4b5","#ffffe4b5"],func:[]},navajowhite:{hex:["#ffdead","#ffffdead"],func:[]},navy:{hex:["#000080","#ff000080"],func:[]},oldlace:{hex:["#fdf5e6","#fffdf5e6"],func:[]},olive:{hex:["#808000","#ff808000"],func:[]},olivedrab:{hex:["#6b8e23","#ff6b8e23"],func:[]},orange:{hex:["#ffa500","#ffffa500"],func:[]},orangered:{hex:["#ff4500","#ffff4500"],func:[]},orchid:{hex:["#da70d6", -"#ffda70d6"],func:[]},palegoldenrod:{hex:["#eee8aa","#ffeee8aa"],func:[]},palegreen:{hex:["#98fb98","#ff98fb98"],func:[]},paleturquoise:{hex:["#afeeee","#ffafeeee"],func:[]},palevioletred:{hex:["#db7093","#ffdb7093"],func:[]},papayawhip:{hex:["#ffefd5","#ffffefd5"],func:[]},peachpuff:{hex:["#ffdab9","#ffffdab9"],func:[]},peru:{hex:["#cd853f","#ffcd853f"],func:[]},pink:{hex:["#ffc0cb","#ffffc0cb"],func:[]},plum:{hex:["#dda0dd","#ffdda0dd"],func:[]},powderblue:{hex:["#b0e0e6","#ffb0e0e6"],func:[]}, -purple:{hex:["#800080","#ff800080"],func:[]},rebeccapurple:{hex:["#663399","#ff663399","#639","#f639"],func:[]},red:{hex:["#ff0000","#ffff0000","#f00","#ff00"],func:[]},rosybrown:{hex:["#bc8f8f","#ffbc8f8f"],func:[]},royalblue:{hex:["#4169e1","#ff4169e1"],func:[]},saddlebrown:{hex:["#8b4513","#ff8b4513"],func:[]},salmon:{hex:["#fa8072","#fffa8072"],func:[]},sandybrown:{hex:["#f4a460","#fff4a460"],func:[]},seagreen:{hex:["#2e8b57","#ff2e8b57"],func:[]},seashell:{hex:["#fff5ee","#fffff5ee"],func:[]}, -sienna:{hex:["#a0522d","#ffa0522d"],func:[]},silver:{hex:["#c0c0c0","#ffc0c0c0"],func:[]},skyblue:{hex:["#87ceeb","#ff87ceeb"],func:[]},slateblue:{hex:["#6a5acd","#ff6a5acd"],func:[]},slategray:{hex:["#708090","#ff708090"],func:[]},slategrey:{hex:["#708090","#ff708090"],func:[]},snow:{hex:["#fffafa","#fffffafa"],func:[]},springgreen:{hex:["#00ff7f","#ff00ff7f"],func:[]},steelblue:{hex:["#4682b4","#ff4682b4"],func:[]},tan:{hex:["#d2b48c","#ffd2b48c"],func:[]},teal:{hex:["#008080","#ff008080"],func:[]}, -thistle:{hex:["#d8bfd8","#ffd8bfd8"],func:[]},tomato:{hex:["#ff6347","#ffff6347"],func:[]},turquoise:{hex:["#40e0d0","#ff40e0d0"],func:[]},violet:{hex:["#ee82ee","#ffee82ee"],func:[]},wheat:{hex:["#f5deb3","#fff5deb3"],func:[]},white:{hex:["#ffffff","#ffffffff","#fff","#ffff"],func:[]},whitesmoke:{hex:["#f5f5f5","#fff5f5f5"],func:[]},yellow:{hex:["#ffff00","#ffffff00","#ff0","#fff0"],func:[]},yellowgreen:{hex:["#9acd32","#ff9acd32"],func:[]}}},{}],349:[function(a,l,g){a={};a.acceptCustomIdents=new Set("animation animation-name font font-family counter-increment grid-row grid-column grid-area list-style list-style-type".split(" ")); -l.exports=a},{}],350:[function(a,l,g){a={};a.mediaFeaturePunctuation=new Set(": = > >= < <=".split(" "));a.nonSpaceCombinators=new Set([">","+","~",">>>","/deep/"]);l.exports=a},{}],351:[function(a,l,g){l.exports={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"],background:"background-image background-size background-position background-repeat background-origin background-clip background-attachment background-color".split(" "), -font:"font-style font-variant font-weight font-stretch font-size font-family line-height".split(" "),border:"border-top-width border-bottom-width border-left-width border-right-width border-top-style border-bottom-style border-left-style border-right-style border-top-color border-bottom-color border-left-color border-right-color".split(" "),"border-top":["border-top-width","border-top-style","border-top-color"],"border-bottom":["border-bottom-width","border-bottom-style","border-bottom-color"],"border-left":["border-left-width", -"border-left-style","border-left-color"],"border-right":["border-right-width","border-right-style","border-right-color"],"border-width":["border-top-width","border-bottom-width","border-left-width","border-right-width"],"border-style":["border-top-style","border-bottom-style","border-left-style","border-right-style"],"border-color":["border-top-color","border-bottom-color","border-left-color","border-right-color"],"list-style":["list-style-type","list-style-position","list-style-image"],"border-radius":["border-top-right-radius", -"border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius"],transition:["transition-delay","transition-duration","transition-property","transition-timing-function"],animation:"animation-name animation-duration animation-timing-function animation-delay animation-iteration-count animation-direction animation-fill-mode animation-play-state".split(" "),"border-block-end":["border-block-end-width","border-block-end-style","border-block-end-color"],"border-block-start":["border-block-start-width", -"border-block-start-style","border-block-start-color"],"border-image":["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"],"border-inline-end":["border-inline-end-width","border-inline-end-style","border-inline-end-color"],"border-inline-start":["border-inline-start-width","border-inline-start-style","border-inline-start-color"],"column-rule":["column-rule-width","column-rule-style","column-rule-color"],columns:["column-width","column-count"], -flex:["flex-grow","flex-shrink","flex-basis"],"flex-flow":["flex-direction","flex-wrap"],grid:"grid-template-rows grid-template-columns grid-template-areas grid-auto-rows grid-auto-columns grid-auto-flow grid-column-gap grid-row-gap".split(" "),"grid-area":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"grid-column":["grid-column-start","grid-column-end"],"grid-gap":["grid-row-gap","grid-column-gap"],"grid-row":["grid-row-start","grid-row-end"],"grid-template":["grid-template-columns", -"grid-template-rows","grid-template-areas"],outline:["outline-color","outline-style","outline-width"],"text-decoration":["text-decoration-color","text-decoration-style","text-decoration-line"],"text-emphasis":["text-emphasis-style","text-emphasis-color"],mask:"mask-image mask-mode mask-position mask-size mask-repeat mask-origin mask-clip mask-composite".split(" ")}},{}],352:[function(a,l,g){var k=a("lodash"),h=a("postcss"),f=a("../../utils/report");g=a("../../utils/ruleMessages");var d=a("../../utils/validateOptions"), -c=g("at-rule-blacklist",{rejected:function(a){return'Unexpected at-rule "'+a+'"'}});a=function(a){var b=[].concat(a);return function(a,g){d(g,"at-rule-blacklist",{actual:b,possible:[k.isString]})&&a.walkAtRules(function(a){var d=a.name;-1!==b.indexOf(h.vendor.unprefixed(d).toLowerCase())&&f({message:c.rejected(d),node:a,result:g,ruleName:"at-rule-blacklist"})})}};a.primaryOptionArray=!0;a.ruleName="at-rule-blacklist";a.messages=c;l.exports=a},{"../../utils/report":592,"../../utils/ruleMessages":593, -"../../utils/validateOptions":595,lodash:164,postcss:293}],353:[function(a,l,g){var k=a("lodash"),h=a("../../utils/addEmptyLineBefore"),f=a("../../utils/getPreviousNonSharedLineCommentNode"),d=a("../../utils/hasEmptyLine"),c=a("../../utils/isAfterCommentLine"),b=a("../../utils/isBlocklessAtRuleAfterBlocklessAtRule"),p=a("../../utils/isBlocklessAtRuleAfterSameNameBlocklessAtRule"),m=a("../../utils/isFirstNested"),q=a("../../utils/optionsMatches"),e=a("../../utils/removeEmptyLinesBefore"),n=a("../../utils/report"); -g=a("../../utils/ruleMessages");var r=a("../../utils/validateOptions"),t=g("at-rule-empty-line-before",{expected:"Expected empty line before at-rule",rejected:"Unexpected empty line before at-rule"});a=function(a,g,l){return function(u,w){r(w,"at-rule-empty-line-before",{actual:a,possible:["always","never"]},{actual:g,possible:{except:["after-same-name","inside-block","blockless-after-same-name-blockless","blockless-after-blockless","first-nested"],ignore:["after-comment","inside-block","blockless-after-same-name-blockless", -"blockless-after-blockless"],ignoreAtRules:[k.isString]},optional:!0})&&u.walkAtRules(function(k){var r=k.parent!==u;if(!(k===u.first||q(g,"ignoreAtRules",k.name)||q(g,"ignore","blockless-after-blockless")&&b(k)||q(g,"ignore","blockless-after-same-name-blockless")&&p(k)||q(g,"ignore","inside-block")&&r||q(g,"ignore","after-comment")&&c(k))){var x=d(k.raws.before),A="always"===a?!0:!1,L;if(L=q(g,"except","after-same-name"))L=(L=f(k))&&"atrule"===L.type&&L.name===k.name;if(L||q(g,"except","inside-block")&& -r||q(g,"except","first-nested")&&m(k)||q(g,"except","blockless-after-blockless")&&b(k)||q(g,"except","blockless-after-same-name-blockless")&&p(k))A=!A;A!==x&&(l.fix?A?h(k,l.newline):e(k,l.newline):n({message:A?t.expected:t.rejected,node:k,result:w,ruleName:"at-rule-empty-line-before"}))}})}};a.ruleName="at-rule-empty-line-before";a.messages=t;l.exports=a},{"../../utils/addEmptyLineBefore":522,"../../utils/getPreviousNonSharedLineCommentNode":541,"../../utils/hasEmptyLine":546,"../../utils/isAfterCommentLine":552, -"../../utils/isBlocklessAtRuleAfterBlocklessAtRule":554,"../../utils/isBlocklessAtRuleAfterSameNameBlocklessAtRule":555,"../../utils/isFirstNested":563,"../../utils/optionsMatches":588,"../../utils/removeEmptyLinesBefore":591,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164}],354:[function(a,l,g){var k=a("../../utils/report");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=g("at-rule-name-case",{expected:function(a,c){return'Expected "'+ -a+'" to be "'+c+'"'}});a=function(a,c,b){return function(c,d){h(d,"at-rule-name-case",{actual:a,possible:["lower","upper"]})&&c.walkAtRules(function(c){var e=c.name,h="lower"===a?e.toLowerCase():e.toUpperCase();e!==h&&(b.fix?c.name=h:k({message:f.expected(e,h),node:c,ruleName:"at-rule-name-case",result:d}))})}};a.ruleName="at-rule-name-case";a.messages=f;l.exports=a},{"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595}],355:[function(a,l,g){var k=a("../atRuleNameSpaceChecker"); -g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("at-rule-name-newline-after",{expectedAfter:function(a){return'Expected newline after at-rule name "'+a+'"'}});a=function(a){var b=f("newline",a,d);return function(c,d){h(d,"at-rule-name-newline-after",{actual:a,possible:["always","always-multi-line"]})&&k({root:c,result:d,locationChecker:b.afterOneOnly,checkedRuleName:"at-rule-name-newline-after"})}};a.ruleName="at-rule-name-newline-after"; -a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../atRuleNameSpaceChecker":361}],356:[function(a,l,g){var k=a("../atRuleNameSpaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("at-rule-name-space-after",{expectedAfter:function(a){return'Expected single space after at-rule name "'+a+'"'}});a=function(a){var b=f("space",a,d);return function(c,d){h(d, -"at-rule-name-space-after",{actual:a,possible:["always","always-single-line"]})&&k({root:c,result:d,locationChecker:b.after,checkedRuleName:"at-rule-name-space-after"})}};a.ruleName="at-rule-name-space-after";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../atRuleNameSpaceChecker":361}],357:[function(a,l,g){var k=a("lodash"),h=a("../../reference/keywordSets"),f=a("../../utils/optionsMatches"),d=a("postcss"),c=a("../../utils/report"); -g=a("../../utils/ruleMessages");var b=a("../../utils/validateOptions"),p=g("at-rule-no-unknown",{rejected:function(a){return'Unexpected unknown at-rule "'+a+'"'}});a=function(a,g){return function(e,l){b(l,"at-rule-no-unknown",{actual:a},{actual:g,possible:{ignoreAtRules:[k.isString]},optional:!0})&&e.walkAtRules(function(a){var b=a.name;f(g,"ignoreAtRules",a.name)||d.vendor.prefix(b)||h.atRules.has(b.toLowerCase())||c({message:p.rejected("@"+b),node:a,ruleName:"at-rule-no-unknown",result:l})})}}; -a.ruleName="at-rule-no-unknown";a.messages=p;l.exports=a},{"../../reference/keywordSets":347,"../../utils/optionsMatches":588,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,postcss:293}],358:[function(a,l,g){var k=a("../../utils/hasBlock"),h=a("../../utils/nextNonCommentNode"),f=a("../../utils/rawNodeString"),d=a("../../utils/report");g=a("../../utils/ruleMessages");var c=a("../../utils/validateOptions"),b=a("../../utils/whitespaceChecker"),p= -g("at-rule-semicolon-newline-after",{expectedAfter:function(){return'Expected newline after ";"'}});a=function(a){var g=b("newline",a,p);return function(b,l){c(l,"at-rule-semicolon-newline-after",{actual:a,possible:["always"]})&&b.walkAtRules(function(a){var b=a.next();b&&!k(a)&&(b=h(b))&&g.afterOneOnly({source:f(b),index:-1,err:function(b){d({message:b,node:a,index:a.toString().length+1,result:l,ruleName:"at-rule-semicolon-newline-after"})}})})}};a.ruleName="at-rule-semicolon-newline-after";a.messages= -p;l.exports=a},{"../../utils/hasBlock":544,"../../utils/nextNonCommentNode":586,"../../utils/rawNodeString":590,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596}],359:[function(a,l,g){var k=a("../../utils/hasBlock"),h=a("../../utils/rawNodeString"),f=a("../../utils/report");g=a("../../utils/ruleMessages");var d=a("../../utils/validateOptions"),c=a("../../utils/whitespaceChecker"),b=g("at-rule-semicolon-space-before",{expectedBefore:function(){return'Expected single space before ";"'}, -rejectedBefore:function(){return'Unexpected whitespace before ";"'}});a=function(a){var g=c("space",a,b);return function(b,c){d(c,"at-rule-semicolon-space-before",{actual:a,possible:["always","never"]})&&b.walkAtRules(function(a){if(!k(a)){var b=h(a);g.before({source:b,index:b.length,err:function(d){f({message:d,node:a,index:b.length-1,result:c,ruleName:"at-rule-semicolon-space-before"})}})}})}};a.ruleName="at-rule-semicolon-space-before";a.messages=b;l.exports=a},{"../../utils/hasBlock":544,"../../utils/rawNodeString":590, -"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596}],360:[function(a,l,g){var k=a("lodash"),h=a("postcss"),f=a("../../utils/report");g=a("../../utils/ruleMessages");var d=a("../../utils/validateOptions"),c=g("at-rule-whitelist",{rejected:function(a){return'Unexpected at-rule "'+a+'"'}});a=function(a){var b=[].concat(a);return function(a,g){d(g,"at-rule-whitelist",{actual:b,possible:[k.isString]})&&a.walkAtRules(function(a){var d= -a.name;-1===b.indexOf(h.vendor.unprefixed(d).toLowerCase())&&f({message:c.rejected(d),node:a,result:g,ruleName:"at-rule-whitelist"})})}};a.primaryOptionArray=!0;a.ruleName="at-rule-whitelist";a.messages=c;l.exports=a},{"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,postcss:293}],361:[function(a,l,g){var k=a("../utils/isStandardSyntaxAtRule"),h=a("../utils/report");l.exports=function(a){function d(c,b,d){a.locationChecker({source:c,index:b,err:function(c){return h({message:c, -node:d,index:b,result:a.result,ruleName:a.checkedRuleName})},errTarget:"@"+d.name})}a.root.walkAtRules(function(a){k(a)&&d("@"+a.name+(a.raws.afterName||"")+a.params,a.name.length,a)})}},{"../utils/isStandardSyntaxAtRule":571,"../utils/report":592}],362:[function(a,l,g){var k=a("../../utils/blockString"),h=a("../../utils/hasBlock"),f=a("../../utils/hasEmptyBlock"),d=a("../../utils/hasEmptyLine"),c=a("../../utils/isSingleLineString"),b=a("../../utils/report");g=a("../../utils/ruleMessages");var p= -a("../../utils/validateOptions"),m=g("block-closing-brace-empty-line-before",{expected:"Expected empty line before closing brace",rejected:"Unexpected empty line before closing brace"});a=function(a){return function(e,g){function l(e){if(h(e)&&!f(e)){var l=(e.raws.after||"").replace(/;+/,"");if(void 0!==l){var n=e.toString(),p=n.length-1;"\r"===n[p-1]&&--p;n="always-multi-line"!==a||c(k(e))?!1:!0;l=d(l);n!==l&&b({message:n?m.expected:m.rejected,result:g,ruleName:"block-closing-brace-empty-line-before", -node:e,index:p})}}}p(g,"block-closing-brace-empty-line-before",{actual:a,possible:["always-multi-line","never"]})&&(e.walkRules(l),e.walkAtRules(l))}};a.ruleName="block-closing-brace-empty-line-before";a.messages=m;l.exports=a},{"../../utils/blockString":525,"../../utils/hasBlock":544,"../../utils/hasEmptyBlock":545,"../../utils/hasEmptyLine":546,"../../utils/isSingleLineString":570,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595}],363:[function(a,l,g){var k= -a("lodash"),h=a("../../utils/blockString"),f=a("../../utils/hasBlock"),d=a("../../utils/optionsMatches"),c=a("../../utils/rawNodeString"),b=a("../../utils/report");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"),m=a("../../utils/whitespaceChecker"),q=g("block-closing-brace-newline-after",{expectedAfter:function(){return'Expected newline after "}"'},expectedAfterSingleLine:function(){return'Expected newline after "}" of a single-line block'},rejectedAfterSingleLine:function(){return'Unexpected whitespace after "}" of a single-line block'}, -expectedAfterMultiLine:function(){return'Expected newline after "}" of a multi-line block'},rejectedAfterMultiLine:function(){return'Unexpected whitespace after "}" of a multi-line block'}});a=function(a,g){var e=m("newline",a,q);return function(l,m){function n(a){if(f(a)&&!d(g,"ignoreAtRules",a.name)){var k=a.next();if(k&&(k="comment"!==k.type||/[^ ]/.test(k.raws.before||"")||-1!==k.toString().indexOf("\n")?k:k.next())){var l=a.toString().length;(k=c(k))&&";"===k[0]&&(k=k.slice(1),l++);e.afterOneOnly({source:k, -index:-1,lineCheckStr:h(a),err:function(c){b({message:c,node:a,index:l,result:m,ruleName:"block-closing-brace-newline-after"})}})}}}p(m,"block-closing-brace-newline-after",{actual:a,possible:["always","always-single-line","never-single-line","always-multi-line","never-multi-line"]},{actual:g,possible:{ignoreAtRules:[k.isString]},optional:!0})&&(l.walkRules(n),l.walkAtRules(n))}};a.ruleName="block-closing-brace-newline-after";a.messages=q;l.exports=a},{"../../utils/blockString":525,"../../utils/hasBlock":544, -"../../utils/optionsMatches":588,"../../utils/rawNodeString":590,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,lodash:164}],364:[function(a,l,g){var k=a("lodash"),h=a("../../utils/blockString"),f=a("../../utils/hasBlock"),d=a("../../utils/hasEmptyBlock"),c=a("../../utils/isSingleLineString"),b=a("../../utils/report");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"),m=g("block-closing-brace-newline-before", -{expectedBefore:'Expected newline before "}"',expectedBeforeMultiLine:'Expected newline before "}" of a multi-line block',rejectedBeforeMultiLine:'Unexpected whitespace before "}" of a multi-line block'});a=function(a){return function(e,g){function l(e){function l(a){b({message:a,result:g,ruleName:"block-closing-brace-newline-before",node:e,index:r})}if(f(e)&&!d(e)){var n=(e.raws.after||"").replace(/;+/,"");if(void 0!==n){var p=!c(h(e)),q=e.toString(),r=q.length-2;"\r"===q[r-1]&&--r;k.startsWith(n, -"\n")||k.startsWith(n,"\r\n")||("always"===a?l(m.expectedBefore):p&&"always-multi-line"===a&&l(m.expectedBeforeMultiLine));""!==n&&p&&"never-multi-line"===a&&l(m.rejectedBeforeMultiLine)}}}p(g,"block-closing-brace-newline-before",{actual:a,possible:["always","always-multi-line","never-multi-line"]})&&(e.walkRules(l),e.walkAtRules(l))}};a.ruleName="block-closing-brace-newline-before";a.messages=m;l.exports=a},{"../../utils/blockString":525,"../../utils/hasBlock":544,"../../utils/hasEmptyBlock":545, -"../../utils/isSingleLineString":570,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164}],365:[function(a,l,g){var k=a("../../utils/blockString"),h=a("../../utils/hasBlock"),f=a("../../utils/rawNodeString"),d=a("../../utils/report");g=a("../../utils/ruleMessages");var c=a("../../utils/validateOptions"),b=a("../../utils/whitespaceChecker"),p=g("block-closing-brace-space-after",{expectedAfter:function(){return'Expected single space after "}"'},rejectedAfter:function(){return'Unexpected whitespace after "}"'}, -expectedAfterSingleLine:function(){return'Expected single space after "}" of a single-line block'},rejectedAfterSingleLine:function(){return'Unexpected whitespace after "}" of a single-line block'},expectedAfterMultiLine:function(){return'Expected single space after "}" of a multi-line block'},rejectedAfterMultiLine:function(){return'Unexpected whitespace after "}" of a multi-line block'}});a=function(a){var g=b("space",a,p);return function(b,l){function e(a){var b=a.next();if(b&&h(a)){var c=a.toString().length; -(b=f(b))&&";"===b[0]&&(b=b.slice(1),c++);g.after({source:b,index:-1,lineCheckStr:k(a),err:function(b){d({message:b,node:a,index:c,result:l,ruleName:"block-closing-brace-space-after"})}})}}c(l,"block-closing-brace-space-after",{actual:a,possible:"always never always-single-line never-single-line always-multi-line never-multi-line".split(" ")})&&(b.walkRules(e),b.walkAtRules(e))}};a.ruleName="block-closing-brace-space-after";a.messages=p;l.exports=a},{"../../utils/blockString":525,"../../utils/hasBlock":544, -"../../utils/rawNodeString":590,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596}],366:[function(a,l,g){var k=a("../../utils/blockString"),h=a("../../utils/hasBlock"),f=a("../../utils/hasEmptyBlock"),d=a("../../utils/report");g=a("../../utils/ruleMessages");var c=a("../../utils/validateOptions"),b=a("../../utils/whitespaceChecker"),p=g("block-closing-brace-space-before",{expectedBefore:function(){return'Expected single space before "}"'}, -rejectedBefore:function(){return'Unexpected whitespace before "}"'},expectedBeforeSingleLine:function(){return'Expected single space before "}" of a single-line block'},rejectedBeforeSingleLine:function(){return'Unexpected whitespace before "}" of a single-line block'},expectedBeforeMultiLine:function(){return'Expected single space before "}" of a multi-line block'},rejectedBeforeMultiLine:function(){return'Unexpected whitespace before "}" of a multi-line block'}});a=function(a){var g=b("space",a, -p);return function(b,l){function e(a){if(h(a)&&!f(a)){var b=k(a),c=a.toString(),e=c.length-2;"\r"===c[e-1]&&--e;g.before({source:b,index:b.length-1,err:function(b){d({message:b,node:a,index:e,result:l,ruleName:"block-closing-brace-space-before"})}})}}c(l,"block-closing-brace-space-before",{actual:a,possible:"always never always-single-line never-single-line always-multi-line never-multi-line".split(" ")})&&(b.walkRules(e),b.walkAtRules(e))}};a.ruleName="block-closing-brace-space-before";a.messages= -p;l.exports=a},{"../../utils/blockString":525,"../../utils/hasBlock":544,"../../utils/hasEmptyBlock":545,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596}],367:[function(a,l,g){var k=a("../../utils/beforeBlockString"),h=a("../../utils/hasEmptyBlock"),f=a("../../utils/report");g=a("../../utils/ruleMessages");var d=a("../../utils/validateOptions"),c=g("block-no-empty",{rejected:"Unexpected empty block"});a=function(a){return function(b, -g){function l(a){if(h(a)){var b=k(a,{noRawBefore:!0}).length;void 0===a.raws.between&&b--;f({message:c.rejected,node:a,index:b,result:g,ruleName:"block-no-empty"})}}d(g,"block-no-empty",{actual:a})&&(b.walkRules(l),b.walkAtRules(l))}};a.ruleName="block-no-empty";a.messages=c;l.exports=a},{"../../utils/beforeBlockString":524,"../../utils/hasEmptyBlock":545,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595}],368:[function(a,l,g){var k=a("../../utils/beforeBlockString"), -h=a("../../utils/blockString"),f=a("../../utils/hasBlock"),d=a("../../utils/hasEmptyBlock"),c=a("../../utils/nextNonCommentNode"),b=a("../../utils/rawNodeString"),p=a("../../utils/report");g=a("../../utils/ruleMessages");var m=a("../../utils/validateOptions"),q=a("../../utils/whitespaceChecker"),e=g("block-opening-brace-newline-after",{expectedAfter:function(){return'Expected newline after "{"'},expectedAfterMultiLine:function(){return'Expected newline after "{" of a multi-line block'},rejectedAfterMultiLine:function(){return'Unexpected whitespace after "{" of a multi-line block'}}); -a=function(a){var g=q("newline",a,e);return function(e,l){function n(a){if(f(a)&&!d(a)){var e=c(a.first);e&&g.afterOneOnly({source:b(e),index:-1,lineCheckStr:h(a),err:function(b){p({message:b,node:a,index:k(a,{noRawBefore:!0}).length+1,result:l,ruleName:"block-opening-brace-newline-after"})}})}}m(l,"block-opening-brace-newline-after",{actual:a,possible:["always","always-multi-line","never-multi-line"]})&&(e.walkRules(n),e.walkAtRules(n))}};a.ruleName="block-opening-brace-newline-after";a.messages= -e;l.exports=a},{"../../utils/beforeBlockString":524,"../../utils/blockString":525,"../../utils/hasBlock":544,"../../utils/hasEmptyBlock":545,"../../utils/nextNonCommentNode":586,"../../utils/rawNodeString":590,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596}],369:[function(a,l,g){var k=a("../../utils/beforeBlockString"),h=a("../../utils/blockString"),f=a("../../utils/hasBlock"),d=a("../../utils/hasEmptyBlock"),c=a("../../utils/report"); -g=a("../../utils/ruleMessages");var b=a("../../utils/validateOptions"),p=a("../../utils/whitespaceChecker"),m=g("block-opening-brace-newline-before",{expectedBefore:function(){return'Expected newline before "{"'},expectedBeforeSingleLine:function(){return'Expected newline before "{" of a single-line block'},rejectedBeforeSingleLine:function(){return'Unexpected whitespace before "{" of a single-line block'},expectedBeforeMultiLine:function(){return'Expected newline before "{" of a multi-line block'}, -rejectedBeforeMultiLine:function(){return'Unexpected whitespace before "{" of a multi-line block'}});a=function(a){var e=p("newline",a,m);return function(g,l){function m(a){if(f(a)&&!d(a)){var b=k(a),g=k(a,{noRawBefore:!0}),m=g.length-1;"\r"===g[m-1]&&--m;e.beforeAllowingIndentation({lineCheckStr:h(a),source:b,index:b.length,err:function(b){c({message:b,node:a,index:m,result:l,ruleName:"block-opening-brace-newline-before"})}})}}b(l,"block-opening-brace-newline-before",{actual:a,possible:["always", -"always-single-line","never-single-line","always-multi-line","never-multi-line"]})&&(g.walkRules(m),g.walkAtRules(m))}};a.ruleName="block-opening-brace-newline-before";a.messages=m;l.exports=a},{"../../utils/beforeBlockString":524,"../../utils/blockString":525,"../../utils/hasBlock":544,"../../utils/hasEmptyBlock":545,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596}],370:[function(a,l,g){var k=a("../../utils/beforeBlockString"), -h=a("../../utils/blockString"),f=a("../../utils/hasBlock"),d=a("../../utils/hasEmptyBlock"),c=a("../../utils/report");g=a("../../utils/ruleMessages");var b=a("../../utils/validateOptions"),p=a("../../utils/whitespaceChecker"),m=g("block-opening-brace-space-after",{expectedAfter:function(){return'Expected single space after "{"'},rejectedAfter:function(){return'Unexpected whitespace after "{"'},expectedAfterSingleLine:function(){return'Expected single space after "{" of a single-line block'},rejectedAfterSingleLine:function(){return'Unexpected whitespace after "{" of a single-line block'}, -expectedAfterMultiLine:function(){return'Expected single space after "{" of a multi-line block'},rejectedAfterMultiLine:function(){return'Unexpected whitespace after "{" of a multi-line block'}});a=function(a){var e=p("space",a,m);return function(g,l){function m(a){f(a)&&!d(a)&&e.after({source:h(a),index:0,err:function(b){c({message:b,node:a,index:k(a,{noRawBefore:!0}).length+1,result:l,ruleName:"block-opening-brace-space-after"})}})}b(l,"block-opening-brace-space-after",{actual:a,possible:"always never always-single-line never-single-line always-multi-line never-multi-line".split(" ")})&& -(g.walkRules(m),g.walkAtRules(m))}};a.ruleName="block-opening-brace-space-after";a.messages=m;l.exports=a},{"../../utils/beforeBlockString":524,"../../utils/blockString":525,"../../utils/hasBlock":544,"../../utils/hasEmptyBlock":545,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596}],371:[function(a,l,g){var k=a("lodash"),h=a("../../utils/beforeBlockString"),f=a("../../utils/blockString"),d=a("../../utils/hasBlock"),c=a("../../utils/hasEmptyBlock"), -b=a("../../utils/optionsMatches"),p=a("../../utils/report");g=a("../../utils/ruleMessages");var m=a("../../utils/validateOptions"),q=a("../../utils/whitespaceChecker"),e=g("block-opening-brace-space-before",{expectedBefore:function(){return'Expected single space before "{"'},rejectedBefore:function(){return'Unexpected whitespace before "{"'},expectedBeforeSingleLine:function(){return'Expected single space before "{" of a single-line block'},rejectedBeforeSingleLine:function(){return'Unexpected whitespace before "{" of a single-line block'}, -expectedBeforeMultiLine:function(){return'Expected single space before "{" of a multi-line block'},rejectedBeforeMultiLine:function(){return'Unexpected whitespace before "{" of a multi-line block'}});a=function(a,g){var l=q("space",a,e);return function(e,n){function q(a){if(d(a)&&!c(a)&&!b(g,"ignoreAtRules",a.name)){var e=h(a),k=h(a,{noRawBefore:!0}),m=k.length-1;"\r"===k[m-1]&&--m;l.before({source:e,index:e.length,lineCheckStr:f(a),err:function(b){p({message:b,node:a,index:m,result:n,ruleName:"block-opening-brace-space-before"})}})}} -m(n,"block-opening-brace-space-before",{actual:a,possible:"always never always-single-line never-single-line always-multi-line never-multi-line".split(" ")},{actual:g,possible:{ignoreAtRules:[k.isString]},optional:!0})&&(e.walkRules(q),e.walkAtRules(q))}};a.ruleName="block-opening-brace-space-before";a.messages=e;l.exports=a},{"../../utils/beforeBlockString":524,"../../utils/blockString":525,"../../utils/hasBlock":544,"../../utils/hasEmptyBlock":545,"../../utils/optionsMatches":588,"../../utils/report":592, -"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,lodash:164}],372:[function(a,l,g){var k=a("../../utils/blurFunctionArguments"),h=a("../../utils/report");g=a("../../utils/ruleMessages");var f=a("style-search"),d=a("../../utils/validateOptions"),c=g("color-hex-case",{expected:function(a,c){return'Expected "'+a+'" to be "'+c+'"'}});a=function(a,g,l){return function(b,e){d(e,"color-hex-case",{actual:a,possible:["lower","upper"]})&&b.walkDecls(function(b){var d= -k(b.toString(),"url"),g=[];f({source:d,target:"#"},function(f){var k=/^#[0-9A-Za-z]+/.exec(d.substr(f.startIndex));if(k){k=k[0];var m=k.toLowerCase(),n=k.toUpperCase();m="lower"===a?m:n;k!==m&&(l.fix?g.unshift({expectedHex:m,currentHex:k,startIndex:f.startIndex}):h({message:c.expected(k,m),node:b,index:f.startIndex,result:e,ruleName:"color-hex-case"}))}});if(g.length){var m=b.prop,n=b.raws.between;g.forEach(function(a){var c=b.value,d=a.currentHex,e=a.expectedHex,f=a.startIndex-m.length-n.length- -1+1;a=c.slice(0,f);c=c.slice(f+d.length);b.value=a+e+c})}})}};a.ruleName="color-hex-case";a.messages=c;l.exports=a},{"../../utils/blurFunctionArguments":527,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"style-search":331}],373:[function(a,l,g){function k(a){for(var b="#",c=1;cg.length)&&(m=g.toLowerCase(),m=!(m[1]===m[2]&&m[3]===m[4]&&m[5]=== -m[6]&&(7===m.length||9===m.length&&m[7]===m[8])));m||f({message:b.expected(g,("long"===a?h:k)(g)),node:c,index:d.startIndex,result:l,ruleName:"color-hex-length"})}})})}};a.ruleName="color-hex-length";a.messages=b;l.exports=a},{"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"style-search":331}],374:[function(a,l,g){var k=a("lodash"),h=a("../../utils/declarationValueIndex"),f=a("../../utils/isStandardSyntaxFunction"),d=a("../../utils/isStandardSyntaxValue"), -c=a("../../reference/keywordSets"),b=a("../../reference/namedColorData"),p=a("../../utils/optionsMatches"),m=a("../../reference/propertySets"),q=a("../../utils/report");g=a("../../utils/ruleMessages");var e=a("../../utils/validateOptions"),n=a("postcss-value-parser"),r=g("color-named",{expected:function(a,b){return'Expected "'+b+'" to be "'+a+'"'},rejected:function(a){return'Unexpected named color "'+a+'"'}}),t=["word","function"];a=function(a,g){return function(l,u){function w(a,b,c){q({result:u, -ruleName:"color-named",message:a,node:b,index:c})}if(e(u,"color-named",{actual:a,possible:["never","always-where-possible"]},{actual:g,possible:{ignoreProperties:[k.isString],ignore:["inside-function"]},optional:!0})){var x=Object.keys(b);l.walkDecls(function(e){m.acceptCustomIdents.has(e.prop)||p(g,"ignoreProperties",e.prop)||n(e.value).walk(function(k){var l=k.value,m=k.type,q=k.sourceIndex;if(p(g,"ignore","inside-function")&&"function"===m||!f(k))return!1;if(d(l)&&-1!==t.indexOf(m))if("never"=== -a&&"word"===m&&-1!==x.indexOf(l.toLowerCase()))w(r.rejected(l),e,h(e)+q);else if("always-where-possible"===a)if("function"===m&&c.colorFunctionNames.has(l.toLowerCase())){l=n.stringify(k).replace(/\s+/g,"");var u=0;for(k=x.length;u<](>=?|<=?|=)/g;l.exports=function(a,f){if("media"===a.name.toLowerCase())for(var d=a.params,c;null!==(c=k.exec(d));)f(c,d,a)}},{}],407:[function(a,l,g){function k(a){return a.split(/\s+/).some(function(a){return/^(-?\d|--)/.test(a)||!/^[-_a-zA-Z0-9\u00A0-\u10FFFF]+$/.test(a)})}var h=a("../../utils/findFontFamily"),f=a("../../utils/isStandardSyntaxValue"), -d=a("../../utils/isVariable"),c=a("../../reference/keywordSets"),b=a("../../utils/report");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"),m=g("font-family-name-quotes",{expected:function(a){return'Expected quotes around "'+a+'"'},rejected:function(a){return'Unexpected quotes around "'+a+'"'}});a=function(a){return function(e,g){function l(b,e){if(f(b)&&!d(b)){var h="'"===b[0]||'"'===b[0],g=b.replace(/^['"]|['"]$/g,""),l;(l=c.fontFamilyKeywords.has(g.toLowerCase()))||(l=0=== -g.indexOf("-apple-")?!0:"BlinkMacSystemFont"===g?!0:!1);if(l){if(h)return n(m.rejected(g),g,e)}else{l=k(g);var p=!/^[-a-zA-Z]+$/.test(g);switch(a){case "always-unless-keyword":if(!h)return n(m.expected(g),g,e);break;case "always-where-recommended":if(!p&&h)return n(m.rejected(g),g,e);if(p&&!h)return n(m.expected(g),g,e);break;case "always-where-required":if(!l&&h)return n(m.rejected(g),g,e);if(l&&!h)return n(m.expected(g),g,e)}}}}function n(a,c,d){b({result:g,ruleName:"font-family-name-quotes",message:a, -node:d,word:c})}p(g,"font-family-name-quotes",{actual:a,possible:["always-where-required","always-where-recommended","always-unless-keyword"]})&&e.walkDecls(/^font(-family)?$/i,function(a){var b=h(a.value);0!==b.length&&b.forEach(function(b){var c=b.value;b.quote&&(c=b.quote+c+b.quote);l(c,a)})})}};a.ruleName="font-family-name-quotes";a.messages=m;l.exports=a},{"../../reference/keywordSets":347,"../../utils/findFontFamily":535,"../../utils/isStandardSyntaxValue":580,"../../utils/isVariable":583,"../../utils/report":592, -"../../utils/ruleMessages":593,"../../utils/validateOptions":595}],408:[function(a,l,g){var k=a("lodash"),h=a("../../utils/declarationValueIndex"),f=a("../../utils/findFontFamily"),d=a("../../reference/keywordSets"),c=a("../../utils/optionsMatches"),b=a("../../utils/report");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"),m=g("font-family-no-duplicate-names",{rejected:function(a){return"Unexpected duplicate name "+a}});a=function(a,e){return function(g,l){function n(a,c,d){b({result:l, -ruleName:"font-family-no-duplicate-names",message:a,node:d,index:c})}p(l,"font-family-no-duplicate-names",{actual:a},{actual:e,possible:{ignoreFontFamilyNames:[k.isString]},optional:!0})&&g.walkDecls(/^font(-family)?$/i,function(a){var b=new Set,g=new Set,k=f(a.value);0!==k.length&&k.forEach(function(f){var k=f.value.trim();c(e,"ignoreFontFamilyNames",f.value.trim())||(!f.quote&&d.fontFamilyKeywords.has(f.value.toLowerCase())?b.has(k.toLowerCase())?n(m.rejected(k),h(a)+f.sourceIndex,a):b.add(k):g.has(k)? -n(m.rejected(k),h(a)+f.sourceIndex,a):g.add(k))})})}};a.ruleName="font-family-no-duplicate-names";a.messages=m;l.exports=a},{"../../reference/keywordSets":347,"../../utils/declarationValueIndex":532,"../../utils/findFontFamily":535,"../../utils/optionsMatches":588,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164}],409:[function(a,l,g){var k=a("lodash"),h=a("../../utils/declarationValueIndex"),f=a("../../utils/isNumbery"),d=a("../../utils/isStandardSyntaxValue"), -c=a("../../utils/isVariable"),b=a("../../reference/keywordSets"),p=a("../../utils/optionsMatches"),m=a("postcss"),q=a("../../utils/report");g=a("../../utils/ruleMessages");var e=a("../../utils/validateOptions"),n=g("font-weight-notation",{expected:function(a){return"Expected "+a+" font-weight notation"},invalidNamed:function(a){return'Unexpected invalid font-weight name "'+a+'"'}}),r=["400","700"];a=function(a,g){return function(l,t){function u(e,l){function m(a){q({ruleName:"font-weight-notation", -result:t,message:a,node:l,index:h(l)+u})}if(d(e)&&!(c(e)||"inherit"===e.toLowerCase()||"initial"===e.toLowerCase()||p(g,"ignore","relative")&&b.fontWeightRelativeKeywords.has(e.toLowerCase()))){var u=l.value.indexOf(e);if("numeric"===a&&!f(e))return m(n.expected("numeric"));if("named-where-possible"===a)if(f(e))k.includes(r,e)&&m(n.expected("named"));else if(!b.fontWeightKeywords.has(e.toLowerCase())&&"normal"!==e.toLowerCase())return m(n.invalidNamed(e))}}e(t,"font-weight-notation",{actual:a,possible:["numeric", -"named-where-possible"]},{actual:g,possible:{ignore:["relative"]},optional:!0})&&l.walkDecls(function(a){"font-weight"===a.prop.toLowerCase()&&u(a.value,a);if("font"===a.prop.toLowerCase())a:for(var c=m.list.space(a.value).some(f),d=$jscomp.makeIterator(m.list.space(a.value)),e=d.next();!e.done;e=d.next())if(e=e.value,"normal"===e.toLowerCase()&&!c||f(e)||"normal"!==e.toLowerCase()&&b.fontWeightKeywords.has(e.toLowerCase())){u(e,a);break a}})}};a.ruleName="font-weight-notation";a.messages=n;l.exports= -a},{"../../reference/keywordSets":347,"../../utils/declarationValueIndex":532,"../../utils/isNumbery":566,"../../utils/isStandardSyntaxValue":580,"../../utils/isVariable":583,"../../utils/optionsMatches":588,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,postcss:293}],410:[function(a,l,g){var k=a("lodash"),h=a("../../utils/declarationValueIndex"),f=a("../../utils/isStandardSyntaxFunction"),d=a("../../utils/matchesStringOrRegExp"),c=a("postcss"), -b=a("../../utils/report");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"),m=a("postcss-value-parser"),q=g("function-blacklist",{rejected:function(a){return'Unexpected function "'+a+'"'}});a=function(a){return function(e,g){p(g,"function-blacklist",{actual:a,possible:[k.isString]})&&e.walkDecls(function(e){m(e.value).walk(function(k){"function"===k.type&&f(k)&&d(c.vendor.unprefixed(k.value),a)&&b({message:q.rejected(k.value),node:e,index:h(e)+k.sourceIndex,result:g,ruleName:"function-blacklist"})})})}}; -a.primaryOptionArray=!0;a.ruleName="function-blacklist";a.messages=q;l.exports=a},{"../../utils/declarationValueIndex":532,"../../utils/isStandardSyntaxFunction":573,"../../utils/matchesStringOrRegExp":585,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,postcss:293,"postcss-value-parser":276}],411:[function(a,l,g){var k=a("balanced-match"),h=a("../../utils/isWhitespace"),f=a("../../utils/report");g=a("../../utils/ruleMessages");var d=a("style-search"), -c=a("../../utils/validateOptions"),b=a("postcss-value-parser"),p=g("function-calc-no-unspaced-operator",{expectedBefore:function(a){return'Expected single space before "'+a+'" operator'},expectedAfter:function(a){return'Expected single space after "'+a+'" operator'},expectedOperatorBeforeSign:function(a){return'Expected an operator before sign "'+a+'"'}});a=function(a){return function(g,e){function l(a,b,c){f({message:a,node:b,index:c,result:e,ruleName:"function-calc-no-unspaced-operator"})}c(e,"function-calc-no-unspaced-operator", -{actual:a})&&g.walkDecls(function(a){b(a.value).walk(function(c){function e(b){d({source:m,target:b,functionArguments:"skip"},function(c){c=c.startIndex;if("+"!==b&&"-"!==b||!/[\d@$.]/.test(m[c+1])){var d;if(!(d=" "===m[c-1]&&!h(m[c-2])))a:{for(d=c-1;d&&h(m[d]);){if("\n"===m[d]){d=!0;break a}d--}d=!1}d||l(p.expectedBefore(b),a,g+c);" "===m[c+1]&&!h(m[c+2])||"\n"===m[c+1]||"\r\n"===m.substr(c+1,2)||l(p.expectedAfter(b),a,g+c)}else d=m.substr(0,c),"("===d[d.length-1]||/^\s*$/.test(d)||/[*/+-]\s*$/.test(d)|| -l(p.expectedOperatorBeforeSign(b),a,g+c)})}if("function"===c.type&&"calc"===c.value.toLowerCase()){var f=k("(",")",b.stringify(c)).body,g=a.source.start.column+a.prop.length+(a.raws.between||"").length+c.sourceIndex,m=f.replace(/[$@][^)\s]+|#{.+?}/g,"0");e("+");e("-");e("*");e("/")}})})}};a.ruleName="function-calc-no-unspaced-operator";a.messages=p;l.exports=a},{"../../utils/isWhitespace":584,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"balanced-match":51, -"postcss-value-parser":276,"style-search":331}],412:[function(a,l,g){var k=a("../functionCommaSpaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("function-comma-newline-after",{expectedAfter:function(){return'Expected newline after ","'},expectedAfterMultiLine:function(){return'Expected newline after "," in a multi-line function'},rejectedAfterMultiLine:function(){return'Unexpected whitespace after "," in a multi-line function'}}); -a=function(a){var b=f("newline",a,d);return function(c,d){h(d,"function-comma-newline-after",{actual:a,possible:["always","always-multi-line","never-multi-line"]})&&k({root:c,result:d,locationChecker:b.afterOneOnly,checkedRuleName:"function-comma-newline-after"})}};a.ruleName="function-comma-newline-after";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../functionCommaSpaceChecker":427}],413:[function(a,l,g){var k=a("../functionCommaSpaceChecker"); -g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("function-comma-newline-before",{expectedBefore:function(){return'Expected newline before ","'},expectedBeforeMultiLine:function(){return'Expected newline before "," in a multi-line function'},rejectedBeforeMultiLine:function(){return'Unexpected whitespace before "," in a multi-line function'}});a=function(a){var b=f("newline",a,d);return function(c,d){h(d,"function-comma-newline-before", -{actual:a,possible:["always","always-multi-line","never-multi-line"]})&&k({root:c,result:d,locationChecker:b.beforeAllowingIndentation,checkedRuleName:"function-comma-newline-before"})}};a.ruleName="function-comma-newline-before";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../functionCommaSpaceChecker":427}],414:[function(a,l,g){var k=a("../functionCommaSpaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"), -f=a("../../utils/whitespaceChecker"),d=g("function-comma-space-after",{expectedAfter:function(){return'Expected single space after ","'},rejectedAfter:function(){return'Unexpected whitespace after ","'},expectedAfterSingleLine:function(){return'Expected single space after "," in a single-line function'},rejectedAfterSingleLine:function(){return'Unexpected whitespace after "," in a single-line function'}});a=function(a){var b=f("space",a,d);return function(c,d){h(d,"function-comma-space-after",{actual:a, -possible:["always","never","always-single-line","never-single-line"]})&&k({root:c,result:d,locationChecker:b.after,checkedRuleName:"function-comma-space-after"})}};a.ruleName="function-comma-space-after";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../functionCommaSpaceChecker":427}],415:[function(a,l,g){var k=a("../functionCommaSpaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"), -f=a("../../utils/whitespaceChecker"),d=g("function-comma-space-before",{expectedBefore:function(){return'Expected single space before ","'},rejectedBefore:function(){return'Unexpected whitespace before ","'},expectedBeforeSingleLine:function(){return'Expected single space before "," in a single-line function'},rejectedBeforeSingleLine:function(){return'Unexpected whitespace before "," in a single-line function'}});a=function(a){var b=f("space",a,d);return function(c,d){h(d,"function-comma-space-before", -{actual:a,possible:["always","never","always-single-line","never-single-line"]})&&k({root:c,result:d,locationChecker:b.before,checkedRuleName:"function-comma-space-before"})}};a.ruleName="function-comma-space-before";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../functionCommaSpaceChecker":427}],416:[function(a,l,g){function k(a,b){var c=a.match(b?/^to (top|left|bottom|right)(?: (top|left|bottom|right))?$/:/^(top|left|bottom|right)(?: (top|left|bottom|right))?$/); -return c?2===c.length||3===c.length&&c[1]!==c[2]?!0:!1:!1}var h=a("../../utils/declarationValueIndex"),f=a("../../utils/functionArgumentsSearch"),d=a("postcss"),c=a("../../utils/report");g=a("../../utils/ruleMessages");var b=a("../../utils/validateOptions"),p=a("postcss-value-parser"),m=g("function-linear-gradient-no-nonstandard-direction",{rejected:"Unexpected nonstandard direction"});a=function(a){return function(e,g){b(g,"function-linear-gradient-no-nonstandard-direction",{actual:a})&&e.walkDecls(function(a){p(a.value).walk(function(b){"function"=== -b.type&&f(p.stringify(b).toLowerCase(),"linear-gradient",function(e,f){function l(){c({message:m.rejected,node:a,index:h(a)+b.sourceIndex+f,result:g,ruleName:"function-linear-gradient-no-nonstandard-direction"})}var n=e.split(",")[0].trim();if(/[\d.]/.test(n[0]))/^[\d.]+(?:deg|grad|rad|turn)$/.test(n)||l();else if(/left|right|top|bottom/.test(n)){var p=!d.vendor.prefix(b.value);k(n,p)||l()}})})})}};a.ruleName="function-linear-gradient-no-nonstandard-direction";a.messages=m;l.exports=a},{"../../utils/declarationValueIndex":532, -"../../utils/functionArgumentsSearch":536,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,postcss:293,"postcss-value-parser":276}],417:[function(a,l,g){var k=a("lodash"),h=a("../../utils/report");g=a("../../utils/ruleMessages");var f=a("style-search"),d=a("../../utils/validateOptions"),c=g("function-max-empty-lines",{expected:function(a){return"Expected no more than "+a+" empty "+(1===a?"line":"lines")}});a=function(a){var b=a+1;return function(g,l){d(l,"function-max-empty-lines", -{actual:a,possible:k.isNumber})&&g.walkDecls(function(d){if(-1!==d.value.indexOf("(")){var e=d.toString(),g=k.repeat("\n",b),m=k.repeat("\r\n",b);f({source:e,target:"\n",functionArguments:"only"},function(f){if(e.substr(f.startIndex+1,b)===g||e.substr(f.startIndex+1,2*b)===m)f=f.startIndex,"\r"===e[f-1]&&--f,h({message:c.expected(a),node:d,index:f,result:l,ruleName:"function-max-empty-lines"})})}})}};a.ruleName="function-max-empty-lines";a.messages=c;l.exports=a},{"../../utils/report":592,"../../utils/ruleMessages":593, -"../../utils/validateOptions":595,lodash:164,"style-search":331}],418:[function(a,l,g){var k=a("lodash"),h=a("../../utils/declarationValueIndex"),f=a("../../utils/isStandardSyntaxFunction");g=a("../../reference/keywordSets");var d=a("../../utils/matchesStringOrRegExp"),c=a("../../utils/report"),b=a("../../utils/ruleMessages"),p=a("../../utils/validateOptions"),m=a("postcss-value-parser"),q=b("function-name-case",{expected:function(a,b){return'Expected "'+a+'" to be "'+b+'"'}}),e=new Map;g.camelCaseFunctionNames.forEach(function(a){e.set(a.toLowerCase(), -a)});a=function(a,b){return function(g,l){p(l,"function-name-case",{actual:a,possible:["lower","upper"]},{actual:b,possible:{ignoreFunctions:[k.isString]},optional:!0})&&g.walkDecls(function(g){m(g.value).walk(function(k){if("function"===k.type&&f(k)){var m=k.value,n=m.toLowerCase(),p=b&&b.ignoreFunctions||[];0 -a&&d({ruleName:"max-nesting-depth",result:m,node:c,message:b.expected(a)})}c(m,"max-nesting-depth",{actual:a,possible:[k.isNumber]},{optional:!0,actual:g,possible:{ignore:["blockless-at-rules"],ignoreAtRules:[k.isString]}});f.walkRules(n);f.walkAtRules(n)}};a.ruleName="max-nesting-depth";a.messages=b;l.exports=a},{"../../utils/hasBlock":544,"../../utils/optionsMatches":588,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164}],435:[function(a,l,g){var k= -a("../mediaFeatureColonSpaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("media-feature-colon-space-after",{expectedAfter:function(){return'Expected single space after ":"'},rejectedAfter:function(){return'Unexpected whitespace after ":"'}});a=function(a){var b=f("space",a,d);return function(c,d){h(d,"media-feature-colon-space-after",{actual:a,possible:["always","never"]})&&k({root:c,result:d,locationChecker:b.after,checkedRuleName:"media-feature-colon-space-after"})}}; -a.ruleName="media-feature-colon-space-after";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../mediaFeatureColonSpaceChecker":448}],436:[function(a,l,g){var k=a("../mediaFeatureColonSpaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("media-feature-colon-space-before",{expectedBefore:function(){return'Expected single space before ":"'},rejectedBefore:function(){return'Unexpected whitespace before ":"'}}); -a=function(a){var b=f("space",a,d);return function(c,d){h(d,"media-feature-colon-space-before",{actual:a,possible:["always","never"]})&&k({root:c,result:d,locationChecker:b.before,checkedRuleName:"media-feature-colon-space-before"})}};a.ruleName="media-feature-colon-space-before";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../mediaFeatureColonSpaceChecker":448}],437:[function(a,l,g){var k=a("lodash"),h=a("../../utils/atRuleParamIndex"), -f=a("../../utils/isCustomMediaQuery"),d=a("../../utils/isRangeContextMediaFeature"),c=a("../../utils/isStandardSyntaxMediaFeatureName"),b=a("../../utils/matchesStringOrRegExp"),p=a("postcss-media-query-parser")["default"],m=a("../../utils/report");g=a("../../utils/ruleMessages");var q=a("../../utils/validateOptions"),e=g("media-feature-name-blacklist",{rejected:function(a){return'Unexpected media feature name "'+a+'"'}});a=function(a){return function(g,l){q(l,"media-feature-name-blacklist",{actual:a, -possible:[k.isString]})&&g.walkAtRules(/^media$/i,function(g){p(g.params).walk(/^media-feature$/i,function(k){var n=k.sourceIndex,p=k.value;d(k.parent.value)||!c(p)||f(p)||b(p,a)&&m({index:h(g)+n,message:e.rejected(p),node:g,ruleName:"media-feature-name-blacklist",result:l})})})}};a.primaryOptionArray=!0;a.ruleName="media-feature-name-blacklist";a.messages=e;l.exports=a},{"../../utils/atRuleParamIndex":523,"../../utils/isCustomMediaQuery":559,"../../utils/isRangeContextMediaFeature":568,"../../utils/isStandardSyntaxMediaFeatureName":574, -"../../utils/matchesStringOrRegExp":585,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,"postcss-media-query-parser":243}],438:[function(a,l,g){var k=a("../../utils/atRuleParamIndex"),h=a("../../utils/isCustomMediaQuery"),f=a("../../utils/isRangeContextMediaFeature"),d=a("../../utils/isStandardSyntaxMediaFeatureName"),c=a("postcss-media-query-parser")["default"],b=a("../../utils/report");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"), -m=g("media-feature-name-case",{expected:function(a,b){return'Expected "'+a+'" to be "'+b+'"'}});a=function(a){return function(e,g){p(g,"media-feature-name-case",{actual:a,possible:["lower","upper"]})&&e.walkAtRules(/^media$/i,function(e){c(e.params).walk(/^media-feature$/i,function(c){var l=c.sourceIndex,n=c.value;f(c.parent.value)||!d(n)||h(n)||(c="lower"===a?n.toLowerCase():n.toUpperCase(),n!==c&&b({index:k(e)+l,message:m.expected(n,c),node:e,ruleName:"media-feature-name-case",result:g}))})})}}; -a.ruleName="media-feature-name-case";a.messages=m;l.exports=a},{"../../utils/atRuleParamIndex":523,"../../utils/isCustomMediaQuery":559,"../../utils/isRangeContextMediaFeature":568,"../../utils/isStandardSyntaxMediaFeatureName":574,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"postcss-media-query-parser":243}],439:[function(a,l,g){var k=a("lodash"),h=a("../../utils/atRuleParamIndex"),f=a("../../utils/isCustomMediaQuery"),d=a("../../utils/isRangeContextMediaFeature"), -c=a("../../utils/isStandardSyntaxMediaFeatureName"),b=a("../../reference/keywordSets"),p=a("postcss-media-query-parser")["default"],m=a("../../utils/optionsMatches"),q=a("postcss"),e=a("../../utils/report");g=a("../../utils/ruleMessages");var n=a("../../utils/validateOptions"),r=g("media-feature-name-no-unknown",{rejected:function(a){return'Unexpected unknown media feature name "'+a+'"'}});a=function(a,g){return function(l,t){n(t,"media-feature-name-no-unknown",{actual:a},{actual:g,possible:{ignoreMediaFeatureNames:[k.isString]}, -optional:!0})&&l.walkAtRules(/^media$/i,function(a){p(a.params).walk(/^media-feature$/i,function(k){var l=k.sourceIndex,n=k.value;d(k.parent.value)||!c(n)||f(n)||m(g,"ignoreMediaFeatureNames",n)||q.vendor.prefix(n)||b.mediaFeatureNames.has(n.toLowerCase())||e({index:h(a)+l,message:r.rejected(n),node:a,ruleName:"media-feature-name-no-unknown",result:t})})})}};a.ruleName="media-feature-name-no-unknown";a.messages=r;l.exports=a},{"../../reference/keywordSets":347,"../../utils/atRuleParamIndex":523,"../../utils/isCustomMediaQuery":559, -"../../utils/isRangeContextMediaFeature":568,"../../utils/isStandardSyntaxMediaFeatureName":574,"../../utils/optionsMatches":588,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,postcss:293,"postcss-media-query-parser":243}],440:[function(a,l,g){var k=a("lodash"),h=a("../../utils/atRuleParamIndex"),f=a("../../utils/isCustomMediaQuery"),d=a("../../utils/isRangeContextMediaFeature"),c=a("../../utils/isStandardSyntaxMediaFeatureName"),b=a("../../utils/matchesStringOrRegExp"), -p=a("postcss-media-query-parser")["default"],m=a("../../utils/report");g=a("../../utils/ruleMessages");var q=a("../../utils/validateOptions"),e=g("media-feature-name-whitelist",{rejected:function(a){return'Unexpected media feature name "'+a+'"'}});a=function(a){return function(g,l){q(l,"media-feature-name-whitelist",{actual:a,possible:[k.isString]})&&g.walkAtRules(/^media$/i,function(g){p(g.params).walk(/^media-feature$/i,function(k){var n=k.sourceIndex,p=k.value;d(k.parent.value)||!c(p)||f(p)||b(p, -a)||m({index:h(g)+n,message:e.rejected(p),node:g,ruleName:"media-feature-name-whitelist",result:l})})})}};a.primaryOptionArray=!0;a.ruleName="media-feature-name-whitelist";a.messages=e;l.exports=a},{"../../utils/atRuleParamIndex":523,"../../utils/isCustomMediaQuery":559,"../../utils/isRangeContextMediaFeature":568,"../../utils/isStandardSyntaxMediaFeatureName":574,"../../utils/matchesStringOrRegExp":585,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164, -"postcss-media-query-parser":243}],441:[function(a,l,g){var k=a("lodash"),h=a("../../utils/atRuleParamIndex"),f=a("../../utils/report");g=a("../../utils/ruleMessages");var d=a("style-search"),c=a("../../utils/validateOptions"),b=g("media-feature-parentheses-space-inside",{expectedOpening:'Expected single space after "("',rejectedOpening:'Unexpected whitespace after "("',expectedClosing:'Expected single space before ")"',rejectedClosing:'Unexpected whitespace before ")"'});a=function(a){return function(g, -l){c(l,"media-feature-parentheses-space-inside",{actual:a,possible:["always","never"]})&&g.walkAtRules(/^media$/i,function(c){var e=k.get(c,"raws.params.raw",c.params),g=h(c);d({source:e,target:"("},function(d){var h=" "===e[d.startIndex+1];h&&"never"===a&&f({message:b.rejectedOpening,node:c,index:d.startIndex+1+g,result:l,ruleName:"media-feature-parentheses-space-inside"});h||"always"!==a||f({message:b.expectedOpening,node:c,index:d.startIndex+1+g,result:l,ruleName:"media-feature-parentheses-space-inside"})}); -d({source:e,target:")"},function(d){var h=" "===e[d.startIndex-1];h&&"never"===a&&f({message:b.rejectedClosing,node:c,index:d.startIndex-1+g,result:l,ruleName:"media-feature-parentheses-space-inside"});h||"always"!==a||f({message:b.expectedClosing,node:c,index:d.startIndex-1+g,result:l,ruleName:"media-feature-parentheses-space-inside"})})})}};a.ruleName="media-feature-parentheses-space-inside";a.messages=b;l.exports=a},{"../../utils/atRuleParamIndex":523,"../../utils/report":592,"../../utils/ruleMessages":593, -"../../utils/validateOptions":595,lodash:164,"style-search":331}],442:[function(a,l,g){var k=a("../../utils/atRuleParamIndex"),h=a("../findMediaOperator"),f=a("../../utils/report");g=a("../../utils/ruleMessages");var d=a("../../utils/validateOptions"),c=a("../../utils/whitespaceChecker"),b=g("media-feature-range-operator-space-after",{expectedAfter:function(){return"Expected single space after range operator"},rejectedAfter:function(){return"Unexpected whitespace after range operator"}});a=function(a){var g= -c("space",a,b);return function(b,c){function e(a,b,d){var e=a.index+a[1].length;g.after({source:b,index:e,err:function(a){f({message:a,node:d,index:e+k(d)+1,result:c,ruleName:"media-feature-range-operator-space-after"})}})}d(c,"media-feature-range-operator-space-after",{actual:a,possible:["always","never"]})&&b.walkAtRules(/^media$/i,function(a){h(a,e)})}};a.ruleName="media-feature-range-operator-space-after";a.messages=b;l.exports=a},{"../../utils/atRuleParamIndex":523,"../../utils/report":592,"../../utils/ruleMessages":593, -"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../findMediaOperator":406}],443:[function(a,l,g){var k=a("../../utils/atRuleParamIndex"),h=a("../findMediaOperator"),f=a("../../utils/report");g=a("../../utils/ruleMessages");var d=a("../../utils/validateOptions"),c=a("../../utils/whitespaceChecker"),b=g("media-feature-range-operator-space-before",{expectedBefore:function(){return"Expected single space before range operator"},rejectedBefore:function(){return"Unexpected whitespace before range operator"}}); -a=function(a){var g=c("space",a,b);return function(b,c){function e(a,b,d){g.before({source:b,index:a.index+1,err:function(b){f({message:b,node:d,index:a.index+k(d),result:c,ruleName:"media-feature-range-operator-space-before"})}})}d(c,"media-feature-range-operator-space-before",{actual:a,possible:["always","never"]})&&b.walkAtRules(/^media$/i,function(a){h(a,e)})}};a.ruleName="media-feature-range-operator-space-before";a.messages=b;l.exports=a},{"../../utils/atRuleParamIndex":523,"../../utils/report":592, -"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../findMediaOperator":406}],444:[function(a,l,g){var k=a("../mediaQueryListCommaWhitespaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("media-query-list-comma-newline-after",{expectedAfter:function(){return'Expected newline after ","'},expectedAfterMultiLine:function(){return'Expected newline after "," in a multi-line list'}, -rejectedAfterMultiLine:function(){return'Unexpected whitespace after "," in a multi-line list'}});a=function(a){var b=f("newline",a,d);return function(c,d){h(d,"media-query-list-comma-newline-after",{actual:a,possible:["always","always-multi-line","never-multi-line"]})&&k({root:c,result:d,locationChecker:b.afterOneOnly,checkedRuleName:"media-query-list-comma-newline-after"})}};a.ruleName="media-query-list-comma-newline-after";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595, -"../../utils/whitespaceChecker":596,"../mediaQueryListCommaWhitespaceChecker":449}],445:[function(a,l,g){var k=a("../mediaQueryListCommaWhitespaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("media-query-list-comma-newline-before",{expectedBefore:function(){return'Expected newline before ","'},expectedBeforeMultiLine:function(){return'Expected newline before "," in a multi-line list'},rejectedBeforeMultiLine:function(){return'Unexpected whitespace before "," in a multi-line list'}}); -a=function(a){var b=f("newline",a,d);return function(c,d){h(d,"media-query-list-comma-newline-before",{actual:a,possible:["always","always-multi-line","never-multi-line"]})&&k({root:c,result:d,locationChecker:b.beforeAllowingIndentation,checkedRuleName:"media-query-list-comma-newline-before"})}};a.ruleName="media-query-list-comma-newline-before";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../mediaQueryListCommaWhitespaceChecker":449}], -446:[function(a,l,g){var k=a("../mediaQueryListCommaWhitespaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("media-query-list-comma-space-after",{expectedAfter:function(){return'Expected single space after ","'},rejectedAfter:function(){return'Unexpected whitespace after ","'},expectedAfterSingleLine:function(){return'Expected single space after "," in a single-line list'},rejectedAfterSingleLine:function(){return'Unexpected whitespace after "," in a single-line list'}}); -a=function(a){var b=f("space",a,d);return function(c,d){h(d,"media-query-list-comma-space-after",{actual:a,possible:["always","never","always-single-line","never-single-line"]})&&k({root:c,result:d,locationChecker:b.after,checkedRuleName:"media-query-list-comma-space-after"})}};a.ruleName="media-query-list-comma-space-after";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../mediaQueryListCommaWhitespaceChecker":449}], -447:[function(a,l,g){var k=a("../mediaQueryListCommaWhitespaceChecker");g=a("../../utils/ruleMessages");var h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("media-query-list-comma-space-before",{expectedBefore:function(){return'Expected single space before ","'},rejectedBefore:function(){return'Unexpected whitespace before ","'},expectedBeforeSingleLine:function(){return'Expected single space before "," in a single-line list'},rejectedBeforeSingleLine:function(){return'Unexpected whitespace before "," in a single-line list'}}); -a=function(a){var b=f("space",a,d);return function(c,d){h(d,"media-query-list-comma-space-before",{actual:a,possible:["always","never","always-single-line","never-single-line"]})&&k({root:c,result:d,locationChecker:b.before,checkedRuleName:"media-query-list-comma-space-before"})}};a.ruleName="media-query-list-comma-space-before";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../mediaQueryListCommaWhitespaceChecker":449}], -448:[function(a,l,g){var k=a("../utils/atRuleParamIndex"),h=a("../utils/report"),f=a("style-search");l.exports=function(a){function c(b,c,d){a.locationChecker({source:b,index:c,err:function(b){return h({message:b,node:d,index:c+k(d),result:a.result,ruleName:a.checkedRuleName})}})}a.root.walkAtRules(/^media$/i,function(a){var b=a.params;f({source:b,target:":"},function(d){c(b,d.startIndex,a)})})}},{"../utils/atRuleParamIndex":523,"../utils/report":592,"style-search":331}],449:[function(a,l,g){var k= -a("../utils/atRuleParamIndex"),h=a("../utils/report"),f=a("style-search");l.exports=function(a){function c(b,c,d){a.locationChecker({source:b,index:c,err:function(b){return h({message:b,node:d,index:c+k(d),result:a.result,ruleName:a.checkedRuleName})}})}a.root.walkAtRules(/^media$/i,function(a){var b=a.params;f({source:b,target:","},function(d){c(b,d.startIndex,a)})})}},{"../utils/atRuleParamIndex":523,"../utils/report":592,"style-search":331}],450:[function(a,l,g){function k(a){return h.last(a.nodes[0].split(function(a){return"combinator"=== -a.type})).filter(function(a){return"pseudo"!==a.type||c.pseudoElements.has(a.value.replace(/:/g,""))}).join("").toString()}var h=a("lodash"),f=a("../../utils/findAtRuleContext"),d=a("../../utils/isCustomPropertySet"),c=a("../../reference/keywordSets"),b=a("../../utils/nodeContextLookup"),p=a("../../utils/parseSelector"),m=a("../../utils/report"),q=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages");var e=a("specificity"),n=a("../../utils/validateOptions"),r=g("no-descending-specificity", -{rejected:function(a,b){return'Expected selector "'+a+'" to come before selector "'+b+'"'}});a=function(a){return function(c,h){function g(a,b,c,d){var f=a.toString(),g=k(a),l=e.calculate(f)[0].specificityArray;a={selector:f,specificity:l};d.has(g)?(d=d.get(g),d.forEach(function(a){-1===e.compare(l,a.specificity)&&m({ruleName:"no-descending-specificity",result:h,node:b,message:r.rejected(f,a.selector),index:c})}),d.push(a)):d.set(g,[a])}if(n(h,"no-descending-specificity",{actual:a})){var l=b();c.walkRules(function(a){if(!d(a)){var b= -l.getContext(a,f(a));a.selectors.forEach(function(c){var d=c.trim();if(""!==d){var e=a.selector.indexOf(d);q(c,a).forEach(function(c){p(c,h,a,function(c){return g(c,a,e,b)})})}})}})}}};a.ruleName="no-descending-specificity";a.messages=r;l.exports=a},{"../../reference/keywordSets":347,"../../utils/findAtRuleContext":534,"../../utils/isCustomPropertySet":561,"../../utils/nodeContextLookup":587,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595, -lodash:164,"postcss-resolve-nested-selector":247,specificity:329}],451:[function(a,l,g){var k=a("lodash"),h=a("../../utils/findAtRuleContext"),f=a("../../utils/isKeyframeRule"),d=a("../../utils/nodeContextLookup"),c=a("normalize-selector"),b=a("../../utils/report"),p=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages");var m=a("../../utils/validateOptions"),q=g("no-duplicate-selectors",{rejected:function(a,b){return'Unexpected duplicate selector "'+a+'", first used at line '+b}}); -a=function(a){return function(e,g){if(m(g,"no-duplicate-selectors",{actual:a})){var l=d();e.walkRules(function(a){if(!f(a)){var d=l.getContext(a,h(a)),e=a.selectors.reduce(function(b,c){return k.union(b,p(c,a))},[]),m=e.map(c),n=a.source.start.line,r=m.slice().sort().join(",");if(d.has(r))return e=e.join(",")!==a.selectors.join(",")?e.join(", "):a.selector,d=d.get(r),b({result:g,ruleName:"no-duplicate-selectors",node:a,message:q.rejected(e,d)});d.set(r,n);a.selectors.forEach(function(d,e){k.includes(m.slice(0, -e),c(d))&&b({result:g,ruleName:"no-duplicate-selectors",node:a,message:q.rejected(d,n)})})}})}}};a.ruleName="no-duplicate-selectors";a.messages=q;l.exports=a},{"../../utils/findAtRuleContext":534,"../../utils/isKeyframeRule":564,"../../utils/nodeContextLookup":587,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,"normalize-selector":176,"postcss-resolve-nested-selector":247}],452:[function(a,l,g){var k=a("../../utils/report");g=a("../../utils/ruleMessages"); -var h=a("../../utils/validateOptions"),f=g("no-empty-source",{rejected:"Unexpected empty source"});a=function(a){return function(c,b){h(b,"no-empty-source",{actual:a})&&/^\s*$/.test(c.toString())&&k({message:f.rejected,node:c,result:b,ruleName:"no-empty-source"})}};a.ruleName="no-empty-source";a.messages=f;l.exports=a},{"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595}],453:[function(a,l,g){var k=a("../../utils/isOnlyWhitespace"),h=a("../../utils/optionsMatches"), -f=a("../../utils/report");g=a("../../utils/ruleMessages");var d=a("style-search"),c=a("../../utils/validateOptions"),b=g("no-eol-whitespace",{rejected:"Unexpected whitespace at end of line"}),p=new Set([" ","\t"]);a=function(a,g){return function(e,l){if(c(l,"no-eol-whitespace",{actual:a},{optional:!0,actual:g,possible:{ignore:["empty-lines"]}})){var m=e.toString();d({source:m,target:["\n","\r"],comments:"check"},function(a){if(p.has(m[a.startIndex-1])){if(h(g,"ignore","empty-lines")){var c=m.substring(a.startIndex+ -1,m.lastIndexOf("\n",a.startIndex-1));if(k(c))return}f({message:b.rejected,node:e,index:a.startIndex-1,result:l,ruleName:"no-eol-whitespace"})}})}}};a.ruleName="no-eol-whitespace";a.messages=b;l.exports=a},{"../../utils/isOnlyWhitespace":567,"../../utils/optionsMatches":588,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"style-search":331}],454:[function(a,l,g){function k(a){var b=a.root().source.input.css,c=a.source.start.column;a=a.source.start.line;for(var d= -1,f=1,h=0,g=0;g~]/.test(a[b-1])||!h.isUndefined(a[b+1])&&!/[\s+>~]/.test(a[b+1])))return!0;return!1}var h=a("lodash"),f=a("../../utils/isKeyframeSelector"),d=a("../../utils/isStandardSyntaxRule"),c=a("../../utils/isStandardSyntaxSelector"),b=a("../../utils/parseSelector"),p=a("../../utils/report"),m=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages");var q=a("../../utils/validateOptions"),e=g("selector-class-pattern",{expected:function(a){return'Expected class selector ".'+a+'" to match specified pattern'}}); -a=function(a,g){return function(l,n){function r(a,b){a.walkClasses(function(a){var c=a.value;a=a.sourceIndex;u.test(c)||p({result:n,ruleName:"selector-class-pattern",message:e.expected(c),node:b,index:a})})}if(q(n,"selector-class-pattern",{actual:a,possible:[h.isRegExp,h.isString]},{actual:g,possible:{resolveNestedSelectors:h.isBoolean},optional:!0})){var t=h.get(g,"resolveNestedSelectors"),u=h.isString(a)?new RegExp(a):a;l.walkRules(function(a){var e=a.selector,h=a.selectors;d(a)&&c(e)&&(h.some(function(a){return f(a)})|| -(t&&k(e)?m(e,a).forEach(function(d){c(d)&&b(d,n,a,function(b){return r(b,a)})}):b(e,n,a,function(b){return r(b,a)})))})}}};a.ruleName="selector-class-pattern";a.messages=e;l.exports=a},{"../../utils/isKeyframeSelector":565,"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,"postcss-resolve-nested-selector":247}],473:[function(a,l,g){g= -a("../../utils/ruleMessages");var k=a("../selectorCombinatorSpaceChecker"),h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("selector-combinator-space-after",{expectedAfter:function(a){return'Expected single space after "'+a+'"'},rejectedAfter:function(a){return'Unexpected whitespace after "'+a+'"'}});a=function(a){var b=f("space",a,d);return function(c,d){h(d,"selector-combinator-space-after",{actual:a,possible:["always","never"]})&&k({root:c,result:d,locationChecker:b.after, -locationType:"after",checkedRuleName:"selector-combinator-space-after"})}};a.ruleName="selector-combinator-space-after";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../selectorCombinatorSpaceChecker":503}],474:[function(a,l,g){g=a("../../utils/ruleMessages");var k=a("../selectorCombinatorSpaceChecker"),h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("selector-combinator-space-before",{expectedBefore:function(a){return'Expected single space before "'+ -a+'"'},rejectedBefore:function(a){return'Unexpected whitespace before "'+a+'"'}});a=function(a){var b=f("space",a,d);return function(c,d){h(d,"selector-combinator-space-before",{actual:a,possible:["always","never"]})&&k({root:c,result:d,locationChecker:b.before,locationType:"before",checkedRuleName:"selector-combinator-space-before"})}};a.ruleName="selector-combinator-space-before";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596, -"../selectorCombinatorSpaceChecker":503}],475:[function(a,l,g){var k=a("../../utils/isStandardSyntaxRule"),h=a("../../utils/parseSelector"),f=a("../../reference/punctuationSets"),d=a("../../utils/report");g=a("../../utils/ruleMessages");var c=a("../../utils/validateOptions"),b=g("selector-descendant-combinator-no-non-space",{rejected:function(a){return'Unexpected "'+a+'"'}});a=function(a){return function(g,l){c(l,"selector-descendant-combinator-no-non-space",{actual:a})&&g.walkRules(function(a){k(a)&& -h(a.selector,l,a,function(c){c.walkCombinators(function(c){var e=c.value;f.nonSpaceCombinators.has(e)||" "!==e&&d({result:l,ruleName:"selector-descendant-combinator-no-non-space",message:b.rejected(e),node:a,index:c.sourceIndex})})})})}};a.ruleName="selector-descendant-combinator-no-non-space";a.messages=b;l.exports=a},{"../../reference/punctuationSets":350,"../../utils/isStandardSyntaxRule":576,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595}], -476:[function(a,l,g){var k=a("lodash"),h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/isStandardSyntaxSelector"),d=a("../../utils/parseSelector"),c=a("../../utils/report");g=a("../../utils/ruleMessages");var b=a("../../utils/validateOptions"),p=g("selector-id-pattern",{expected:function(a){return'Expected id selector "#'+a+'" to match specified pattern'}});a=function(a){return function(g,e){if(b(e,"selector-id-pattern",{actual:a,possible:[k.isRegExp,k.isString]})){var l=k.isString(a)?new RegExp(a): -a;g.walkRules(function(a){if(h(a)){var b=a.selector;f(b)&&d(b,e,a,function(b){b.walk(function(b){if("id"===b.type){var d=b.value;b=b.sourceIndex;l.test(d)||c({result:e,ruleName:"selector-id-pattern",message:p.expected(d),node:a,index:b})}})})}})}}};a.ruleName="selector-id-pattern";a.messages=p;l.exports=a},{"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595, -lodash:164}],477:[function(a,l,g){var k=a("../../utils/isStandardSyntaxRule"),h=a("../../utils/report");g=a("../../utils/ruleMessages");var f=a("style-search"),d=a("../../utils/validateOptions"),c=a("../../utils/whitespaceChecker"),b=g("selector-list-comma-newline-after",{expectedAfter:function(){return'Expected newline after ","'},expectedAfterMultiLine:function(){return'Expected newline after "," in a multi-line list'},rejectedAfterMultiLine:function(){return'Unexpected whitespace after "," in a multi-line list'}}); -a=function(a){var g=c("newline",a,b);return function(b,c){d(c,"selector-list-comma-newline-after",{actual:a,possible:["always","always-multi-line","never-multi-line"]})&&b.walkRules(function(a){if(k(a)){var b=a.raws.selector?a.raws.selector.raw:a.selector;f({source:b,target:",",functionArguments:"skip"},function(d){var e=b.substr(d.endIndex,3);" //"!==e&&(e=" /*"===e?b.indexOf("*/",d.endIndex)+1:d.startIndex,g.afterOneOnly({source:b,index:e,err:function(b){return h({message:b,node:a,index:d.startIndex, -result:c,ruleName:"selector-list-comma-newline-after"})}}))})}})}};a.ruleName="selector-list-comma-newline-after";a.messages=b;l.exports=a},{"../../utils/isStandardSyntaxRule":576,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"style-search":331}],478:[function(a,l,g){g=a("../../utils/ruleMessages");var k=a("../selectorListCommaWhitespaceChecker"),h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"), -d=g("selector-list-comma-newline-before",{expectedBefore:function(){return'Expected newline before ","'},expectedBeforeMultiLine:function(){return'Expected newline before "," in a multi-line list'},rejectedBeforeMultiLine:function(){return'Unexpected whitespace before "," in a multi-line list'}});a=function(a){var b=f("newline",a,d);return function(c,d){h(d,"selector-list-comma-newline-before",{actual:a,possible:["always","always-multi-line","never-multi-line"]})&&k({root:c,result:d,locationChecker:b.beforeAllowingIndentation, -checkedRuleName:"selector-list-comma-newline-before"})}};a.ruleName="selector-list-comma-newline-before";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../selectorListCommaWhitespaceChecker":504}],479:[function(a,l,g){g=a("../../utils/ruleMessages");var k=a("../selectorListCommaWhitespaceChecker"),h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("selector-list-comma-space-after",{expectedAfter:function(){return'Expected single space after ","'}, -rejectedAfter:function(){return'Unexpected whitespace after ","'},expectedAfterSingleLine:function(){return'Expected single space after "," in a single-line list'},rejectedAfterSingleLine:function(){return'Unexpected whitespace after "," in a single-line list'}});a=function(a){var b=f("space",a,d);return function(c,d){h(d,"selector-list-comma-space-after",{actual:a,possible:["always","never","always-single-line","never-single-line"]})&&k({root:c,result:d,locationChecker:b.after,checkedRuleName:"selector-list-comma-space-after"})}}; -a.ruleName="selector-list-comma-space-after";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../selectorListCommaWhitespaceChecker":504}],480:[function(a,l,g){g=a("../../utils/ruleMessages");var k=a("../selectorListCommaWhitespaceChecker"),h=a("../../utils/validateOptions"),f=a("../../utils/whitespaceChecker"),d=g("selector-list-comma-space-before",{expectedBefore:function(){return'Expected single space before ","'}, -rejectedBefore:function(){return'Unexpected whitespace before ","'},expectedBeforeSingleLine:function(){return'Expected single space before "," in a single-line list'},rejectedBeforeSingleLine:function(){return'Unexpected whitespace before "," in a single-line list'}});a=function(a){var b=f("space",a,d);return function(c,d){h(d,"selector-list-comma-space-before",{actual:a,possible:["always","never","always-single-line","never-single-line"]})&&k({root:c,result:d,locationChecker:b.before,checkedRuleName:"selector-list-comma-space-before"})}}; -a.ruleName="selector-list-comma-space-before";a.messages=d;l.exports=a},{"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"../../utils/whitespaceChecker":596,"../selectorListCommaWhitespaceChecker":504}],481:[function(a,l,g){function k(a,g){return function(k,l){function n(b,d){var f=b.reduce(function(a,b){"selector"!==b.type&&":not"!==b.value||n(b,d);return"attribute"!==b.type||c(g,"ignoreAttributes",b.attribute)?a:a+1},0);"root"!==b.type&&"pseudo"!==b.type&&f>a&&p({ruleName:"selector-max-attribute", -result:l,node:d,message:e.expected(b,a),word:b})}q(l,"selector-max-attribute",{actual:a,possible:[function(a){return"number"===typeof a&&0<=a}]},{actual:g,possible:{ignoreAttributes:[h.isString]},optional:!0})&&k.walkRules(function(a){f(a)&&d(a.selector)&&(a.nodes.some(function(a){return-1!==["rule","atrule"].indexOf(a.type)})||a.selectors.forEach(function(c){m(c,a).forEach(function(c){b(c,l,a,function(b){return n(b,a)})})}))})}}var h=a("lodash"),f=a("../../utils/isStandardSyntaxRule"),d=a("../../utils/isStandardSyntaxSelector"), -c=a("../../utils/optionsMatches"),b=a("../../utils/parseSelector"),p=a("../../utils/report"),m=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages");var q=a("../../utils/validateOptions"),e=g("selector-max-attribute",{expected:function(a,b){return'Expected "'+a+'" to have no more than '+b+" attribute "+(1===b?"selector":"selectors")}});k.ruleName="selector-max-attribute";k.messages=e;l.exports=k},{"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/optionsMatches":588, -"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,"postcss-resolve-nested-selector":247}],482:[function(a,l,g){function k(a){return function(e,g){function k(b,d){var e=b.reduce(function(a,b){"selector"!==b.type&&":not"!==b.value||k(b,d);return a+("class"===b.type?1:0)},0);"root"!==b.type&&"pseudo"!==b.type&&e>a&&c({ruleName:"selector-max-class",result:g,node:d,message:m.expected(b,a),word:b})}p(g,"selector-max-class", -{actual:a,possible:[function(a){return"number"===typeof a&&0<=a}]})&&e.walkRules(function(a){h(a)&&f(a.selector)&&(a.nodes.some(function(a){return-1!==["rule","atrule"].indexOf(a.type)})||a.selectors.forEach(function(c){b(c,a).forEach(function(b){d(b,g,a,function(b){return k(b,a)})})}))})}}var h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/isStandardSyntaxSelector"),d=a("../../utils/parseSelector"),c=a("../../utils/report"),b=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages"); -var p=a("../../utils/validateOptions"),m=g("selector-max-class",{expected:function(a,b){return'Expected "'+a+'" to have no more than '+b+" "+(1===b?"class":"classes")}});k.ruleName="selector-max-class";k.messages=m;l.exports=k},{"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"postcss-resolve-nested-selector":247}],483:[function(a,l,g){function k(a){return function(e, -g){function k(b,d){var e=b.reduce(function(a,b){"selector"===b.type&&k(b,d);return a+("combinator"===b.type?1:0)},0);"root"!==b.type&&"pseudo"!==b.type&&e>a&&c({ruleName:"selector-max-combinators",result:g,node:d,message:m.expected(b,a),word:b})}p(g,"selector-max-combinators",{actual:a,possible:[function(a){return"number"===typeof a&&0<=a}]})&&e.walkRules(function(a){h(a)&&f(a.selector)&&(a.nodes.some(function(a){return-1!==["rule","atrule"].indexOf(a.type)})||a.selectors.forEach(function(c){b(c, -a).forEach(function(b){d(b,g,a,function(b){return k(b,a)})})}))})}}var h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/isStandardSyntaxSelector"),d=a("../../utils/parseSelector"),c=a("../../utils/report"),b=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"),m=g("selector-max-combinators",{expected:function(a,b){return'Expected "'+a+'" to have no more than '+b+" "+(1===b?"combinator":"combinators")}});k.ruleName="selector-max-combinators"; -k.messages=m;l.exports=k},{"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"postcss-resolve-nested-selector":247}],484:[function(a,l,g){var k=a("../../utils/isStandardSyntaxRule"),h=a("../../utils/isStandardSyntaxSelector"),f=a("../../utils/parseSelector"),d=a("../../utils/report"),c=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages"); -var b=a("../../utils/validateOptions"),p=g("selector-max-compound-selectors",{expected:function(a,b){return'Expected "'+a+'" to have no more than '+b+" compound "+(1===b?"selector":"selectors")}});a=function(a){return function(g,e){function l(b,c){var f=1;b.each(function(a){"selector"!==a.type&&":not"!==a.value||l(a,c);"combinator"===a.type&&f++});"root"!==b.type&&"pseudo"!==b.type&&f>a&&d({ruleName:"selector-max-compound-selectors",result:e,node:c,message:p.expected(b,a),word:b})}b(e,"selector-max-compound-selectors", -{actual:a,possible:[function(a){return"number"===typeof a&&0a&&c({ruleName:"selector-max-id",result:g,node:d,message:m.expected(b,a),word:b})}p(g,"selector-max-id",{actual:a,possible:[function(a){return"number"===typeof a&&0<=a}]})&&e.walkRules(function(a){h(a)&&f(a.selector)&&(a.nodes.some(function(a){return-1!==["rule","atrule"].indexOf(a.type)})||a.selectors.forEach(function(c){b(c,a).forEach(function(b){d(b,g,a,function(b){return k(b, -a)})})}))})}}var h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/isStandardSyntaxSelector"),d=a("../../utils/parseSelector"),c=a("../../utils/report"),b=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"),m=g("selector-max-id",{expected:function(a,b){return'Expected "'+a+'" to have no more than '+b+" id "+(1===b?"selector":"selectors")}});k.ruleName="selector-max-id";k.messages=m;l.exports=k},{"../../utils/isStandardSyntaxRule":576, -"../../utils/isStandardSyntaxSelector":577,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"postcss-resolve-nested-selector":247}],487:[function(a,l,g){var k=a("../../utils/isStandardSyntaxRule"),h=a("../../utils/isStandardSyntaxSelector"),f=a("../../utils/report"),d=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages");var c=a("specificity"),b=a("../../utils/validateOptions"),p=g("selector-max-specificity",{expected:function(a, -b){return'Expected "'+a+'" to have a specificity no more than "'+b+'"'}});a=function(a){return function(g,e){if(b(e,"selector-max-specificity",{actual:a,possible:[function(a){return/^\d+,\d+,\d+$/.test(a)}]})){var l=("0,"+a).split(",").map(parseFloat);g.walkRules(function(b){k(b)&&h(b.selector)&&b.selectors.forEach(function(g){d(g,b).forEach(function(d){if(-1===g.indexOf(":not(")&&-1===g.indexOf(":matches("))try{h(d)&&1===c.compare(d,l)&&f({ruleName:"selector-max-specificity",result:e,node:b,message:p.expected(d, -a),word:g})}catch(w){e.warn("Cannot parse selector",{node:b,stylelintType:"parseError"})}})})})}}};a.ruleName="selector-max-specificity";a.messages=p;l.exports=a},{"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"postcss-resolve-nested-selector":247,specificity:329}],488:[function(a,l,g){function k(a,g){return function(k,l){function p(b,c){var k=b.reduce(function(a,b){"selector"!== -b.type&&":not"!==b.value||p(b,c);if(e(g,"ignoreTypes",b.value))return a;var k;if(k=x)k=b.parent.nodes.indexOf(b),k=b.parent.nodes.slice(0,k).some(f);if(k)return a;if(k=A)k=b.parent.nodes.indexOf(b),k=b.parent.nodes.slice(0,k).some(d);if(k)return a;if(k=C)k=b.prev()&&!h(b.prev())?!0:b.next()&&!h(b.next())?!0:!1;return k?a:a+("tag"===b.type?1:0)},0);"root"!==b.type&&"pseudo"!==b.type&&k>a&&r({ruleName:"selector-max-type",result:l,node:c,message:w.expected(b,a),word:b})}if(u(l,"selector-max-type",{actual:a, -possible:function(a){return"number"===typeof a&&0<=a}},{actual:g,possible:{ignore:["descendant","child","compounded"],ignoreTypes:[c.isString]},optional:!0})){var x=e(g,"ignore","descendant"),A=e(g,"ignore","child"),C=e(g,"ignore","compounded");k.walkRules(function(a){var c=a.selector,d=a.selectors;m(a)&&q(c)&&(d.some(function(a){return b(a)})||a.nodes.some(function(a){return-1!==["rule","atrule"].indexOf(a.type)})||a.selectors.forEach(function(b){t(b,a).forEach(function(b){q(b)&&n(b,l,a,function(b){return p(b, -a)})})}))})}}}function h(a){return a?"combinator"===c.get(a,"type"):!1}function f(a){return a?h(a)&&p(a.value):!1}function d(a){return a?h(a)&&a.value.includes(">"):!1}var c=a("lodash"),b=a("../../utils/isKeyframeSelector"),p=a("../../utils/isOnlyWhitespace"),m=a("../../utils/isStandardSyntaxRule"),q=a("../../utils/isStandardSyntaxSelector"),e=a("../../utils/optionsMatches"),n=a("../../utils/parseSelector"),r=a("../../utils/report"),t=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages"); -var u=a("../../utils/validateOptions"),w=g("selector-max-type",{expected:function(a,b){return'Expected "'+a+'" to have no more than '+b+" type "+(1===b?"selector":"selectors")}});k.ruleName="selector-max-type";k.messages=w;l.exports=k},{"../../utils/isKeyframeSelector":565,"../../utils/isOnlyWhitespace":567,"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/optionsMatches":588,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593, -"../../utils/validateOptions":595,lodash:164,"postcss-resolve-nested-selector":247}],489:[function(a,l,g){function k(a){return function(e,g){function k(b,d){var e=b.reduce(function(a,b){"selector"!==b.type&&":not"!==b.value||k(b,d);return a+("universal"===b.type?1:0)},0);"root"!==b.type&&"pseudo"!==b.type&&e>a&&c({ruleName:"selector-max-universal",result:g,node:d,message:m.expected(b,a),word:b})}p(g,"selector-max-universal",{actual:a,possible:[function(a){return"number"===typeof a&&0<=a}]})&&e.walkRules(function(a){h(a)&& -f(a.selector)&&(a.nodes.some(function(a){return-1!==["rule","atrule"].indexOf(a.type)})||a.selectors.forEach(function(c){b(c,a).forEach(function(b){d(b,g,a,function(b){return k(b,a)})})}))})}}var h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/isStandardSyntaxSelector"),d=a("../../utils/parseSelector"),c=a("../../utils/report"),b=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"),m=g("selector-max-universal",{expected:function(a,b){return'Expected "'+ -a+'" to have no more than '+b+" universal "+(1===b?"selector":"selectors")}});k.ruleName="selector-max-universal";k.messages=m;l.exports=k},{"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"postcss-resolve-nested-selector":247}],490:[function(a,l,g){var k=a("lodash"),h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/isStandardSyntaxSelector"), -d=a("../../utils/report");g=a("../../utils/ruleMessages");var c=a("../../utils/validateOptions"),b=g("selector-nested-pattern",{expected:function(a){return'Expected nested selector "'+a+'" to match specified pattern'}});a=function(a){return function(g,l){if(c(l,"selector-nested-pattern",{actual:a,possible:[k.isRegExp,k.isString]})){var e=k.isString(a)?new RegExp(a):a;g.walkRules(function(a){if("rule"===a.parent.type&&h(a)){var c=a.selector;f(c)&&(e.test(c)||d({result:l,ruleName:"selector-nested-pattern", -message:b.expected(c),node:a}))}})}}};a.ruleName="selector-nested-pattern";a.messages=b;l.exports=a},{"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164}],491:[function(a,l,g){function k(a){return r.some(function(b){return-1!==a.indexOf(b)})}function h(a){for(var b=[];(a=a.next())&&"combinator"!==a.type;)"id"!==a.type&&"class"!==a.type&&"attribute"!==a.type||b.push(a); -return b}var f=a("../../utils/isKeyframeRule"),d=a("../../utils/isStandardSyntaxRule"),c=a("../../utils/isStandardSyntaxSelector"),b=a("../../utils/optionsMatches"),p=a("../../utils/parseSelector"),m=a("../../utils/report"),q=a("postcss-resolve-nested-selector");g=a("../../utils/ruleMessages");var e=a("../../utils/validateOptions"),n=g("selector-no-qualifying-type",{rejected:"Unexpected qualifying type selector"}),r=["#",".","["];a=function(a,g){return function(l,r){e(r,"selector-no-qualifying-type", -{actual:a,possible:[!0,!1]},{actual:g,possible:{ignore:["attribute","class","id"]},optional:!0})&&l.walkRules(function(a){function e(a){a.walkTags(function(a){if(1!==a.parent.nodes.length){var c=h(a),d=a.sourceIndex;c.forEach(function(a){"id"!==a.type||b(g,"ignore","id")||l(d);"class"!==a.type||b(g,"ignore","class")||l(d);"attribute"!==a.type||b(g,"ignore","attribute")||l(d)})}})}function l(b){m({ruleName:"selector-no-qualifying-type",result:r,node:a,message:n.rejected,index:b})}d(a)&&(f(a)||c(a.selector)&& -k(a.selector)&&q(a.selector,a).forEach(function(b){c(b)&&p(b,r,a,e)}))})}};a.ruleName="selector-no-qualifying-type";a.messages=n;l.exports=a},{"../../utils/isKeyframeRule":564,"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/optionsMatches":588,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"postcss-resolve-nested-selector":247}],492:[function(a,l,g){var k=a("lodash"),h=a("../../utils/isStandardSyntaxRule"), -f=a("../../utils/isStandardSyntaxSelector"),d=a("../../utils/matchesStringOrRegExp"),c=a("../../utils/parseSelector"),b=a("postcss"),p=a("../../utils/report");g=a("../../utils/ruleMessages");var m=a("../../utils/validateOptions"),q=g("selector-pseudo-class-blacklist",{rejected:function(a){return'Unexpected pseudo-class "'+a+'"'}});a=function(a){return function(e,g){m(g,"selector-pseudo-class-blacklist",{actual:a,possible:[k.isString]})&&e.walkRules(function(e){if(h(e)){var k=e.selector;f(k)&&-1!== -k.indexOf(":")&&c(k,g,e,function(c){c.walkPseudos(function(c){var f=c.value;"::"!==f.slice(0,2)&&(f=f.slice(1),d(b.vendor.unprefixed(f),a)&&p({index:c.sourceIndex,message:q.rejected(f),node:e,result:g,ruleName:"selector-pseudo-class-blacklist"}))})})}})}};a.primaryOptionArray=!0;a.ruleName="selector-pseudo-class-blacklist";a.messages=q;l.exports=a},{"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/matchesStringOrRegExp":585,"../../utils/parseSelector":589, -"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,postcss:293}],493:[function(a,l,g){var k=a("../../utils/isStandardSyntaxRule"),h=a("../../utils/isStandardSyntaxSelector"),f=a("../../reference/keywordSets"),d=a("../../utils/parseSelector"),c=a("../../utils/report");g=a("../../utils/ruleMessages");var b=a("../../utils/validateOptions"),p=g("selector-pseudo-class-case",{expected:function(a,b){return'Expected "'+a+'" to be "'+b+'"'}});a=function(a){return function(g, -e){b(e,"selector-pseudo-class-case",{actual:a,possible:["lower","upper"]})&&g.walkRules(function(b){if(k(b)){var g=b.selector;-1!==g.indexOf(":")&&d(g,e,b,function(d){d.walkPseudos(function(d){var g=d.value;if(h(g)&&-1===g.indexOf("::")&&!f.levelOneAndTwoPseudoElements.has(g.toLowerCase().slice(1))){var k="lower"===a?g.toLowerCase():g.toUpperCase();g!==k&&c({message:p.expected(g,k),node:b,index:d.sourceIndex,ruleName:"selector-pseudo-class-case",result:e})}})})}})}};a.ruleName="selector-pseudo-class-case"; -a.messages=p;l.exports=a},{"../../reference/keywordSets":347,"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595}],494:[function(a,l,g){var k=a("lodash"),h=a("../../utils/atRuleParamIndex"),f=a("../../utils/isCustomSelector"),d=a("../../utils/isStandardSyntaxAtRule"),c=a("../../utils/isStandardSyntaxRule"),b=a("../../utils/isStandardSyntaxSelector"), -p=a("../../reference/keywordSets"),m=a("../../utils/optionsMatches"),q=a("../../utils/parseSelector"),e=a("postcss"),n=a("../../utils/report");g=a("../../utils/ruleMessages");var r=a("../../utils/validateOptions"),t=g("selector-pseudo-class-no-unknown",{rejected:function(a){return'Unexpected unknown pseudo-class selector "'+a+'"'}});a=function(a,g){return function(l,u){function w(a,c,d){q(a,c,d,function(a){a.walkPseudos(function(a){var k=a.value;if(b(k)&&!f(k)&&"::"!==k.slice(0,2)&&!m(g,"ignorePseudoClasses", -a.value.slice(1))){var l=k.slice(1).toLowerCase();if("atrule"===d.type&&"page"===d.name){if(p.atRulePagePseudoClasses.has(l))return;a=h(d)+a.sourceIndex}else{if(e.vendor.prefix(l)||p.pseudoClasses.has(l)||p.pseudoElements.has(l))return;if(a.prev()){var q=e.vendor.unprefixed(a.prev().value.toLowerCase().slice(2));if(p.webkitProprietaryPseudoElements.has(q)&&p.webkitProprietaryPseudoClasses.has(l))return}a=a.sourceIndex}n({message:t.rejected(k),node:d,index:a,ruleName:"selector-pseudo-class-no-unknown", -result:c})}})})}r(u,"selector-pseudo-class-no-unknown",{actual:a},{actual:g,possible:{ignorePseudoClasses:[k.isString]},optional:!0})&&l.walk(function(a){var b=null;if("rule"===a.type){if(!c(a))return;b=a.selector}else if("atrule"===a.type&&"page"===a.name&&a.params){if(!d(a))return;b=a.params}b&&-1!==b.indexOf(":")&&w(b,u,a)})}};a.ruleName="selector-pseudo-class-no-unknown";a.messages=t;l.exports=a},{"../../reference/keywordSets":347,"../../utils/atRuleParamIndex":523,"../../utils/isCustomSelector":562, -"../../utils/isStandardSyntaxAtRule":571,"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/optionsMatches":588,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,postcss:293}],495:[function(a,l,g){var k=a("lodash"),h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/parseSelector"),d=a("../../utils/report");g=a("../../utils/ruleMessages");var c=a("style-search"),b=a("../../utils/validateOptions"), -p=g("selector-pseudo-class-parentheses-space-inside",{expectedOpening:'Expected single space after "("',rejectedOpening:'Unexpected whitespace after "("',expectedClosing:'Expected single space before ")"',rejectedClosing:'Unexpected whitespace before ")"'});a=function(a){return function(g,e){b(e,"selector-pseudo-class-parentheses-space-inside",{actual:a,possible:["always","never"]})&&g.walkRules(function(b){function g(a,c){d({message:a,index:c,result:e,ruleName:"selector-pseudo-class-parentheses-space-inside", -node:b})}h(b)&&-1!==b.selector.indexOf("(")&&f(b.selector,e,b,function(b){b.walkPseudos(function(b){if("pseudo"!==k.get(b,"parent.parent.type")){var d=b.toString();c({source:d,target:"("},function(c){var e=" "===d[c.startIndex+1];c=b.sourceIndex+c.startIndex+1;e&&"never"===a&&g(p.rejectedOpening,c);e||"always"!==a||g(p.expectedOpening,c)});c({source:d,target:")"},function(c){var e=" "===d[c.startIndex-1];c=b.sourceIndex+c.startIndex-1;e&&"never"===a&&g(p.rejectedClosing,c);e||"always"!==a||g(p.expectedClosing, -c)})}})})})}};a.ruleName="selector-pseudo-class-parentheses-space-inside";a.messages=p;l.exports=a},{"../../utils/isStandardSyntaxRule":576,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,"style-search":331}],496:[function(a,l,g){var k=a("lodash"),h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/isStandardSyntaxSelector"),d=a("../../utils/matchesStringOrRegExp"),c=a("../../utils/parseSelector"),b=a("postcss"), -p=a("../../utils/report");g=a("../../utils/ruleMessages");var m=a("../../utils/validateOptions"),q=g("selector-pseudo-class-whitelist",{rejected:function(a){return'Unexpected pseudo-class "'+a+'"'}});a=function(a){return function(e,g){m(g,"selector-pseudo-class-whitelist",{actual:a,possible:[k.isString]})&&e.walkRules(function(e){if(h(e)){var k=e.selector;f(k)&&-1!==k.indexOf(":")&&c(k,g,e,function(c){c.walkPseudos(function(c){var f=c.value;"::"!==f.slice(0,2)&&(f=f.slice(1),d(b.vendor.unprefixed(f), -a)||p({index:c.sourceIndex,message:q.rejected(f),node:e,result:g,ruleName:"selector-pseudo-class-whitelist"}))})})}})}};a.primaryOptionArray=!0;a.ruleName="selector-pseudo-class-whitelist";a.messages=q;l.exports=a},{"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/matchesStringOrRegExp":585,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,postcss:293}],497:[function(a, -l,g){var k=a("../../utils/isStandardSyntaxRule"),h=a("../../utils/isStandardSyntaxSelector"),f=a("../../reference/keywordSets"),d=a("../../utils/parseSelector"),c=a("../../utils/report");g=a("../../utils/ruleMessages");var b=a("../../utils/validateOptions"),p=g("selector-pseudo-element-case",{expected:function(a,b){return'Expected "'+a+'" to be "'+b+'"'}});a=function(a){return function(g,e){b(e,"selector-pseudo-element-case",{actual:a,possible:["lower","upper"]})&&g.walkRules(function(b){if(k(b)){var g= -b.selector;-1!==g.indexOf(":")&&d(g,e,b,function(d){d.walkPseudos(function(d){var g=d.value;if(h(g)&&(-1!==g.indexOf("::")||f.levelOneAndTwoPseudoElements.has(g.toLowerCase().slice(1)))){var k="lower"===a?g.toLowerCase():g.toUpperCase();g!==k&&c({message:p.expected(g,k),node:b,index:d.sourceIndex,ruleName:"selector-pseudo-element-case",result:e})}})})}})}};a.ruleName="selector-pseudo-element-case";a.messages=p;l.exports=a},{"../../reference/keywordSets":347,"../../utils/isStandardSyntaxRule":576, -"../../utils/isStandardSyntaxSelector":577,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595}],498:[function(a,l,g){var k=a("lodash"),h=a("../../utils/isStandardSyntaxRule"),f=a("../../reference/keywordSets"),d=a("../../utils/report");g=a("../../utils/ruleMessages");var c=a("style-search"),b=a("../../utils/validateOptions"),p=g("selector-pseudo-element-colon-notation",{expected:function(a){return"Expected "+a+" colon pseudo-element notation"}}); -a=function(a){return function(g,e){b(e,"selector-pseudo-element-colon-notation",{actual:a,possible:["single","double"]})&&g.walkRules(function(b){if(h(b)){var g=b.selector;if(-1!==g.indexOf(":")){var l=k.toArray(f.levelOneAndTwoPseudoElements).map(function(a){return":"+a});c({source:g.toLowerCase(),target:l},function(c){var f=":"===g[c.startIndex-1];if("single"!==a||f)"double"===a&&f||d({message:p.expected(a),node:b,index:c.startIndex,result:e,ruleName:"selector-pseudo-element-colon-notation"})})}}})}}; -a.ruleName="selector-pseudo-element-colon-notation";a.messages=p;l.exports=a},{"../../reference/keywordSets":347,"../../utils/isStandardSyntaxRule":576,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,"style-search":331}],499:[function(a,l,g){var k=a("lodash"),h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/isStandardSyntaxSelector"),d=a("../../reference/keywordSets"),c=a("../../utils/optionsMatches"),b=a("../../utils/parseSelector"),p= -a("postcss"),m=a("../../utils/report");g=a("../../utils/ruleMessages");var q=a("../../utils/validateOptions"),e=g("selector-pseudo-element-no-unknown",{rejected:function(a){return'Unexpected unknown pseudo-element selector "'+a+'"'}});a=function(a,g){return function(l,n){q(n,"selector-pseudo-element-no-unknown",{actual:a},{actual:g,possible:{ignorePseudoElements:[k.isString]},optional:!0})&&l.walkRules(function(a){if(h(a)){var k=a.selector;-1!==k.indexOf(":")&&b(k,n,a,function(b){b.walkPseudos(function(b){var h= -b.value;if(f(h)&&"::"===h.slice(0,2)&&!c(g,"ignorePseudoElements",b.value.slice(2))){var k=h.slice(2);p.vendor.prefix(k)||d.pseudoElements.has(k.toLowerCase())||m({message:e.rejected(h),node:a,index:b.sourceIndex,ruleName:"selector-pseudo-element-no-unknown",result:n})}})})}})}};a.ruleName="selector-pseudo-element-no-unknown";a.messages=e;l.exports=a},{"../../reference/keywordSets":347,"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/optionsMatches":588, -"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595,lodash:164,postcss:293}],500:[function(a,l,g){var k=a("../../utils/isKeyframeSelector"),h=a("../../utils/isStandardSyntaxRule"),f=a("../../utils/isStandardSyntaxSelector"),d=a("../../utils/isStandardSyntaxTypeSelector"),c=a("../../utils/parseSelector"),b=a("../../utils/report");g=a("../../utils/ruleMessages");var p=a("../../utils/validateOptions"),m=g("selector-type-case",{expected:function(a, -b){return'Expected "'+a+'" to be "'+b+'"'}});a=function(a){return function(e,g){p(g,"selector-type-case",{actual:a,possible:["lower","upper"]})&&e.walkRules(function(e){var l=e.selector,n=e.selectors;h(e)&&f(l)&&(n.some(function(a){return k(a)})||c(l,g,e,function(c){c.walkTags(function(c){if(d(c)){var f=c.sourceIndex;c=c.value;var h="lower"===a?c.toLowerCase():c.toUpperCase();c!==h&&b({message:m.expected(c,h),node:e,index:f,ruleName:"selector-type-case",result:g})}})}))})}};a.ruleName="selector-type-case"; -a.messages=m;l.exports=a},{"../../utils/isKeyframeSelector":565,"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/isStandardSyntaxTypeSelector":578,"../../utils/parseSelector":589,"../../utils/report":592,"../../utils/ruleMessages":593,"../../utils/validateOptions":595}],501:[function(a,l,g){var k=a("lodash"),h=a("html-tags"),f=a("../../utils/isCustomElement"),d=a("../../utils/isKeyframeSelector"),c=a("../../utils/isStandardSyntaxRule"),b=a("../../utils/isStandardSyntaxSelector"), -p=a("../../utils/isStandardSyntaxTypeSelector"),m=a("../../reference/keywordSets"),q=a("mathml-tag-names"),e=a("../../utils/optionsMatches"),n=a("../../utils/parseSelector"),r=a("../../utils/report");g=a("../../utils/ruleMessages");var t=a("svg-tags"),u=a("../../utils/validateOptions"),w=g("selector-type-no-unknown",{rejected:function(a){return'Unexpected unknown type selector "'+a+'"'}});a=function(a,g){return function(l,x){u(x,"selector-type-no-unknown",{actual:a},{actual:g,possible:{ignore:["custom-elements", -"default-namespace"],ignoreNamespaces:[k.isString],ignoreTypes:[k.isString]},optional:!0})&&l.walkRules(function(a){var k=a.selector,l=a.selectors;c(a)&&b(k)&&(l.some(function(a){return d(a)})||n(k,x,a,function(b){b.walkTags(function(b){if(p(b)&&!(e(g,"ignore","custom-elements")&&f(b.value)||e(g,"ignore","default-namespace")&&!b.hasOwnProperty("namespace")||e(g,"ignoreNamespaces",b.namespace)||e(g,"ignoreTypes",b.value))){var c=b.value,d=c.toLowerCase();-1!==h.indexOf(d)||-1!==t.indexOf(d)||m.nonStandardHtmlTags.has(d)|| --1!==q.indexOf(d)||r({message:w.rejected(c),node:a,index:b.sourceIndex,ruleName:"selector-type-no-unknown",result:x})}})}))})}};a.ruleName="selector-type-no-unknown";a.messages=w;l.exports=a},{"../../reference/keywordSets":347,"../../utils/isCustomElement":558,"../../utils/isKeyframeSelector":565,"../../utils/isStandardSyntaxRule":576,"../../utils/isStandardSyntaxSelector":577,"../../utils/isStandardSyntaxTypeSelector":578,"../../utils/optionsMatches":588,"../../utils/parseSelector":589,"../../utils/report":592, -"../../utils/ruleMessages":593,"../../utils/validateOptions":595,"html-tags":106,lodash:164,"mathml-tag-names":165,"svg-tags":607}],502:[function(a,l,g){var k=a("../utils/isStandardSyntaxRule"),h=a("../utils/parseSelector"),f=a("../utils/report"),d=a("style-search");l.exports=function(a){a.root.walkRules(function(b){function c(b,c,d,h,g){a.locationChecker({source:b,index:c,err:function(b){return f({message:b.replace(a.checkBeforeOperator?g[0]:g[g.length-1],g),node:d,index:h+c,result:a.result,ruleName:a.checkedRuleName})}})} -k(b)&&-1!==b.selector.indexOf("[")&&-1!==b.selector.indexOf("=")&&h(b.selector,a.result,b,function(f){f.walkAttributes(function(f){var e=f.operator;if(e){var h=f.toString();d({source:h,target:e},function(d){c(h,a.checkBeforeOperator?d.startIndex:d.endIndex-1,b,f.sourceIndex,e)})}})})})}},{"../utils/isStandardSyntaxRule":576,"../utils/parseSelector":589,"../utils/report":592,"style-search":331}],503:[function(a,l,g){var k=a("../utils/isStandardSyntaxRule"),h=a("../utils/parseSelector"),f=a("../utils/report"); -l.exports=function(a){function c(b,c,d,h,e){a.locationChecker({source:b,index:d,errTarget:c,err:function(b){return f({message:b,node:h,index:e,result:a.result,ruleName:a.checkedRuleName})}})}a.root.walkRules(function(b){k(b)&&b.selectors.forEach(function(d){h(d,a.result,b,function(f){f.walkCombinators(function(f){if(!/\s/.test(f.value)){var e=f.parent&&f.parent.parent;e&&"pseudo"===e.type||(e=f.sourceIndex,c(d,f.value,1=p.length||4=b.number?!0:"ms"===b.unit.toLowerCase()&&b.number",deprecations:[],invalidOptionWarnings:[],parseErrors:[],errored:!0,warnings:[{line:a.line,column:a.column,rule:a.name,severity:"error",text:a.reason+" ("+a.name+")"}]}}throw a;}var h=a("./createStylelint"),f=a("debug")("stylelint:standalone"); -a("./utils/FileCache");var d=a("./formatters");a("globby");a("./utils/hash");var c=a("ignore"),b=a("./needlessDisables");a("pify");a("../package.json");var p=["**/node_modules/**","**/bower_components/**"];l.exports=function(a){function g(a){var c={errored:a.some(function(a){return a.errored||0")}},{}],569:[function(a,l,g){function k(a,b){return h.get(a,"source.start.line")===h.get(b,"source.start.line")}var h=a("lodash"),f=a("./getNextNonSharedLineCommentNode"),d=a("./getPreviousNonSharedLineCommentNode");l.exports=function(a){if("comment"!==a.type)return!1;var b=d(a);if(k(a,b))return!0;b=f(a);if(k(a,b))return!0;b=a.parent;return void 0!==b&&"root"!==b.type&&b.source.start.line===a.source.start.line?!0:!1}},{"./getNextNonSharedLineCommentNode":539, -"./getPreviousNonSharedLineCommentNode":541,lodash:164}],570:[function(a,l,g){l.exports=function(a){return!/[\n\r]/.test(a)}},{}],571:[function(a,l,g){l.exports=function(a){return!a.nodes&&""===a.params||!a.nodes&&""===a.raws.afterName&&"("===a.params[0]?!1:!0}},{}],572:[function(a,l,g){l.exports=function(a){var g=a.prop;a=a.parent;return"root"===a.type||"$"===g[0]||"@"===g[0]&&"{"!==g[1]||a.selector&&":"===a.selector[a.selector.length-1]&&"--"!==a.selector.substring(0,2)?!1:!0}},{}],573:[function(a, -l,g){l.exports=function(a){return a.value?!0:!1}},{}],574:[function(a,l,g){l.exports=function(a){return/#{.+?}|\$.+?/.test(a)?!1:!0}},{}],575:[function(a,l,g){var k=a("lodash"),h=a("../utils/hasInterpolation");l.exports=function(a){return"$"===a[0]||"@"===a[0]||k.endsWith(a,"+")||k.endsWith(a,"+_")||h(a)?!1:!0}},{"../utils/hasInterpolation":547,lodash:164}],576:[function(a,l,g){var k=a("lodash"),h=a("../utils/isCustomPropertySet");l.exports=function(a){var d=k.get(a,"raws.selector.raw",a.selector); -return h(a)||a.mixin||"@"===d.slice(0,1)&&":"===d.slice(-1)||a.extend||a.params&&a.params[0]||k.endsWith(d,")")&&!k.includes(d,":")||/when\s+(not\s+)*\(/.test(d)||":"===d.slice(-1)?!1:!0}},{"../utils/isCustomPropertySet":561,lodash:164}],577:[function(a,l,g){var k=a("../utils/hasInterpolation");l.exports=function(a){return k(a)||0===a.indexOf("%")||/:extend(\(.*?\))?/.test(a)?!1:!0}},{"../utils/hasInterpolation":547}],578:[function(a,l,g){var k=a("lodash"),h=a("../reference/keywordSets");l.exports= -function(a){var d=a.parent.parent,c=d.type;if(d=d.value)if(d=d.toLowerCase().replace(/:+/,""),"pseudo"===c&&(h.aNPlusBNotationPseudoClasses.has(d)||h.linguisticPseudoClasses.has(d)))return!1;return a.prev()&&"nesting"===a.prev().type||"%"===a.value[0]||k.startsWith(a.value,"/")&&k.endsWith(a.value,"/")?!1:!0}},{"../reference/keywordSets":347,lodash:164}],579:[function(a,l,g){var k=a("../utils/hasLessInterpolation"),h=a("../utils/hasPsvInterpolation"),f=a("../utils/hasScssInterpolation");l.exports= -function(a){return 0===a.length?!0:f(a)||h(a)?!1:"'"===a[0]&&"'"===a[a.length-1]||'"'===a[0]&&'"'===a[a.length-1]?k(a)?!1:!0:"@"===a[0]&&/^@@?[\w-]+$/.test(a)||-1!==a.indexOf("$")&&/^[$\sA-Za-z0-9+-/*_'"/]+$/.test(a)&&"/"!==a[a.length-1]?!1:!0}},{"../utils/hasLessInterpolation":548,"../utils/hasPsvInterpolation":549,"../utils/hasScssInterpolation":550}],580:[function(a,l,g){var k=a("../utils/hasInterpolation");l.exports=function(a){var f=a;/^[-+*/]/.test(a[0])&&(f=f.slice(1));return"$"===f[0]||"@"=== -f[0]||k(f)?!1:!0}},{"../utils/hasInterpolation":547}],581:[function(a,l,g){var k=a("../reference/keywordSets"),h=a("postcss-value-parser");l.exports=function(a){if(!a)return!1;if(k.fontSizeKeywords.has(a))return!0;a=h.unit(a);if(!a)return!1;a=a.unit;return"%"===a||k.lengthUnits.has(a.toLowerCase())?!0:!1}},{"../reference/keywordSets":347,"postcss-value-parser":276}],582:[function(a,l,g){l.exports=function(a){return/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(a)}},{}],583:[function(a, -l,g){l.exports=function(a){return"var("===a.toLowerCase().slice(0,4)}},{}],584:[function(a,l,g){l.exports=function(a){return-1!==[" ","\n","\t","\r","\f"].indexOf(a)}},{}],585:[function(a,l,g){function k(a,d){if(!Array.isArray(d))return h(a,d);for(var c=$jscomp.makeIterator(d),b=c.next();!b.done;b=c.next())if(b=h(a,b.value))return b;return!1}function h(a,d){var c=d[d.length-1],b=d[d.length-2];return(b="/"===d[0]&&("/"===c||"/"===b&&"i"===c))?(b&&"i"===c?(new RegExp(d.slice(1,-2),"i")).test(a):(new RegExp(d.slice(1, --1))).test(a))?{match:a,pattern:d}:!1:a===d?{match:a,pattern:d}:!1}l.exports=function(a,d){if(!Array.isArray(a))return k(a,d);for(var c=$jscomp.makeIterator(a),b=c.next();!b.done;b=c.next())if(b=k(b.value,d))return b;return!1}},{}],586:[function(a,l,g){l.exports=function h(a){return a&&a.next?"comment"===a.type?h(a.next()):a:null}},{}],587:[function(a,l,g){function k(a,f){a.has(f)||a.set(f,new Map);return a.get(f)}l.exports=function(){var a=new Map;return{getContext:function(f){var d=k(a,f.source.input.from); -return Array.from(arguments).slice(1).reduce(function(a,b){return k(a,b)},d)}}}},{}],588:[function(a,l,g){var k=a("./matchesStringOrRegExp");l.exports=function(a,f,d){return!!(a&&a[f]&&"string"===typeof d&&k(d,a[f]))}},{"./matchesStringOrRegExp":585}],589:[function(a,l,g){var k=a("postcss-selector-parser");l.exports=function(a,f,d,c){try{k(c).process(a)}catch(b){f.warn("Cannot parse selector",{node:d,stylelintType:"parseError"})}}},{"postcss-selector-parser":255}],590:[function(a,l,g){l.exports=function(a){var g= -"";a.raws.before&&(g+=a.raws.before);return g+=a.toString()}},{}],591:[function(a,l,g){l.exports=function(a,g){a.raws.before=a.raws.before.replace(/(\r?\n\s*\r?\n)+/g,g);return a}},{}],592:[function(a,l,g){var k=a("lodash");l.exports=function(a){var f=a.ruleName,d=a.result,c=a.message,b=a.line,g=a.node,h=a.index;a=a.word;d.stylelint=d.stylelint||{};if(!d.stylelint.quiet||"error"===d.stylelint.ruleSeverities[f]){b=b||g.positionBy({index:h}).line;if(d.stylelint.disabledRanges&&!d.stylelint.ignoreDisables)for(var l= -$jscomp.makeIterator(d.stylelint.disabledRanges[f]||d.stylelint.disabledRanges.all),e=l.next();!e.done;e=l.next())if(e=e.value,e.start<=b&&(e.end>=b||void 0===e.end)&&(!e.rules||-1!==e.rules.indexOf(f)))return;b=k.get(d.stylelint,["ruleSeverities",f],"ignore");d.stylelint.stylelintError||"error"!==b||(d.stylelint.stylelintError=!0);b={severity:b,rule:f};g&&(b.node=g);h&&(b.index=h);a&&(b.word=a);f=k.get(d.stylelint,["customMessages",f],c);d.warn(f,b)}}},{lodash:164}],593:[function(a,l,g){l.exports= -function(a,g){return Object.keys(g).reduce(function(f,d){var c=g[d];f[d]="string"===typeof c?c+" ("+a+")":function(){return c.apply(null,arguments)+" ("+a+")"};return f},{})}},{}],594:[function(a,l,g){var k=a("lodash");l.exports=function(a){return k.isPlainObject(a)?Object.keys(a).every(function(f){return k.isArray(a[f])?a[f].every(function(a){return k.isString(a)}):!1}):!1}},{lodash:164}],595:[function(a,l,g){function k(a,b,g){var c=a.possible,k=a.actual;a=a.optional;if(null!==k&&!f.isEqual(k,[null])){var e= -void 0===c||Array.isArray(c)&&0===c.length;e&&!0===k||(void 0===k?e||a||g('Expected option value for rule "'+b+'"'):e?g('Unexpected option value "'+k+'" for rule "'+b+'"'):f.isFunction(c)?c(k)||g('Invalid option "'+JSON.stringify(k)+'" for rule '+b):f.isPlainObject(c)?f.isPlainObject(k)?Object.keys(k).forEach(function(a){-1===d.indexOf(a)&&(c[a]?[].concat(k[a]).forEach(function(d){h(c[a],d)||g('Invalid value "'+d+'" for option "'+a+'" of rule "'+b+'"')}):g('Invalid option name "'+a+'" for rule "'+ -b+'"'))}):g("Invalid option value "+JSON.stringify(k)+' for rule "'+b+'": should be an object'):[].concat(k).forEach(function(a){h(c,a)||g('Invalid option value "'+a+'" for rule "'+b+'"')}))}}function h(a,b){for(var c=[].concat(a),d=0,f=c.length;d=4.2.1"},eslintConfig:{"extends":["stylelint"],globals:{testRule:!0}},files:"bin CONTRIBUTING.md decls/*.js docs lib VISION.md !**/__tests__".split(" "),greenkeeper:{label:"PR: review needed"},homepage:"https://stylelint.io",jest:{clearMocks:!0,collectCoverage:!1,collectCoverageFrom:["lib/**/*.js"],coverageDirectory:"./.coverage/",coverageReporters:["lcov","text-summary"],coverageThreshold:{global:{branches:75,functions:75,lines:75,statements:75}}, -setupFiles:["./jest-setup.js"],testEnvironment:"node",roots:["lib","system-tests"],testRegex:".*\\.test\\.js$|rules/.*/__tests__/.*\\.js$"},keywords:"css less scss sugarss lint linter stylelint".split(" "),license:"MIT","lint-staged":{"*.js":["prettier --write","git add"]},main:"lib/index.js",name:"stylelint",remarkConfig:{plugins:["preset-lint-recommended","preset-lint-consistent",["validate-links",{repository:"stylelint/stylelint"}]]},repository:{type:"git",url:"git+https://github.com/stylelint/stylelint.git"}, -scripts:{"benchmark-rule":"node scripts/benchmark-rule.js","dry-release":"npmpub --dry --verbose",flow:"flow",jest:"jest",lint:"npm-run-all --parallel lint:*","lint:js":"eslint . --cache","lint:md":"remark . --quiet --frail",precommit:"lint-staged",pretest:"npm-run-all --serial lint flow",release:"npmpub",test:"jest --coverage",watch:"jest --watch"},version:"8.0.0"}},{}],598:[function(a,l,g){g.__esModule=!0;var k=a("./stringify");k=k&&k.__esModule?k:{"default":k};a=a("./parse");g["default"]={stringify:k["default"], -parse:(a&&a.__esModule?a:{"default":a})["default"]};l.exports=g["default"]},{"./parse":600,"./stringify":604}],599:[function(a,l,g){g.__esModule=!0;g["default"]=function(a){var g=[],f=[g],d=0;$jscomp.initSymbol();$jscomp.initSymbolIterator();var c=Array.isArray(a),b=0;for(a=c?a:a[Symbol.iterator]();;){if(c){if(b>=a.length)break;var k=a[b++]}else{b=a.next();if(b.done)break;k=b.value}g.push(k);"("===k[0]?d+=1:")"===k[0]?--d:"newline"===k[0]&&0===d&&(g=[],f.push(g))}return f};l.exports=g["default"]}, -{}],600:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}g.__esModule=!0;g["default"]=function(a,g){var e=new f["default"](a,g),h=new b["default"](e);h.tokens=(0,c["default"])(e);h.parts=(0,d["default"])(e,(0,p["default"])(h.tokens));h.loop();return h.root};var h=a("postcss/lib/input"),f=k(h);h=a("./preprocess");var d=k(h);h=a("./tokenize");var c=k(h);h=a("./parser");var b=k(h);a=a("./liner");var p=k(a);l.exports=g["default"]},{"./liner":599,"./parser":601,"./preprocess":602, -"./tokenize":605,"postcss/lib/input":286}],601:[function(a,l,g){function k(a){return a&&a.__esModule?a:{"default":a}}g.__esModule=!0;var h=a("postcss/lib/declaration"),f=k(h);h=a("postcss/lib/comment");var d=k(h);h=a("postcss/lib/at-rule");var c=k(h);h=a("postcss/lib/rule");var b=k(h);a=a("postcss/lib/root");var p=k(a);a=function(){function a(b){if(!(this instanceof a))throw new TypeError("Cannot call a class as a function");this.input=b;this.pos=0;this.current=this.root=new p["default"];this.spaces= -"";this.step=this.prevIndent=void 0;this.root.source={input:b,start:{line:1,column:1}}}a.prototype.loop=function(){for(var a;this.posa.indent.length;c?c&&b.colon?this.rule(a):c&&!b.colon&&this.decl(a):this.decl(a)}}else a.end?this.root.raws.after=a.before:this.rule(a);this.pos+=1}for(a= -this.tokens.length-1;0<=a;a--)if(3a.indent.length;)h.push(["space",k.before+k.indent]),h=h.concat(k.tokens),this.pos+=1,k=this.parts[this.pos+1];(a=h[h.length-1])&&"comment"===a[0]&&(h.pop(),k=new d["default"],this.current.push(k),k.source={input:this.input,start:{line:a[2],column:a[3]},end:{line:a[4],column:a[5]}},(l=h[h.length-1])&&"space"===l[0]&&(h.pop(),k.raws.before=l[1]),this.commentText(k,a));for(a=h.length-1;0=a.length)break;var d= -a[c++]}else{c=a.next();if(c.done)break;d=c.value}"{"===d[0]&&this.error("Unnecessary curly bracket",d[2],d[3])}};a.prototype.checkSemicolon=function(a){$jscomp.initSymbol();$jscomp.initSymbolIterator();var b=Array.isArray(a),c=0;for(a=b?a:a[Symbol.iterator]();;){if(b){if(c>=a.length)break;var d=a[c++]}else{c=a.next();if(c.done)break;d=c.value}";"===d[0]&&this.error("Unnecessary semicolon",d[2],d[3])}};a.prototype.keepTrailingSpace=function(a,b){var c=b[b.length-1];c&&"space"===c[0]&&(b.pop(),a.raws.sssBetween= -c[1])};a.prototype.firstSpaces=function(a){for(var b="",c=0;c { - const stylelint = require('stylelint'); - - self.onmessage = ({data: {action = 'run', code, config}}) => { - switch (action) { - case 'getAllRuleIds': - // the functions are non-tranferable - self.postMessage(Object.keys(stylelint.rules)); - return; - case 'getAllRuleOptions': - self.postMessage(getAllRuleOptions()); - return; - case 'run': - stylelint.lint({code, config}).then(results => - self.postMessage(results)); - return; - } - }; - - function getAllRuleOptions() { - const options = {}; - const rxPossible = /\bpossible:("(?:[^"]*?)"|\[(?:[^\]]*?)\]|\{(?:[^}]*?)\})/g; - const rxString = /"([-\w\s]{3,}?)"/g; - for (const id of Object.keys(stylelint.rules)) { - const ruleCode = String(stylelint.rules[id]); - const sets = []; - let m, mStr; - while ((m = rxPossible.exec(ruleCode))) { - const possible = m[1]; - const set = []; - while ((mStr = rxString.exec(possible))) { - const s = mStr[1]; - if (s.includes(' ')) { - set.push(...s.split(/\s+/)); - } else { - set.push(s); - } - } - if (possible.includes('ignoreAtRules')) { - set.push('ignoreAtRules'); - } - if (possible.includes('ignoreShorthands')) { - set.push('ignoreShorthands'); - } - if (set.length) { - sets.push(set); - } - } - if (sets.length) { - options[id] = sets; - } - } - return options; - } -})(); diff --git a/vendor-overwrites/stylelint/stylelint-mod.md b/vendor-overwrites/stylelint/stylelint-mod.md deleted file mode 100644 index 7d2955e5..00000000 --- a/vendor-overwrites/stylelint/stylelint-mod.md +++ /dev/null @@ -1 +0,0 @@ -Stylelint bundle file from https://github.com/Mottie/stylelint/tree/mod - see the readme for details. diff --git a/vendor/codemirror/LICENSE b/vendor/codemirror/LICENSE index ff7db4b9..60c90dc4 100644 --- a/vendor/codemirror/LICENSE +++ b/vendor/codemirror/LICENSE @@ -1,3 +1,8 @@ +https://codemirror.net/ + +https://github.com/codemirror/CodeMirror/blob/master/LICENSE + + MIT License Copyright (C) 2017 by Marijn Haverbeke and others diff --git a/vendor/jsonlint/LICENSE b/vendor/jsonlint/LICENSE new file mode 100644 index 00000000..c8673112 --- /dev/null +++ b/vendor/jsonlint/LICENSE @@ -0,0 +1,13 @@ +https://github.com/zaach/jison +https://github.com/zaach/jsonlint + + +Copyright (c) 2009-2014 Zachary Carter + +MIT LICENSE + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/less/LICENSE b/vendor/less/LICENSE new file mode 100644 index 00000000..485aeaa2 --- /dev/null +++ b/vendor/less/LICENSE @@ -0,0 +1,181 @@ +https://github.com/less/less.js + +https://github.com/less/less.js/blob/master/LICENSE + + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS diff --git a/vendor/less/less.min.js b/vendor/less/less.min.js index 0aeaf7a5..707af331 100644 --- a/vendor/less/less.min.js +++ b/vendor/less/less.min.js @@ -1,5 +1,5 @@ /*! - * Less - Leaner CSS v3.5.0-beta.2 + * Less - Leaner CSS v3.6.0 * http://lesscss.org * * Copyright (c) 2009-2018, Alexis Sellier @@ -10,8 +10,9 @@ /** * @license Apache-2.0 */ -!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.less=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g0||b.isFileProtocol?"development":"production");var c=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(a.location.hash);c&&(b.dumpLineNumbers=c[1]),void 0===b.useFileCache&&(b.useFileCache=!0),void 0===b.onReady&&(b.onReady=!0),b.javascriptEnabled=!(!b.javascriptEnabled&&!b.inlineJavaScript)}},{"./browser":3,"./utils":11}],2:[function(a,b,c){function d(a){a.filename&&console.warn(a),e.async||h.removeChild(i)}a("promise/polyfill");var e=a("../less/default-options")();if(window.less)for(key in window.less)window.less.hasOwnProperty(key)&&(e[key]=window.less[key]);a("./add-default-options")(window,e),e.plugins=e.plugins||[],window.LESS_PLUGINS&&(e.plugins=e.plugins.concat(window.LESS_PLUGINS));var f=b.exports=a("./index")(window,e);window.less=f;var g,h,i;e.onReady&&(/!watch/.test(window.location.hash)&&f.watch(),e.async||(g="body { display: none !important }",h=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style"),i.type="text/css",i.styleSheet?i.styleSheet.cssText=g:i.appendChild(document.createTextNode(g)),h.appendChild(i)),f.registerStylesheetsImmediately(),f.pageLoadFinished=f.refresh("development"===f.env).then(d,d))},{"../less/default-options":16,"./add-default-options":1,"./index":8,"promise/polyfill":100}],3:[function(a,b,c){var d=a("./utils");b.exports={createCSS:function(a,b,c){var e=c.href||"",f="less:"+(c.title||d.extractId(e)),g=a.getElementById(f),h=!1,i=a.createElement("style");i.setAttribute("type","text/css"),c.media&&i.setAttribute("media",c.media),i.id=f,i.styleSheet||(i.appendChild(a.createTextNode(b)),h=null!==g&&g.childNodes.length>0&&i.childNodes.length>0&&g.firstChild.nodeValue===i.firstChild.nodeValue);var j=a.getElementsByTagName("head")[0];if(null===g||h===!1){var k=c&&c.nextSibling||null;k?k.parentNode.insertBefore(i,k):j.appendChild(i)}if(g&&h===!1&&g.parentNode.removeChild(g),i.styleSheet)try{i.styleSheet.cssText=b}catch(l){throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(a){var b=a.document;return b.currentScript||function(){var a=b.getElementsByTagName("script");return a[a.length-1]}()}}},{"./utils":11}],4:[function(a,b,c){b.exports=function(a,b,c){var d=null;if("development"!==b.env)try{d="undefined"==typeof a.localStorage?null:a.localStorage}catch(e){}return{setCSS:function(a,b,e,f){if(d){c.info("saving "+a+" to cache.");try{d.setItem(a,f),d.setItem(a+":timestamp",b),e&&d.setItem(a+":vars",JSON.stringify(e))}catch(g){c.error('failed to save "'+a+'" to local storage for caching.')}}},getCSS:function(a,b,c){var e=d&&d.getItem(a),f=d&&d.getItem(a+":timestamp"),g=d&&d.getItem(a+":vars");if(c=c||{},f&&b.lastModified&&new Date(b.lastModified).valueOf()===new Date(f).valueOf()&&(!c&&!g||JSON.stringify(c)===g))return e}}}},{}],5:[function(a,b,c){var d=a("./utils"),e=a("./browser");b.exports=function(a,b,c){function f(b,f){var g,h,i="less-error-message:"+d.extractId(f||""),j='
  • {content}
  • ',k=a.document.createElement("div"),l=[],m=b.filename||f,n=m.match(/([^\/]+(\?.*)?)$/)[1];k.id=i,k.className="less-error-message",h="

    "+(b.type||"Syntax")+"Error: "+(b.message||"There is an error in your .less file")+'

    in '+n+" ";var o=function(a,b,c){void 0!==a.extract[b]&&l.push(j.replace(/\{line\}/,(parseInt(a.line,10)||0)+(b-1)).replace(/\{class\}/,c).replace(/\{content\}/,a.extract[b]))};b.line&&(o(b,0,""),o(b,1,"line"),o(b,2,""),h+="on line "+b.line+", column "+(b.column+1)+":

      "+l.join("")+"
    "),b.stack&&(b.extract||c.logLevel>=4)&&(h+="
    Stack Trace
    "+b.stack.split("\n").slice(1).join("
    ")),k.innerHTML=h,e.createCSS(a.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),k.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"===c.env&&(g=setInterval(function(){var b=a.document,c=b.body;c&&(b.getElementById(i)?c.replaceChild(k,b.getElementById(i)):c.insertBefore(k,c.firstChild),clearInterval(g))},10))}function g(b){var c=a.document.getElementById("less-error-message:"+d.extractId(b));c&&c.parentNode.removeChild(c)}function h(a){}function i(a){c.errorReporting&&"html"!==c.errorReporting?"console"===c.errorReporting?h(a):"function"==typeof c.errorReporting&&c.errorReporting("remove",a):g(a)}function j(a,d){var e="{line} {content}",f=a.filename||d,g=[],h=(a.type||"Syntax")+"Error: "+(a.message||"There is an error in your .less file")+" in "+f,i=function(a,b,c){void 0!==a.extract[b]&&g.push(e.replace(/\{line\}/,(parseInt(a.line,10)||0)+(b-1)).replace(/\{class\}/,c).replace(/\{content\}/,a.extract[b]))};a.line&&(i(a,0,""),i(a,1,"line"),i(a,2,""),h+=" on line "+a.line+", column "+(a.column+1)+":\n"+g.join("\n")),a.stack&&(a.extract||c.logLevel>=4)&&(h+="\nStack Trace\n"+a.stack),b.logger.error(h)}function k(a,b){c.errorReporting&&"html"!==c.errorReporting?"console"===c.errorReporting?j(a,b):"function"==typeof c.errorReporting&&c.errorReporting("add",a,b):f(a,b)}return{add:k,remove:i}}},{"./browser":3,"./utils":11}],6:[function(a,b,c){b.exports=function(b,c){var d=a("../less/environment/abstract-file-manager.js"),e={},f=function(){};return f.prototype=new d,f.prototype.alwaysMakePathsAbsolute=function(){return!0},f.prototype.join=function(a,b){return a?this.extractUrlParts(b,a).path:b},f.prototype.doXHR=function(a,d,e,f){function g(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):"function"==typeof d&&d(b.status,a)}var h=new XMLHttpRequest,i=!b.isFileProtocol||b.fileAsync;"function"==typeof h.overrideMimeType&&h.overrideMimeType("text/css"),c.debug("XHR: Getting '"+a+"'"),h.open("GET",a,i),h.setRequestHeader("Accept",d||"text/x-less, text/css; q=0.9, */*; q=0.5"),h.send(null),b.isFileProtocol&&!b.fileAsync?0===h.status||h.status>=200&&h.status<300?e(h.responseText):f(h.status,a):i?h.onreadystatechange=function(){4==h.readyState&&g(h,e,f)}:g(h,e,f)},f.prototype.supports=function(a,b,c,d){return!0},f.prototype.clearFileCache=function(){e={}},f.prototype.loadFile=function(a,b,c,d){b&&!this.isPathAbsolute(a)&&(a=b+a),a=c.ext?this.tryAppendExtension(a,c.ext):a,c=c||{};var f=this.extractUrlParts(a,window.location.href),g=f.url,h=this;return new Promise(function(a,b){if(c.useFileCache&&e[g])try{var d=e[g];return a({contents:d,filename:g,webInfo:{lastModified:new Date}})}catch(f){return b({filename:g,message:"Error loading file "+g+" error was "+f.message})}h.doXHR(g,c.mime,function(b,c){e[g]=b,a({contents:b,filename:g,webInfo:{lastModified:c}})},function(a,c){b({type:"File",message:"'"+c+"' wasn't found ("+a+")",href:g})})})},f}},{"../less/environment/abstract-file-manager.js":17}],7:[function(a,b,c){b.exports=function(){function b(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var c=a("./../less/functions/function-registry"),d={"image-size":function(a){return b(this,a),-1},"image-width":function(a){return b(this,a),-1},"image-height":function(a){return b(this,a),-1}};c.addMultiple(d)}},{"./../less/functions/function-registry":26}],8:[function(a,b,c){var d=a("./utils").addDataAttr,e=a("./browser");b.exports=function(b,c){function f(a){return JSON.parse(JSON.stringify(a||{}))}function g(a,b){var c=Array.prototype.slice.call(arguments,2);return function(){var d=c.concat(Array.prototype.slice.call(arguments,0));return a.apply(b,d)}}function h(a){for(var b,d=l.getElementsByTagName("style"),e=0;e=c&&console.log(a)},info:function(a){b.logLevel>=d&&console.log(a)},warn:function(a){b.logLevel>=e&&console.warn(a)},error:function(a){b.logLevel>=f&&console.error(a)}}]);for(var g=0;g0&&(a=a.slice(0,b)),b=a.lastIndexOf("/"),b<0&&(b=a.lastIndexOf("\\")),b<0?"":a.slice(0,b+1)},d.prototype.tryAppendExtension=function(a,b){return/(\.[a-z]*$)|([\?;].*)$/.test(a)?a:a+b},d.prototype.tryAppendLessExtension=function(a){return this.tryAppendExtension(a,".less")},d.prototype.supportsSync=function(){return!1},d.prototype.alwaysMakePathsAbsolute=function(){return!1},d.prototype.isPathAbsolute=function(a){return/^(?:[a-z-]+:|\/|\\|#)/i.test(a)},d.prototype.join=function(a,b){return a?a+b:b},d.prototype.pathDiff=function(a,b){var c,d,e,f,g=this.extractUrlParts(a),h=this.extractUrlParts(b),i="";if(g.hostPart!==h.hostPart)return"";for(d=Math.max(h.directories.length,g.directories.length),c=0;cparseInt(b[c])?-1:1;return 0},g.prototype.versionToString=function(a){for(var b="",c=0;c=0;h--){var i=g[h];if(i[f?"supportsSync":"supports"](a,b,c,e))return i}return null},e.prototype.addFileManager=function(a){this.fileManagers.push(a)},e.prototype.clearFileManagers=function(){this.fileManagers=[]},b.exports=e},{"../logger":37}],20:[function(a,b,c){var d=a("./function-registry"),e=a("../tree/anonymous"),f=a("../tree/keyword");d.addMultiple({"boolean":function(a){return a?f.True:f.False},"if":function(a,b,c){return a?b:c||new e}})},{"../tree/anonymous":48,"../tree/keyword":68,"./function-registry":26}],21:[function(a,b,c){function d(a,b,c){var d,f,g,h,i=b.alpha,j=c.alpha,k=[];g=j+i*(1-j);for(var l=0;l<3;l++)d=b.rgb[l]/255,f=c.rgb[l]/255,h=a(d,f),g&&(h=(j*f+i*(d-j*(d+f-h)))/g),k[l]=255*h;return new e(k,g)}var e=a("../tree/color"),f=a("./function-registry"),g={multiply:function(a,b){return a*b},screen:function(a,b){return a+b-a*b},overlay:function(a,b){return a*=2,a<=1?g.multiply(a,b):g.screen(a-1,b)},softlight:function(a,b){var c=1,d=a;return b>.5&&(d=1,c=a>.25?Math.sqrt(a):((16*a-12)*a+4)*a),a-(1-2*b)*d*(c-a)},hardlight:function(a,b){return g.overlay(b,a)},difference:function(a,b){return Math.abs(a-b)},exclusion:function(a,b){return a+b-2*a*b},average:function(a,b){return(a+b)/2},negation:function(a,b){return 1-Math.abs(a+b-1)}};for(var h in g)g.hasOwnProperty(h)&&(d[h]=d.bind(null,g[h]));f.addMultiple(d)},{"../tree/color":53,"./function-registry":26}],22:[function(a,b,c){function d(a){return Math.min(1,Math.max(0,a))}function e(a){return h.hsla(a.h,a.s,a.l,a.a)}function f(a){if(a instanceof i)return parseFloat(a.unit.is("%")?a.value/100:a.value);if("number"==typeof a)return a;throw{type:"Argument",message:"color functions take numbers as parameters"}}function g(a,b){return a instanceof i&&a.unit.is("%")?parseFloat(a.value*b/100):f(a)}var h,i=a("../tree/dimension"),j=a("../tree/color"),k=a("../tree/quoted"),l=a("../tree/anonymous"),m=a("./function-registry");h={rgb:function(a,b,c){return h.rgba(a,b,c,1)},rgba:function(a,b,c,d){var e=[a,b,c].map(function(a){return g(a,255)});return d=f(d),new j(e,d)},hsl:function(a,b,c){return h.hsla(a,b,c,1)},hsla:function(a,b,c,e){function g(a){return a=a<0?a+1:a>1?a-1:a,6*a<1?i+(j-i)*a*6:2*a<1?j:3*a<2?i+(j-i)*(2/3-a)*6:i}var i,j;return a=f(a)%360/360,b=d(f(b)),c=d(f(c)),e=d(f(e)),j=c<=.5?c*(b+1):c+b-c*b,i=2*c-j,h.rgba(255*g(a+1/3),255*g(a),255*g(a-1/3),e)},hsv:function(a,b,c){return h.hsva(a,b,c,1)},hsva:function(a,b,c,d){a=f(a)%360/360*360,b=f(b),c=f(c),d=f(d);var e,g;e=Math.floor(a/60%6),g=a/60-e;var i=[c,c*(1-b),c*(1-g*b),c*(1-(1-g)*b)],j=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return h.rgba(255*i[j[e][0]],255*i[j[e][1]],255*i[j[e][2]],d)},hue:function(a){return new i(a.toHSL().h)},saturation:function(a){return new i(100*a.toHSL().s,"%")},lightness:function(a){return new i(100*a.toHSL().l,"%")},hsvhue:function(a){return new i(a.toHSV().h)},hsvsaturation:function(a){return new i(100*a.toHSV().s,"%")},hsvvalue:function(a){return new i(100*a.toHSV().v,"%")},red:function(a){return new i(a.rgb[0])},green:function(a){return new i(a.rgb[1])},blue:function(a){return new i(a.rgb[2])},alpha:function(a){return new i(a.toHSL().a)},luma:function(a){return new i(a.luma()*a.alpha*100,"%")},luminance:function(a){var b=.2126*a.rgb[0]/255+.7152*a.rgb[1]/255+.0722*a.rgb[2]/255;return new i(b*a.alpha*100,"%")},saturate:function(a,b,c){if(!a.rgb)return null;var f=a.toHSL();return f.s+="undefined"!=typeof c&&"relative"===c.value?f.s*b.value/100:b.value/100,f.s=d(f.s),e(f)},desaturate:function(a,b,c){var f=a.toHSL();return f.s-="undefined"!=typeof c&&"relative"===c.value?f.s*b.value/100:b.value/100,f.s=d(f.s),e(f)},lighten:function(a,b,c){var f=a.toHSL();return f.l+="undefined"!=typeof c&&"relative"===c.value?f.l*b.value/100:b.value/100,f.l=d(f.l),e(f)},darken:function(a,b,c){var f=a.toHSL();return f.l-="undefined"!=typeof c&&"relative"===c.value?f.l*b.value/100:b.value/100,f.l=d(f.l),e(f)},fadein:function(a,b,c){var f=a.toHSL();return f.a+="undefined"!=typeof c&&"relative"===c.value?f.a*b.value/100:b.value/100,f.a=d(f.a),e(f)},fadeout:function(a,b,c){var f=a.toHSL();return f.a-="undefined"!=typeof c&&"relative"===c.value?f.a*b.value/100:b.value/100,f.a=d(f.a),e(f)},fade:function(a,b){var c=a.toHSL();return c.a=b.value/100,c.a=d(c.a),e(c)},spin:function(a,b){var c=a.toHSL(),d=(c.h+b.value)%360;return c.h=d<0?360+d:d,e(c)},mix:function(a,b,c){a.toHSL&&b.toHSL||(console.log(b.type),console.dir(b)),c||(c=new i(50));var d=c.value/100,e=2*d-1,f=a.toHSL().a-b.toHSL().a,g=((e*f==-1?e:(e+f)/(1+e*f))+1)/2,h=1-g,k=[a.rgb[0]*g+b.rgb[0]*h,a.rgb[1]*g+b.rgb[1]*h,a.rgb[2]*g+b.rgb[2]*h],l=a.alpha*d+b.alpha*(1-d);return new j(k,l)},greyscale:function(a){return h.desaturate(a,new i(100))},contrast:function(a,b,c,d){if(!a.rgb)return null;if("undefined"==typeof c&&(c=h.rgba(255,255,255,1)),"undefined"==typeof b&&(b=h.rgba(0,0,0,1)),b.luma()>c.luma()){var e=c;c=b,b=e}return d="undefined"==typeof d?.43:f(d),a.luma()=v&&this.context.ieCompat!==!1?(h.warn("Skipped data-uri embedding of "+j+" because its size ("+u.length+" characters) exceeds IE8-safe "+v+" characters!"),g(this,f||a)):new d(new c('"'+u+'"',u,(!1),this.index,this.currentFileInfo),this.index,this.currentFileInfo)})}},{"../logger":37,"../tree/quoted":77,"../tree/url":82,"../utils":86,"./function-registry":26}],24:[function(a,b,c){var d=a("../tree/keyword"),e=a("./function-registry"),f={eval:function(){var a=this.value_,b=this.error_;if(b)throw b;if(null!=a)return a?d.True:d.False},value:function(a){this.value_=a},error:function(a){this.error_=a},reset:function(){this.value_=this.error_=null}};e.add("default",f.eval.bind(f)),b.exports=f},{"../tree/keyword":68,"./function-registry":26}],25:[function(a,b,c){var d=a("../tree/expression"),e=function(a,b,c,d){this.name=a.toLowerCase(),this.index=c,this.context=b,this.currentFileInfo=d,this.func=b.frames[0].functionRegistry.get(this.name)};e.prototype.isValid=function(){return Boolean(this.func)},e.prototype.call=function(a){return Array.isArray(a)&&(a=a.filter(function(a){return"Comment"!==a.type}).map(function(a){if("Expression"===a.type){var b=a.value.filter(function(a){return"Comment"!==a.type});return 1===b.length?b[0]:new d(b)}return a})),this.func.apply(this,a)},b.exports=e},{"../tree/expression":62}],26:[function(a,b,c){function d(a){return{_data:{},add:function(a,b){a=a.toLowerCase(),this._data.hasOwnProperty(a),this._data[a]=b},addMultiple:function(a){Object.keys(a).forEach(function(b){this.add(b,a[b])}.bind(this))},get:function(b){return this._data[b]||a&&a.get(b)},getLocalFunctions:function(){return this._data},inherit:function(){return d(this)},create:function(a){return d(a)}}}b.exports=d(null)},{}],27:[function(a,b,c){b.exports=function(b){var c={functionRegistry:a("./function-registry"),functionCaller:a("./function-caller")};return a("./boolean"),a("./default"),a("./color"),a("./color-blending"),a("./data-uri")(b),a("./math"),a("./number"),a("./string"),a("./svg")(b),a("./types"),c}},{"./boolean":20,"./color":22,"./color-blending":21,"./data-uri":23,"./default":24, -"./function-caller":25,"./function-registry":26,"./math":29,"./number":30,"./string":31,"./svg":32,"./types":33}],28:[function(a,b,c){var d=a("../tree/dimension"),e=function(){};e._math=function(a,b,c){if(!(c instanceof d))throw{type:"Argument",message:"argument must be a number"};return null==b?b=c.unit:c=c.unify(),new d(a(parseFloat(c.value)),b)},b.exports=e},{"../tree/dimension":60}],29:[function(a,b,c){var d=a("./function-registry"),e=a("./math-helper.js"),f={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var g in f)f.hasOwnProperty(g)&&(f[g]=e._math.bind(null,Math[g],f[g]));f.round=function(a,b){var c="undefined"==typeof b?0:b.value;return e._math(function(a){return a.toFixed(c)},null,a)},d.addMultiple(f)},{"./function-registry":26,"./math-helper.js":28}],30:[function(a,b,c){var d=a("../tree/dimension"),e=a("../tree/anonymous"),f=a("./function-registry"),g=a("./math-helper.js"),h=function(a,b){switch(b=Array.prototype.slice.call(b),b.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var c,f,g,h,i,j,k,l,m=[],n={};for(c=0;ci.value)&&(m[f]=g);else{if(void 0!==k&&j!==k)throw{type:"Argument",message:"incompatible types"};n[j]=m.length,m.push(g)}else Array.isArray(b[c].value)&&Array.prototype.push.apply(b,Array.prototype.slice.call(b[c].value));return 1==m.length?m[0]:(b=m.map(function(a){return a.toCSS(this.context)}).join(this.context.compress?",":", "),new e((a?"min":"max")+"("+b+")"))};f.addMultiple({min:function(){return h(!0,arguments)},max:function(){return h(!1,arguments)},convert:function(a,b){return a.convertTo(b.value)},pi:function(){return new d(Math.PI)},mod:function(a,b){return new d(a.value%b.value,a.unit)},pow:function(a,b){if("number"==typeof a&&"number"==typeof b)a=new d(a),b=new d(b);else if(!(a instanceof d&&b instanceof d))throw{type:"Argument",message:"arguments must be numbers"};return new d(Math.pow(a.value,b.value),a.unit)},percentage:function(a){var b=g._math(function(a){return 100*a},"%",a);return b}})},{"../tree/anonymous":48,"../tree/dimension":60,"./function-registry":26,"./math-helper.js":28}],31:[function(a,b,c){var d=a("../tree/quoted"),e=a("../tree/anonymous"),f=a("../tree/javascript"),g=a("./function-registry");g.addMultiple({e:function(a){return new e(a instanceof f?a.evaluated:a.value)},escape:function(a){return new e(encodeURI(a.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(a,b,c,e){var f=a.value;return c="Quoted"===c.type?c.value:c.toCSS(),f=f.replace(new RegExp(b.value,e?e.value:""),c),new d(a.quote||"",f,a.escaped)},"%":function(a){for(var b=Array.prototype.slice.call(arguments,1),c=a.value,e=0;e",k=0;k";return j+="',j=encodeURIComponent(j),j="data:image/svg+xml,"+j,new g(new f("'"+j+"'",j,(!1),this.index,this.currentFileInfo),this.index,this.currentFileInfo)})}},{"../tree/color":53,"../tree/dimension":60,"../tree/expression":62,"../tree/quoted":77,"../tree/url":82,"./function-registry":26}],33:[function(a,b,c){var d=a("../tree/keyword"),e=a("../tree/detached-ruleset"),f=a("../tree/dimension"),g=a("../tree/color"),h=a("../tree/quoted"),i=a("../tree/anonymous"),j=a("../tree/url"),k=a("../tree/operation"),l=a("./function-registry"),m=function(a,b){return a instanceof b?d.True:d.False},n=function(a,b){if(void 0===b)throw{type:"Argument",message:"missing the required second argument to isunit."};if(b="string"==typeof b.value?b.value:b,"string"!=typeof b)throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return a instanceof f&&a.unit.is(b)?d.True:d.False},o=function(a){var b=Array.isArray(a.value)?a.value:Array(a);return b};l.addMultiple({isruleset:function(a){return m(a,e)},iscolor:function(a){return m(a,g)},isnumber:function(a){return m(a,f)},isstring:function(a){return m(a,h)},iskeyword:function(a){return m(a,d)},isurl:function(a){return m(a,j)},ispixel:function(a){return n(a,"px")},ispercentage:function(a){return n(a,"%")},isem:function(a){return n(a,"em")},isunit:n,unit:function(a,b){if(!(a instanceof f))throw{type:"Argument",message:"the first argument to unit must be a number"+(a instanceof k?". Have you forgotten parenthesis?":"")};return b=b?b instanceof d?b.value:b.toCSS():"",new f(a.value,b)},"get-unit":function(a){return new i(a.unit)},extract:function(a,b){return b=b.value-1,o(a)[b]},length:function(a){return new f(o(a).length)}})},{"../tree/anonymous":48,"../tree/color":53,"../tree/detached-ruleset":59,"../tree/dimension":60,"../tree/keyword":68,"../tree/operation":74,"../tree/quoted":77,"../tree/url":82,"./function-registry":26}],34:[function(a,b,c){var d=a("./contexts"),e=a("./parser/parser"),f=a("./less-error"),g=a("./utils"),h=("undefined"==typeof Promise?a("promise"):Promise,a("./logger"));b.exports=function(a){var b=function(a,b,c){this.less=a,this.rootFilename=c.filename,this.paths=b.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=b.mime,this.error=null,this.context=b,this.queue=[],this.files={}};return b.prototype.push=function(b,c,i,j,k){var l=this,m=this.context.pluginManager.Loader;this.queue.push(b);var n=function(a,c,d){l.queue.splice(l.queue.indexOf(b),1);var e=d===l.rootFilename;j.optional&&a?(k(null,{rules:[]},!1,null),h.info("The file "+d+" was skipped because it was not found and the import was marked optional.")):(l.files[d]||j.inline||(l.files[d]={root:c,options:j}),a&&!l.error&&(l.error=a),k(a,c,e,d))},o={relativeUrls:this.context.relativeUrls,entryPath:i.entryPath,rootpath:i.rootpath,rootFilename:i.rootFilename},p=a.getFileManager(b,i.currentDirectory,this.context,a);if(!p)return void n({message:"Could not find a file-manager for "+b});var q,r=function(a){var b,c=a.filename,g=a.contents.replace(/^\uFEFF/,"");o.currentDirectory=p.getPath(c),o.relativeUrls&&(o.rootpath=p.join(l.context.rootpath||"",p.pathDiff(o.currentDirectory,o.entryPath)),!p.isPathAbsolute(o.rootpath)&&p.alwaysMakePathsAbsolute()&&(o.rootpath=p.join(o.entryPath,o.rootpath))),o.filename=c;var h=new d.Parse(l.context);h.processImports=!1,l.contents[c]=g,(i.reference||j.reference)&&(o.reference=!0),j.isPlugin?(b=m.evalPlugin(g,h,l,j.pluginArgs,o),b instanceof f?n(b,null,c):n(null,b,c)):j.inline?n(null,g,c):!l.files[c]||l.files[c].options.multiple||j.multiple?new e(h,l,o).parse(g,function(a,b){n(a,b,c)}):n(null,l.files[c].root,c)},s=g.clone(this.context);c&&(s.ext=j.isPlugin?".js":".less"),q=j.isPlugin?m.loadPlugin(b,i.currentDirectory,s,a,p):p.loadFile(b,i.currentDirectory,s,a,function(a,b){a?n(a):r(b)}),q&&q.then(r,n)},b}},{"./contexts":12,"./less-error":36,"./logger":37,"./parser/parser":42,"./utils":86,promise:void 0}],35:[function(a,b,c){b.exports=function(b,c){var d,e,f,g,h,i,j={version:[3,5,0],data:a("./data"),tree:a("./tree"),Environment:h=a("./environment/environment"),AbstractFileManager:a("./environment/abstract-file-manager"),AbstractPluginLoader:a("./environment/abstract-plugin-loader"),environment:b=new h(b,c),visitors:a("./visitors"),Parser:a("./parser/parser"),functions:a("./functions")(b),contexts:a("./contexts"),SourceMapOutput:d=a("./source-map-output")(b),SourceMapBuilder:e=a("./source-map-builder")(d,b),ParseTree:f=a("./parse-tree")(e),ImportManager:g=a("./import-manager")(b),render:a("./render")(b,f,g),parse:a("./parse")(b,f,g),LessError:a("./less-error"),transformTree:a("./transform-tree"),utils:a("./utils"),PluginManager:a("./plugin-manager"),logger:a("./logger")},k=function(a){return function(){var b=Object.create(a.prototype);return a.apply(b,Array.prototype.slice.call(arguments,0)),b}},l=Object.create(j);for(var m in j.tree)if(i=j.tree[m],"function"==typeof i)l[m.toLowerCase()]=k(i);else{l[m]=Object.create(null);for(var n in i)l[m][n.toLowerCase()]=k(i[n])}return l}},{"./contexts":12,"./data":14,"./environment/abstract-file-manager":17,"./environment/abstract-plugin-loader":18,"./environment/environment":19,"./functions":27,"./import-manager":34,"./less-error":36,"./logger":37,"./parse":39,"./parse-tree":38,"./parser/parser":42,"./plugin-manager":43,"./render":44,"./source-map-builder":45,"./source-map-output":46,"./transform-tree":47,"./tree":65,"./utils":86,"./visitors":90}],36:[function(a,b,c){var d=a("./utils"),e=b.exports=function(a,b,c){Error.call(this);var e=a.filename||c;if(this.message=a.message,this.stack=a.stack,b&&e){var f=b.contents[e],g=d.getLocation(a.index,f),h=g.line,i=g.column,j=a.call&&d.getLocation(a.call,f).line,k=f?f.split("\n"):"";if(this.type=a.type||"Syntax",this.filename=e,this.index=a.index,this.line="number"==typeof h?h+1:null,this.column=i,!this.line&&this.stack){var l=this.stack.match(/(|Function):(\d+):(\d+)/);l&&(l[2]&&(this.line=parseInt(l[2])-2),l[3]&&(this.column=parseInt(l[3])))}this.callLine=j+1,this.callExtract=k[j],this.extract=[k[this.line-2],k[this.line-1],k[this.line]]}};if("undefined"==typeof Object.create){var f=function(){};f.prototype=Error.prototype,e.prototype=new f}else e.prototype=Object.create(Error.prototype);e.prototype.constructor=e,e.prototype.toString=function(a){a=a||{};var b="",c=this.extract||[],d=[],e=function(a){return a};if(a.stylize){var f=typeof a.stylize;if("function"!==f)throw Error("options.stylize should be a function, got a "+f+"!");e=a.stylize}if(null!==this.line){if("string"==typeof c[0]&&d.push(e(this.line-1+" "+c[0],"grey")),"string"==typeof c[1]){var g=this.line+" ";c[1]&&(g+=c[1].slice(0,this.column)+e(e(e(c[1].substr(this.column,1),"bold")+c[1].slice(this.column+1),"red"),"inverse")),d.push(g)}"string"==typeof c[2]&&d.push(e(this.line+1+" "+c[2],"grey")),d=d.join("\n")+e("","reset")+"\n"}return b+=e(this.type+"Error: "+this.message,"red"),this.filename&&(b+=e(" in ","red")+this.filename),this.line&&(b+=e(" on line "+this.line+", column "+(this.column+1)+":","grey")),b+="\n"+d,this.callLine&&(b+=e("from ","red")+(this.filename||"")+"/n",b+=e(this.callLine,"grey")+" "+this.callExtract+"/n"),b}},{"./utils":86}],37:[function(a,b,c){b.exports={error:function(a){this._fireEvent("error",a)},warn:function(a){this._fireEvent("warn",a)},info:function(a){this._fireEvent("info",a)},debug:function(a){this._fireEvent("debug",a)},addListener:function(a){this._listeners.push(a)},removeListener:function(a){for(var b=0;b=97&&j<=122||j<34))switch(j){case 40:o++,e=h;continue;case 41:if(--o<0)return b("missing opening `(`",h);continue;case 59:o||c();continue;case 123:n++,d=h;continue;case 125:if(--n<0)return b("missing opening `{`",h);n||o||c();continue;case 92:if(h96)){if(k==j){l=1;break}if(92==k){if(h==m-1)return b("unescaped `\\`",h);h++}}if(l)continue;return b("unmatched `"+String.fromCharCode(j)+"`",i);case 47:if(o||h==m-1)continue;if(k=a.charCodeAt(h+1),47==k)for(h+=2;hd&&g>f?b("missing closing `}` or `*/`",d):b("missing closing `}`",d):0!==o?b("missing closing `)`",e):(c(!0),p)}},{}],41:[function(a,b,c){var d=a("./chunker");b.exports=function(){function a(d){for(var e,f,j,p=k.i,q=c,s=k.i-i,t=k.i+h.length-s,u=k.i+=d,v=b;k.i=0){j={index:k.i,text:v.substr(k.i,x+2-k.i),isLineComment:!1},k.i+=j.text.length-1,k.commentStore.push(j);continue}}break}if(e!==l&&e!==n&&e!==m&&e!==o)break}if(h=h.slice(d+k.i-u+s),i=k.i,!h.length){if(ce||k.i===e&&a&&!f)&&(e=k.i,f=a);var b=j.pop();h=b.current,i=k.i=b.i,c=b.j},k.forget=function(){j.pop()},k.isWhitespace=function(a){var c=k.i+(a||0),d=b.charCodeAt(c);return d===l||d===o||d===m||d===n},k.$re=function(b){k.i>i&&(h=h.slice(k.i-i),i=k.i);var c=b.exec(h);return c?(a(c[0].length),"string"==typeof c?c:1===c.length?c[0]:c):null},k.$char=function(c){return b.charAt(k.i)!==c?null:(a(1),c)},k.$str=function(c){for(var d=c.length,e=0;el&&(p=!1)}q=r}while(p);return f?f:null},k.autoCommentAbsorb=!0,k.commentStore=[],k.finished=!1,k.peek=function(a){if("string"==typeof a){for(var c=0;cs||a=b.length;return k.i=b.length-1,furthestChar:b[k.i]}},k}},{"./chunker":40}],42:[function(a,b,c){var d=a("../less-error"),e=a("../tree"),f=a("../visitors"),g=a("./parser-input"),h=a("../utils"),i=a("../functions/function-registry"),j=function k(a,b,c){function j(a,e){throw new d({index:q.i,filename:c.filename,type:e||"Syntax",message:a},b)}function l(a,b,c){var d=a instanceof Function?a.call(p):q.$re(a);return d?d:void j(b||("string"==typeof a?"expected '"+a+"' got '"+q.currentChar()+"'":"unexpected token"))}function m(a,b){return q.$char(a)?a:void j(b||"expected '"+a+"' got '"+q.currentChar()+"'")}function n(a){var b=c.filename;return{lineNumber:h.getLocation(a,q.getInput()).line+1,fileName:b}}function o(a,c,e,f,g){var h,i=[],j=q;try{j.start(a,!1,function(a,b){g({message:a,index:b+e})});for(var k,l,m=0;k=c[m];m++)l=j.i,h=p[k](),h?(h._index=l+e,h._fileInfo=f,i.push(h)):i.push(null);var n=j.end();n.isFinished?g(null,i):g(!0,null)}catch(o){throw new d({index:o.index+e,message:o.message},b,f.filename)}}var p,q=g();return{parserInput:q,imports:b,fileInfo:c,parseNode:o,parse:function(g,h,j){var l,m,n,o,p=null,r="";if(m=j&&j.globalVars?k.serializeVars(j.globalVars)+"\n":"",n=j&&j.modifyVars?"\n"+k.serializeVars(j.modifyVars):"",a.pluginManager)for(var s=a.pluginManager.getPreProcessors(),t=0;t")}return b&&(q.$char("(")&&(h=this.args(!0).args,m(")")),p.important()&&(j=!0),p.end())?(q.forget(),new e.mixin.Call(b,h,k,c,j)):void q.restore()}},args:function(a){var b,c,d,f,g,h,i,k=p.entities,l={args:null,variadic:!1},m=[],n=[],o=[];for(q.save();;){if(a)h=p.detachedRuleset()||p.expression();else{if(q.commentStore.length=0,q.$str("...")){l.variadic=!0,q.$char(";")&&!b&&(b=!0),(b?n:o).push({variadic:!0});break}h=k.variable()||k.property()||k.literal()||k.keyword()}if(!h)break;f=null,h.throwAwayComments&&h.throwAwayComments(),g=h;var r=null;if(a?h.value&&1==h.value.length&&(r=h.value[0]):r=h,r&&(r instanceof e.Variable||r instanceof e.Property))if(q.$char(":")){if(m.length>0&&(b&&j("Cannot mix ; and , as delimiter types"),c=!0),g=p.detachedRuleset()||p.expression(),!g){if(!a)return q.restore(),l.args=[],l;j("could not understand value for named argument")}f=d=r.name}else if(q.$str("...")){if(!a){l.variadic=!0,q.$char(";")&&!b&&(b=!0),(b?n:o).push({name:h.name,variadic:!0});break}i=!0}else a||(d=f=r.name,g=null);g&&m.push(g),o.push({name:f,value:g,expand:i}),q.$char(",")||(q.$char(";")||b)&&(c&&j("Cannot mix ; and , as delimiter types"),b=!0,m.length>1&&(g=new e.Value(m)),n.push({name:d,value:g,expand:i}),d=null,m=[],c=!1)}return q.forget(),l.args=b?n:o,l},definition:function(){var a,b,c,d,f=[],g=!1;if(!("."!==q.currentChar()&&"#"!==q.currentChar()||q.peek(/^[^{]*\}/)))if(q.save(),b=q.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){a=b[1];var h=this.args(!1);if(f=h.args,g=h.variadic,!q.$char(")"))return void q.restore("Missing closing ')'");if(q.commentStore.length=0,q.$str("when")&&(d=l(p.conditions,"expected condition")),c=p.block())return q.forget(),new e.mixin.Definition(a,f,c,d,g);q.restore()}else q.forget()}},entity:function(){var a=this.entities;return this.comment()||a.literal()||a.variable()||a.url()||a.property()||a.call()||a.keyword()||a.javascript()},end:function(){return q.$char(";")||q.peek("}")},ieAlpha:function(){var a;if(q.$re(/^opacity=/i))return a=q.$re(/^\d+/),a||(a=l(p.entities.variable,"Could not parse alpha"),a="@{"+a.name.slice(1)+"}"),m(")"),new e.Quoted("","alpha(opacity="+a+")")},element:function(){var a,b,d,f=q.i;if(b=this.combinator(),a=q.$re(/^(?:\d+\.\d+|\d+)%/)||q.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||q.$char("*")||q.$char("&")||this.attribute()||q.$re(/^\([^&()@]+\)/)||q.$re(/^[\.#:](?=@)/)||this.entities.variableCurly(),a||(q.save(),q.$char("(")?(d=this.selector(!1))&&q.$char(")")?(a=new e.Paren(d),q.forget()):q.restore("Missing closing ')'"):q.forget()),a)return new e.Element(b,a,a instanceof e.Variable,f,c)},combinator:function(){var a=q.currentChar();if("/"===a){q.save();var b=q.$re(/^\/[a-z]+\//i);if(b)return q.forget(),new e.Combinator(b);q.restore()}if(">"===a||"+"===a||"~"===a||"|"===a||"^"===a){for(q.i++,"^"===a&&"^"===q.currentChar()&&(a="^^",q.i++);q.isWhitespace();)q.i++;return new e.Combinator(a)}return new e.Combinator(q.isWhitespace(-1)?" ":null)},selector:function(a){var b,d,f,g,h,i,k,m=q.i;for(a=a!==!1;(a&&(d=this.extend())||a&&(i=q.$str("when"))||(g=this.element()))&&(i?k=l(this.conditions,"expected condition"):k?j("CSS guard can only be used at the end of selector"):d?h=h?h.concat(d):d:(h&&j("Extend can only be used at the end of selector"),f=q.currentChar(),b?b.push(g):b=[g],g=null),"{"!==f&&"}"!==f&&";"!==f&&","!==f&&")"!==f););return b?new e.Selector(b,h,k,m,c):void(h&&j("Extend must be used to extend a selector, it cannot be used on its own"))},selectors:function(){for(var a,b;;){if(a=this.selector(),!a)break;if(b?b.push(a):b=[a],q.commentStore.length=0,a.condition&&b.length>1&&j("Guards are only currently allowed on a single selector."),!q.$char(","))break;a.condition&&j("Guards are only currently allowed on a single selector."),q.commentStore.length=0}return b},attribute:function(){if(q.$char("[")){var a,b,c,d=this.entities;return(a=d.variableCurly())||(a=l(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),c=q.$re(/^[|~*$^]?=/),c&&(b=d.quoted()||q.$re(/^[0-9]+%/)||q.$re(/^[\w-]+/)||d.variableCurly()),m("]"),new e.Attribute(a,c,b)}},block:function(){var a;if(q.$char("{")&&(a=this.primary())&&q.$char("}"))return a},blockRuleset:function(){var a=this.block();return a&&(a=new e.Ruleset(null,a)),a},detachedRuleset:function(){var a=this.blockRuleset();if(a)return new e.DetachedRuleset(a)},ruleset:function(){var b,c,d;if(q.save(),a.dumpLineNumbers&&(d=n(q.i)),b=this.selectors(),b&&(c=this.block())){q.forget();var f=new e.Ruleset(b,c,a.strictImports);return a.dumpLineNumbers&&(f.debugInfo=d),f}q.restore()},declaration:function(){var a,b,d,f,g,h=q.i,i=q.currentChar();if("."!==i&&"#"!==i&&"&"!==i&&":"!==i)if(q.save(),a=this.variable()||this.ruleProperty()){if(g="string"==typeof a,g&&(b=this.detachedRuleset()),q.commentStore.length=0,!b){if(f=!g&&a.length>1&&a.pop().value,b=a[0].value&&"--"===a[0].value.slice(0,2)?this.permissiveValue():this.anonymousValue())return q.forget(),new e.Declaration(a,b,(!1),f,h,c);b||(b=this.value()),!b&&g&&(b=this.permissiveValue()),d=this.important()}if(b&&this.end())return q.forget(),new e.Declaration(a,b,d,f,h,c);q.restore()}else q.restore()},anonymousValue:function(){var a=q.i,b=q.$re(/^([^@\$+\/'"*`(;{}-]*);/);if(b)return new e.Anonymous(b[1],a)},permissiveValue:function(a){function b(){var a=q.currentChar();return"string"==typeof i?a===i:i.test(a)}var d,f,g,h,i=a||";",k=q.i,l=[];if(!b()){h=[];do f=this.comment(), -f?h.push(f):(f=this.entity(),f&&h.push(f));while(f);if(g=b(),h.length>0){if(h=new e.Expression(h),g)return h;l.push(h)," "===q.prevChar()&&l.push(new e.Anonymous(" ",k))}if(q.save(),h=q.$parseUntil(i)){if("string"==typeof h&&j("Expected '"+h+"'","Parse"),1===h.length&&" "===h[0])return q.forget(),new e.Anonymous("",k);var m;for(d=0;d0)return new e.Expression(f)},mediaFeatures:function(){var a,b=this.entities,c=[];do if(a=this.mediaFeature()){if(c.push(a),!q.$char(","))break}else if(a=b.variable(),a&&(c.push(a),!q.$char(",")))break;while(a);return c.length>0?c:null},media:function(){var b,d,f,g,h=q.i;return a.dumpLineNumbers&&(g=n(h)),q.save(),q.$str("@media")?(b=this.mediaFeatures(),d=this.block(),d||j("media definitions require block statements after any features"),q.forget(),f=new e.Media(d,b,h,c),a.dumpLineNumbers&&(f.debugInfo=g),f):void q.restore()},plugin:function(){var a,b,d,f=q.i,g=q.$re(/^@plugin?\s+/);if(g){if(b=this.pluginArgs(),d=b?{pluginArgs:b,isPlugin:!0}:{isPlugin:!0},a=this.entities.quoted()||this.entities.url())return q.$char(";")||(q.i=f,j("missing semi-colon on @plugin")),new e.Import(a,null,d,f,c);q.i=f,j("malformed @plugin statement")}},pluginArgs:function(){if(q.save(),!q.$char("("))return q.restore(),null;var a=q.$re(/^\s*([^\);]+)\)\s*/);return a[1]?(q.forget(),a[1].trim()):(q.restore(),null)},atrule:function(){var b,d,f,g,h,i,k,l=q.i,m=!0,o=!0;if("@"===q.currentChar()){if(d=this["import"]()||this.plugin()||this.media())return d;if(q.save(),b=q.$re(/^@[a-z-]+/)){switch(g=b,"-"==b.charAt(1)&&b.indexOf("-",2)>0&&(g="@"+b.slice(b.indexOf("-",2)+1)),g){case"@charset":h=!0,m=!1;break;case"@namespace":i=!0,m=!1;break;case"@keyframes":case"@counter-style":h=!0;break;case"@document":case"@supports":k=!0,o=!1;break;default:k=!0}return q.commentStore.length=0,h?(d=this.entity(),d||j("expected "+b+" identifier")):i?(d=this.expression(),d||j("expected "+b+" expression")):k&&(d=this.permissiveValue(/^[{;]/),m="{"===q.currentChar(),d?d.value||(d=null):m||";"===q.currentChar()||j(b+" rule is missing block or ending semi-colon")),m&&(f=this.blockRuleset()),f||!m&&d&&q.$char(";")?(q.forget(),new e.AtRule(b,d,f,l,c,a.dumpLineNumbers?n(l):null,o)):void q.restore("at-rule options not recognised")}}},value:function(){var a,b=[],c=q.i;do if(a=this.expression(),a&&(b.push(a),!q.$char(",")))break;while(a);if(b.length>0)return new e.Value(b,c)},important:function(){if("!"===q.currentChar())return q.$re(/^! *important/)},sub:function(){var a,b;return q.save(),q.$char("(")?(a=this.addition(),a&&q.$char(")")?(q.forget(),b=new e.Expression([a]),b.parens=!0,b):void q.restore("Expected ')'")):void q.restore()},multiplication:function(){var a,b,c,d,f;if(a=this.operand()){for(f=q.isWhitespace(-1);;){if(q.peek(/^\/[*\/]/))break;if(q.save(),c=q.$char("/")||q.$char("*"),!c){q.forget();break}if(b=this.operand(),!b){q.restore();break}q.forget(),a.parensInOp=!0,b.parensInOp=!0,d=new e.Operation(c,[d||a,b],f),f=q.isWhitespace(-1)}return d||a}},addition:function(){var a,b,c,d,f;if(a=this.multiplication()){for(f=q.isWhitespace(-1);;){if(c=q.$re(/^[-+]\s+/)||!f&&(q.$char("+")||q.$char("-")),!c)break;if(b=this.multiplication(),!b)break;a.parensInOp=!0,b.parensInOp=!0,d=new e.Operation(c,[d||a,b],f),f=q.isWhitespace(-1)}return d||a}},conditions:function(){var a,b,c,d=q.i;if(a=this.condition()){for(;;){if(!q.peek(/^,\s*(not\s*)?\(/)||!q.$char(","))break;if(b=this.condition(),!b)break;c=new e.Condition("or",c||a,b,d)}return c||a}},condition:function(){function a(){return q.$str("or")}var b,c,d;if(b=this.conditionAnd(this)){if(c=a()){if(d=this.condition(),!d)return;b=new e.Condition(c,b,d)}return b}},conditionAnd:function(){function a(a){return a.negatedCondition()||a.parenthesisCondition()}function b(){return q.$str("and")}var c,d,f;if(c=a(this)){if(d=b()){if(f=this.conditionAnd(),!f)return;c=new e.Condition(d,c,f)}return c}},negatedCondition:function(){if(q.$str("not")){var a=this.parenthesisCondition();return a&&(a.negate=!a.negate),a}},parenthesisCondition:function(){function a(a){var b;return q.save(),(b=a.condition())&&q.$char(")")?(q.forget(),b):void q.restore()}var b;return q.save(),q.$str("(")?(b=a(this))?(q.forget(),b):(b=this.atomicCondition())?q.$char(")")?(q.forget(),b):void q.restore("expected ')' got '"+q.currentChar()+"'"):void q.restore():void q.restore()},atomicCondition:function(){var a,b,c,d,f=this.entities,g=q.i;if(a=this.addition()||f.keyword()||f.quoted())return q.$char(">")?d=q.$char("=")?">=":">":q.$char("<")?d=q.$char("=")?"<=":"<":q.$char("=")&&(d=q.$char(">")?"=>":q.$char("<")?"=<":"="),d?(b=this.addition()||f.keyword()||f.quoted(),b?c=new e.Condition(d,a,b,g,(!1)):j("expected expression")):c=new e.Condition("=",a,new e.Keyword("true"),g,(!1)),c},operand:function(){var a,b=this.entities;q.peek(/^-[@\$\(]/)&&(a=q.$char("-"));var c=this.sub()||b.dimension()||b.color()||b.variable()||b.property()||b.call()||b.quoted(!0)||b.colorKeyword();return a&&(c.parensInOp=!0,c=new e.Negative(c)),c},expression:function(){var a,b,c=[],d=q.i;do a=this.comment(),a?c.push(a):(a=this.addition()||this.entity(),a&&(c.push(a),q.peek(/^\/[\/*]/)||(b=q.$char("/"),b&&c.push(new e.Anonymous(b,d)))));while(a);if(c.length>0)return new e.Expression(c)},property:function(){var a=q.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(a)return a[1]},ruleProperty:function(){function a(a){var b=q.i,c=q.$re(a);if(c)return g.push(b),f.push(c[1])}var b,d,f=[],g=[];q.save();var h=q.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(h)return f=[new e.Keyword(h[1])],q.forget(),f;for(a(/^(\*?)/);;)if(!a(/^((?:[\w-]+)|(?:[@\$]\{[\w-]+\}))/))break;if(f.length>1&&a(/^((?:\+_|\+)?)\s*:/)){for(q.forget(),""===f[0]&&(f.shift(),g.shift()),d=0;d=b);c++);this.preProcessors.splice(c,0,{preProcessor:a,priority:b})},e.prototype.addPostProcessor=function(a,b){var c;for(c=0;c=b);c++);this.postProcessors.splice(c,0,{postProcessor:a,priority:b})},e.prototype.addFileManager=function(a){this.fileManagers.push(a)},e.prototype.getPreProcessors=function(){for(var a=[],b=0;b0){var d,e=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?d=this.sourceMapURL:this._sourceMapFilename&&(d=this._sourceMapFilename),this.sourceMapURL=d,this.sourceMap=e}return this._css.join("")},b}},{}],47:[function(a,b,c){var d=a("./contexts"),e=a("./visitors"),f=a("./tree");b.exports=function(a,b){b=b||{};var c,g=b.variables,h=new d.Eval(b);"object"!=typeof g||Array.isArray(g)||(g=Object.keys(g).map(function(a){var b=g[a];return b instanceof f.Value||(b instanceof f.Expression||(b=new f.Expression([b])),b=new f.Value([b])),new f.Declaration("@"+a,b,(!1),null,0)}),h.frames=[new f.Ruleset(null,g)]);var i,j,k=[new e.JoinSelectorVisitor,new e.MarkVisibleSelectorsVisitor((!0)),new e.ExtendVisitor,new e.ToCSSVisitor({compress:Boolean(b.compress)})],l=[];if(b.pluginManager){j=b.pluginManager.visitor();for(var m=0;m<2;m++)for(j.first();i=j.get();)i.isPreEvalVisitor?0!==m&&l.indexOf(i)!==-1||(l.push(i),i.run(a)):0!==m&&k.indexOf(i)!==-1||(i.isPreVisitor?k.unshift(i):k.push(i))}c=a.eval(h);for(var m=0;m.5?j/(2-g-h):j/(g+h),g){case c:a=(d-e)/j+(d="===a||"=<"===a||"<="===a;case 1:return">"===a||">="===a;default:return!1}}}(this.op,this.lvalue.eval(a),this.rvalue.eval(a));return this.negate?!b:b},b.exports=e},{"./node":73}],57:[function(a,b,c){var d=function(a,b,c){var e="";if(a.dumpLineNumbers&&!a.compress)switch(a.dumpLineNumbers){case"comments":e=d.asComment(b);break;case"mediaquery":e=d.asMediaQuery(b);break;case"all":e=d.asComment(b)+(c||"")+d.asMediaQuery(b)}return e};d.asComment=function(a){return"/* line "+a.debugInfo.lineNumber+", "+a.debugInfo.fileName+" */\n"},d.asMediaQuery=function(a){var b=a.debugInfo.fileName;return/^[a-z]+:\/\//i.test(b)||(b="file://"+b),"@media -sass-debug-info{filename{font-family:"+b.replace(/([.:\/\\])/g,function(a){return"\\"==a&&(a="/"),"\\"+a})+"}line{font-family:\\00003"+a.debugInfo.lineNumber+"}}\n"},b.exports=d},{}],58:[function(a,b,c){function d(a,b){var c,d="",e=b.length,f={add:function(a){d+=a}};for(c=0;c-1e-6&&(d=c.toFixed(20).replace(/0+$/,"")),a&&a.compress){if(0===c&&this.unit.isLength())return void b.add(d);c>0&&c<1&&(d=d.substr(1))}b.add(d),this.unit.genCSS(a,b)},h.prototype.operate=function(a,b,c){var d=this._operate(a,b,this.value,c.value),e=this.unit.clone();if("+"===b||"-"===b)if(0===e.numerator.length&&0===e.denominator.length)e=c.unit.clone(),this.unit.backupUnit&&(e.backupUnit=this.unit.backupUnit);else if(0===c.unit.numerator.length&&0===e.denominator.length);else{if(c=c.convertTo(this.unit.usedUnits()),a.strictUnits&&c.unit.toString()!==e.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+e.toString()+"' and '"+c.unit.toString()+"'.");d=this._operate(a,b,this.value,c.value)}else"*"===b?(e.numerator=e.numerator.concat(c.unit.numerator).sort(),e.denominator=e.denominator.concat(c.unit.denominator).sort(),e.cancel()):"/"===b&&(e.numerator=e.numerator.concat(c.unit.denominator).sort(),e.denominator=e.denominator.concat(c.unit.numerator).sort(),e.cancel());return new h(d,e)},h.prototype.compare=function(a){var b,c;if(a instanceof h){if(this.unit.isEmpty()||a.unit.isEmpty())b=this,c=a;else if(b=this.unify(),c=a.unify(),0!==b.unit.compare(c.unit))return;return d.numericCompare(b.value,c.value)}},h.prototype.unify=function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},h.prototype.convertTo=function(a){var b,c,d,f,g,i=this.value,j=this.unit.clone(),k={};if("string"==typeof a){for(b in e)e[b].hasOwnProperty(a)&&(k={},k[b]=a);a=k}g=function(a,b){return d.hasOwnProperty(a)?(b?i/=d[a]/d[f]:i*=d[a]/d[f],f):a};for(c in a)a.hasOwnProperty(c)&&(f=a[c],d=e[c],j.map(g));return j.cancel(),new h(i,j)},b.exports=h},{"../data/unit-conversions":15,"./color":53,"./node":73,"./unit":81}],61:[function(a,b,c){var d=a("./node"),e=a("./paren"),f=a("./combinator"),g=function(a,b,c,d,e,g){this.combinator=a instanceof f?a:new f(a),this.value="string"==typeof b?b.trim():b?b:"",this.isVariable=c,this._index=d,this._fileInfo=e,this.copyVisibilityInfo(g),this.setParent(this.combinator,this)};g.prototype=new d,g.prototype.type="Element",g.prototype.accept=function(a){var b=this.value;this.combinator=a.visit(this.combinator),"object"==typeof b&&(this.value=a.visit(b))},g.prototype.eval=function(a){return new g(this.combinator,this.value.eval?this.value.eval(a):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},g.prototype.clone=function(){return new g(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},g.prototype.genCSS=function(a,b){b.add(this.toCSS(a),this.fileInfo(),this.getIndex())},g.prototype.toCSS=function(a){a=a||{};var b=this.value,c=a.firstSelector;return b instanceof e&&(a.firstSelector=!0),b=b.toCSS?b.toCSS(a):b,a.firstSelector=c,""===b&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(a)+b},b.exports=g},{"./combinator":54,"./node":73,"./paren":75}],62:[function(a,b,c){var d=a("./node"),e=a("./paren"),f=a("./comment"),g=function(a,b){if(this.value=a,this.noSpacing=b,!a)throw new Error("Expression requires an array parameter")};g.prototype=new d,g.prototype.type="Expression",g.prototype.accept=function(a){this.value=a.visitArray(this.value)},g.prototype.eval=function(a){var b,c=a.isMathOn(),d=this.parens&&!this.parensInOp,f=!1;return d&&a.inParenthesis(),this.value.length>1?b=new g(this.value.map(function(b){return b.eval?b.eval(a):b}),this.noSpacing):1===this.value.length?(!this.value[0].parens||this.value[0].parensInOp||a.inCalc||(f=!0),b=this.value[0].eval(a)):b=this,d&&a.outOfParenthesis(),this.parens&&this.parensInOp&&!c&&!f&&(b=new e(b)),b},g.prototype.genCSS=function(a,b){for(var c=0;c0&&c.length&&""===c[0].combinator.value&&(c[0].combinator.value=" "),d=d.concat(a[b].elements);this.selfSelectors=[new e(d)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())},b.exports=f},{"./node":73,"./selector":79}],64:[function(a,b,c){var d=a("./node"),e=a("./media"),f=a("./url"),g=a("./quoted"),h=a("./ruleset"),i=a("./anonymous"),j=a("../utils"),k=a("../less-error"),l=function(a,b,c,d,e,f){if(this.options=c,this._index=d,this._fileInfo=e,this.path=a,this.features=b,this.allowRoot=!0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var g=this.getPath();g&&/[#\.\&\?]css([\?;].*)?$/.test(g)&&(this.css=!0)}this.copyVisibilityInfo(f),this.setParent(this.features,this),this.setParent(this.path,this)};l.prototype=new d,l.prototype.type="Import",l.prototype.accept=function(a){this.features&&(this.features=a.visit(this.features)),this.path=a.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=a.visit(this.root))},l.prototype.genCSS=function(a,b){this.css&&void 0===this.path._fileInfo.reference&&(b.add("@import ",this._fileInfo,this._index),this.path.genCSS(a,b),this.features&&(b.add(" "),this.features.genCSS(a,b)),b.add(";"))},l.prototype.getPath=function(){return this.path instanceof f?this.path.value.value:this.path.value},l.prototype.isVariableImport=function(){var a=this.path;return a instanceof f&&(a=a.value),!(a instanceof g)||a.containsVariables()},l.prototype.evalForImport=function(a){var b=this.path;return b instanceof f&&(b=b.value),new l(b.eval(a),this.features,this.options,this._index,this._fileInfo,this.visibilityInfo())},l.prototype.evalPath=function(a){var b=this.path.eval(a),c=this._fileInfo&&this._fileInfo.rootpath;if(!(b instanceof f)){if(c){var d=b.value;d&&a.isPathRelative(d)&&(b.value=c+d)}b.value=a.normalizePath(b.value)}return b},l.prototype.eval=function(a){var b=this.doEval(a);return(this.options.reference||this.blocksVisibility())&&(b.length||0===b.length?b.forEach(function(a){a.addVisibilityBlock()}):b.addVisibilityBlock()),b},l.prototype.doEval=function(a){var b,c,d=this.features&&this.features.eval(a);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(a)}catch(f){throw f.message="Plugin error during evaluation",new k(f,this.root.imports,this.root.filename)}return c=a.frames[0]&&a.frames[0].functionRegistry,c&&this.root&&this.root.functions&&c.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var g=new i(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},(!0),(!0));return this.features?new e([g],this.features.value):[g]}if(this.css){var m=new l(this.evalPath(a),d,this.options,this._index);if(!m.css&&this.error)throw this.error;return m}return b=new h(null,j.copyArray(this.root.rules)),b.evalImports(a),this.features?new e(b.rules,this.features.value):b.rules},b.exports=l},{"../less-error":36,"../utils":86,"./anonymous":48,"./media":69,"./node":73,"./quoted":77,"./ruleset":78,"./url":82}],65:[function(a,b,c){var d=Object.create(null);d.Node=a("./node"),d.Color=a("./color"),d.AtRule=a("./atrule"),d.DetachedRuleset=a("./detached-ruleset"),d.Operation=a("./operation"),d.Dimension=a("./dimension"),d.Unit=a("./unit"),d.Keyword=a("./keyword"),d.Variable=a("./variable"),d.Property=a("./property"),d.Ruleset=a("./ruleset"),d.Element=a("./element"),d.Attribute=a("./attribute"),d.Combinator=a("./combinator"),d.Selector=a("./selector"),d.Quoted=a("./quoted"),d.Expression=a("./expression"),d.Declaration=a("./declaration"),d.Call=a("./call"),d.URL=a("./url"),d.Import=a("./import"),d.mixin={Call:a("./mixin-call"),Definition:a("./mixin-definition")},d.Comment=a("./comment"),d.Anonymous=a("./anonymous"),d.Value=a("./value"),d.JavaScript=a("./javascript"),d.Assignment=a("./assignment"),d.Condition=a("./condition"),d.Paren=a("./paren"),d.Media=a("./media"),d.UnicodeDescriptor=a("./unicode-descriptor"),d.Negative=a("./negative"),d.Extend=a("./extend"),d.VariableCall=a("./variable-call"),b.exports=d},{"./anonymous":48,"./assignment":49,"./atrule":50,"./attribute":51,"./call":52,"./color":53,"./combinator":54,"./comment":55,"./condition":56,"./declaration":58,"./detached-ruleset":59,"./dimension":60,"./element":61,"./expression":62,"./extend":63,"./import":64,"./javascript":66,"./keyword":68,"./media":69,"./mixin-call":70,"./mixin-definition":71,"./negative":72,"./node":73,"./operation":74,"./paren":75,"./property":76,"./quoted":77,"./ruleset":78,"./selector":79,"./unicode-descriptor":80,"./unit":81,"./url":82,"./value":83,"./variable":85,"./variable-call":84}],66:[function(a,b,c){var d=a("./js-eval-node"),e=a("./dimension"),f=a("./quoted"),g=a("./anonymous"),h=function(a,b,c,d){this.escaped=b,this.expression=a,this._index=c,this._fileInfo=d};h.prototype=new d,h.prototype.type="JavaScript",h.prototype.eval=function(a){var b=this.evaluateJavaScript(this.expression,a);return"number"==typeof b?new e(b):"string"==typeof b?new f('"'+b+'"',b,this.escaped,this._index):new g(Array.isArray(b)?b.join(", "):b)},b.exports=h},{"./anonymous":48,"./dimension":60,"./js-eval-node":67,"./quoted":77}],67:[function(a,b,c){var d=a("./node"),e=a("./variable"),f=function(){};f.prototype=new d,f.prototype.evaluateJavaScript=function(a,b){var c,d=this,f={};if(!b.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};a=a.replace(/@\{([\w-]+)\}/g,function(a,c){return d.jsify(new e("@"+c,d.getIndex(),d.fileInfo()).eval(b))});try{a=new Function("return ("+a+")")}catch(g){throw{message:"JavaScript evaluation error: "+g.message+" from `"+a+"`",filename:this.fileInfo().filename,index:this.getIndex()}}var h=b.frames[0].variables();for(var i in h)h.hasOwnProperty(i)&&(f[i.slice(1)]={value:h[i].value,toJS:function(){return this.value.eval(b).toCSS()}});try{c=a.call(f)}catch(g){throw{message:"JavaScript evaluation error: '"+g.name+": "+g.message.replace(/["]/g,"'")+"'",filename:this.fileInfo().filename,index:this.getIndex()}}return c},f.prototype.jsify=function(a){return Array.isArray(a.value)&&a.value.length>1?"["+a.value.map(function(a){return a.toCSS()}).join(", ")+"]":a.toCSS()},b.exports=f},{"./node":73,"./variable":85}],68:[function(a,b,c){var d=a("./node"),e=function(a){this.value=a};e.prototype=new d,e.prototype.type="Keyword",e.prototype.genCSS=function(a,b){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};b.add(this.value)},e.True=new e("true"),e.False=new e("false"),b.exports=e},{"./node":73}],69:[function(a,b,c){var d=a("./ruleset"),e=a("./value"),f=a("./selector"),g=a("./anonymous"),h=a("./expression"),i=a("./atrule"),j=a("../utils"),k=function(a,b,c,g,h){this._index=c,this._fileInfo=g;var i=new f([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new e(b),this.rules=[new d(i,a)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(h),this.allowRoot=!0,this.setParent(i,this),this.setParent(this.features,this),this.setParent(this.rules,this)};k.prototype=new i,k.prototype.type="Media",k.prototype.isRulesetLike=function(){return!0},k.prototype.accept=function(a){this.features&&(this.features=a.visit(this.features)),this.rules&&(this.rules=a.visitArray(this.rules))},k.prototype.genCSS=function(a,b){b.add("@media ",this._fileInfo,this._index),this.features.genCSS(a,b),this.outputRuleset(a,b,this.rules)},k.prototype.eval=function(a){a.mediaBlocks||(a.mediaBlocks=[],a.mediaPath=[]);var b=new k(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,b.debugInfo=this.debugInfo),b.features=this.features.eval(a),a.mediaPath.push(b),a.mediaBlocks.push(b),this.rules[0].functionRegistry=a.frames[0].functionRegistry.inherit(),a.frames.unshift(this.rules[0]),b.rules=[this.rules[0].eval(a)],a.frames.shift(),a.mediaPath.pop(),0===a.mediaPath.length?b.evalTop(a):b.evalNested(a)},k.prototype.evalTop=function(a){var b=this;if(a.mediaBlocks.length>1){var c=new f([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();b=new d(c,a.mediaBlocks),b.multiMedia=!0,b.copyVisibilityInfo(this.visibilityInfo()),this.setParent(b,this)}return delete a.mediaBlocks,delete a.mediaPath,b},k.prototype.evalNested=function(a){var b,c,f=a.mediaPath.concat([this]);for(b=0;b0;b--)a.splice(b,0,new g("and"));return new h(a)})),this.setParent(this.features,this),new d([],[])},k.prototype.permute=function(a){if(0===a.length)return[];if(1===a.length)return a[0];for(var b=[],c=this.permute(a.slice(1)),d=0;d0){for(n=!0,k=0;k0)p=B;else if(p=A,q[A]+q[B]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(t)+"`",index:this.getIndex(),filename:this.fileInfo().filename};for(k=0;kthis.params.length)return!1}c=Math.min(f,this.arity);for(var g=0;gb?1:void 0},d.prototype.blocksVisibility=function(){return null==this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},d.prototype.addVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},d.prototype.removeVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},d.prototype.ensureVisibility=function(){this.nodeVisible=!0},d.prototype.ensureInvisibility=function(){this.nodeVisible=!1},d.prototype.isVisible=function(){return this.nodeVisible},d.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},d.prototype.copyVisibilityInfo=function(a){a&&(this.visibilityBlocks=a.visibilityBlocks,this.nodeVisible=a.nodeVisible)},b.exports=d},{}],74:[function(a,b,c){var d=a("./node"),e=a("./color"),f=a("./dimension"),g=function(a,b,c){this.op=a.trim(),this.operands=b,this.isSpaced=c};g.prototype=new d,g.prototype.type="Operation",g.prototype.accept=function(a){this.operands=a.visit(this.operands)},g.prototype.eval=function(a){var b=this.operands[0].eval(a),c=this.operands[1].eval(a);if(a.isMathOn()){if(b instanceof f&&c instanceof e&&(b=b.toColor()),c instanceof f&&b instanceof e&&(c=c.toColor()),!b.operate)throw{type:"Operation",message:"Operation on an invalid type"};return b.operate(a,this.op,c)}return new g(this.op,[b,c],this.isSpaced)},g.prototype.genCSS=function(a,b){this.operands[0].genCSS(a,b),this.isSpaced&&b.add(" "),b.add(this.op),this.isSpaced&&b.add(" "),this.operands[1].genCSS(a,b)},b.exports=g},{"./color":53,"./dimension":60,"./node":73}],75:[function(a,b,c){var d=a("./node"),e=function(a){this.value=a};e.prototype=new d,e.prototype.type="Paren",e.prototype.genCSS=function(a,b){b.add("("),this.value.genCSS(a,b),b.add(")")},e.prototype.eval=function(a){return new e(this.value.eval(a))},b.exports=e},{"./node":73}],76:[function(a,b,c){var d=a("./node"),e=a("./declaration"),f=function(a,b,c){this.name=a,this._index=b,this._fileInfo=c};f.prototype=new d,f.prototype.type="Property",f.prototype.eval=function(a){var b,c=this.name,d=a.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+c,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,b=this.find(a.frames,function(b){var f,g=b.property(c);if(g){for(var h=0;hd){if(!c||c(g)){e=g.find(new i(a.elements.slice(d)),b,c);for(var j=0;j0&&b.add(k),a.firstSelector=!0,h[0].genCSS(a,b),a.firstSelector=!1,d=1;d0?(e=p.copyArray(a),f=e.pop(),g=d.createDerived(p.copyArray(f.elements))):g=d.createDerived([]),b.length>0){var h=c.combinator,i=b[0].elements[0];h.emptyOrWhitespace&&!i.combinator.emptyOrWhitespace&&(h=i.combinator),g.elements.push(new j(h,i.value,c.isVariable,c._index,c._fileInfo)),g.elements=g.elements.concat(b[0].elements.slice(1))}if(0!==g.elements.length&&e.push(g),b.length>1){var k=b.slice(1);k=k.map(function(a){return a.createDerived(a.elements,[])}),e=e.concat(k)}return e}function g(a,b,c,d,e){var g;for(g=0;g0?d[d.length-1]=d[d.length-1].createDerived(d[d.length-1].elements.concat(a)):d.push(new i(a))}}function l(a,b,c){function m(a){var b;return a.value instanceof h?(b=a.value.value,b instanceof i?b:null):null}var n,o,p,q,r,s,t,u,v,w,x=!1;for(q=[],r=[[]],n=0;u=c.elements[n];n++)if("&"!==u.value){var y=m(u);if(null!=y){k(q,r);var z,A=[],B=[];for(z=l(A,b,y),x=x||z,p=0;p0&&t[0].elements.push(new j(u.combinator,"",u.isVariable,u._index,u._fileInfo)),s.push(t);else for(p=0;p0&&(a.push(r[n]),w=r[n][v-1],r[n][v-1]=w.createDerived(w.elements,c.extendList));return x}function m(a,b){var c=b.createDerived(b.elements,b.extendList,b.evaldCondition);return c.copyVisibilityInfo(a),c}var n,o,q;if(o=[],q=l(o,b,c),!q)if(b.length>0)for(o=[],n=0;n0)for(b=0;b=0&&"\n"!==b.charAt(c);)e++;return"number"==typeof a&&(d=(b.slice(0,a).match(/\n/g)||"").length),{line:d,column:e}},copyArray:function(a){var b,c=a.length,d=new Array(c);for(b=0;b=0||(i=[k.selfSelectors[0]],g=n.findMatch(j,i),g.length&&(j.hasFoundMatches=!0,j.selfSelectors.forEach(function(a){var b=k.visibilityInfo();h=n.extendSelector(g,i,a,j.isVisible()),l=new d.Extend(k.selector,k.option,0,k.fileInfo(),b),l.selfSelectors=h,h[h.length-1].extendList=[l],m.push(l),l.ruleset=k.ruleset,l.parent_ids=l.parent_ids.concat(k.parent_ids,j.parent_ids),k.firstExtendOnThisSelectorPath&&(l.firstExtendOnThisSelectorPath=!0,k.ruleset.paths.push(h))})));if(m.length){if(this.extendChainCount++,c>100){var o="{unable to calculate}",p="{unable to calculate}";try{o=m[0].selfSelectors[0].toCSS(),p=m[0].selector.toCSS()}catch(q){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+o+":extend("+p+")"}}return m.concat(n.doExtendChaining(m,b,c+1))}return m},visitDeclaration:function(a,b){b.visitDeeper=!1},visitMixinDefinition:function(a,b){b.visitDeeper=!1},visitSelector:function(a,b){b.visitDeeper=!1},visitRuleset:function(a,b){if(!a.root){var c,d,e,f,g=this.allExtendsStack[this.allExtendsStack.length-1],h=[],i=this;for(e=0;e0&&k[i.matched].combinator.value!==g?i=null:i.matched++,i&&(i.finished=i.matched===k.length,i.finished&&!a.allowAfter&&(e+1k&&l>0&&(m[m.length-1].elements=m[m.length-1].elements.concat(b[k].elements.slice(l)),l=0,k++),j=g.elements.slice(l,i.index).concat([h]).concat(c.elements.slice(1)),k===i.pathIndex&&f>0?m[m.length-1].elements=m[m.length-1].elements.concat(j):(m=m.concat(b.slice(k,i.pathIndex)),m.push(new d.Selector(j))),k=i.endPathIndex,l=i.endPathElementIndex,l>=b[k].elements.length&&(l=0,k++);return k0&&(m[m.length-1].elements=m[m.length-1].elements.concat(b[k].elements.slice(l)),k++),m=m.concat(b.slice(k,b.length)),m=m.map(function(a){var b=a.createDerived(a.elements);return e?b.ensureVisibility():b.ensureInvisibility(),b})},visitMedia:function(a,b){var c=a.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);c=c.concat(this.doExtendChaining(c,a.allExtends)),this.allExtendsStack.push(c)},visitMediaOut:function(a){var b=this.allExtendsStack.length-1;this.allExtendsStack.length=b},visitAtRule:function(a,b){var c=a.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);c=c.concat(this.doExtendChaining(c,a.allExtends)),this.allExtendsStack.push(c)},visitAtRuleOut:function(a){var b=this.allExtendsStack.length-1;this.allExtendsStack.length=b}},b.exports=i},{"../logger":37,"../tree":65,"../utils":86,"./visitor":94}],88:[function(a,b,c){function d(a){this.imports=[],this.variableImports=[],this._onSequencerEmpty=a,this._currentDepth=0}d.prototype.addImport=function(a){var b=this,c={callback:a,args:null,isReady:!1};return this.imports.push(c),function(){c.args=Array.prototype.slice.call(arguments,0),c.isReady=!0,b.tryRun()}},d.prototype.addVariableImport=function(a){this.variableImports.push(a)},d.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var a=this.imports[0];if(!a.isReady)return;this.imports=this.imports.slice(1),a.callback.apply(null,a.args)}if(0===this.variableImports.length)break;var b=this.variableImports[0];this.variableImports=this.variableImports.slice(1),b()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()},b.exports=d},{}],89:[function(a,b,c){var d=a("../contexts"),e=a("./visitor"),f=a("./import-sequencer"),g=a("../utils"),h=function(a,b){this._visitor=new e(this),this._importer=a,this._finish=b,this.context=new d.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new f(this._onSequencerEmpty.bind(this))};h.prototype={isReplacing:!1,run:function(a){try{this._visitor.visit(a)}catch(b){this.error=b}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(a,b){var c=a.options.inline;if(!a.css||c){var e=new d.Eval(this.context,g.copyArray(this.context.frames)),f=e.frames[0];this.importCount++,a.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,a,e,f)):this.processImportNode(a,e,f)}b.visitDeeper=!1},processImportNode:function(a,b,c){var d,e=a.options.inline;try{d=a.evalForImport(b)}catch(f){f.filename||(f.index=a.getIndex(),f.filename=a.fileInfo().filename),a.css=!0,a.error=f}if(!d||d.css&&!e)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{d.options.multiple&&(b.importMultiple=!0);for(var g=void 0===d.css,h=0;h0},resolveVisibility:function(a,b){if(!a.blocksVisibility()){if(this.isEmpty(a)&&!this.containsSilentNonBlockedChild(b))return;return a}var c=a.rules[0];if(this.keepOnlyVisibleChilds(c),!this.isEmpty(c))return a.ensureVisibility(),a.removeVisibilityBlock(),a},isVisibleRuleset:function(a){return!!a.firstRoot||!this.isEmpty(a)&&!(!a.root&&!this.hasVisibleSelector(a))}};var g=function(a){this._visitor=new e(this),this._context=a,this.utils=new f(a)};g.prototype={isReplacing:!0,run:function(a){return this._visitor.visit(a)},visitDeclaration:function(a,b){if(!a.blocksVisibility()&&!a.variable)return a},visitMixinDefinition:function(a,b){a.frames=[]},visitExtend:function(a,b){},visitComment:function(a,b){if(!a.blocksVisibility()&&!a.isSilent(this._context))return a},visitMedia:function(a,b){var c=a.rules[0].rules;return a.accept(this._visitor),b.visitDeeper=!1,this.utils.resolveVisibility(a,c)},visitImport:function(a,b){if(!a.blocksVisibility())return a},visitAtRule:function(a,b){return a.rules&&a.rules.length?this.visitAtRuleWithBody(a,b):this.visitAtRuleWithoutBody(a,b)},visitAnonymous:function(a,b){if(!a.blocksVisibility())return a.accept(this._visitor),a},visitAtRuleWithBody:function(a,b){function c(a){var b=a.rules;return 1===b.length&&(!b[0].paths||0===b[0].paths.length)}function d(a){var b=a.rules;return c(a)?b[0].rules:b}var e=d(a);return a.accept(this._visitor),b.visitDeeper=!1,this.utils.isEmpty(a)||this._mergeRules(a.rules[0].rules),this.utils.resolveVisibility(a,e)},visitAtRuleWithoutBody:function(a,b){if(!a.blocksVisibility()){if("@charset"===a.name){if(this.charset){if(a.debugInfo){var c=new d.Comment("/* "+a.toCSS(this._context).replace(/\n/g,"")+" */\n");return c.debugInfo=a.debugInfo,this._visitor.visit(c)}return}this.charset=!0}return a}},checkValidNodes:function(a,b){if(a)for(var c=0;c0?a.accept(this._visitor):a.rules=null,b.visitDeeper=!1}return a.rules&&(this._mergeRules(a.rules),this._removeDuplicateRules(a.rules)),this.utils.isVisibleRuleset(a)&&(a.ensureVisibility(),d.splice(0,0,a)),1===d.length?d[0]:d},_compileRulesetPaths:function(a){a.paths&&(a.paths=a.paths.filter(function(a){var b;for(" "===a[0].elements[0].combinator.value&&(a[0].elements[0].combinator=new d.Combinator("")),b=0;b=0;e--)if(c=a[e],c instanceof d.Declaration)if(f[c.name]){b=f[c.name],b instanceof d.Declaration&&(b=f[c.name]=[f[c.name].toCSS(this._context)]);var g=c.toCSS(this._context);b.indexOf(g)!==-1?a.splice(e,1):b.push(g)}else f[c.name]=c}},_mergeRules:function(a){if(a){for(var b={},c=[],e=0;e0){var b=a[0],c=[],e=[new d.Expression(c)];a.forEach(function(a){"+"===a.merge&&c.length>0&&e.push(new d.Expression(c=[])),c.push(a.value),b.important=b.important||a.important}),b.value=new d.Value(e)}})}}},b.exports=g},{"../tree":65,"./visitor":94}],94:[function(a,b,c){function d(a){return a}function e(a,b){var c,d;for(c in a)switch(d=a[c],typeof d){case"function":d.prototype&&d.prototype.type&&(d.prototype.typeIndex=b++);break;case"object":b=e(d,b)}return b}var f=a("../tree"),g={visitDeeper:!0},h=!1,i=function(a){this._implementation=a,this._visitInCache={},this._visitOutCache={},h||(e(f,1),h=!0)};i.prototype={visit:function(a){if(!a)return a;var b=a.typeIndex;if(!b)return a.value&&a.value.typeIndex&&this.visit(a.value),a;var c,e=this._implementation,f=this._visitInCache[b],h=this._visitOutCache[b],i=g;if(i.visitDeeper=!0,f||(c="visit"+a.type,f=e[c]||d,h=e[c+"Out"]||d,this._visitInCache[b]=f,this._visitOutCache[b]=h),f!==d){var j=f.call(e,a,i);a&&e.isReplacing&&(a=j)}return i.visitDeeper&&a&&a.accept&&a.accept(this),h!=d&&h.call(e,a),a},visitArray:function(a,b){if(!a)return a;var c,d=a.length;if(b||!this._implementation.isReplacing){for(c=0;ck){for(var b=0,c=h.length-j;b0||b.isFileProtocol?"development":"production");var c=/!dumpLineNumbers:(comments|mediaquery|all)/.exec(a.location.hash);c&&(b.dumpLineNumbers=c[1]),void 0===b.useFileCache&&(b.useFileCache=!0),void 0===b.onReady&&(b.onReady=!0),b.javascriptEnabled=!(!b.javascriptEnabled&&!b.inlineJavaScript)}},{"./browser":3,"./utils":11}],2:[function(a,b,c){function d(a){a.filename&&console.warn(a),e.async||h.removeChild(i)}a("promise/polyfill");var e=a("../less/default-options")();if(window.less)for(key in window.less)window.less.hasOwnProperty(key)&&(e[key]=window.less[key]);a("./add-default-options")(window,e),e.plugins=e.plugins||[],window.LESS_PLUGINS&&(e.plugins=e.plugins.concat(window.LESS_PLUGINS));var f=b.exports=a("./index")(window,e);window.less=f;var g,h,i;e.onReady&&(/!watch/.test(window.location.hash)&&f.watch(),e.async||(g="body { display: none !important }",h=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style"),i.type="text/css",i.styleSheet?i.styleSheet.cssText=g:i.appendChild(document.createTextNode(g)),h.appendChild(i)),f.registerStylesheetsImmediately(),f.pageLoadFinished=f.refresh("development"===f.env).then(d,d))},{"../less/default-options":16,"./add-default-options":1,"./index":8,"promise/polyfill":101}],3:[function(a,b,c){var d=a("./utils");b.exports={createCSS:function(a,b,c){var e=c.href||"",f="less:"+(c.title||d.extractId(e)),g=a.getElementById(f),h=!1,i=a.createElement("style");i.setAttribute("type","text/css"),c.media&&i.setAttribute("media",c.media),i.id=f,i.styleSheet||(i.appendChild(a.createTextNode(b)),h=null!==g&&g.childNodes.length>0&&i.childNodes.length>0&&g.firstChild.nodeValue===i.firstChild.nodeValue);var j=a.getElementsByTagName("head")[0];if(null===g||h===!1){var k=c&&c.nextSibling||null;k?k.parentNode.insertBefore(i,k):j.appendChild(i)}if(g&&h===!1&&g.parentNode.removeChild(g),i.styleSheet)try{i.styleSheet.cssText=b}catch(l){throw new Error("Couldn't reassign styleSheet.cssText.")}},currentScript:function(a){var b=a.document;return b.currentScript||function(){var a=b.getElementsByTagName("script");return a[a.length-1]}()}}},{"./utils":11}],4:[function(a,b,c){b.exports=function(a,b,c){var d=null;if("development"!==b.env)try{d="undefined"==typeof a.localStorage?null:a.localStorage}catch(e){}return{setCSS:function(a,b,e,f){if(d){c.info("saving "+a+" to cache.");try{d.setItem(a,f),d.setItem(a+":timestamp",b),e&&d.setItem(a+":vars",JSON.stringify(e))}catch(g){c.error('failed to save "'+a+'" to local storage for caching.')}}},getCSS:function(a,b,c){var e=d&&d.getItem(a),f=d&&d.getItem(a+":timestamp"),g=d&&d.getItem(a+":vars");if(c=c||{},g=g||"{}",f&&b.lastModified&&new Date(b.lastModified).valueOf()===new Date(f).valueOf()&&JSON.stringify(c)===g)return e}}}},{}],5:[function(a,b,c){var d=a("./utils"),e=a("./browser");b.exports=function(a,b,c){function f(b,f){var g,h,i="less-error-message:"+d.extractId(f||""),j='
  • {content}
  • ',k=a.document.createElement("div"),l=[],m=b.filename||f,n=m.match(/([^\/]+(\?.*)?)$/)[1];k.id=i,k.className="less-error-message",h="

    "+(b.type||"Syntax")+"Error: "+(b.message||"There is an error in your .less file")+'

    in '+n+" ";var o=function(a,b,c){void 0!==a.extract[b]&&l.push(j.replace(/\{line\}/,(parseInt(a.line,10)||0)+(b-1)).replace(/\{class\}/,c).replace(/\{content\}/,a.extract[b]))};b.line&&(o(b,0,""),o(b,1,"line"),o(b,2,""),h+="on line "+b.line+", column "+(b.column+1)+":

      "+l.join("")+"
    "),b.stack&&(b.extract||c.logLevel>=4)&&(h+="
    Stack Trace
    "+b.stack.split("\n").slice(1).join("
    ")),k.innerHTML=h,e.createCSS(a.document,[".less-error-message ul, .less-error-message li {","list-style-type: none;","margin-right: 15px;","padding: 4px 0;","margin: 0;","}",".less-error-message label {","font-size: 12px;","margin-right: 15px;","padding: 4px 0;","color: #cc7777;","}",".less-error-message pre {","color: #dd6666;","padding: 4px 0;","margin: 0;","display: inline-block;","}",".less-error-message pre.line {","color: #ff0000;","}",".less-error-message h3 {","font-size: 20px;","font-weight: bold;","padding: 15px 0 5px 0;","margin: 0;","}",".less-error-message a {","color: #10a","}",".less-error-message .error {","color: red;","font-weight: bold;","padding-bottom: 2px;","border-bottom: 1px dashed red;","}"].join("\n"),{title:"error-message"}),k.style.cssText=["font-family: Arial, sans-serif","border: 1px solid #e00","background-color: #eee","border-radius: 5px","-webkit-border-radius: 5px","-moz-border-radius: 5px","color: #e00","padding: 15px","margin-bottom: 15px"].join(";"),"development"===c.env&&(g=setInterval(function(){var b=a.document,c=b.body;c&&(b.getElementById(i)?c.replaceChild(k,b.getElementById(i)):c.insertBefore(k,c.firstChild),clearInterval(g))},10))}function g(b){var c=a.document.getElementById("less-error-message:"+d.extractId(b));c&&c.parentNode.removeChild(c)}function h(a){}function i(a){c.errorReporting&&"html"!==c.errorReporting?"console"===c.errorReporting?h(a):"function"==typeof c.errorReporting&&c.errorReporting("remove",a):g(a)}function j(a,d){var e="{line} {content}",f=a.filename||d,g=[],h=(a.type||"Syntax")+"Error: "+(a.message||"There is an error in your .less file")+" in "+f,i=function(a,b,c){void 0!==a.extract[b]&&g.push(e.replace(/\{line\}/,(parseInt(a.line,10)||0)+(b-1)).replace(/\{class\}/,c).replace(/\{content\}/,a.extract[b]))};a.line&&(i(a,0,""),i(a,1,"line"),i(a,2,""),h+=" on line "+a.line+", column "+(a.column+1)+":\n"+g.join("\n")),a.stack&&(a.extract||c.logLevel>=4)&&(h+="\nStack Trace\n"+a.stack),b.logger.error(h)}function k(a,b){c.errorReporting&&"html"!==c.errorReporting?"console"===c.errorReporting?j(a,b):"function"==typeof c.errorReporting&&c.errorReporting("add",a,b):f(a,b)}return{add:k,remove:i}}},{"./browser":3,"./utils":11}],6:[function(a,b,c){b.exports=function(b,c){var d=a("../less/environment/abstract-file-manager.js"),e={},f=function(){};return f.prototype=new d,f.prototype.alwaysMakePathsAbsolute=function(){return!0},f.prototype.join=function(a,b){return a?this.extractUrlParts(b,a).path:b},f.prototype.doXHR=function(a,d,e,f){function g(b,c,d){b.status>=200&&b.status<300?c(b.responseText,b.getResponseHeader("Last-Modified")):"function"==typeof d&&d(b.status,a)}var h=new XMLHttpRequest,i=!b.isFileProtocol||b.fileAsync;"function"==typeof h.overrideMimeType&&h.overrideMimeType("text/css"),c.debug("XHR: Getting '"+a+"'"),h.open("GET",a,i),h.setRequestHeader("Accept",d||"text/x-less, text/css; q=0.9, */*; q=0.5"),h.send(null),b.isFileProtocol&&!b.fileAsync?0===h.status||h.status>=200&&h.status<300?e(h.responseText):f(h.status,a):i?h.onreadystatechange=function(){4==h.readyState&&g(h,e,f)}:g(h,e,f)},f.prototype.supports=function(a,b,c,d){return!0},f.prototype.clearFileCache=function(){e={}},f.prototype.loadFile=function(a,b,c,d){b&&!this.isPathAbsolute(a)&&(a=b+a),a=c.ext?this.tryAppendExtension(a,c.ext):a,c=c||{};var f=this.extractUrlParts(a,window.location.href),g=f.url,h=this;return new Promise(function(a,b){if(c.useFileCache&&e[g])try{var d=e[g];return a({contents:d,filename:g,webInfo:{lastModified:new Date}})}catch(f){return b({filename:g,message:"Error loading file "+g+" error was "+f.message})}h.doXHR(g,c.mime,function(b,c){e[g]=b,a({contents:b,filename:g,webInfo:{lastModified:c}})},function(a,c){b({type:"File",message:"'"+c+"' wasn't found ("+a+")",href:g})})})},f}},{"../less/environment/abstract-file-manager.js":17}],7:[function(a,b,c){b.exports=function(){function b(){throw{type:"Runtime",message:"Image size functions are not supported in browser version of less"}}var c=a("./../less/functions/function-registry"),d={"image-size":function(a){return b(this,a),-1},"image-width":function(a){return b(this,a),-1},"image-height":function(a){return b(this,a),-1}};c.addMultiple(d)}},{"./../less/functions/function-registry":26}],8:[function(a,b,c){var d=a("./utils").addDataAttr,e=a("./browser");b.exports=function(b,c){function f(a){return JSON.parse(JSON.stringify(a||{}))}function g(a,b){var c=Array.prototype.slice.call(arguments,2);return function(){var d=c.concat(Array.prototype.slice.call(arguments,0));return a.apply(b,d)}}function h(a){for(var b,d=l.getElementsByTagName("style"),e=0;e=c&&console.log(a)},info:function(a){b.logLevel>=d&&console.log(a)},warn:function(a){b.logLevel>=e&&console.warn(a)},error:function(a){b.logLevel>=f&&console.error(a)}}]);for(var g=0;g0&&(a=a.slice(0,b)),b=a.lastIndexOf("/"),b<0&&(b=a.lastIndexOf("\\")),b<0?"":a.slice(0,b+1)},d.prototype.tryAppendExtension=function(a,b){return/(\.[a-z]*$)|([\?;].*)$/.test(a)?a:a+b},d.prototype.tryAppendLessExtension=function(a){return this.tryAppendExtension(a,".less")},d.prototype.supportsSync=function(){return!1},d.prototype.alwaysMakePathsAbsolute=function(){return!1},d.prototype.isPathAbsolute=function(a){return/^(?:[a-z-]+:|\/|\\|#)/i.test(a)},d.prototype.join=function(a,b){return a?a+b:b},d.prototype.pathDiff=function(a,b){var c,d,e,f,g=this.extractUrlParts(a),h=this.extractUrlParts(b),i="";if(g.hostPart!==h.hostPart)return"";for(d=Math.max(h.directories.length,g.directories.length),c=0;cparseInt(b[c])?-1:1;return 0},f.prototype.versionToString=function(a){for(var b="",c=0;c=0;h--){var i=g[h];if(i[f?"supportsSync":"supports"](a,b,c,e))return i}return null},e.prototype.addFileManager=function(a){this.fileManagers.push(a)},e.prototype.clearFileManagers=function(){this.fileManagers=[]},b.exports=e},{"../logger":37}],20:[function(a,b,c){var d=a("./function-registry"),e=a("../tree/anonymous"),f=a("../tree/keyword");d.addMultiple({"boolean":function(a){return a?f.True:f.False},"if":function(a,b,c){return a?b:c||new e}})},{"../tree/anonymous":48,"../tree/keyword":68,"./function-registry":26}],21:[function(a,b,c){function d(a,b,c){var d,f,g,h,i=b.alpha,j=c.alpha,k=[];g=j+i*(1-j);for(var l=0;l<3;l++)d=b.rgb[l]/255,f=c.rgb[l]/255,h=a(d,f),g&&(h=(j*f+i*(d-j*(d+f-h)))/g),k[l]=255*h;return new e(k,g)}var e=a("../tree/color"),f=a("./function-registry"),g={multiply:function(a,b){return a*b},screen:function(a,b){return a+b-a*b},overlay:function(a,b){return a*=2,a<=1?g.multiply(a,b):g.screen(a-1,b)},softlight:function(a,b){var c=1,d=a;return b>.5&&(d=1,c=a>.25?Math.sqrt(a):((16*a-12)*a+4)*a),a-(1-2*b)*d*(c-a)},hardlight:function(a,b){return g.overlay(b,a)},difference:function(a,b){return Math.abs(a-b)},exclusion:function(a,b){return a+b-2*a*b},average:function(a,b){return(a+b)/2},negation:function(a,b){return 1-Math.abs(a+b-1)}};for(var h in g)g.hasOwnProperty(h)&&(d[h]=d.bind(null,g[h]));f.addMultiple(d)},{"../tree/color":53,"./function-registry":26}],22:[function(a,b,c){function d(a){return Math.min(1,Math.max(0,a))}function e(a){return h.hsla(a.h,a.s,a.l,a.a)}function f(a){if(a instanceof i)return parseFloat(a.unit.is("%")?a.value/100:a.value);if("number"==typeof a)return a;throw{type:"Argument",message:"color functions take numbers as parameters"}}function g(a,b){return a instanceof i&&a.unit.is("%")?parseFloat(a.value*b/100):f(a)}var h,i=a("../tree/dimension"),j=a("../tree/color"),k=a("../tree/quoted"),l=a("../tree/anonymous"),m=a("./function-registry");h={rgb:function(a,b,c){return h.rgba(a,b,c,1)},rgba:function(a,b,c,d){var e=[a,b,c].map(function(a){return g(a,255)});return d=f(d),new j(e,d)},hsl:function(a,b,c){return h.hsla(a,b,c,1)},hsla:function(a,b,c,e){function g(a){return a=a<0?a+1:a>1?a-1:a,6*a<1?i+(j-i)*a*6:2*a<1?j:3*a<2?i+(j-i)*(2/3-a)*6:i}var i,j;return a=f(a)%360/360,b=d(f(b)),c=d(f(c)),e=d(f(e)),j=c<=.5?c*(b+1):c+b-c*b,i=2*c-j,h.rgba(255*g(a+1/3),255*g(a),255*g(a-1/3),e)},hsv:function(a,b,c){return h.hsva(a,b,c,1)},hsva:function(a,b,c,d){a=f(a)%360/360*360,b=f(b),c=f(c),d=f(d);var e,g;e=Math.floor(a/60%6),g=a/60-e;var i=[c,c*(1-b),c*(1-g*b),c*(1-(1-g)*b)],j=[[0,3,1],[2,0,1],[1,0,3],[1,2,0],[3,1,0],[0,1,2]];return h.rgba(255*i[j[e][0]],255*i[j[e][1]],255*i[j[e][2]],d)},hue:function(a){return new i(a.toHSL().h)},saturation:function(a){return new i(100*a.toHSL().s,"%")},lightness:function(a){return new i(100*a.toHSL().l,"%")},hsvhue:function(a){return new i(a.toHSV().h)},hsvsaturation:function(a){return new i(100*a.toHSV().s,"%")},hsvvalue:function(a){return new i(100*a.toHSV().v,"%")},red:function(a){return new i(a.rgb[0])},green:function(a){return new i(a.rgb[1])},blue:function(a){return new i(a.rgb[2])},alpha:function(a){return new i(a.toHSL().a)},luma:function(a){return new i(a.luma()*a.alpha*100,"%")},luminance:function(a){var b=.2126*a.rgb[0]/255+.7152*a.rgb[1]/255+.0722*a.rgb[2]/255;return new i(b*a.alpha*100,"%")},saturate:function(a,b,c){if(!a.rgb)return null;var f=a.toHSL();return f.s+="undefined"!=typeof c&&"relative"===c.value?f.s*b.value/100:b.value/100,f.s=d(f.s),e(f)},desaturate:function(a,b,c){var f=a.toHSL();return f.s-="undefined"!=typeof c&&"relative"===c.value?f.s*b.value/100:b.value/100,f.s=d(f.s),e(f)},lighten:function(a,b,c){var f=a.toHSL();return f.l+="undefined"!=typeof c&&"relative"===c.value?f.l*b.value/100:b.value/100,f.l=d(f.l),e(f)},darken:function(a,b,c){var f=a.toHSL();return f.l-="undefined"!=typeof c&&"relative"===c.value?f.l*b.value/100:b.value/100,f.l=d(f.l),e(f)},fadein:function(a,b,c){var f=a.toHSL();return f.a+="undefined"!=typeof c&&"relative"===c.value?f.a*b.value/100:b.value/100,f.a=d(f.a),e(f)},fadeout:function(a,b,c){var f=a.toHSL();return f.a-="undefined"!=typeof c&&"relative"===c.value?f.a*b.value/100:b.value/100,f.a=d(f.a),e(f)},fade:function(a,b){var c=a.toHSL();return c.a=b.value/100,c.a=d(c.a),e(c)},spin:function(a,b){var c=a.toHSL(),d=(c.h+b.value)%360;return c.h=d<0?360+d:d,e(c)},mix:function(a,b,c){a.toHSL&&b.toHSL||(console.log(b.type),console.dir(b)),c||(c=new i(50));var d=c.value/100,e=2*d-1,f=a.toHSL().a-b.toHSL().a,g=((e*f==-1?e:(e+f)/(1+e*f))+1)/2,h=1-g,k=[a.rgb[0]*g+b.rgb[0]*h,a.rgb[1]*g+b.rgb[1]*h,a.rgb[2]*g+b.rgb[2]*h],l=a.alpha*d+b.alpha*(1-d);return new j(k,l)},greyscale:function(a){return h.desaturate(a,new i(100))},contrast:function(a,b,c,d){if(!a.rgb)return null;if("undefined"==typeof c&&(c=h.rgba(255,255,255,1)),"undefined"==typeof b&&(b=h.rgba(0,0,0,1)),b.luma()>c.luma()){var e=c;c=b,b=e}return d="undefined"==typeof d?.43:f(d),a.luma()=v&&this.context.ieCompat!==!1?(h.warn("Skipped data-uri embedding of "+j+" because its size ("+u.length+" characters) exceeds IE8-safe "+v+" characters!"),g(this,f||a)):new d(new c('"'+u+'"',u,(!1),this.index,this.currentFileInfo),this.index,this.currentFileInfo)})}},{"../logger":37,"../tree/quoted":78,"../tree/url":83,"../utils":87,"./function-registry":26}],24:[function(a,b,c){var d=a("../tree/keyword"),e=a("./function-registry"),f={eval:function(){var a=this.value_,b=this.error_;if(b)throw b;if(null!=a)return a?d.True:d.False},value:function(a){this.value_=a},error:function(a){this.error_=a},reset:function(){this.value_=this.error_=null}};e.add("default",f.eval.bind(f)),b.exports=f},{"../tree/keyword":68,"./function-registry":26}],25:[function(a,b,c){var d=a("../tree/expression"),e=function(a,b,c,d){this.name=a.toLowerCase(),this.index=c,this.context=b,this.currentFileInfo=d,this.func=b.frames[0].functionRegistry.get(this.name)};e.prototype.isValid=function(){return Boolean(this.func)},e.prototype.call=function(a){return Array.isArray(a)&&(a=a.filter(function(a){return"Comment"!==a.type}).map(function(a){if("Expression"===a.type){var b=a.value.filter(function(a){return"Comment"!==a.type});return 1===b.length?b[0]:new d(b)}return a})),this.func.apply(this,a)},b.exports=e},{"../tree/expression":62}],26:[function(a,b,c){function d(a){return{_data:{},add:function(a,b){a=a.toLowerCase(),this._data.hasOwnProperty(a),this._data[a]=b},addMultiple:function(a){Object.keys(a).forEach(function(b){this.add(b,a[b])}.bind(this))},get:function(b){return this._data[b]||a&&a.get(b)},getLocalFunctions:function(){return this._data},inherit:function(){return d(this)},create:function(a){return d(a)}}}b.exports=d(null)},{}],27:[function(a,b,c){b.exports=function(b){var c={functionRegistry:a("./function-registry"),functionCaller:a("./function-caller")};return a("./boolean"),a("./default"),a("./color"),a("./color-blending"),a("./data-uri")(b),a("./math"),a("./number"),a("./string"),a("./svg")(b),a("./types"),c}},{"./boolean":20, +"./color":22,"./color-blending":21,"./data-uri":23,"./default":24,"./function-caller":25,"./function-registry":26,"./math":29,"./number":30,"./string":31,"./svg":32,"./types":33}],28:[function(a,b,c){var d=a("../tree/dimension"),e=function(){};e._math=function(a,b,c){if(!(c instanceof d))throw{type:"Argument",message:"argument must be a number"};return null==b?b=c.unit:c=c.unify(),new d(a(parseFloat(c.value)),b)},b.exports=e},{"../tree/dimension":60}],29:[function(a,b,c){var d=a("./function-registry"),e=a("./math-helper.js"),f={ceil:null,floor:null,sqrt:null,abs:null,tan:"",sin:"",cos:"",atan:"rad",asin:"rad",acos:"rad"};for(var g in f)f.hasOwnProperty(g)&&(f[g]=e._math.bind(null,Math[g],f[g]));f.round=function(a,b){var c="undefined"==typeof b?0:b.value;return e._math(function(a){return a.toFixed(c)},null,a)},d.addMultiple(f)},{"./function-registry":26,"./math-helper.js":28}],30:[function(a,b,c){var d=a("../tree/dimension"),e=a("../tree/anonymous"),f=a("./function-registry"),g=a("./math-helper.js"),h=function(a,b){switch(b=Array.prototype.slice.call(b),b.length){case 0:throw{type:"Argument",message:"one or more arguments required"}}var c,f,g,h,i,j,k,l,m=[],n={};for(c=0;ci.value)&&(m[f]=g);else{if(void 0!==k&&j!==k)throw{type:"Argument",message:"incompatible types"};n[j]=m.length,m.push(g)}else Array.isArray(b[c].value)&&Array.prototype.push.apply(b,Array.prototype.slice.call(b[c].value));return 1==m.length?m[0]:(b=m.map(function(a){return a.toCSS(this.context)}).join(this.context.compress?",":", "),new e((a?"min":"max")+"("+b+")"))};f.addMultiple({min:function(){return h(!0,arguments)},max:function(){return h(!1,arguments)},convert:function(a,b){return a.convertTo(b.value)},pi:function(){return new d(Math.PI)},mod:function(a,b){return new d(a.value%b.value,a.unit)},pow:function(a,b){if("number"==typeof a&&"number"==typeof b)a=new d(a),b=new d(b);else if(!(a instanceof d&&b instanceof d))throw{type:"Argument",message:"arguments must be numbers"};return new d(Math.pow(a.value,b.value),a.unit)},percentage:function(a){var b=g._math(function(a){return 100*a},"%",a);return b}})},{"../tree/anonymous":48,"../tree/dimension":60,"./function-registry":26,"./math-helper.js":28}],31:[function(a,b,c){var d=a("../tree/quoted"),e=a("../tree/anonymous"),f=a("../tree/javascript"),g=a("./function-registry");g.addMultiple({e:function(a){return new e(a instanceof f?a.evaluated:a.value)},escape:function(a){return new e(encodeURI(a.value).replace(/=/g,"%3D").replace(/:/g,"%3A").replace(/#/g,"%23").replace(/;/g,"%3B").replace(/\(/g,"%28").replace(/\)/g,"%29"))},replace:function(a,b,c,e){var f=a.value;return c="Quoted"===c.type?c.value:c.toCSS(),f=f.replace(new RegExp(b.value,e?e.value:""),c),new d(a.quote||"",f,a.escaped)},"%":function(a){for(var b=Array.prototype.slice.call(arguments,1),c=a.value,e=0;e",k=0;k";return j+="',j=encodeURIComponent(j),j="data:image/svg+xml,"+j,new g(new f("'"+j+"'",j,(!1),this.index,this.currentFileInfo),this.index,this.currentFileInfo)})}},{"../tree/color":53,"../tree/dimension":60,"../tree/expression":62,"../tree/quoted":78,"../tree/url":83,"./function-registry":26}],33:[function(a,b,c){var d=a("../tree/keyword"),e=a("../tree/detached-ruleset"),f=a("../tree/dimension"),g=a("../tree/color"),h=a("../tree/quoted"),i=a("../tree/anonymous"),j=a("../tree/url"),k=a("../tree/operation"),l=a("./function-registry"),m=function(a,b){return a instanceof b?d.True:d.False},n=function(a,b){if(void 0===b)throw{type:"Argument",message:"missing the required second argument to isunit."};if(b="string"==typeof b.value?b.value:b,"string"!=typeof b)throw{type:"Argument",message:"Second argument to isunit should be a unit or a string."};return a instanceof f&&a.unit.is(b)?d.True:d.False},o=function(a){var b=Array.isArray(a.value)?a.value:Array(a);return b};l.addMultiple({isruleset:function(a){return m(a,e)},iscolor:function(a){return m(a,g)},isnumber:function(a){return m(a,f)},isstring:function(a){return m(a,h)},iskeyword:function(a){return m(a,d)},isurl:function(a){return m(a,j)},ispixel:function(a){return n(a,"px")},ispercentage:function(a){return n(a,"%")},isem:function(a){return n(a,"em")},isunit:n,unit:function(a,b){if(!(a instanceof f))throw{type:"Argument",message:"the first argument to unit must be a number"+(a instanceof k?". Have you forgotten parenthesis?":"")};return b=b?b instanceof d?b.value:b.toCSS():"",new f(a.value,b)},"get-unit":function(a){return new i(a.unit)},extract:function(a,b){return b=b.value-1,o(a)[b]},length:function(a){return new f(o(a).length)},_SELF:function(a){return a}})},{"../tree/anonymous":48,"../tree/color":53,"../tree/detached-ruleset":59,"../tree/dimension":60,"../tree/keyword":68,"../tree/operation":75,"../tree/quoted":78,"../tree/url":83,"./function-registry":26}],34:[function(a,b,c){var d=a("./contexts"),e=a("./parser/parser"),f=a("./less-error"),g=a("./utils"),h=("undefined"==typeof Promise?a("promise"):Promise,a("./logger"));b.exports=function(a){var b=function(a,b,c){this.less=a,this.rootFilename=c.filename,this.paths=b.paths||[],this.contents={},this.contentsIgnoredChars={},this.mime=b.mime,this.error=null,this.context=b,this.queue=[],this.files={}};return b.prototype.push=function(b,c,i,j,k){var l=this,m=this.context.pluginManager.Loader;this.queue.push(b);var n=function(a,c,d){l.queue.splice(l.queue.indexOf(b),1);var e=d===l.rootFilename;j.optional&&a?(k(null,{rules:[]},!1,null),h.info("The file "+d+" was skipped because it was not found and the import was marked optional.")):(l.files[d]||j.inline||(l.files[d]={root:c,options:j}),a&&!l.error&&(l.error=a),k(a,c,e,d))},o={relativeUrls:this.context.relativeUrls,entryPath:i.entryPath,rootpath:i.rootpath,rootFilename:i.rootFilename},p=a.getFileManager(b,i.currentDirectory,this.context,a);if(!p)return void n({message:"Could not find a file-manager for "+b});var q,r=function(a){var b,c=a.filename,g=a.contents.replace(/^\uFEFF/,"");o.currentDirectory=p.getPath(c),o.relativeUrls&&(o.rootpath=p.join(l.context.rootpath||"",p.pathDiff(o.currentDirectory,o.entryPath)),!p.isPathAbsolute(o.rootpath)&&p.alwaysMakePathsAbsolute()&&(o.rootpath=p.join(o.entryPath,o.rootpath))),o.filename=c;var h=new d.Parse(l.context);h.processImports=!1,l.contents[c]=g,(i.reference||j.reference)&&(o.reference=!0),j.isPlugin?(b=m.evalPlugin(g,h,l,j.pluginArgs,o),b instanceof f?n(b,null,c):n(null,b,c)):j.inline?n(null,g,c):!l.files[c]||l.files[c].options.multiple||j.multiple?new e(h,l,o).parse(g,function(a,b){n(a,b,c)}):n(null,l.files[c].root,c)},s=g.clone(this.context);c&&(s.ext=j.isPlugin?".js":".less"),q=j.isPlugin?m.loadPlugin(b,i.currentDirectory,s,a,p):p.loadFile(b,i.currentDirectory,s,a,function(a,b){a?n(a):r(b)}),q&&q.then(r,n)},b}},{"./contexts":12,"./less-error":36,"./logger":37,"./parser/parser":42,"./utils":87,promise:void 0}],35:[function(a,b,c){b.exports=function(b,c){var d,e,f,g,h,i,j={version:[3,6,0],data:a("./data"),tree:a("./tree"),Environment:h=a("./environment/environment"),AbstractFileManager:a("./environment/abstract-file-manager"),AbstractPluginLoader:a("./environment/abstract-plugin-loader"),environment:b=new h(b,c),visitors:a("./visitors"),Parser:a("./parser/parser"),functions:a("./functions")(b),contexts:a("./contexts"),SourceMapOutput:d=a("./source-map-output")(b),SourceMapBuilder:e=a("./source-map-builder")(d,b),ParseTree:f=a("./parse-tree")(e),ImportManager:g=a("./import-manager")(b),render:a("./render")(b,f,g),parse:a("./parse")(b,f,g),LessError:a("./less-error"),transformTree:a("./transform-tree"),utils:a("./utils"),PluginManager:a("./plugin-manager"),logger:a("./logger")},k=function(a){return function(){var b=Object.create(a.prototype);return a.apply(b,Array.prototype.slice.call(arguments,0)),b}},l=Object.create(j);for(var m in j.tree)if(i=j.tree[m],"function"==typeof i)l[m.toLowerCase()]=k(i);else{l[m]=Object.create(null);for(var n in i)l[m][n.toLowerCase()]=k(i[n])}return l}},{"./contexts":12,"./data":14,"./environment/abstract-file-manager":17,"./environment/abstract-plugin-loader":18,"./environment/environment":19,"./functions":27,"./import-manager":34,"./less-error":36,"./logger":37,"./parse":39,"./parse-tree":38,"./parser/parser":42,"./plugin-manager":43,"./render":44,"./source-map-builder":45,"./source-map-output":46,"./transform-tree":47,"./tree":65,"./utils":87,"./visitors":91}],36:[function(a,b,c){var d=a("./utils"),e=b.exports=function(a,b,c){Error.call(this);var e=a.filename||c;if(this.message=a.message,this.stack=a.stack,b&&e){var f=b.contents[e],g=d.getLocation(a.index,f),h=g.line,i=g.column,j=a.call&&d.getLocation(a.call,f).line,k=f?f.split("\n"):"";if(this.type=a.type||"Syntax",this.filename=e,this.index=a.index,this.line="number"==typeof h?h+1:null,this.column=i,!this.line&&this.stack){var l=this.stack.match(/(|Function):(\d+):(\d+)/);l&&(l[2]&&(this.line=parseInt(l[2])-2),l[3]&&(this.column=parseInt(l[3])))}this.callLine=j+1,this.callExtract=k[j],this.extract=[k[this.line-2],k[this.line-1],k[this.line]]}};if("undefined"==typeof Object.create){var f=function(){};f.prototype=Error.prototype,e.prototype=new f}else e.prototype=Object.create(Error.prototype);e.prototype.constructor=e,e.prototype.toString=function(a){a=a||{};var b="",c=this.extract||[],d=[],e=function(a){return a};if(a.stylize){var f=typeof a.stylize;if("function"!==f)throw Error("options.stylize should be a function, got a "+f+"!");e=a.stylize}if(null!==this.line){if("string"==typeof c[0]&&d.push(e(this.line-1+" "+c[0],"grey")),"string"==typeof c[1]){var g=this.line+" ";c[1]&&(g+=c[1].slice(0,this.column)+e(e(e(c[1].substr(this.column,1),"bold")+c[1].slice(this.column+1),"red"),"inverse")),d.push(g)}"string"==typeof c[2]&&d.push(e(this.line+1+" "+c[2],"grey")),d=d.join("\n")+e("","reset")+"\n"}return b+=e(this.type+"Error: "+this.message,"red"),this.filename&&(b+=e(" in ","red")+this.filename),this.line&&(b+=e(" on line "+this.line+", column "+(this.column+1)+":","grey")),b+="\n"+d,this.callLine&&(b+=e("from ","red")+(this.filename||"")+"/n",b+=e(this.callLine,"grey")+" "+this.callExtract+"/n"),b}},{"./utils":87}],37:[function(a,b,c){b.exports={error:function(a){this._fireEvent("error",a)},warn:function(a){this._fireEvent("warn",a)},info:function(a){this._fireEvent("info",a)},debug:function(a){this._fireEvent("debug",a)},addListener:function(a){this._listeners.push(a)},removeListener:function(a){for(var b=0;b=97&&j<=122||j<34))switch(j){case 40:o++,e=h;continue;case 41:if(--o<0)return b("missing opening `(`",h);continue;case 59:o||c();continue;case 123:n++,d=h;continue;case 125:if(--n<0)return b("missing opening `{`",h);n||o||c();continue;case 92:if(h96)){if(k==j){l=1;break}if(92==k){if(h==m-1)return b("unescaped `\\`",h);h++}}if(l)continue;return b("unmatched `"+String.fromCharCode(j)+"`",i);case 47:if(o||h==m-1)continue;if(k=a.charCodeAt(h+1),47==k)for(h+=2;hd&&g>f?b("missing closing `}` or `*/`",d):b("missing closing `}`",d):0!==o?b("missing closing `)`",e):(c(!0),p)}},{}],41:[function(a,b,c){var d=a("./chunker");b.exports=function(){function a(d){for(var e,f,j,p=k.i,q=c,s=k.i-i,t=k.i+h.length-s,u=k.i+=d,v=b;k.i=0){j={index:k.i,text:v.substr(k.i,x+2-k.i),isLineComment:!1},k.i+=j.text.length-1,k.commentStore.push(j);continue}}break}if(e!==l&&e!==n&&e!==m&&e!==o)break}if(h=h.slice(d+k.i-u+s),i=k.i,!h.length){if(ce||k.i===e&&a&&!f)&&(e=k.i,f=a);var b=j.pop();h=b.current,i=k.i=b.i,c=b.j},k.forget=function(){j.pop()},k.isWhitespace=function(a){var c=k.i+(a||0),d=b.charCodeAt(c);return d===l||d===o||d===m||d===n},k.$re=function(b){k.i>i&&(h=h.slice(k.i-i),i=k.i);var c=b.exec(h);return c?(a(c[0].length),"string"==typeof c?c:1===c.length?c[0]:c):null},k.$char=function(c){return b.charAt(k.i)!==c?null:(a(1),c)},k.$str=function(c){for(var d=c.length,e=0;el&&(p=!1)}q=r}while(p);return f?f:null},k.autoCommentAbsorb=!0,k.commentStore=[],k.finished=!1,k.peek=function(a){if("string"==typeof a){for(var c=0;cs||a=b.length;return k.i=b.length-1,furthestChar:b[k.i]}},k}},{"./chunker":40}],42:[function(a,b,c){var d=a("../less-error"),e=a("../tree"),f=a("../visitors"),g=a("./parser-input"),h=a("../utils"),i=a("../functions/function-registry"),j=function k(a,b,c){function j(a,e){throw new d({index:q.i,filename:c.filename,type:e||"Syntax",message:a},b)}function l(a,b){var c=a instanceof Function?a.call(p):q.$re(a);return c?c:void j(b||("string"==typeof a?"expected '"+a+"' got '"+q.currentChar()+"'":"unexpected token"))}function m(a,b){return q.$char(a)?a:void j(b||"expected '"+a+"' got '"+q.currentChar()+"'")}function n(a){var b=c.filename;return{lineNumber:h.getLocation(a,q.getInput()).line+1,fileName:b}}function o(a,c,e,f,g){var h,i=[],j=q;try{j.start(a,!1,function(a,b){g({message:a,index:b+e})});for(var k,l,m=0;k=c[m];m++)l=j.i,h=p[k](),h?(h._index=l+e,h._fileInfo=f,i.push(h)):i.push(null);var n=j.end();n.isFinished?g(null,i):g(!0,null)}catch(o){throw new d({index:o.index+e,message:o.message},b,f.filename)}}var p,q=g();return{parserInput:q,imports:b,fileInfo:c,parseNode:o,parse:function(g,h,j){var l,m,n,o,p=null,r="";if(m=j&&j.globalVars?k.serializeVars(j.globalVars)+"\n":"",n=j&&j.modifyVars?"\n"+k.serializeVars(j.modifyVars):"",a.pluginManager)for(var s=a.pluginManager.getPreProcessors(),t=0;t")}return a},args:function(a){var b,c,d,f,g,h,i,k=p.entities,l={args:null,variadic:!1},m=[],n=[],o=[];for(q.save();;){if(a)h=p.detachedRuleset()||p.expression();else{if(q.commentStore.length=0,q.$str("...")){l.variadic=!0,q.$char(";")&&!b&&(b=!0),(b?n:o).push({variadic:!0});break}h=k.variable()||k.property()||k.literal()||k.keyword()||this.call(!0)}if(!h)break;f=null,h.throwAwayComments&&h.throwAwayComments(),g=h;var r=null;if(a?h.value&&1==h.value.length&&(r=h.value[0]):r=h,r&&(r instanceof e.Variable||r instanceof e.Property))if(q.$char(":")){if(m.length>0&&(b&&j("Cannot mix ; and , as delimiter types"),c=!0),g=p.detachedRuleset()||p.expression(),!g){if(!a)return q.restore(),l.args=[],l;j("could not understand value for named argument")}f=d=r.name}else if(q.$str("...")){if(!a){l.variadic=!0,q.$char(";")&&!b&&(b=!0),(b?n:o).push({name:h.name,variadic:!0});break}i=!0}else a||(d=f=r.name,g=null);g&&m.push(g),o.push({name:f,value:g,expand:i}),q.$char(",")||(q.$char(";")||b)&&(c&&j("Cannot mix ; and , as delimiter types"),b=!0,m.length>1&&(g=new e.Value(m)),n.push({name:d,value:g,expand:i}),d=null,m=[],c=!1)}return q.forget(),l.args=b?n:o,l},definition:function(){var a,b,c,d,f=[],g=!1;if(!("."!==q.currentChar()&&"#"!==q.currentChar()||q.peek(/^[^{]*\}/)))if(q.save(),b=q.$re(/^([#.](?:[\w-]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+)\s*\(/)){a=b[1];var h=this.args(!1);if(f=h.args,g=h.variadic,!q.$char(")"))return void q.restore("Missing closing ')'");if(q.commentStore.length=0,q.$str("when")&&(d=l(p.conditions,"expected condition")),c=p.block())return q.forget(),new e.mixin.Definition(a,f,c,d,g);q.restore()}else q.forget()},ruleLookups:function(){var a,b,c=[];if("["===q.currentChar()){for(;;){if(q.save(),b=null,a=this.lookupValue(),!a&&""!==a){q.restore();break}c.push(a),q.forget()}return c.length>0?c:void 0}},lookupValue:function(){if(q.save(),!q.$char("["))return void q.restore();var a=q.$re(/^(?:[@$]{0,2})[_a-zA-Z0-9-]*/);return q.$char("]")&&(a||""===a)?(q.forget(),a):void q.restore()}},entity:function(){var a=this.entities;return this.comment()||a.literal()||a.variable()||a.url()||a.property()||a.call()||a.keyword()||this.mixin.call(!0)||a.javascript()},end:function(){return q.$char(";")||q.peek("}")},ieAlpha:function(){var a;if(q.$re(/^opacity=/i))return a=q.$re(/^\d+/),a||(a=l(p.entities.variable,"Could not parse alpha"),a="@{"+a.name.slice(1)+"}"),m(")"),new e.Quoted("","alpha(opacity="+a+")")},element:function(){var a,b,d,f=q.i;if(b=this.combinator(),a=q.$re(/^(?:\d+\.\d+|\d+)%/)||q.$re(/^(?:[.#]?|:*)(?:[\w-]|[^\x00-\x9f]|\\(?:[A-Fa-f0-9]{1,6} ?|[^A-Fa-f0-9]))+/)||q.$char("*")||q.$char("&")||this.attribute()||q.$re(/^\([^&()@]+\)/)||q.$re(/^[\.#:](?=@)/)||this.entities.variableCurly(),a||(q.save(),q.$char("(")?(d=this.selector(!1))&&q.$char(")")?(a=new e.Paren(d),q.forget()):q.restore("Missing closing ')'"):q.forget()),a)return new e.Element(b,a,a instanceof e.Variable,f,c)},combinator:function(){var a=q.currentChar();if("/"===a){q.save();var b=q.$re(/^\/[a-z]+\//i);if(b)return q.forget(),new e.Combinator(b);q.restore()}if(">"===a||"+"===a||"~"===a||"|"===a||"^"===a){for(q.i++,"^"===a&&"^"===q.currentChar()&&(a="^^",q.i++);q.isWhitespace();)q.i++;return new e.Combinator(a)}return new e.Combinator(q.isWhitespace(-1)?" ":null)},selector:function(a){var b,d,f,g,h,i,k,m=q.i;for(a=a!==!1;(a&&(d=this.extend())||a&&(i=q.$str("when"))||(g=this.element()))&&(i?k=l(this.conditions,"expected condition"):k?j("CSS guard can only be used at the end of selector"):d?h=h?h.concat(d):d:(h&&j("Extend can only be used at the end of selector"),f=q.currentChar(),b?b.push(g):b=[g],g=null),"{"!==f&&"}"!==f&&";"!==f&&","!==f&&")"!==f););return b?new e.Selector(b,h,k,m,c):void(h&&j("Extend must be used to extend a selector, it cannot be used on its own"))},selectors:function(){for(var a,b;;){if(a=this.selector(),!a)break;if(b?b.push(a):b=[a],q.commentStore.length=0,a.condition&&b.length>1&&j("Guards are only currently allowed on a single selector."),!q.$char(","))break;a.condition&&j("Guards are only currently allowed on a single selector."),q.commentStore.length=0}return b},attribute:function(){if(q.$char("[")){var a,b,c,d=this.entities;return(a=d.variableCurly())||(a=l(/^(?:[_A-Za-z0-9-\*]*\|)?(?:[_A-Za-z0-9-]|\\.)+/)),c=q.$re(/^[|~*$^]?=/),c&&(b=d.quoted()||q.$re(/^[0-9]+%/)||q.$re(/^[\w-]+/)||d.variableCurly()),m("]"),new e.Attribute(a,c,b)}},block:function(){var a;if(q.$char("{")&&(a=this.primary())&&q.$char("}"))return a},blockRuleset:function(){var a=this.block();return a&&(a=new e.Ruleset(null,a)),a},detachedRuleset:function(){var a=this.blockRuleset(); +if(a)return new e.DetachedRuleset(a)},ruleset:function(){var b,c,d;if(q.save(),a.dumpLineNumbers&&(d=n(q.i)),b=this.selectors(),b&&(c=this.block())){q.forget();var f=new e.Ruleset(b,c,a.strictImports);return a.dumpLineNumbers&&(f.debugInfo=d),f}q.restore()},declaration:function(){var a,b,d,f,g,h,i=q.i,j=q.currentChar();if("."!==j&&"#"!==j&&"&"!==j&&":"!==j)if(q.save(),a=this.variable()||this.ruleProperty()){if(h="string"==typeof a,h&&(b=this.detachedRuleset(),b&&(d=!0)),q.commentStore.length=0,!b){if(g=!h&&a.length>1&&a.pop().value,b=a[0].value&&"--"===a[0].value.slice(0,2)?this.permissiveValue():this.anonymousValue())return q.forget(),new e.Declaration(a,b,(!1),g,i,c);b||(b=this.value()),b?f=this.important():h&&(b=this.permissiveValue())}if(b&&(this.end()||d))return q.forget(),new e.Declaration(a,b,f,g,i,c);q.restore()}else q.restore()},anonymousValue:function(){var a=q.i,b=q.$re(/^([^.#@\$+\/'"*`(;{}-]*);/);if(b)return new e.Anonymous(b[1],a)},permissiveValue:function(a){function b(){var a=q.currentChar();return"string"==typeof i?a===i:i.test(a)}var d,f,g,h,i=a||";",k=q.i,l=[];if(!b()){h=[];do f=this.comment(),f?h.push(f):(f=this.entity(),f&&h.push(f));while(f);if(g=b(),h.length>0){if(h=new e.Expression(h),g)return h;l.push(h)," "===q.prevChar()&&l.push(new e.Anonymous(" ",k))}if(q.save(),h=q.$parseUntil(i)){if("string"==typeof h&&j("Expected '"+h+"'","Parse"),1===h.length&&" "===h[0])return q.forget(),new e.Anonymous("",k);var m;for(d=0;d0)return new e.Expression(f)},mediaFeatures:function(){var a,b=this.entities,c=[];do if(a=this.mediaFeature()){if(c.push(a),!q.$char(","))break}else if(a=b.variable()||b.mixinLookup(),a&&(c.push(a),!q.$char(",")))break;while(a);return c.length>0?c:null},media:function(){var b,d,f,g,h=q.i;return a.dumpLineNumbers&&(g=n(h)),q.save(),q.$str("@media")?(b=this.mediaFeatures(),d=this.block(),d||j("media definitions require block statements after any features"),q.forget(),f=new e.Media(d,b,h,c),a.dumpLineNumbers&&(f.debugInfo=g),f):void q.restore()},plugin:function(){var a,b,d,f=q.i,g=q.$re(/^@plugin?\s+/);if(g){if(b=this.pluginArgs(),d=b?{pluginArgs:b,isPlugin:!0}:{isPlugin:!0},a=this.entities.quoted()||this.entities.url())return q.$char(";")||(q.i=f,j("missing semi-colon on @plugin")),new e.Import(a,null,d,f,c);q.i=f,j("malformed @plugin statement")}},pluginArgs:function(){if(q.save(),!q.$char("("))return q.restore(),null;var a=q.$re(/^\s*([^\);]+)\)\s*/);return a[1]?(q.forget(),a[1].trim()):(q.restore(),null)},atrule:function(){var b,d,f,g,h,i,k,l=q.i,m=!0,o=!0;if("@"===q.currentChar()){if(d=this["import"]()||this.plugin()||this.media())return d;if(q.save(),b=q.$re(/^@[a-z-]+/)){switch(g=b,"-"==b.charAt(1)&&b.indexOf("-",2)>0&&(g="@"+b.slice(b.indexOf("-",2)+1)),g){case"@charset":h=!0,m=!1;break;case"@namespace":i=!0,m=!1;break;case"@keyframes":case"@counter-style":h=!0;break;case"@document":case"@supports":k=!0,o=!1;break;default:k=!0}return q.commentStore.length=0,h?(d=this.entity(),d||j("expected "+b+" identifier")):i?(d=this.expression(),d||j("expected "+b+" expression")):k&&(d=this.permissiveValue(/^[{;]/),m="{"===q.currentChar(),d?d.value||(d=null):m||";"===q.currentChar()||j(b+" rule is missing block or ending semi-colon")),m&&(f=this.blockRuleset()),f||!m&&d&&q.$char(";")?(q.forget(),new e.AtRule(b,d,f,l,c,a.dumpLineNumbers?n(l):null,o)):void q.restore("at-rule options not recognised")}}},value:function(){var a,b=[],c=q.i;do if(a=this.expression(),a&&(b.push(a),!q.$char(",")))break;while(a);if(b.length>0)return new e.Value(b,c)},important:function(){if("!"===q.currentChar())return q.$re(/^! *important/)},sub:function(){var a,b;return q.save(),q.$char("(")?(a=this.addition(),a&&q.$char(")")?(q.forget(),b=new e.Expression([a]),b.parens=!0,b):void q.restore("Expected ')'")):void q.restore()},multiplication:function(){var a,b,c,d,f;if(a=this.operand()){for(f=q.isWhitespace(-1);;){if(q.peek(/^\/[*\/]/))break;if(q.save(),c=q.$char("/")||q.$char("*"),!c){q.forget();break}if(b=this.operand(),!b){q.restore();break}q.forget(),a.parensInOp=!0,b.parensInOp=!0,d=new e.Operation(c,[d||a,b],f),f=q.isWhitespace(-1)}return d||a}},addition:function(){var a,b,c,d,f;if(a=this.multiplication()){for(f=q.isWhitespace(-1);;){if(c=q.$re(/^[-+]\s+/)||!f&&(q.$char("+")||q.$char("-")),!c)break;if(b=this.multiplication(),!b)break;a.parensInOp=!0,b.parensInOp=!0,d=new e.Operation(c,[d||a,b],f),f=q.isWhitespace(-1)}return d||a}},conditions:function(){var a,b,c,d=q.i;if(a=this.condition(!0)){for(;;){if(!q.peek(/^,\s*(not\s*)?\(/)||!q.$char(","))break;if(b=this.condition(!0),!b)break;c=new e.Condition("or",c||a,b,d)}return c||a}},condition:function(a){function b(){return q.$str("or")}var c,d,f;if(c=this.conditionAnd(a)){if(d=b()){if(f=this.condition(a),!f)return;c=new e.Condition(d,c,f)}return c}},conditionAnd:function(a){function b(){var b=h.negatedCondition(a)||h.parenthesisCondition(a);return b||a?b:h.atomicCondition(a)}function c(){return q.$str("and")}var d,f,g,h=this;if(d=b()){if(f=c()){if(g=this.conditionAnd(a),!g)return;d=new e.Condition(f,d,g)}return d}},negatedCondition:function(a){if(q.$str("not")){var b=this.parenthesisCondition(a);return b&&(b.negate=!b.negate),b}},parenthesisCondition:function(a){function b(b){var c;return q.save(),(c=b.condition(a))&&q.$char(")")?(q.forget(),c):void q.restore()}var c;return q.save(),q.$str("(")?(c=b(this))?(q.forget(),c):(c=this.atomicCondition(a))?q.$char(")")?(q.forget(),c):void q.restore("expected ')' got '"+q.currentChar()+"'"):void q.restore():void q.restore()},atomicCondition:function(a){function b(){return this.addition()||h.keyword()||h.quoted()||h.mixinLookup()}var c,d,f,g,h=this.entities,i=q.i;if(b=b.bind(this),c=b())return q.$char(">")?g=q.$char("=")?">=":">":q.$char("<")?g=q.$char("=")?"<=":"<":q.$char("=")&&(g=q.$char(">")?"=>":q.$char("<")?"=<":"="),g?(d=b(),d?f=new e.Condition(g,c,d,i,(!1)):j("expected expression")):f=new e.Condition("=",c,new e.Keyword("true"),i,(!1)),f},operand:function(){var a,b=this.entities;q.peek(/^-[@\$\(]/)&&(a=q.$char("-"));var c=this.sub()||b.dimension()||b.color()||b.variable()||b.property()||b.call()||b.quoted(!0)||b.colorKeyword()||b.mixinLookup();return a&&(c.parensInOp=!0,c=new e.Negative(c)),c},expression:function(){var a,b,c=[],d=q.i;do a=this.comment(),a?c.push(a):(a=this.addition()||this.entity(),a&&(c.push(a),q.peek(/^\/[\/*]/)||(b=q.$char("/"),b&&c.push(new e.Anonymous(b,d)))));while(a);if(c.length>0)return new e.Expression(c)},property:function(){var a=q.$re(/^(\*?-?[_a-zA-Z0-9-]+)\s*:/);if(a)return a[1]},ruleProperty:function(){function a(a){var b=q.i,c=q.$re(a);if(c)return g.push(b),f.push(c[1])}var b,d,f=[],g=[];q.save();var h=q.$re(/^([_a-zA-Z0-9-]+)\s*:/);if(h)return f=[new e.Keyword(h[1])],q.forget(),f;for(a(/^(\*?)/);;)if(!a(/^((?:[\w-]+)|(?:[@\$]\{[\w-]+\}))/))break;if(f.length>1&&a(/^((?:\+_|\+)?)\s*:/)){for(q.forget(),""===f[0]&&(f.shift(),g.shift()),d=0;d=b);c++);this.preProcessors.splice(c,0,{preProcessor:a,priority:b})},e.prototype.addPostProcessor=function(a,b){var c;for(c=0;c=b);c++);this.postProcessors.splice(c,0,{postProcessor:a,priority:b})},e.prototype.addFileManager=function(a){this.fileManagers.push(a)},e.prototype.getPreProcessors=function(){for(var a=[],b=0;b0){var d,e=JSON.stringify(this._sourceMapGenerator.toJSON());this.sourceMapURL?d=this.sourceMapURL:this._sourceMapFilename&&(d=this._sourceMapFilename),this.sourceMapURL=d,this.sourceMap=e}return this._css.join("")},b}},{}],47:[function(a,b,c){var d=a("./contexts"),e=a("./visitors"),f=a("./tree");b.exports=function(a,b){b=b||{};var c,g=b.variables,h=new d.Eval(b);"object"!=typeof g||Array.isArray(g)||(g=Object.keys(g).map(function(a){var b=g[a];return b instanceof f.Value||(b instanceof f.Expression||(b=new f.Expression([b])),b=new f.Value([b])),new f.Declaration("@"+a,b,(!1),null,0)}),h.frames=[new f.Ruleset(null,g)]);var i,j,k=[new e.JoinSelectorVisitor,new e.MarkVisibleSelectorsVisitor((!0)),new e.ExtendVisitor,new e.ToCSSVisitor({compress:Boolean(b.compress)})],l=[];if(b.pluginManager){j=b.pluginManager.visitor();for(var m=0;m<2;m++)for(j.first();i=j.get();)i.isPreEvalVisitor?0!==m&&l.indexOf(i)!==-1||(l.push(i),i.run(a)):0!==m&&k.indexOf(i)!==-1||(i.isPreVisitor?k.unshift(i):k.push(i))}c=a.eval(h);for(var m=0;m.5?j/(2-g-h):j/(g+h),g){case c:a=(d-e)/j+(d="===a||"=<"===a||"<="===a;case 1:return">"===a||">="===a;default:return!1}}}(this.op,this.lvalue.eval(a),this.rvalue.eval(a));return this.negate?!b:b},b.exports=e},{"./node":74}],57:[function(a,b,c){var d=function(a,b,c){var e="";if(a.dumpLineNumbers&&!a.compress)switch(a.dumpLineNumbers){case"comments":e=d.asComment(b);break;case"mediaquery":e=d.asMediaQuery(b);break;case"all":e=d.asComment(b)+(c||"")+d.asMediaQuery(b)}return e};d.asComment=function(a){return"/* line "+a.debugInfo.lineNumber+", "+a.debugInfo.fileName+" */\n"},d.asMediaQuery=function(a){var b=a.debugInfo.fileName;return/^[a-z]+:\/\//i.test(b)||(b="file://"+b),"@media -sass-debug-info{filename{font-family:"+b.replace(/([.:\/\\])/g,function(a){return"\\"==a&&(a="/"),"\\"+a})+"}line{font-family:\\00003"+a.debugInfo.lineNumber+"}}\n"},b.exports=d},{}],58:[function(a,b,c){function d(a,b){var c,d="",e=b.length,f={add:function(a){d+=a}};for(c=0;c-1e-6&&(d=c.toFixed(20).replace(/0+$/,"")),a&&a.compress){if(0===c&&this.unit.isLength())return void b.add(d);c>0&&c<1&&(d=d.substr(1))}b.add(d),this.unit.genCSS(a,b)},h.prototype.operate=function(a,b,c){var d=this._operate(a,b,this.value,c.value),e=this.unit.clone();if("+"===b||"-"===b)if(0===e.numerator.length&&0===e.denominator.length)e=c.unit.clone(),this.unit.backupUnit&&(e.backupUnit=this.unit.backupUnit);else if(0===c.unit.numerator.length&&0===e.denominator.length);else{if(c=c.convertTo(this.unit.usedUnits()),a.strictUnits&&c.unit.toString()!==e.toString())throw new Error("Incompatible units. Change the units or use the unit function. Bad units: '"+e.toString()+"' and '"+c.unit.toString()+"'.");d=this._operate(a,b,this.value,c.value)}else"*"===b?(e.numerator=e.numerator.concat(c.unit.numerator).sort(),e.denominator=e.denominator.concat(c.unit.denominator).sort(),e.cancel()):"/"===b&&(e.numerator=e.numerator.concat(c.unit.denominator).sort(),e.denominator=e.denominator.concat(c.unit.numerator).sort(),e.cancel());return new h(d,e)},h.prototype.compare=function(a){var b,c;if(a instanceof h){if(this.unit.isEmpty()||a.unit.isEmpty())b=this,c=a;else if(b=this.unify(),c=a.unify(),0!==b.unit.compare(c.unit))return;return d.numericCompare(b.value,c.value)}},h.prototype.unify=function(){return this.convertTo({length:"px",duration:"s",angle:"rad"})},h.prototype.convertTo=function(a){var b,c,d,f,g,i=this.value,j=this.unit.clone(),k={};if("string"==typeof a){for(b in e)e[b].hasOwnProperty(a)&&(k={},k[b]=a);a=k}g=function(a,b){return d.hasOwnProperty(a)?(b?i/=d[a]/d[f]:i*=d[a]/d[f],f):a};for(c in a)a.hasOwnProperty(c)&&(f=a[c],d=e[c],j.map(g));return j.cancel(),new h(i,j)},b.exports=h},{"../data/unit-conversions":15,"./color":53,"./node":74,"./unit":82}],61:[function(a,b,c){var d=a("./node"),e=a("./paren"),f=a("./combinator"),g=function(a,b,c,d,e,g){this.combinator=a instanceof f?a:new f(a),this.value="string"==typeof b?b.trim():b?b:"",this.isVariable=c,this._index=d,this._fileInfo=e,this.copyVisibilityInfo(g),this.setParent(this.combinator,this)};g.prototype=new d,g.prototype.type="Element",g.prototype.accept=function(a){var b=this.value;this.combinator=a.visit(this.combinator),"object"==typeof b&&(this.value=a.visit(b))},g.prototype.eval=function(a){return new g(this.combinator,this.value.eval?this.value.eval(a):this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},g.prototype.clone=function(){return new g(this.combinator,this.value,this.isVariable,this.getIndex(),this.fileInfo(),this.visibilityInfo())},g.prototype.genCSS=function(a,b){b.add(this.toCSS(a),this.fileInfo(),this.getIndex())},g.prototype.toCSS=function(a){a=a||{};var b=this.value,c=a.firstSelector;return b instanceof e&&(a.firstSelector=!0),b=b.toCSS?b.toCSS(a):b,a.firstSelector=c,""===b&&"&"===this.combinator.value.charAt(0)?"":this.combinator.toCSS(a)+b},b.exports=g},{"./combinator":54,"./node":74,"./paren":76 +}],62:[function(a,b,c){var d=a("./node"),e=a("./paren"),f=a("./comment"),g=function(a,b){if(this.value=a,this.noSpacing=b,!a)throw new Error("Expression requires an array parameter")};g.prototype=new d,g.prototype.type="Expression",g.prototype.accept=function(a){this.value=a.visitArray(this.value)},g.prototype.eval=function(a){var b,c=a.isMathOn(),d=this.parens&&!this.parensInOp,f=!1;return d&&a.inParenthesis(),this.value.length>1?b=new g(this.value.map(function(b){return b.eval?b.eval(a):b}),this.noSpacing):1===this.value.length?(!this.value[0].parens||this.value[0].parensInOp||a.inCalc||(f=!0),b=this.value[0].eval(a)):b=this,d&&a.outOfParenthesis(),this.parens&&this.parensInOp&&!c&&!f&&(b=new e(b)),b},g.prototype.genCSS=function(a,b){for(var c=0;c0&&c.length&&""===c[0].combinator.value&&(c[0].combinator.value=" "),d=d.concat(a[b].elements);this.selfSelectors=[new e(d)],this.selfSelectors[0].copyVisibilityInfo(this.visibilityInfo())},b.exports=f},{"./node":74,"./selector":80}],64:[function(a,b,c){var d=a("./node"),e=a("./media"),f=a("./url"),g=a("./quoted"),h=a("./ruleset"),i=a("./anonymous"),j=a("../utils"),k=a("../less-error"),l=function(a,b,c,d,e,f){if(this.options=c,this._index=d,this._fileInfo=e,this.path=a,this.features=b,this.allowRoot=!0,void 0!==this.options.less||this.options.inline)this.css=!this.options.less||this.options.inline;else{var g=this.getPath();g&&/[#\.\&\?]css([\?;].*)?$/.test(g)&&(this.css=!0)}this.copyVisibilityInfo(f),this.setParent(this.features,this),this.setParent(this.path,this)};l.prototype=new d,l.prototype.type="Import",l.prototype.accept=function(a){this.features&&(this.features=a.visit(this.features)),this.path=a.visit(this.path),this.options.isPlugin||this.options.inline||!this.root||(this.root=a.visit(this.root))},l.prototype.genCSS=function(a,b){this.css&&void 0===this.path._fileInfo.reference&&(b.add("@import ",this._fileInfo,this._index),this.path.genCSS(a,b),this.features&&(b.add(" "),this.features.genCSS(a,b)),b.add(";"))},l.prototype.getPath=function(){return this.path instanceof f?this.path.value.value:this.path.value},l.prototype.isVariableImport=function(){var a=this.path;return a instanceof f&&(a=a.value),!(a instanceof g)||a.containsVariables()},l.prototype.evalForImport=function(a){var b=this.path;return b instanceof f&&(b=b.value),new l(b.eval(a),this.features,this.options,this._index,this._fileInfo,this.visibilityInfo())},l.prototype.evalPath=function(a){var b=this.path.eval(a),c=this._fileInfo&&this._fileInfo.rootpath;if(!(b instanceof f)){if(c){var d=b.value;d&&a.isPathRelative(d)&&(b.value=c+d)}b.value=a.normalizePath(b.value)}return b},l.prototype.eval=function(a){var b=this.doEval(a);return(this.options.reference||this.blocksVisibility())&&(b.length||0===b.length?b.forEach(function(a){a.addVisibilityBlock()}):b.addVisibilityBlock()),b},l.prototype.doEval=function(a){var b,c,d=this.features&&this.features.eval(a);if(this.options.isPlugin){if(this.root&&this.root.eval)try{this.root.eval(a)}catch(f){throw f.message="Plugin error during evaluation",new k(f,this.root.imports,this.root.filename)}return c=a.frames[0]&&a.frames[0].functionRegistry,c&&this.root&&this.root.functions&&c.addMultiple(this.root.functions),[]}if(this.skip&&("function"==typeof this.skip&&(this.skip=this.skip()),this.skip))return[];if(this.options.inline){var g=new i(this.root,0,{filename:this.importedFilename,reference:this.path._fileInfo&&this.path._fileInfo.reference},(!0),(!0));return this.features?new e([g],this.features.value):[g]}if(this.css){var m=new l(this.evalPath(a),d,this.options,this._index);if(!m.css&&this.error)throw this.error;return m}return b=new h(null,j.copyArray(this.root.rules)),b.evalImports(a),this.features?new e(b.rules,this.features.value):b.rules},b.exports=l},{"../less-error":36,"../utils":87,"./anonymous":48,"./media":69,"./node":74,"./quoted":78,"./ruleset":79,"./url":83}],65:[function(a,b,c){var d=Object.create(null);d.Node=a("./node"),d.Color=a("./color"),d.AtRule=a("./atrule"),d.DetachedRuleset=a("./detached-ruleset"),d.Operation=a("./operation"),d.Dimension=a("./dimension"),d.Unit=a("./unit"),d.Keyword=a("./keyword"),d.Variable=a("./variable"),d.Property=a("./property"),d.Ruleset=a("./ruleset"),d.Element=a("./element"),d.Attribute=a("./attribute"),d.Combinator=a("./combinator"),d.Selector=a("./selector"),d.Quoted=a("./quoted"),d.Expression=a("./expression"),d.Declaration=a("./declaration"),d.Call=a("./call"),d.URL=a("./url"),d.Import=a("./import"),d.mixin={Call:a("./mixin-call"),Definition:a("./mixin-definition")},d.Comment=a("./comment"),d.Anonymous=a("./anonymous"),d.Value=a("./value"),d.JavaScript=a("./javascript"),d.Assignment=a("./assignment"),d.Condition=a("./condition"),d.Paren=a("./paren"),d.Media=a("./media"),d.UnicodeDescriptor=a("./unicode-descriptor"),d.Negative=a("./negative"),d.Extend=a("./extend"),d.VariableCall=a("./variable-call"),d.NamespaceValue=a("./namespace-value"),b.exports=d},{"./anonymous":48,"./assignment":49,"./atrule":50,"./attribute":51,"./call":52,"./color":53,"./combinator":54,"./comment":55,"./condition":56,"./declaration":58,"./detached-ruleset":59,"./dimension":60,"./element":61,"./expression":62,"./extend":63,"./import":64,"./javascript":66,"./keyword":68,"./media":69,"./mixin-call":70,"./mixin-definition":71,"./namespace-value":72,"./negative":73,"./node":74,"./operation":75,"./paren":76,"./property":77,"./quoted":78,"./ruleset":79,"./selector":80,"./unicode-descriptor":81,"./unit":82,"./url":83,"./value":84,"./variable":86,"./variable-call":85}],66:[function(a,b,c){var d=a("./js-eval-node"),e=a("./dimension"),f=a("./quoted"),g=a("./anonymous"),h=function(a,b,c,d){this.escaped=b,this.expression=a,this._index=c,this._fileInfo=d};h.prototype=new d,h.prototype.type="JavaScript",h.prototype.eval=function(a){var b=this.evaluateJavaScript(this.expression,a),c=typeof b;return"number"!==c||isNaN(b)?"string"===c?new f('"'+b+'"',b,this.escaped,this._index):new g(Array.isArray(b)?b.join(", "):b):new e(b)},b.exports=h},{"./anonymous":48,"./dimension":60,"./js-eval-node":67,"./quoted":78}],67:[function(a,b,c){var d=a("./node"),e=a("./variable"),f=function(){};f.prototype=new d,f.prototype.evaluateJavaScript=function(a,b){var c,d=this,f={};if(!b.javascriptEnabled)throw{message:"Inline JavaScript is not enabled. Is it set in your options?",filename:this.fileInfo().filename,index:this.getIndex()};a=a.replace(/@\{([\w-]+)\}/g,function(a,c){return d.jsify(new e("@"+c,d.getIndex(),d.fileInfo()).eval(b))});try{a=new Function("return ("+a+")")}catch(g){throw{message:"JavaScript evaluation error: "+g.message+" from `"+a+"`",filename:this.fileInfo().filename,index:this.getIndex()}}var h=b.frames[0].variables();for(var i in h)h.hasOwnProperty(i)&&(f[i.slice(1)]={value:h[i].value,toJS:function(){return this.value.eval(b).toCSS()}});try{c=a.call(f)}catch(g){throw{message:"JavaScript evaluation error: '"+g.name+": "+g.message.replace(/["]/g,"'")+"'",filename:this.fileInfo().filename,index:this.getIndex()}}return c},f.prototype.jsify=function(a){return Array.isArray(a.value)&&a.value.length>1?"["+a.value.map(function(a){return a.toCSS()}).join(", ")+"]":a.toCSS()},b.exports=f},{"./node":74,"./variable":86}],68:[function(a,b,c){var d=a("./node"),e=function(a){this.value=a};e.prototype=new d,e.prototype.type="Keyword",e.prototype.genCSS=function(a,b){if("%"===this.value)throw{type:"Syntax",message:"Invalid % without number"};b.add(this.value)},e.True=new e("true"),e.False=new e("false"),b.exports=e},{"./node":74}],69:[function(a,b,c){var d=a("./ruleset"),e=a("./value"),f=a("./selector"),g=a("./anonymous"),h=a("./expression"),i=a("./atrule"),j=a("../utils"),k=function(a,b,c,g,h){this._index=c,this._fileInfo=g;var i=new f([],null,null,this._index,this._fileInfo).createEmptySelectors();this.features=new e(b),this.rules=[new d(i,a)],this.rules[0].allowImports=!0,this.copyVisibilityInfo(h),this.allowRoot=!0,this.setParent(i,this),this.setParent(this.features,this),this.setParent(this.rules,this)};k.prototype=new i,k.prototype.type="Media",k.prototype.isRulesetLike=function(){return!0},k.prototype.accept=function(a){this.features&&(this.features=a.visit(this.features)),this.rules&&(this.rules=a.visitArray(this.rules))},k.prototype.genCSS=function(a,b){b.add("@media ",this._fileInfo,this._index),this.features.genCSS(a,b),this.outputRuleset(a,b,this.rules)},k.prototype.eval=function(a){a.mediaBlocks||(a.mediaBlocks=[],a.mediaPath=[]);var b=new k(null,[],this._index,this._fileInfo,this.visibilityInfo());return this.debugInfo&&(this.rules[0].debugInfo=this.debugInfo,b.debugInfo=this.debugInfo),b.features=this.features.eval(a),a.mediaPath.push(b),a.mediaBlocks.push(b),this.rules[0].functionRegistry=a.frames[0].functionRegistry.inherit(),a.frames.unshift(this.rules[0]),b.rules=[this.rules[0].eval(a)],a.frames.shift(),a.mediaPath.pop(),0===a.mediaPath.length?b.evalTop(a):b.evalNested(a)},k.prototype.evalTop=function(a){var b=this;if(a.mediaBlocks.length>1){var c=new f([],null,null,this.getIndex(),this.fileInfo()).createEmptySelectors();b=new d(c,a.mediaBlocks),b.multiMedia=!0,b.copyVisibilityInfo(this.visibilityInfo()),this.setParent(b,this)}return delete a.mediaBlocks,delete a.mediaPath,b},k.prototype.evalNested=function(a){var b,c,f=a.mediaPath.concat([this]);for(b=0;b0;b--)a.splice(b,0,new g("and"));return new h(a)})),this.setParent(this.features,this),new d([],[])},k.prototype.permute=function(a){if(0===a.length)return[];if(1===a.length)return a[0];for(var b=[],c=this.permute(a.slice(1)),d=0;d0){for(n=!0,k=0;k0)p=B;else if(p=A,q[A]+q[B]>1)throw{type:"Runtime",message:"Ambiguous use of `default()` found when matching for `"+this.format(t)+"`",index:this.getIndex(),filename:this.fileInfo().filename};for(k=0;kthis.params.length)return!1}c=Math.min(f,this.arity);for(var g=0;gb?1:void 0},d.prototype.blocksVisibility=function(){return null==this.visibilityBlocks&&(this.visibilityBlocks=0),0!==this.visibilityBlocks},d.prototype.addVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks+1},d.prototype.removeVisibilityBlock=function(){null==this.visibilityBlocks&&(this.visibilityBlocks=0),this.visibilityBlocks=this.visibilityBlocks-1},d.prototype.ensureVisibility=function(){this.nodeVisible=!0},d.prototype.ensureInvisibility=function(){this.nodeVisible=!1},d.prototype.isVisible=function(){return this.nodeVisible},d.prototype.visibilityInfo=function(){return{visibilityBlocks:this.visibilityBlocks,nodeVisible:this.nodeVisible}},d.prototype.copyVisibilityInfo=function(a){a&&(this.visibilityBlocks=a.visibilityBlocks,this.nodeVisible=a.nodeVisible)},b.exports=d},{}],75:[function(a,b,c){var d=a("./node"),e=a("./color"),f=a("./dimension"),g=function(a,b,c){this.op=a.trim(),this.operands=b,this.isSpaced=c};g.prototype=new d,g.prototype.type="Operation",g.prototype.accept=function(a){this.operands=a.visit(this.operands)},g.prototype.eval=function(a){var b=this.operands[0].eval(a),c=this.operands[1].eval(a);if(a.isMathOn()){if(b instanceof f&&c instanceof e&&(b=b.toColor()),c instanceof f&&b instanceof e&&(c=c.toColor()),!b.operate)throw{type:"Operation",message:"Operation on an invalid type"};return b.operate(a,this.op,c)}return new g(this.op,[b,c],this.isSpaced)},g.prototype.genCSS=function(a,b){this.operands[0].genCSS(a,b),this.isSpaced&&b.add(" "),b.add(this.op),this.isSpaced&&b.add(" "),this.operands[1].genCSS(a,b)},b.exports=g},{"./color":53,"./dimension":60,"./node":74}],76:[function(a,b,c){var d=a("./node"),e=function(a){this.value=a};e.prototype=new d,e.prototype.type="Paren",e.prototype.genCSS=function(a,b){b.add("("),this.value.genCSS(a,b),b.add(")")},e.prototype.eval=function(a){return new e(this.value.eval(a))},b.exports=e},{"./node":74}],77:[function(a,b,c){var d=a("./node"),e=a("./declaration"),f=function(a,b,c){this.name=a,this._index=b,this._fileInfo=c};f.prototype=new d,f.prototype.type="Property",f.prototype.eval=function(a){var b,c=this.name,d=a.pluginManager.less.visitors.ToCSSVisitor.prototype._mergeRules;if(this.evaluating)throw{type:"Name",message:"Recursive property reference for "+c,filename:this.fileInfo().filename,index:this.getIndex()};if(this.evaluating=!0,b=this.find(a.frames,function(b){var f,g=b.property(c);if(g){for(var h=0;h0;a--){var b=this.rules[a-1];if(b instanceof e)return this.parseValue(b)}},q.prototype.parseValue=function(a){function b(a){return a.value instanceof k&&!a.parsed?("string"==typeof a.value.value?this.parse.parseNode(a.value.value,["value","important"],a.value.getIndex(),a.fileInfo(),function(b,c){b&&(a.parsed=!0),c&&(a.value=c[0],a.important=c[1]||"",a.parsed=!0)}):a.parsed=!0,a):a}var c=this;if(Array.isArray(a)){var d=[];return a.forEach(function(a){d.push(b.call(c,a))}),d}return b.call(c,a)},q.prototype.rulesets=function(){if(!this.rules)return[];var a,b,c=[],d=this.rules;for(a=0;b=d[a];a++)b.isRuleset&&c.push(b);return c},q.prototype.prependRule=function(a){var b=this.rules;b?b.unshift(a):this.rules=[a],this.setParent(a,this)},q.prototype.find=function(a,b,c){b=b||this;var d,e,f=[],g=a.toCSS();return g in this._lookups?this._lookups[g]:(this.rulesets().forEach(function(g){if(g!==b)for(var h=0;hd){if(!c||c(g)){e=g.find(new i(a.elements.slice(d)),b,c);for(var j=0;j0&&b.add(k),a.firstSelector=!0,h[0].genCSS(a,b),a.firstSelector=!1,d=1;d0?(e=p.copyArray(a),f=e.pop(),g=d.createDerived(p.copyArray(f.elements))):g=d.createDerived([]),b.length>0){var h=c.combinator,i=b[0].elements[0];h.emptyOrWhitespace&&!i.combinator.emptyOrWhitespace&&(h=i.combinator),g.elements.push(new j(h,i.value,c.isVariable,c._index,c._fileInfo)),g.elements=g.elements.concat(b[0].elements.slice(1))}if(0!==g.elements.length&&e.push(g),b.length>1){var k=b.slice(1);k=k.map(function(a){return a.createDerived(a.elements,[])}),e=e.concat(k)}return e}function g(a,b,c,d,e){var g;for(g=0;g0?d[d.length-1]=d[d.length-1].createDerived(d[d.length-1].elements.concat(a)):d.push(new i(a))}}function l(a,b,c){function m(a){var b;return a.value instanceof h?(b=a.value.value,b instanceof i?b:null):null}var n,o,p,q,r,s,t,u,v,w,x=!1;for(q=[],r=[[]],n=0;u=c.elements[n];n++)if("&"!==u.value){var y=m(u);if(null!=y){k(q,r);var z,A=[],B=[];for(z=l(A,b,y),x=x||z,p=0;p0&&t[0].elements.push(new j(u.combinator,"",u.isVariable,u._index,u._fileInfo)),s.push(t);else for(p=0;p0&&(a.push(r[n]),w=r[n][v-1],r[n][v-1]=w.createDerived(w.elements,c.extendList));return x}function m(a,b){var c=b.createDerived(b.elements,b.extendList,b.evaldCondition);return c.copyVisibilityInfo(a),c}var n,o,q;if(o=[],q=l(o,b,c),!q)if(b.length>0)for(o=[],n=0;n0)for(b=0;b=0&&"\n"!==b.charAt(c);)e++;return"number"==typeof a&&(d=(b.slice(0,a).match(/\n/g)||"").length),{line:d,column:e}},copyArray:function(a){var b,c=a.length,d=new Array(c);for(b=0;b=0||(i=[k.selfSelectors[0]],g=n.findMatch(j,i),g.length&&(j.hasFoundMatches=!0,j.selfSelectors.forEach(function(a){var b=k.visibilityInfo();h=n.extendSelector(g,i,a,j.isVisible()),l=new d.Extend(k.selector,k.option,0,k.fileInfo(),b),l.selfSelectors=h,h[h.length-1].extendList=[l],m.push(l),l.ruleset=k.ruleset,l.parent_ids=l.parent_ids.concat(k.parent_ids,j.parent_ids),k.firstExtendOnThisSelectorPath&&(l.firstExtendOnThisSelectorPath=!0,k.ruleset.paths.push(h))})));if(m.length){if(this.extendChainCount++,c>100){var o="{unable to calculate}",p="{unable to calculate}";try{o=m[0].selfSelectors[0].toCSS(),p=m[0].selector.toCSS()}catch(q){}throw{message:"extend circular reference detected. One of the circular extends is currently:"+o+":extend("+p+")"}}return m.concat(n.doExtendChaining(m,b,c+1))}return m},visitDeclaration:function(a,b){b.visitDeeper=!1},visitMixinDefinition:function(a,b){b.visitDeeper=!1},visitSelector:function(a,b){b.visitDeeper=!1},visitRuleset:function(a,b){if(!a.root){var c,d,e,f,g=this.allExtendsStack[this.allExtendsStack.length-1],h=[],i=this;for(e=0;e0&&k[i.matched].combinator.value!==g?i=null:i.matched++,i&&(i.finished=i.matched===k.length,i.finished&&!a.allowAfter&&(e+1k&&l>0&&(m[m.length-1].elements=m[m.length-1].elements.concat(b[k].elements.slice(l)),l=0,k++),j=g.elements.slice(l,i.index).concat([h]).concat(c.elements.slice(1)),k===i.pathIndex&&f>0?m[m.length-1].elements=m[m.length-1].elements.concat(j):(m=m.concat(b.slice(k,i.pathIndex)),m.push(new d.Selector(j))),k=i.endPathIndex,l=i.endPathElementIndex,l>=b[k].elements.length&&(l=0,k++);return k0&&(m[m.length-1].elements=m[m.length-1].elements.concat(b[k].elements.slice(l)),k++),m=m.concat(b.slice(k,b.length)),m=m.map(function(a){var b=a.createDerived(a.elements);return e?b.ensureVisibility():b.ensureInvisibility(),b})},visitMedia:function(a,b){var c=a.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);c=c.concat(this.doExtendChaining(c,a.allExtends)),this.allExtendsStack.push(c)},visitMediaOut:function(a){var b=this.allExtendsStack.length-1;this.allExtendsStack.length=b},visitAtRule:function(a,b){var c=a.allExtends.concat(this.allExtendsStack[this.allExtendsStack.length-1]);c=c.concat(this.doExtendChaining(c,a.allExtends)),this.allExtendsStack.push(c)},visitAtRuleOut:function(a){var b=this.allExtendsStack.length-1;this.allExtendsStack.length=b}},b.exports=i},{"../logger":37,"../tree":65,"../utils":87,"./visitor":95}],89:[function(a,b,c){function d(a){this.imports=[],this.variableImports=[],this._onSequencerEmpty=a,this._currentDepth=0}d.prototype.addImport=function(a){var b=this,c={callback:a,args:null,isReady:!1};return this.imports.push(c),function(){c.args=Array.prototype.slice.call(arguments,0),c.isReady=!0,b.tryRun()}},d.prototype.addVariableImport=function(a){this.variableImports.push(a)},d.prototype.tryRun=function(){this._currentDepth++;try{for(;;){for(;this.imports.length>0;){var a=this.imports[0];if(!a.isReady)return;this.imports=this.imports.slice(1),a.callback.apply(null,a.args)}if(0===this.variableImports.length)break;var b=this.variableImports[0];this.variableImports=this.variableImports.slice(1),b()}}finally{this._currentDepth--}0===this._currentDepth&&this._onSequencerEmpty&&this._onSequencerEmpty()},b.exports=d},{}],90:[function(a,b,c){var d=a("../contexts"),e=a("./visitor"),f=a("./import-sequencer"),g=a("../utils"),h=function(a,b){this._visitor=new e(this),this._importer=a,this._finish=b,this.context=new d.Eval,this.importCount=0,this.onceFileDetectionMap={},this.recursionDetector={},this._sequencer=new f(this._onSequencerEmpty.bind(this))};h.prototype={isReplacing:!1,run:function(a){try{this._visitor.visit(a)}catch(b){this.error=b}this.isFinished=!0,this._sequencer.tryRun()},_onSequencerEmpty:function(){this.isFinished&&this._finish(this.error)},visitImport:function(a,b){var c=a.options.inline;if(!a.css||c){var e=new d.Eval(this.context,g.copyArray(this.context.frames)),f=e.frames[0];this.importCount++,a.isVariableImport()?this._sequencer.addVariableImport(this.processImportNode.bind(this,a,e,f)):this.processImportNode(a,e,f)}b.visitDeeper=!1},processImportNode:function(a,b,c){var d,e=a.options.inline;try{d=a.evalForImport(b)}catch(f){f.filename||(f.index=a.getIndex(),f.filename=a.fileInfo().filename),a.css=!0,a.error=f}if(!d||d.css&&!e)this.importCount--,this.isFinished&&this._sequencer.tryRun();else{d.options.multiple&&(b.importMultiple=!0);for(var g=void 0===d.css,h=0;h0},resolveVisibility:function(a,b){if(!a.blocksVisibility()){if(this.isEmpty(a)&&!this.containsSilentNonBlockedChild(b))return;return a}var c=a.rules[0];if(this.keepOnlyVisibleChilds(c),!this.isEmpty(c))return a.ensureVisibility(),a.removeVisibilityBlock(),a},isVisibleRuleset:function(a){return!!a.firstRoot||!this.isEmpty(a)&&!(!a.root&&!this.hasVisibleSelector(a))}};var g=function(a){this._visitor=new e(this),this._context=a,this.utils=new f(a)};g.prototype={isReplacing:!0,run:function(a){return this._visitor.visit(a)},visitDeclaration:function(a,b){if(!a.blocksVisibility()&&!a.variable)return a},visitMixinDefinition:function(a,b){a.frames=[]},visitExtend:function(a,b){},visitComment:function(a,b){if(!a.blocksVisibility()&&!a.isSilent(this._context))return a},visitMedia:function(a,b){var c=a.rules[0].rules;return a.accept(this._visitor),b.visitDeeper=!1,this.utils.resolveVisibility(a,c)},visitImport:function(a,b){if(!a.blocksVisibility())return a},visitAtRule:function(a,b){return a.rules&&a.rules.length?this.visitAtRuleWithBody(a,b):this.visitAtRuleWithoutBody(a,b)},visitAnonymous:function(a,b){if(!a.blocksVisibility())return a.accept(this._visitor),a},visitAtRuleWithBody:function(a,b){function c(a){var b=a.rules;return 1===b.length&&(!b[0].paths||0===b[0].paths.length)}function d(a){var b=a.rules;return c(a)?b[0].rules:b}var e=d(a);return a.accept(this._visitor),b.visitDeeper=!1,this.utils.isEmpty(a)||this._mergeRules(a.rules[0].rules),this.utils.resolveVisibility(a,e)},visitAtRuleWithoutBody:function(a,b){if(!a.blocksVisibility()){if("@charset"===a.name){if(this.charset){if(a.debugInfo){var c=new d.Comment("/* "+a.toCSS(this._context).replace(/\n/g,"")+" */\n");return c.debugInfo=a.debugInfo,this._visitor.visit(c)}return}this.charset=!0}return a}},checkValidNodes:function(a,b){if(a)for(var c=0;c0?a.accept(this._visitor):a.rules=null,b.visitDeeper=!1}return a.rules&&(this._mergeRules(a.rules),this._removeDuplicateRules(a.rules)),this.utils.isVisibleRuleset(a)&&(a.ensureVisibility(),d.splice(0,0,a)),1===d.length?d[0]:d},_compileRulesetPaths:function(a){a.paths&&(a.paths=a.paths.filter(function(a){var b;for(" "===a[0].elements[0].combinator.value&&(a[0].elements[0].combinator=new d.Combinator("")),b=0;b=0;e--)if(c=a[e],c instanceof d.Declaration)if(f[c.name]){b=f[c.name],b instanceof d.Declaration&&(b=f[c.name]=[f[c.name].toCSS(this._context)]);var g=c.toCSS(this._context);b.indexOf(g)!==-1?a.splice(e,1):b.push(g)}else f[c.name]=c}},_mergeRules:function(a){if(a){for(var b={},c=[],e=0;e0){var b=a[0],c=[],e=[new d.Expression(c)];a.forEach(function(a){"+"===a.merge&&c.length>0&&e.push(new d.Expression(c=[])),c.push(a.value),b.important=b.important||a.important}),b.value=new d.Value(e)}})}}},b.exports=g},{"../tree":65,"./visitor":95}],95:[function(a,b,c){function d(a){return a}function e(a,b){var c,d;for(c in a)switch(d=a[c],typeof d){case"function":d.prototype&&d.prototype.type&&(d.prototype.typeIndex=b++);break;case"object":b=e(d,b)}return b}var f=a("../tree"),g={visitDeeper:!0},h=!1,i=function(a){this._implementation=a,this._visitInCache={},this._visitOutCache={},h||(e(f,1),h=!0)};i.prototype={visit:function(a){if(!a)return a;var b=a.typeIndex;if(!b)return a.value&&a.value.typeIndex&&this.visit(a.value),a;var c,e=this._implementation,f=this._visitInCache[b],h=this._visitOutCache[b],i=g;if(i.visitDeeper=!0,f||(c="visit"+a.type,f=e[c]||d,h=e[c+"Out"]||d,this._visitInCache[b]=f,this._visitOutCache[b]=h),f!==d){var j=f.call(e,a,i);a&&e.isReplacing&&(a=j)}return i.visitDeeper&&a&&a.accept&&a.accept(this),h!=d&&h.call(e,a),a},visitArray:function(a,b){if(!a)return a;var c,d=a.length;if(b||!this._implementation.isReplacing){for(c=0;ck){for(var b=0,c=h.length-j;b +This work is free. You can redistribute it and/or modify it +under the terms of the WTFPL, Version 2 +For more information see LICENSE.txt or http://www.wtfpl.net/ + +For more information, the home page: +http://pieroxy.net/blog/pages/lz-string/testing.html + +LZ-based compression algorithm, version 1.4.4 +Copyright (c) 2013 Pieroxy +This work is free. You can redistribute it and/or modify it +under the terms of the WTFPL, Version 2 +For more information see LICENSE.txt or http://www.wtfpl.net/ + +For more information, the home page: +http://pieroxy.net/blog/pages/lz-string/testing.html + +LZ-based compression algorithm, version 1.4.4 diff --git a/vendor/node-semver/LICENSE b/vendor/node-semver/LICENSE new file mode 100644 index 00000000..c81ae8ce --- /dev/null +++ b/vendor/node-semver/LICENSE @@ -0,0 +1,20 @@ +https://github.com/eight04/node-semver-bundle + +https://github.com/eight04/node-semver-bundle/blob/master/LICENSE + + +The ISC License + +Copyright (c) Isaac Z. Schlueter and Contributors + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR +IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/vendor/stylelint-bundle/LICENSE b/vendor/stylelint-bundle/LICENSE new file mode 100644 index 00000000..e379fd67 --- /dev/null +++ b/vendor/stylelint-bundle/LICENSE @@ -0,0 +1,26 @@ +https://github.com/stylelint/stylelint +https://github.com/openstyles/stylelint-bundle/tree/v8.0.0 + +https://github.com/stylelint/stylelint/blob/master/LICENSE + + +The MIT License (MIT) + +Copyright (c) 2015 - present Maxime Thirouin, David Clark & Richard Hallows + +Permission is hereby granted, free of charge, to any person obtaining a copy of +this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to +use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software is furnished to do so, +subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS +FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR +COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER +IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN +CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/stylelint-bundle/stylelint-bundle.min.js b/vendor/stylelint-bundle/stylelint-bundle.min.js new file mode 100644 index 00000000..42a6105b --- /dev/null +++ b/vendor/stylelint-bundle/stylelint-bundle.min.js @@ -0,0 +1,2 @@ +/*!= Stylelint v8.0.0 bundle =*/ +require=function(){return function e(t,r,n){function i(s,a){if(!r[s]){if(!t[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var l=new Error("Cannot find module '"+s+"'");throw l.code="MODULE_NOT_FOUND",l}var c=r[s]={exports:{}};t[s][0].call(c.exports,function(e){return i(t[s][1][e]||e)},c,c.exports,e,t,r,n)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<]/g}},{}],2:[function(e,t,r){"use strict";var n=e("arr-flatten"),i=[].slice;t.exports=function(e,t){var r=arguments.length,o=e.length,s=-1,a=[];if(1===r)return e;for(r>2&&(t=n(i.call(arguments,1)));++s=0;l--)if(c[l]!==f[l])return!1;for(l=c.length-1;l>=0;l--)if(u=c[l],!v(e[u],t[u],r,n))return!1;return!0}(e,t,r,s))}return r?e===t:e==t}function b(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function w(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function x(e,t,r,n){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof r&&(n=r,r=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),e&&!i&&g(i,r,"Missing expected exception"+n);var s="string"==typeof n,a=!e&&i&&!r;if((!e&&o.isError(i)&&s&&w(i,r)||a)&&g(i,r,"Got unwanted exception"+n),e&&i&&r&&!w(i,r)||!e&&i)throw i}f.AssertionError=function(e){var t;this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=h(m((t=this).actual),128)+" "+t.operator+" "+h(m(t.expected),128),this.generatedMessage=!0);var r=e.stackStartFunction||g;if(Error.captureStackTrace)Error.captureStackTrace(this,r);else{var n=new Error;if(n.stack){var i=n.stack,o=d(r),s=i.indexOf("\n"+o);if(s>=0){var a=i.indexOf("\n",s+1);i=i.substring(a+1)}this.stack=i}}},o.inherits(f.AssertionError,Error),f.fail=g,f.ok=y,f.equal=function(e,t,r){e!=t&&g(e,t,r,"==",f.equal)},f.notEqual=function(e,t,r){e==t&&g(e,t,r,"!=",f.notEqual)},f.deepEqual=function(e,t,r){v(e,t,!1)||g(e,t,r,"deepEqual",f.deepEqual)},f.deepStrictEqual=function(e,t,r){v(e,t,!0)||g(e,t,r,"deepStrictEqual",f.deepStrictEqual)},f.notDeepEqual=function(e,t,r){v(e,t,!1)&&g(e,t,r,"notDeepEqual",f.notDeepEqual)},f.notDeepStrictEqual=function e(t,r,n){v(t,r,!0)&&g(t,r,n,"notDeepStrictEqual",e)},f.strictEqual=function(e,t,r){e!==t&&g(e,t,r,"===",f.strictEqual)},f.notStrictEqual=function(e,t,r){e===t&&g(e,t,r,"!==",f.notStrictEqual)},f.throws=function(e,t,r){x(!0,e,t,r)},f.doesNotThrow=function(e,t,r){x(!1,e,t,r)},f.ifError=function(e){if(e)throw e};var k=Object.keys||function(e){var t=[];for(var r in e)s.call(e,r)&&t.push(r);return t}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"util/":11}],9:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],10:[function(e,t,r){t.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},{}],11:[function(e,t,r){(function(t,n){var i=/%[sdj%]/g;r.format=function(e){if(!y(e)){for(var t=[],r=0;r=o)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(e){return"[Circular]"}default:return e}}),u=n[r];r=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),h(t)?n.showHidden=t:t&&r._extend(n,t),v(n.showHidden)&&(n.showHidden=!1),v(n.depth)&&(n.depth=2),v(n.colors)&&(n.colors=!1),v(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=u),c(n,e,n.depth)}function u(e,t){var r=a.styles[t];return r?"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m":e}function l(e,t){return e}function c(e,t,n){if(e.customInspect&&t&&_(t.inspect)&&t.inspect!==r.inspect&&(!t.constructor||t.constructor.prototype!==t)){var i=t.inspect(n,e);return y(i)||(i=c(e,i,n)),i}var o=function(e,t){if(v(t))return e.stylize("undefined","undefined");if(y(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(g(t))return e.stylize(""+t,"number");if(h(t))return e.stylize(""+t,"boolean");if(m(t))return e.stylize("null","null")}(e,t);if(o)return o;var s=Object.keys(t),a=function(e){var t={};return e.forEach(function(e,r){t[e]=!0}),t}(s);if(e.showHidden&&(s=Object.getOwnPropertyNames(t)),k(t)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return f(t);if(0===s.length){if(_(t)){var u=t.name?": "+t.name:"";return e.stylize("[Function"+u+"]","special")}if(b(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(x(t))return e.stylize(Date.prototype.toString.call(t),"date");if(k(t))return f(t)}var l,w="",S=!1,C=["{","}"];(d(t)&&(S=!0,C=["[","]"]),_(t))&&(w=" [Function"+(t.name?": "+t.name:"")+"]");return b(t)&&(w=" "+RegExp.prototype.toString.call(t)),x(t)&&(w=" "+Date.prototype.toUTCString.call(t)),k(t)&&(w=" "+f(t)),0!==s.length||S&&0!=t.length?n<0?b(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=S?function(e,t,r,n,i){for(var o=[],s=0,a=t.length;s=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return r[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1];return r[0]+t+" "+e.join(", ")+" "+r[1]}(l,w,C)):C[0]+w+C[1]}function f(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,r,n,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),E(n,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=m(r)?c(e,u.value,null):c(e,u.value,r-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),v(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function d(e){return Array.isArray(e)}function h(e){return"boolean"==typeof e}function m(e){return null===e}function g(e){return"number"==typeof e}function y(e){return"string"==typeof e}function v(e){return void 0===e}function b(e){return w(e)&&"[object RegExp]"===S(e)}function w(e){return"object"==typeof e&&null!==e}function x(e){return w(e)&&"[object Date]"===S(e)}function k(e){return w(e)&&("[object Error]"===S(e)||e instanceof Error)}function _(e){return"function"==typeof e}function S(e){return Object.prototype.toString.call(e)}function C(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(e){if(v(o)&&(o=t.env.NODE_DEBUG||""),e=e.toUpperCase(),!s[e])if(new RegExp("\\b"+e+"\\b","i").test(o)){var n=t.pid;s[e]=function(){var t=r.format.apply(r,arguments);console.error("%s %d: %s",e,n,t)}}else s[e]=function(){};return s[e]},r.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=d,r.isBoolean=h,r.isNull=m,r.isNullOrUndefined=function(e){return null==e},r.isNumber=g,r.isString=y,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=v,r.isRegExp=b,r.isObject=w,r.isDate=x,r.isError=k,r.isFunction=_,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e("./support/isBuffer");var A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.log=function(){var e,t;console.log("%s - %s",(e=new Date,t=[C(e.getHours()),C(e.getMinutes()),C(e.getSeconds())].join(":"),[e.getDate(),A[e.getMonth()],t].join(" ")),r.format.apply(r,arguments))},r.inherits=e("inherits"),r._extend=function(e,t){if(!t||!w(t))return e;for(var r=Object.keys(t),n=r.length;n--;)e[r[n]]=t[r[n]];return e}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":10,_process:282,inherits:9}],12:[function(e,t,r){"use strict";function n(e,t,r){e instanceof RegExp&&(e=i(e,r)),t instanceof RegExp&&(t=i(t,r));var n=o(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function i(e,t){var r=t.match(e);return r?r[0]:null}function o(e,t,r){var n,i,o,s,a,u=r.indexOf(e),l=r.indexOf(t,u+1),c=u;if(u>=0&&l>0){for(n=[],o=r.length;c>=0&&!a;)c==u?(n.push(c),u=r.indexOf(e,c+1)):1==n.length?a=[n.pop(),l]:((i=n.pop())=0?u:l;n.length&&(a=[o,s])}return a}t.exports=n,n.range=o},{}],13:[function(e,t,r){"use strict";r.byteLength=function(e){var t=l(e),r=t[0],n=t[1];return 3*(r+n)/4-n},r.toByteArray=function(e){for(var t,r=l(e),n=r[0],s=r[1],a=new o(function(e,t,r){return 3*(t+r)/4-r}(0,n,s)),u=0,c=s>0?n-4:n,f=0;f>16&255,a[u++]=t>>8&255,a[u++]=255&t;2===s&&(t=i[e.charCodeAt(f)]<<2|i[e.charCodeAt(f+1)]>>4,a[u++]=255&t);1===s&&(t=i[e.charCodeAt(f)]<<10|i[e.charCodeAt(f+1)]<<4|i[e.charCodeAt(f+2)]>>2,a[u++]=t>>8&255,a[u++]=255&t);return a},r.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],s=0,a=r-i;sa?a:s+16383));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,u=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");return-1===r&&(r=t),[r,r===t?0:4-r%4]}function c(e,t,r){for(var i,o,s=[],a=t;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],14:[function(e,t,r){var n=e("concat-map"),i=e("balanced-match");t.exports=function(e){if(!e)return[];"{}"===e.substr(0,2)&&(e="\\{\\}"+e.substr(2));return function e(t,r){var o=[];var s=i("{","}",t);if(!s||/\$$/.test(s.pre))return[t];var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body);var l=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body);var f=u||l;var g=s.body.indexOf(",")>=0;if(!f&&!g)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];var y;if(f)y=s.body.split(/\.\./);else if(1===(y=function e(t){if(!t)return[""];var r=[];var n=i("{","}",t);if(!n)return t.split(",");var o=n.pre;var s=n.body;var a=n.post;var u=o.split(",");u[u.length-1]+="{"+s+"}";var l=e(a);a.length&&(u[u.length-1]+=l.shift(),u.push.apply(u,l));r.push.apply(r,u);return r}(s.body)).length&&1===(y=e(y[0],!1).map(p)).length){var v=s.post.length?e(s.post,!1):[""];return v.map(function(e){return s.pre+y[0]+e})}var b=s.pre;var v=s.post.length?e(s.post,!1):[""];var w;if(f){var x=c(y[0]),k=c(y[1]),_=Math.max(y[0].length,y[1].length),S=3==y.length?Math.abs(c(y[2])):1,C=h,A=k0){var N=new Array(M+1).join("0");j=O<0?"-"+N+j.slice(1):N+j}}w.push(j)}}else w=n(y,function(t){return e(t,!1)});for(var R=0;R=t}},{"balanced-match":12,"concat-map":21}],15:[function(e,t,r){"use strict";var n,i,o=e("expand-range"),s=e("repeat-element"),a=e("preserve");function u(e,t,r){if(""===e)return[];Array.isArray(t)||(r=t,t=[]);var d=r||{};t=t||[],void 0===d.nodupes&&(d.nodupes=!0);var h,m=d.fn;switch("function"==typeof d&&(m=d,d={}),i instanceof RegExp||(i=/\${|( (?=[{,}])|(?=[{,}]) )|{}|{,}|\\,(?=.*[{}])|\/\.(?=.*[{}])|\\\.(?={)|\\{|\\}/),(e.match(i)||[])[0]){case"\\,":return function(e,t,r){return/\w,/.test(e)?p(u(e=e.split("\\,").join("__ESC_COMMA__"),t,r),function(e){return e.split("__ESC_COMMA__").join(",")}):t.concat(e.split("\\").join(""))}(e,t,d);case"\\.":return function(e,t,r){return/[^\\]\..+\\\./.test(e)?p(u(e=e.split("\\.").join("__ESC_DOT__"),t,r),function(e){return e.split("__ESC_DOT__").join(".")}):t.concat(e.split("\\").join(""))}(e,t,d);case"/.":return function(e,t,r){return p(u(e=e.split("/.").join("__ESC_PATH__"),t,r),function(e){return e.split("__ESC_PATH__").join("/.")})}(e,t,d);case" ":return function(e){var t=e.split(" "),r=t.length,n=[],i=0;for(;r--;)n.push.apply(n,u(t[i++]));return n}(e);case"{,}":return function(e,t,r){"function"==typeof t&&(r=t,t=null);var n,i=t||{},o="__ESC_EXP__",a=0,u=e.split("{,}");if(i.nodupes)return r(u.join(""),i);a=u.length-1;var l=(n=r(u.join(o),i)).length,c=[],f=0;for(;l--;){var p=n[f++],d=p.indexOf(o);if(-1===d)c.push(p);else if((p=p.split("__ESC_EXP__").join(""))&&!1!==i.nodupes)c.push(p);else{var h=Math.pow(2,a);c.push.apply(c,s(p,h))}}return c}(e,d,u);case"{}":return function(e,t,r){return u(e.split("{}").join("\\{\\}"),t,r)}(e,t,d);case"\\{":case"\\}":return function(e,t,r){return/\{[^{]+\{/.test(e)?p(u(e=(e=e.split("\\{").join("__LT_BRACE__")).split("\\}").join("__RT_BRACE__"),t,r),function(e){return(e=e.split("__LT_BRACE__").join("{")).split("__RT_BRACE__").join("}")}):t.concat(e.split("\\").join(""))}(e,t,d);case"${":if(!/\{[^{]+\{/.test(e))return t.concat(e);h=!0,e=a.before(e,/\$\{([^}]+)\}/)}n instanceof RegExp||(n=/.*(\\?\{([^}]+)\})/);var g=n.exec(e);if(null==g)return[e];var y,v,b=g[1],w=g[2];if(""===w)return[e];if(-1!==w.indexOf(".."))v=(y=o(w,d,m)||w.split(",")).length;else{if('"'===w[0]||"'"===w[0])return t.concat(e.split(/['"]/).join(""));if(y=w.split(","),d.makeRe)return u(e.replace(b,l(y,"|")),d);1===(v=y.length)&&d.bash&&(y[0]=l(y[0],"\\"))}for(var x,k=y.length,_=0;k--;){var S=y[_++];if(/(\.[^.\/])/.test(S))return v>1?y:[e];if(x=f(e,b,S),/\{[^{}]+?\}/.test(x))t=u(x,t,d);else if(""!==x){if(d.nodupes&&-1!==t.indexOf(x))continue;t.push(h?a.after(x):x)}}return d.strict?function(e,t){if(null==e)return[];if("function"!=typeof t)throw new TypeError("braces: filter expects a callback function.");var r=e.length,n=e.slice(),i=0;for(;r--;)t(e[r],i++)||n.splice(r,1);return n}(t,c):t}function l(e,t){return"|"===t?"("+e.join(t)+")":","===t?"{"+e.join(t)+"}":"-"===t?"["+e.join(t)+"]":"\\"===t?"\\{"+e+"\\}":void 0}function c(e){return!!e&&"\\"!==e}function f(e,t,r){var n=e.indexOf(t);return e.substr(0,n)+r+e.substr(n+t.length)}function p(e,t){if(null==e)return[];for(var r=e.length,n=new Array(r),i=-1;++io)throw new RangeError("Invalid typed array length");var t=new Uint8Array(e);return t.__proto__=a.prototype,t}function a(e,t,r){if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(e)}return u(e,t,r)}function u(e,t,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return U(e)||e&&U(e.buffer)?function(e,t,r){if(t<0||e.byteLength=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|e}function d(e,t){if(a.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(n)return B(e).length;t=(""+t).toLowerCase(),n=!0}}function h(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),z(r=+r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=a.from(t,n)),a.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var o,s=1,a=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,r/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=r;oa&&(r=a-u),o=r;o>=0;o--){for(var f=!0,p=0;pi&&(n=i):n=i;var o=t.length;n>o/2&&(n=o/2);for(var s=0;s>8,i=r%256,o.push(i),o.push(n);return o}(t,e.length-r),e,r,n)}function _(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function S(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+f<=r)switch(f){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}return function(e){var t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,r);case"utf8":case"utf-8":return S(this,t,r);case"ascii":return A(this,t,r);case"latin1":case"binary":return E(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(e){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===a.compare(this,e)},a.prototype.inspect=function(){var e="",t=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),""},a.prototype.compare=function(e,t,r,n,i){if(!a.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(t>>>=0),u=Math.min(o,s),l=this.slice(n,i),c=e.slice(t,r),f=0;f>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||r>i)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return y(this,e,t,r);case"utf8":case"utf-8":return v(this,e,t,r);case"ascii":return b(this,e,t,r);case"latin1":case"binary":return w(this,e,t,r);case"base64":return x(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var C=4096;function A(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;in)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,r,n,i,o){if(!a.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function R(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(e,t,r,n,o){return t=+t,r>>>=0,o||R(e,0,r,4),i.write(e,t,r,n,23,4),r+4}function I(e,t,r,n,o){return t=+t,r>>>=0,o||R(e,0,r,8),i.write(e,t,r,n,52,8),r+8}a.prototype.slice=function(e,t){var r=this.length;(e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t>>=0,t>>>=0,r||M(e,t,this.length);for(var n=this[e],i=1,o=0;++o>>=0,t>>>=0,r||M(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},a.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},a.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},a.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},a.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},a.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},a.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||M(e,t,this.length);for(var n=this[e],i=1,o=0;++o=(i*=128)&&(n-=Math.pow(2,8*t)),n},a.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||M(e,t,this.length);for(var n=t,i=1,o=this[e+--n];n>0&&(i*=256);)o+=this[e+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},a.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},a.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},a.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},a.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},a.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!0,23,4)},a.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!1,23,4)},a.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!0,52,8)},a.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!1,52,8)},a.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t>>>=0,r>>>=0,n)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o>>=0,r>>>=0,n)||N(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+r},a.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,255,0),this[t]=255&e,t+1},a.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},a.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+r},a.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);N(this,e,t,r,i-1,-i)}var o=r-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+r},a.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},a.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},a.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},a.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},a.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},a.prototype.writeFloatLE=function(e,t,r){return P(this,e,t,!0,r)},a.prototype.writeFloatBE=function(e,t,r){return P(this,e,t,!1,r)},a.prototype.writeDoubleLE=function(e,t,r){return I(this,e,t,!0,r)},a.prototype.writeDoubleBE=function(e,t,r){return I(this,e,t,!1,r)},a.prototype.copy=function(e,t,r,n){if(!a.isBuffer(e))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,n),t);return i},a.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!a.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var i=e.charCodeAt(0);("utf8"===n&&i<128||"latin1"===n)&&(e=i)}}else"number"==typeof e&&(e&=255);if(t<0||this.length>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function T(e){return n.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,r,n){for(var i=0;i=t.length||i>=e.length);++i)t[i+r]=e[i];return i}function U(e){return e instanceof ArrayBuffer||null!=e&&null!=e.constructor&&"ArrayBuffer"===e.constructor.name&&"number"==typeof e.byteLength}function z(e){return e!=e}},{"base64-js":13,ieee754:67}],19:[function(e,t,r){var n="~",i="\\x"+("0"+n.charCodeAt(0).toString(16)).slice(-2),o="\\"+i,s=new RegExp(i,"g"),a=new RegExp(o,"g"),u=new RegExp("(?:^|([^\\\\]))"+o),l=[].indexOf||function(e){for(var t=this.length;t--&&this[t]!==e;);return t},c=String;function f(e,t,r){return t instanceof Array?function(e,t,r){for(var n=0,i=t.length;n1?o.slice(0,-1).join(n.sep):null;return s&&r!==e.stopDir?t(s):null}).then(f);return c&&c.set(r,i),i}(t?g:n.dirname(g))})},clearFileCache:p,clearDirectoryCache:d,clearCaches:function(){p(),d()}}}}).call(this,e("_process"))},{"./loadDefinedFile":26,"./loadJs":27,"./loadPackageProp":28,"./loadRc":29,_process:282,"is-directory":75,path:148}],26:[function(e,t,r){"use strict";var n=e("js-yaml"),i=e("require-from-string"),o=e("./readFile"),s=e("./parseJson");t.exports=function(e,t){return o(e,{throwNotFound:!0}).then(function(r){var o=function(){switch(t.format){case"json":return s(r,e);case"yaml":return n.safeLoad(r,{filename:e});case"js":return i(r,e);default:return function(e,t){return function(e,t,r){try{var i=n.safeLoad(e,{filename:t});return"string"==typeof i?r():i}catch(e){return r()}}(e,t,function(){return function(e,t,r){try{return i(e,t)}catch(e){return r()}}(e,t,function(){return null})})}(r,e)}}();if(!o)throw new Error('Failed to parse "'+e+'" as JSON, JS, or YAML.');return{config:o,filepath:e}})}},{"./parseJson":30,"./readFile":31,"js-yaml":92,"require-from-string":307}],27:[function(e,t,r){"use strict";var n=e("require-from-string"),i=e("./readFile");t.exports=function(e){return i(e).then(function(t){return t?{config:n(t,e),filepath:e}:null})}},{"./readFile":31,"require-from-string":307}],28:[function(e,t,r){"use strict";var n=e("path"),i=e("./readFile"),o=e("./parseJson");t.exports=function(e,t){var r=n.join(e,"package.json");return i(r).then(function(e){if(!e)return null;var n=o(e,r)[t.packageProp];return n?{config:n,filepath:r}:null})}},{"./parseJson":30,"./readFile":31,path:148}],29:[function(e,t,r){"use strict";var n=e("js-yaml"),i=e("require-from-string"),o=e("./readFile"),s=e("./parseJson");t.exports=function(e,t){return r().then(function(r){if(!r)return null;var i=t.rcStrictJson?s(r,e):n.safeLoad(r,{filename:e});return{config:i,filepath:e}}).then(function(o){return o||(t.rcExtensions?r("json").then(function(t){if(t){var n=e+".json";return{config:s(t,n),filepath:n}}return r("yaml")}).then(function(t){if(t){if(t.config)return t;var i=e+".yaml";return{config:n.safeLoad(t,{filename:i}),filepath:i}}return r("yml")}).then(function(t){if(t){if(t.config)return t;var i=e+".yml";return{config:n.safeLoad(t,{filename:i}),filepath:i}}return r("js")}).then(function(t){if(t){if(t.config)return t;var r=e+".js";return{config:i(t,r),filepath:r}}return null}):null)});function r(t){return o(t?e+"."+t:e)}}},{"./parseJson":30,"./readFile":31,"js-yaml":92,"require-from-string":307}],30:[function(e,t,r){"use strict";var n=e("parse-json");t.exports=function(e,t){try{return n(e)}catch(e){throw e.message="JSON Error in "+t+":\n"+e.message,e}}},{"parse-json":145}],31:[function(e,t,r){"use strict";var n=e("fs");t.exports=function(e,t){return(t=t||{}).throwNotFound=t.throwNotFound||!1,new Promise(function(r,i){n.readFile(e,"utf8",function(e,n){return e&&"ENOENT"===e.code&&!t.throwNotFound?r(null):e?i(e):void r(n)})})}},{fs:17}],32:[function(e,t,r){"use strict";var n=e("util"),i=e("is-arrayish"),o=function(e,t){e&&e.constructor===String||(t=e||{},e=Error.name);var r=function n(o){if(!this)return new n(o);o=o instanceof Error?o.message:o||this.message,Error.call(this,o),Error.captureStackTrace(this,r),this.name=e,Object.defineProperty(this,"message",{configurable:!0,enumerable:!1,get:function(){var e=o.split(/\r?\n/g);for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];"message"in n&&(e=n.message(this[r],e)||e,i(e)||(e=[e]))}return e.join("\n")},set:function(e){o=e}});var s=null,a=Object.getOwnPropertyDescriptor(this,"stack"),u=a.get,l=a.value;delete a.value,delete a.writable,a.set=function(e){s=e},a.get=function(){var e=(s||(u?u.call(this):l)).split(/\r?\n+/g);s||(e[0]=this.name+": "+this.message);var r=1;for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if("line"in i){var o=i.line(this[n]);o&&e.splice(r++,0," "+o)}"stack"in i&&i.stack(this[n],e)}return e.join("\n")},Object.defineProperty(this,"stack",a)};return Object.setPrototypeOf?(Object.setPrototypeOf(r.prototype,Error.prototype),Object.setPrototypeOf(r,Error)):n.inherits(r,Error),r};o.append=function(e,t){return{message:function(r,n){return(r=r||t)&&(n[0]+=" "+e.replace("%s",r.toString())),n}}},o.line=function(e,t){return{line:function(r){return(r=r||t)?e.replace("%s",r.toString()):null}}},t.exports=o},{"is-arrayish":73,util:610}],33:[function(e,t,r){"use strict";var n=/[|\\{}()[\]^$+*?.]/g;t.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(n,"\\$&")}},{}],34:[function(e,t,r){var n=Object.create||function(e){var t=function(){};return t.prototype=e,new t},i=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return r},o=Function.prototype.bind||function(e){var t=this;return function(){return t.apply(e,arguments)}};function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=n(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}t.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var a,u=10;try{var l={};Object.defineProperty&&Object.defineProperty(l,"x",{value:0}),a=0===l.x}catch(e){a=!1}function c(e){return void 0===e._maxListeners?s.defaultMaxListeners:e._maxListeners}function f(e,t,r,i){var o,s,a;if("function"!=typeof r)throw new TypeError('"listener" argument must be a function');if((s=e._events)?(s.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),s=e._events),a=s[t]):(s=e._events=n(null),e._eventsCount=0),a){if("function"==typeof a?a=s[t]=i?[r,a]:[a,r]:i?a.unshift(r):a.push(r),!a.warned&&(o=c(e))&&o>0&&a.length>o){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(t)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",u.name,u.message)}}else a=s[t]=r,++e._eventsCount;return e}function p(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var e=new Array(arguments.length),t=0;t1&&(t=arguments[1]),t instanceof Error)throw t;var u=new Error('Unhandled "error" event. ('+t+")");throw u.context=t,u}if(!(r=s[e]))return!1;var l="function"==typeof r;switch(n=arguments.length){case 1:!function(e,t,r){if(t)e.call(r);else for(var n=e.length,i=g(e,n),o=0;o=0;s--)if(r[s]===t||r[s].listener===t){a=r[s].listener,o=s;break}if(o<0)return this;0===o?r.shift():function(e,t){for(var r=t,n=r+1,i=e.length;n=0;o--)this.removeListener(e,t[o]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],35:[function(e,t,r){"use strict";var n=e("clone-regexp");t.exports=function(e,t){for(var r,i=[],o=n(e),s=o.global;(r=o.exec(t))&&(i.push({match:r[0],sub:r.slice(1),index:r.index}),s););return i}},{"clone-regexp":20}],36:[function(e,t,r){"use strict";var n=e("is-posix-bracket"),i={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E",punct:"-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};function o(e){if(!n(e))return e;var t=!1;-1!==e.indexOf("[^")&&(t=!0,e=e.split("[^").join("[")),-1!==e.indexOf("[!")&&(t=!0,e=e.split("[!").join("["));for(var r=e.split("["),o=e.split("]"),s=r.length!==o.length,a=e.split(/(?::\]\[:|\[?\[:|:\]\]?)/),u=a.length,l=0,c="",f="",p=[];u--;){var d=a[l++];"^[!"!==d&&"[!"!==d||(d="",t=!0);var h=t?"^":"",m=i[d];m?p.push("["+h+m+"]"):d&&(/^\[?\w-\w\]?$/.test(d)?l===a.length?p.push("["+h+d):1===l?p.push(h+d+"]"):p.push(h+d):1===l?f+=d:l===a.length?c+=d:p.push("["+h+d+"]"))}var g=p.join("|"),y=p.length||1;return y>1&&(g="(?:"+g+")",y=1),f&&(y++,"["===f.charAt(0)&&(s?f="\\["+f.slice(1):f+="]"),g=f+g),c&&(y++,"]"===c.slice(-1)&&(c=s?c.slice(0,c.length-1)+"\\]":"["+c),g+=c),y>1&&(-1===(g=g.split("][").join("]|[")).indexOf("|")||/\(\?/.test(g)||(g="(?:"+g+")")),g=g.replace(/\[+=|=\]+/g,"\\b")}t.exports=o,o.makeRe=function(e){try{return new RegExp(o(e))}catch(e){}},o.isMatch=function(e,t){try{return o.makeRe(t).test(e)}catch(e){return!1}},o.match=function(e,t){for(var r=e.length,n=0,i=e.slice(),s=o.makeRe(t);n3?e:1===s?o:("boolean"==typeof r&&!0===r&&(i.makeRe=!0),o.push(i),n.apply(null,o.concat(r)))}},{"fill-range":41}],38:[function(e,t,r){"use strict";e("is-extglob");var n,i={};function o(e,t,r){switch(r&&(e=s(e)),t){case"!":return"(?!"+e+")[^/]"+(r?"%%%~":"*?");case"@":return"(?:"+e+")";case"+":return"(?:"+e+")+";case"*":return"(?:"+e+")"+(r?"%%":"*");case"?":return"(?:"+e+"|)";default:return e}}function s(e){return e=(e=e.split("*").join("[^/]%%%~")).split(".").join("\\.")}t.exports=function(e,t){t=t||{};var r,a={},u=0,l=(e=(e=e.replace(/!\(([^\w*()])/g,"$1!(")).replace(/([*\/])\.!\([*]\)/g,function(e,t){return s("/"===t?"\\/[^.]+":"[^.]+")}))+String(!!t.regex)+String(!!t.contains)+String(!!t.escape);if(i.hasOwnProperty(l))return i[l];n instanceof RegExp||(n=/(\\?[@?!+*$]\\?)(\(([^()]*?)\))/);t.negate=!1;for(;r=n.exec(e);){var c=r[1],f=r[3];"!"===c&&(t.negate=!0);var p="__EXTGLOB_"+u+++"__";a[p]=o(f,c,t.escape),e=e.split(r[0]).join(p)}var d=Object.keys(a),h=d.length;for(;h--;){var m=d[h];e=e.split(m).join(a[m])}var g=t.regex?function(e,t,r){var n=t?"^":"";e="(?:"+e+")"+(t?"$":""),r&&(e=n+("(?!^"+e+").*$"));return new RegExp(n+e)}(e,t.contains,t.negate):e;return g=g.split(".").join("\\."),i[l]=g}},{"is-extglob":79}],39:[function(e,t,r){var n=e("path");t.exports={createFromFile:function(e){var t=n.basename(e),r=n.dirname(e);return this.create(t,r)},create:function(t,r){var n=e("fs"),i=e("flat-cache").load(t,r),o=e("object-assign"),s={},a=function(){i.keys().forEach(function(e){try{n.statSync(e)}catch(t){"ENOENT"===t.code&&i.removeKey(e)}})};return a(),{cache:i,hasFileChanged:function(e){return this.getFileDescriptor(e).changed},analyzeFiles:function(e){e=e||[];var t={changedFiles:[],notFoundFiles:[],notChangedFiles:[]};return this.normalizeEntries(e).forEach(function(e){e.changed?t.changedFiles.push(e.key):e.notFound?t.notFoundFiles.push(e.key):t.notChangedFiles.push(e.key)}),t},getFileDescriptor:function(e){var t,r=i.getKey(e),o=!!r;try{t=n.statSync(e)}catch(t){return this.removeEntry(e),{key:e,notFound:!0,err:t}}var a=t.size,u=t.mtime.getTime();if(r)var l=u!==r.mtime,c=a!==r.size;else r={size:a,mtime:u};return s[e]={key:e,changed:!o||l||c,meta:r}},getUpdatedFiles:function(e){return e=e||[],this.normalizeEntries(e).filter(function(e){return e.changed}).map(function(e){return e.key})},normalizeEntries:function(e){var t=this;return(e=e||[]).map(function(e){return t.getFileDescriptor(e)})},removeEntry:function(e){delete s[e],i.removeKey(e)},deleteCacheFile:function(){i.removeCacheFile()},destroy:function(){s={},i.destroy()},reconcile:function(){a();var e=s,t=Object.keys(e);0!==t.length&&(t.forEach(function(t){var r=e[t];try{var s=n.statSync(r.key),a=o(r.meta,{size:s.size,mtime:s.mtime.getTime()});i.setKey(t,a)}catch(e){if("ENOENT"!==e.code)throw e}}),i.save(!0))}}}}},{"flat-cache":42,fs:17,"object-assign":139,path:148}],40:[function(e,t,r){t.exports=function(){return/([^\\\/]+)$/}},{}],41:[function(e,t,r){"use strict";var n=e("isobject"),i=e("is-number"),o=e("randomatic"),s=e("repeat-string"),a=e("repeat-element");function u(e,t,r){"~"===t&&(t="-");var n=e.join(t),i=r&&r.regexPrefix;return"|"===t&&(n="("+(n=i?i+n:n)+")"),"-"===t&&(n="["+(n=i&&"^"===i?i+n:n)+"]"),[n]}function l(e,t,r,n,i){return function(e,t,r,n,i){return!i&&(n?e<=9&&t<=9:e|\||\+|\~/g.exec(r);if(S){var C=S.index,A=S[0];if("+"===A)return a(e,t);if("?"===A)return[o(e,t)];">"===A?(r=r.substr(0,C)+r.substr(C+1),v=!0):"|"===A?(r=r.substr(0,C)+r.substr(C+1),v=!0,b=!0,w=A):"~"===A&&(r=r.substr(0,C)+r.substr(C+1),v=!0,b=!0,w=A)}else if(!i(r)){if(!x.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(e)||/[.&*()[\]^%$#@!]/.test(t)){if(!x.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!f(e)||!f(t)||p(e)||p(t)){if(!x.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var E=i(d(e)),O=i(d(t));if(!E&&O||E&&!O){if(!x.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var j=E,M=function(e){return Math.abs(e>>0)||1}(r);j?(e=+e,t=+t):(e=e.charCodeAt(0),t=t.charCodeAt(0));var N=e>t;(e<0||t<0)&&(v=!1,b=!1);var R,P,I=function(e,t){if(h(e)||h(t)){var r=m(e),n=m(t),i=r>=n?r:n;return function(e){return s("0",i-m(e))}}return!1}(k,_),F=[],L=0;if(b&&function(e,t,r,n,i,o){if(n&&(e>9||t>9))return!1;return!i&&1===r&&e=t:e<=t;)I&&j&&(P=I(e)),null!==(R="function"==typeof y?y(e,j,P,L++):j?c(e,P):b&&(void 0,"\\"===(B=function(e){return String.fromCharCode(e)}(e))||"["===B||"]"===B||"^"===B||"("===B||")"===B||"`"===B)?null:String.fromCharCode(e))&&F.push(R),N?e-=M:e+=M;var B;if((b||v)&&!x.noexpand)return"|"!==w&&"~"!==w||(w=l(e,t,M,j,N)),1===F.length||e<0||t<0?F:u(F,w,x);return F}},{"is-number":81,isobject:90,randomatic:287,"repeat-element":305,"repeat-string":306}],42:[function(e,t,r){(function(r){var n=e("path"),i=e("graceful-fs"),o=e("del").sync,s=e("./utils"),a=s.writeJSON,u={load:function(e,t){var o=this;o._visited={},o._persisted={},o._pathToFile=t?n.resolve(t,e):n.resolve(r,"./.cache/",e),i.existsSync(o._pathToFile)&&(o._persisted=s.tryParse(o._pathToFile,{}))},loadFile:function(e){var t=n.dirname(e),r=n.basename(e);this.load(r,t)},all:function(){return this._persisted},keys:function(){return Object.keys(this._persisted)},setKey:function(e,t){this._visited[e]=!0,this._persisted[e]=t},removeKey:function(e){delete this._visited[e],delete this._persisted[e]},getKey:function(e){return this._visited[e]=!0,this._persisted[e]},_prune:function(){var e=this,t={},r=Object.keys(e._visited);0!==r.length&&(r.forEach(function(r){t[r]=e._persisted[r]}),e._visited={},e._persisted=t)},save:function(e){!e&&this._prune(),a(this._pathToFile,this._persisted)},removeCacheFile:function(){return o(this._pathToFile,{force:!0})},destroy:function(){this._visited={},this._persisted={},this.removeCacheFile()}};t.exports={load:function(e,t){return this.create(e,t)},create:function(e,t){var r=Object.create(u);return r.load(e,t),r},createFromFile:function(e){var t=Object.create(u);return t.loadFile(e),t},clearCacheById:function(e,t){var i=t?n.resolve(t,e):n.resolve(r,"./.cache/",e);return o(i,{force:!0}).length>0},clearAll:function(e){var t=e?n.resolve(e):n.resolve(r,"./.cache/");return o(t,{force:!0}).length>0}}}).call(this,"/node_modules/flat-cache")},{"./utils":46,del:43,"graceful-fs":61,path:148}],43:[function(e,t,r){"use strict";var n=e("path"),i=e("globby"),o=e("is-path-cwd"),s=e("is-path-in-cwd"),a=e("object-assign"),u=e("pinkie-promise"),l=e("pify"),c=e("rimraf"),f=l(c,u);function p(e){if(o(e))throw new Error("Cannot delete the current working directory. Can be overriden with the `force` option.");if(!s(e))throw new Error("Cannot delete files/folders outside the current working directory. Can be overriden with the `force` option.")}t.exports=function(e,t){var r=(t=a({},t)).force;delete t.force;var o=t.dryRun;return delete t.dryRun,i(e,t).then(function(e){return u.all(e.map(function(e){return r||p(e),e=n.resolve(t.cwd||"",e),o?u.resolve(e):f(e).then(function(){return e})}))})},t.exports.sync=function(e,t){var r=(t=a({},t)).force;delete t.force;var o=t.dryRun;return delete t.dryRun,i.sync(e,t).map(function(e){return r||p(e),e=n.resolve(t.cwd||"",e),o||c.sync(e),e})}},{globby:44,"is-path-cwd":82,"is-path-in-cwd":83,"object-assign":139,path:148,pify:45,"pinkie-promise":151,rimraf:309}],44:[function(e,t,r){"use strict";var n=e("pinkie-promise"),i=e("array-union"),o=e("object-assign"),s=e("glob"),a=e("arrify"),u=e("pify")(s,n).bind(s);function l(e){return"!"===e[0]}function c(e,t){var r=[];return e=a(e),t=o({cache:Object.create(null),statCache:Object.create(null),realpathCache:Object.create(null),symlinks:Object.create(null),ignore:[]},t),e.forEach(function(n,i){if(!l(n)){var s=e.slice(i).filter(l).map(function(e){return e.slice(1)});r.push({pattern:n,opts:o({},t,{ignore:t.ignore.concat(s)})})}}),r}t.exports=function(e,t){var r=c(e,t);return n.all(r.map(function(e){return u(e.pattern,e.opts)})).then(function(e){return i.apply(null,e)})},t.exports.sync=function(e,t){return c(e,t).reduce(function(e,t){return i(e,s.sync(t.pattern,t.opts))},[])},t.exports.generateGlobTasks=c},{"array-union":4,arrify:7,glob:55,"object-assign":139,pify:45,"pinkie-promise":151}],45:[function(e,t,r){"use strict";var n=function(e,t,r){return function(){for(var n=this,i=new Array(arguments.length),o=0;o=e.length)return r&&(r[h]=e),s(null,e);u.lastIndex=c;var n=u.exec(e);return d=f,f+=n[0],p=d+n[1],c=u.lastIndex,g[p]||r&&r[p]===p?t.nextTick(v):r&&Object.prototype.hasOwnProperty.call(r,p)?x(r[p]):o.lstat(p,b)}function b(e,n){if(e)return s(e);if(!n.isSymbolicLink())return g[p]=!0,r&&(r[p]=p),t.nextTick(v);if(!i){var a=n.dev.toString(32)+":"+n.ino.toString(32);if(m.hasOwnProperty(a))return w(null,m[a],p)}o.stat(p,function(e){if(e)return s(e);o.readlink(p,function(e,t){i||(m[a]=t),w(e,t)})})}function w(e,t,i){if(e)return s(e);var o=n.resolve(d,t);r&&(r[i]=o),x(o)}function x(t){e=n.resolve(t,e.slice(c)),y()}y()}}).call(this,e("_process"))},{_process:282,fs:17,path:148}],52:[function(e,t,r){"use strict";var n=e("path"),i=e("glob-parent"),o=e("is-glob");t.exports=function(e){if("string"!=typeof e)throw new TypeError("glob-base expects a string.");var t,r={};return r.base=i(e),r.isGlob=o(e),"."!==r.base?(r.glob=e.substr(r.base.length),"/"===r.glob.charAt(0)&&(r.glob=r.glob.substr(1))):r.glob=e,r.isGlob||(r.base="/"===(t=e).slice(-1)?t:n.dirname(t),r.glob="."!==r.base?e.substr(r.base.length):e),"./"===r.glob.substr(0,2)&&(r.glob=r.glob.substr(2)),"/"===r.glob.charAt(0)&&(r.glob=r.glob.substr(1)),r}},{"glob-parent":53,"is-glob":80,path:148}],53:[function(e,t,r){"use strict";var n=e("path"),i=e("is-glob");t.exports=function(e){e+="a";do{e=n.dirname(e)}while(i(e));return e}},{"is-glob":80,path:148}],54:[function(e,t,r){(function(t){function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}r.alphasort=l,r.alphasorti=u,r.setopts=function(e,r,o){o||(o={});if(o.matchBase&&-1===r.indexOf("/")){if(o.noglobstar)throw new Error("base matching requires globstar");r="**/"+r}e.silent=!!o.silent,e.pattern=r,e.strict=!1!==o.strict,e.realpath=!!o.realpath,e.realpathCache=o.realpathCache||Object.create(null),e.follow=!!o.follow,e.dot=!!o.dot,e.mark=!!o.mark,e.nodir=!!o.nodir,e.nodir&&(e.mark=!0);e.sync=!!o.sync,e.nounique=!!o.nounique,e.nonull=!!o.nonull,e.nosort=!!o.nosort,e.nocase=!!o.nocase,e.stat=!!o.stat,e.noprocess=!!o.noprocess,e.absolute=!!o.absolute,e.maxLength=o.maxLength||1/0,e.cache=o.cache||Object.create(null),e.statCache=o.statCache||Object.create(null),e.symlinks=o.symlinks||Object.create(null),function(e,t){e.ignore=t.ignore||[],Array.isArray(e.ignore)||(e.ignore=[e.ignore]);e.ignore.length&&(e.ignore=e.ignore.map(c))}(e,o),e.changedCwd=!1;var u=t.cwd();n(o,"cwd")?(e.cwd=i.resolve(o.cwd),e.changedCwd=e.cwd!==u):e.cwd=u;e.root=o.root||i.resolve(e.cwd,"/"),e.root=i.resolve(e.root),"win32"===t.platform&&(e.root=e.root.replace(/\\/g,"/"));e.cwdAbs=s(e.cwd)?e.cwd:f(e,e.cwd),"win32"===t.platform&&(e.cwdAbs=e.cwdAbs.replace(/\\/g,"/"));e.nomount=!!o.nomount,o.nonegate=!0,o.nocomment=!0,e.minimatch=new a(r,o),e.options=e.minimatch.options},r.ownProp=n,r.makeAbs=f,r.finish=function(e){for(var t=e.nounique,r=t?[]:Object.create(null),n=0,i=e.matches.length;n1)return!0;for(var i=0;ithis.maxLength)return t();if(!this.stat&&h(this.cache,r)){var o=this.cache[r];if(Array.isArray(o)&&(o="DIR"),!i||"DIR"===o)return t(null,o);if(i&&"FILE"===o)return t()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return t(null,s);var a=s.isDirectory()?"DIR":"FILE";return i&&"FILE"===a?t():t(null,a,s)}var u=this,l=m("stat\0"+r,function(i,o){if(o&&o.isSymbolicLink())return n.stat(r,function(n,i){n?u._stat2(e,r,null,o,t):u._stat2(e,r,n,i,t)});u._stat2(e,r,i,o,t)});l&&n.lstat(r,l)},x.prototype._stat2=function(e,t,r,n,i){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,i();var o="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return i(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,o&&"FILE"===s?i():i(null,s,n)}}).call(this,e("_process"))},{"./common.js":54,"./sync.js":56,_process:282,assert:8,events:34,fs:17,"fs.realpath":50,inflight:71,inherits:72,minimatch:133,once:141,path:148,"path-is-absolute":149,util:610}],56:[function(e,t,r){(function(r){t.exports=h,h.GlobSync=m;var n=e("fs"),i=e("fs.realpath"),o=e("minimatch"),s=(o.Minimatch,e("./glob.js").Glob,e("util"),e("path")),a=e("assert"),u=e("path-is-absolute"),l=e("./common.js"),c=(l.alphasort,l.alphasorti,l.setopts),f=l.ownProp,p=l.childrenIgnored,d=l.isIgnored;function h(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new m(e,t).found}function m(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof m))return new m(e,t);if(c(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&f(this.cache,t)){var i=this.cache[t];if(Array.isArray(i)&&(i="DIR"),!r||"DIR"===i)return i;if(r&&"FILE"===i)return!1}var o=this.statCache[t];if(!o){var s;try{s=n.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{o=n.statSync(t)}catch(e){o=s}else o=s}this.statCache[t]=o;i=!0;return o&&(i=o.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||i,(!r||"FILE"!==i)&&i},m.prototype._mark=function(e){return l.mark(this,e)},m.prototype._makeAbs=function(e){return l.makeAbs(this,e)}}).call(this,e("_process"))},{"./common.js":54,"./glob.js":55,_process:282,assert:8,fs:17,"fs.realpath":50,minimatch:133,path:148,"path-is-absolute":149,util:610}],57:[function(e,t,r){"use strict";var n=e("pinkie-promise"),i=e("array-union"),o=e("object-assign"),s=e("glob"),a=e("pify")(s,n).bind(s);function u(e){return"!"===e[0]}function l(e){return"string"==typeof e}function c(e,t){!function(e){if(!e.every(l))throw new TypeError("patterns must be a string or an array of strings")}(e=[].concat(e));var r=[];return t=o({cache:Object.create(null),statCache:Object.create(null),realpathCache:Object.create(null),symlinks:Object.create(null),ignore:[]},t),e.forEach(function(n,i){if(!u(n)){var s=e.slice(i).filter(u).map(function(e){return e.slice(1)});r.push({pattern:n,opts:o({},t,{ignore:t.ignore.concat(s)})})}}),r}t.exports=function(e,t){var r;try{r=c(e,t)}catch(e){return n.reject(e)}return n.all(r.map(function(e){return a(e.pattern,e.opts)})).then(function(e){return i.apply(null,e)})},t.exports.sync=function(e,t){return c(e,t).reduce(function(e,t){return i(e,s.sync(t.pattern,t.opts))},[])},t.exports.generateGlobTasks=c,t.exports.hasMagic=function(e,t){return[].concat(e).some(function(e){return s.hasMagic(e,t)})}},{"array-union":4,glob:55,"object-assign":139,pify:58,"pinkie-promise":151}],58:[function(e,t,r){arguments[4][45][0].apply(r,arguments)},{dup:45}],59:[function(e,t,r){"use strict";var n=e("path"),i=Array.prototype.slice;function o(e,t){return Array.isArray(e)?e.reduce(function(e,r){return e.concat(t(r))},[]):t(e)}t.exports=function(){return i.call(arguments,0).reduce(function(e,t){return o(e,function(e){return o(t,function(t){return function(e,t){var r;return"!"===t[0]?(r=t.substr(1),("!"===e[0]?"":"!")+n.join(e,r)):n.join(e,t)}(e,t)})})},"")}},{path:148}],60:[function(e,t,r){"use strict";var n=e("fs");t.exports=function(e){if(null===e||"object"!=typeof e)return e;if(e instanceof Object)var t={__proto__:e.__proto__};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}(n)},{fs:17}],61:[function(e,t,r){(function(r){var n=e("fs"),i=e("./polyfills.js"),o=e("./legacy-streams.js"),s=[],a=e("util");var u,l,c=function(){};function f(e){i(e),e.gracefulify=f,e.FileReadStream=m,e.FileWriteStream=g,e.createReadStream=function(e,t){return new m(e,t)},e.createWriteStream=function(e,t){return new g(e,t)};var t=e.readFile;e.readFile=function(e,r,n){"function"==typeof r&&(n=r,r=null);return function e(r,n,i){return t(r,n,function(t){!t||"EMFILE"!==t.code&&"ENFILE"!==t.code?("function"==typeof i&&i.apply(this,arguments),d()):p([e,[r,n,i]])})}(e,r,n)};var n=e.writeFile;e.writeFile=function(e,t,r,i){"function"==typeof r&&(i=r,r=null);return function e(t,r,i,o){return n(t,r,i,function(n){!n||"EMFILE"!==n.code&&"ENFILE"!==n.code?("function"==typeof o&&o.apply(this,arguments),d()):p([e,[t,r,i,o]])})}(e,t,r,i)};var s=e.appendFile;s&&(e.appendFile=function(e,t,r,n){"function"==typeof r&&(n=r,r=null);return function e(t,r,n,i){return s(t,r,n,function(o){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),d()):p([e,[t,r,n,i]])})}(e,t,r,n)});var a=e.readdir;function u(t){return a.apply(e,t)}if(e.readdir=function(e,t,r){var n=[e];"function"!=typeof t?n.push(t):r=t;return n.push(function(e,t){t&&t.sort&&t.sort(),!e||"EMFILE"!==e.code&&"ENFILE"!==e.code?("function"==typeof r&&r.apply(this,arguments),d()):p([u,[n]])}),u(n)},"v0.8"===r.version.substr(0,4)){var l=o(e);m=l.ReadStream,g=l.WriteStream}var c=e.ReadStream;m.prototype=Object.create(c.prototype),m.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,function(t,r){t?(e.autoClose&&e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r),e.read())})};var h=e.WriteStream;function m(e,t){return this instanceof m?(c.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function g(e,t){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}g.prototype=Object.create(h.prototype),g.prototype.open=function(){var e=this;v(e.path,e.flags,e.mode,function(t,r){t?(e.destroy(),e.emit("error",t)):(e.fd=r,e.emit("open",r))})},e.ReadStream=m,e.WriteStream=g;var y=e.open;function v(e,t,r,n){return"function"==typeof r&&(n=r,r=null),function e(t,r,n,i){return y(t,r,n,function(o,s){!o||"EMFILE"!==o.code&&"ENFILE"!==o.code?("function"==typeof i&&i.apply(this,arguments),d()):p([e,[t,r,n,i]])})}(e,t,r,n)}return e.open=v,e}function p(e){c("ENQUEUE",e[0].name,e[1]),s.push(e)}function d(){var e=s.shift();e&&(c("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}a.debuglog?c=a.debuglog("gfs4"):/\bgfs4\b/i.test(r.env.NODE_DEBUG||"")&&(c=function(){var e=a.format.apply(a,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: "),console.error(e)}),/\bgfs4\b/i.test(r.env.NODE_DEBUG||"")&&r.on("exit",function(){c(s),e("assert").equal(s.length,0)}),t.exports=f(e("./fs.js")),r.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&(t.exports=f(n)),t.exports.close=n.close=(u=n.close,function(e,t){return u.call(n,e,function(e){e||d(),"function"==typeof t&&t.apply(this,arguments)})}),t.exports.closeSync=n.closeSync=(l=n.closeSync,function(e){var t=l.apply(n,arguments);return d(),t})}).call(this,e("_process"))},{"./fs.js":60,"./legacy-streams.js":62,"./polyfills.js":63,_process:282,assert:8,fs:17,util:610}],62:[function(e,t,r){(function(r){var n=e("stream").Stream;t.exports=function(e){return{ReadStream:function t(i,o){if(!(this instanceof t))return new t(i,o);n.call(this);var s=this;this.path=i;this.fd=null;this.readable=!0;this.paused=!1;this.flags="r";this.mode=438;this.bufferSize=65536;o=o||{};var a=Object.keys(o);for(var u=0,l=a.length;uthis.end)throw new Error("start must be <= end");this.pos=this.start}if(null!==this.fd)return void r.nextTick(function(){s._read()});e.open(this.path,this.flags,this.mode,function(e,t){if(e)return s.emit("error",e),void(s.readable=!1);s.fd=t,s.emit("open",t),s._read()})},WriteStream:function t(r,i){if(!(this instanceof t))return new t(r,i);n.call(this);this.path=r;this.fd=null;this.writable=!0;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;i=i||{};var o=Object.keys(i);for(var s=0,a=o.length;s= zero");this.pos=this.start}this.busy=!1;this._queue=[];null===this.fd&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}}}).call(this,e("_process"))},{_process:282,stream:323}],63:[function(e,t,r){(function(r){var n=e("./fs.js"),i=e("constants"),o=r.cwd,s=null,a=r.env.GRACEFUL_FS_PLATFORM||r.platform;r.cwd=function(){return s||(s=o.call(r)),s};try{r.cwd()}catch(e){}var u=r.chdir;function l(e){return e?function(t,r,i){return e.call(n,t,r,function(e){m(e)&&(e=null),i&&i.apply(this,arguments)})}:e}function c(e){return e?function(t,r){try{return e.call(n,t,r)}catch(e){if(!m(e))throw e}}:e}function f(e){return e?function(t,r,i,o){return e.call(n,t,r,i,function(e){m(e)&&(e=null),o&&o.apply(this,arguments)})}:e}function p(e){return e?function(t,r,i){try{return e.call(n,t,r,i)}catch(e){if(!m(e))throw e}}:e}function d(e){return e?function(t,r){return e.call(n,t,function(e,t){if(!t)return r.apply(this,arguments);t.uid<0&&(t.uid+=4294967296),t.gid<0&&(t.gid+=4294967296),r&&r.apply(this,arguments)})}:e}function h(e){return e?function(t){var r=e.call(n,t);return r.uid<0&&(r.uid+=4294967296),r.gid<0&&(r.gid+=4294967296),r}:e}function m(e){return!e||("ENOSYS"===e.code||!(r.getuid&&0===r.getuid()||"EINVAL"!==e.code&&"EPERM"!==e.code))}r.chdir=function(e){s=null,u.call(r,e)},t.exports=function(e){i.hasOwnProperty("O_SYMLINK")&&r.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,r,n){e.open(t,i.O_WRONLY|i.O_SYMLINK,r,function(t,i){t?n&&n(t):e.fchmod(i,r,function(t){e.close(i,function(e){n&&n(t||e)})})})},e.lchmodSync=function(t,r){var n,o=e.openSync(t,i.O_WRONLY|i.O_SYMLINK,r),s=!0;try{n=e.fchmodSync(o,r),s=!1}finally{if(s)try{e.closeSync(o)}catch(e){}else e.closeSync(o)}return n}}(e);e.lutimes||function(e){i.hasOwnProperty("O_SYMLINK")?(e.lutimes=function(t,r,n,o){e.open(t,i.O_SYMLINK,function(t,i){t?o&&o(t):e.futimes(i,r,n,function(t){e.close(i,function(e){o&&o(t||e)})})})},e.lutimesSync=function(t,r,n){var o,s=e.openSync(t,i.O_SYMLINK),a=!0;try{o=e.futimesSync(s,r,n),a=!1}finally{if(a)try{e.closeSync(s)}catch(e){}else e.closeSync(s)}return o}):(e.lutimes=function(e,t,n,i){i&&r.nextTick(i)},e.lutimesSync=function(){})}(e);e.chown=f(e.chown),e.fchown=f(e.fchown),e.lchown=f(e.lchown),e.chmod=l(e.chmod),e.fchmod=l(e.fchmod),e.lchmod=l(e.lchmod),e.chownSync=p(e.chownSync),e.fchownSync=p(e.fchownSync),e.lchownSync=p(e.lchownSync),e.chmodSync=c(e.chmodSync),e.fchmodSync=c(e.fchmodSync),e.lchmodSync=c(e.lchmodSync),e.stat=d(e.stat),e.fstat=d(e.fstat),e.lstat=d(e.lstat),e.statSync=h(e.statSync),e.fstatSync=h(e.fstatSync),e.lstatSync=h(e.lstatSync),e.lchmod||(e.lchmod=function(e,t,n){n&&r.nextTick(n)},e.lchmodSync=function(){});e.lchown||(e.lchown=function(e,t,n,i){i&&r.nextTick(i)},e.lchownSync=function(){});"win32"===a&&(e.rename=(t=e.rename,function(r,n,i){var o=Date.now(),s=0;t(r,n,function a(u){if(u&&("EACCES"===u.code||"EPERM"===u.code)&&Date.now()-o<6e4)return setTimeout(function(){e.stat(n,function(e,o){e&&"ENOENT"===e.code?t(r,n,a):i(u)})},s),void(s<100&&(s+=10));i&&i(u)})}));var t;e.read=(o=e.read,function(t,r,n,i,s,a){var u;if(a&&"function"==typeof a){var l=0;u=function(c,f,p){if(c&&"EAGAIN"===c.code&&l<10)return l++,o.call(e,t,r,n,i,s,u);a.apply(this,arguments)}}return o.call(e,t,r,n,i,s,u)}),e.readSync=(n=e.readSync,function(t,r,i,o,s){for(var a=0;;)try{return n.call(e,t,r,i,o,s)}catch(e){if("EAGAIN"===e.code&&a<10){a++;continue}throw e}});var n;var o}}).call(this,e("_process"))},{"./fs.js":60,_process:282,constants:22}],64:[function(e,t,r){"use strict";var n=e("ansi-regex"),i=new RegExp(n().source);t.exports=i.test.bind(i)},{"ansi-regex":1}],65:[function(e,t,r){t.exports=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"]},{}],66:[function(e,t,r){"use strict";t.exports=e("./html-tags.json")},{"./html-tags.json":65}],67:[function(e,t,r){r.read=function(e,t,r,n,i){var o,s,a=8*i-n-1,u=(1<>1,c=-7,f=r?i-1:0,p=r?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-c)-1,d>>=-c,c+=a;c>0;o=256*o+e[t+f],f+=p,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+e[t+f],f+=p,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=l}return(d?-1:1)*s*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var s,a,u,l=8*o-i-1,c=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,h=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(s++,u/=2),s+f>=c?(a=0,s=c):s+f>=1?(a=(t*u-1)*Math.pow(2,i),s+=f):(a=t*Math.pow(2,f-1)*Math.pow(2,i),s=0));i>=8;e[r+d]=255&a,d+=h,a/=256,i-=8);for(s=s<0;e[r+d]=255&s,d+=h,s/=256,l-=8);e[r+d-h]|=128*m}},{}],68:[function(e,t,r){(function(e){"use strict";var r=function(){function e(e,t){for(var r=0;r0&&i.hash(t),i!==this)return i}r.prototype.hash=function(e){var t,r,n,i,o;switch(o=e.length,this.len+=o,r=this.k1,n=0,this.rem){case 0:r^=o>n?65535&e.charCodeAt(n++):0;case 1:r^=o>n?(65535&e.charCodeAt(n++))<<8:0;case 2:r^=o>n?(65535&e.charCodeAt(n++))<<16:0;case 3:r^=o>n?(255&e.charCodeAt(n))<<24:0,r^=o>n?(65280&e.charCodeAt(n++))>>8:0}if(this.rem=o+this.rem&3,(o-=this.rem)>0){for(t=this.h1;t=5*(t=(t^=r=13715*(r=(r=11601*r+3432906752*(65535&r)&4294967295)<<15|r>>>17)+461832192*(65535&r)&4294967295)<<13|t>>>19)+3864292196&4294967295,!(n>=o);)r=65535&e.charCodeAt(n++)^(65535&e.charCodeAt(n++))<<8^(65535&e.charCodeAt(n++))<<16,r^=(255&(i=e.charCodeAt(n++)))<<24^(65280&i)>>8;switch(r=0,this.rem){case 3:r^=(65535&e.charCodeAt(n+2))<<16;case 2:r^=(65535&e.charCodeAt(n+1))<<8;case 1:r^=65535&e.charCodeAt(n)}this.h1=t}return this.k1=r,this},r.prototype.result=function(){var e,t;return e=this.k1,t=this.h1,e>0&&(t^=e=13715*(e=(e=11601*e+3432906752*(65535&e)&4294967295)<<15|e>>>17)+461832192*(65535&e)&4294967295),t^=this.len,t=51819*(t^=t>>>16)+2246770688*(65535&t)&4294967295,t=44597*(t^=t>>>13)+3266445312*(65535&t)&4294967295,(t^=t>>>16)>>>0},r.prototype.reset=function(e){return this.h1="number"==typeof e?e:0,this.rem=this.k1=this.len=0,this},e=new r,void 0!==t?t.exports=r:this.MurmurHash3=r}()},{}],70:[function(e,t,r){t.exports=function(e,t){for(var r=-1,n=[];-1!==(r=e.indexOf(t,r+1));)n.push(r);return n}},{}],71:[function(e,t,r){(function(r){var n=e("wrappy"),i=Object.create(null),o=e("once");t.exports=n(function(e,t){return i[e]?(i[e].push(t),null):(i[e]=[t],function(e){return o(function t(){var n=i[e],o=n.length,s=function(e){for(var t=e.length,r=[],n=0;no?(n.splice(0,o),r.nextTick(function(){t.apply(null,s)})):delete i[e]}})}(e))})}).call(this,e("_process"))},{_process:282,once:141,wrappy:611}],72:[function(e,t,r){arguments[4][9][0].apply(r,arguments)},{dup:9}],73:[function(e,t,r){"use strict";t.exports=function(e){return!!e&&(e instanceof Array||Array.isArray(e)||e.length>=0&&e.splice instanceof Function)}},{}],74:[function(e,t,r){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],75:[function(e,t,r){"use strict";var n=e("fs");function i(e,t){if("function"!=typeof t)throw new Error("expected a callback function");"string"==typeof e?n.stat(e,function(e,r){if(e)return"ENOENT"===e.code?void t(null,!1):void t(e);t(null,r.isDirectory())}):t(new Error("expected filepath to be a string"))}i.sync=function(e){if("string"!=typeof e)throw new Error("expected filepath to be a string");try{return n.statSync(e).isDirectory()}catch(e){if("ENOENT"===e.code)return!1;throw e}return!1},t.exports=i},{fs:17}],76:[function(e,t,r){t.exports=function(e){if(46===e.charCodeAt(0)&&-1===e.indexOf("/",1))return!0;var t=e.lastIndexOf("/");return-1!==t&&46===e.charCodeAt(t+1)}},{}],77:[function(e,t,r){"use strict";var n=e("is-primitive");t.exports=function(e,t){if(!e&&!t)return!0;if(!e&&t||e&&!t)return!1;var r,i=0,o=0;for(r in t)if(o++,!n(t[r])||!e.hasOwnProperty(r)||e[r]!==t[r])return!1;for(r in e)i++;return i===o}},{"is-primitive":86}],78:[function(e,t,r){"use strict";t.exports=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)}},{}],79:[function(e,t,r){t.exports=function(e){return"string"==typeof e&&/[@?!+*]\(/.test(e)}},{}],80:[function(e,t,r){var n=e("is-extglob");t.exports=function(e){return"string"==typeof e&&(/[*!?{}(|)[\]]/.test(e)||n(e))}},{"is-extglob":79}],81:[function(e,t,r){"use strict";var n=e("kind-of");t.exports=function(e){var t=n(e);if("number"!==t&&"string"!==t)return!1;var r=+e;return r-r+1>=0&&""!==e}},{"kind-of":122}],82:[function(e,t,r){(function(r){"use strict";var n=e("path");t.exports=function(e){return n.resolve(e)===n.resolve(r.cwd())}}).call(this,e("_process"))},{_process:282,path:148}],83:[function(e,t,r){(function(r){"use strict";var n=e("is-path-inside");t.exports=function(e){return n(e,r.cwd())}}).call(this,e("_process"))},{_process:282,"is-path-inside":84}],84:[function(e,t,r){"use strict";var n=e("path"),i=e("path-is-inside");t.exports=function(e,t){return(e=n.resolve(e))!==(t=n.resolve(t))&&i(e,t)}},{path:148,"path-is-inside":150}],85:[function(e,t,r){t.exports=function(e){return"string"==typeof e&&/\[([:.=+])(?:[^\[\]]|)+\1\]/.test(e)}},{}],86:[function(e,t,r){"use strict";t.exports=function(e){return null==e||"function"!=typeof e&&"object"!=typeof e}},{}],87:[function(e,t,r){"use strict";t.exports=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}},{}],88:[function(e,t,r){"use strict";t.exports=function(e){var t=!0;try{new RegExp("",e)}catch(e){t=!1}return t}},{}],89:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],90:[function(e,t,r){"use strict";var n=e("isarray");t.exports=function(e){return null!=e&&"object"==typeof e&&!1===n(e)}},{isarray:89}],91:[function(e,t,r){(function(n){!function(e,n){"object"==typeof r&&void 0!==t?t.exports=n(e):"function"==typeof define&&define.amd?define(n):n(e)}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:this,function(r){"use strict";var n,i=r.Base64;if(void 0!==t&&t.exports)try{n=e("buffer").Buffer}catch(e){}var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=function(e){for(var t={},r=0,n=e.length;r>>6)+a(128|63&t):a(224|t>>>12&15)+a(128|t>>>6&63)+a(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return a(240|t>>>18&7)+a(128|t>>>12&63)+a(128|t>>>6&63)+a(128|63&t)},l=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,c=function(e){return e.replace(l,u)},f=function(e){var t=[0,2,1][e.length%3],r=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[o.charAt(r>>>18),o.charAt(r>>>12&63),t>=2?"=":o.charAt(r>>>6&63),t>=1?"=":o.charAt(63&r)].join("")},p=r.btoa?function(e){return r.btoa(e)}:function(e){return e.replace(/[\s\S]{1,3}/g,f)},d=n?n.from&&Uint8Array&&n.from!==Uint8Array.from?function(e){return(e.constructor===n.constructor?e:n.from(e)).toString("base64")}:function(e){return(e.constructor===n.constructor?e:new n(e)).toString("base64")}:function(e){return p(c(e))},h=function(e,t){return t?d(String(e)).replace(/[+\/]/g,function(e){return"+"==e?"-":"_"}).replace(/=/g,""):d(String(e))},m=new RegExp(["[À-ß][€-¿]","[à-ï][€-¿]{2}","[ð-÷][€-¿]{3}"].join("|"),"g"),g=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return a(55296+(t>>>10))+a(56320+(1023&t));case 3:return a((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return a((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},y=function(e){return e.replace(m,g)},v=function(e){var t=e.length,r=t%4,n=(t>0?s[e.charAt(0)]<<18:0)|(t>1?s[e.charAt(1)]<<12:0)|(t>2?s[e.charAt(2)]<<6:0)|(t>3?s[e.charAt(3)]:0),i=[a(n>>>16),a(n>>>8&255),a(255&n)];return i.length-=[0,0,2,1][r],i.join("")},b=r.atob?function(e){return r.atob(e)}:function(e){return e.replace(/[\s\S]{1,4}/g,v)},w=n?n.from&&Uint8Array&&n.from!==Uint8Array.from?function(e){return(e.constructor===n.constructor?e:n.from(e,"base64")).toString()}:function(e){return(e.constructor===n.constructor?e:new n(e,"base64")).toString()}:function(e){return y(b(e))},x=function(e){return w(String(e).replace(/[-_]/g,function(e){return"-"==e?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};if(r.Base64={VERSION:"2.4.6",atob:b,btoa:p,fromBase64:x,toBase64:h,utob:c,encode:h,encodeURI:function(e){return h(e,!0)},btou:y,decode:x,noConflict:function(){var e=r.Base64;return r.Base64=i,e}},"function"==typeof Object.defineProperty){var k=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};r.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",k(function(){return x(this)})),Object.defineProperty(String.prototype,"toBase64",k(function(e){return h(this,e)})),Object.defineProperty(String.prototype,"toBase64URI",k(function(){return h(this,!0)}))}}return r.Meteor&&(Base64=r.Base64),void 0!==t&&t.exports?t.exports.Base64=r.Base64:"function"==typeof define&&define.amd&&define([],function(){return r.Base64}),{Base64:r.Base64}})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{buffer:18}],92:[function(e,t,r){"use strict";var n=e("./lib/js-yaml.js");t.exports=n},{"./lib/js-yaml.js":93}],93:[function(e,t,r){"use strict";var n=e("./js-yaml/loader"),i=e("./js-yaml/dumper");function o(e){return function(){throw new Error("Function "+e+" is deprecated and cannot be used.")}}t.exports.Type=e("./js-yaml/type"),t.exports.Schema=e("./js-yaml/schema"),t.exports.FAILSAFE_SCHEMA=e("./js-yaml/schema/failsafe"),t.exports.JSON_SCHEMA=e("./js-yaml/schema/json"),t.exports.CORE_SCHEMA=e("./js-yaml/schema/core"),t.exports.DEFAULT_SAFE_SCHEMA=e("./js-yaml/schema/default_safe"),t.exports.DEFAULT_FULL_SCHEMA=e("./js-yaml/schema/default_full"),t.exports.load=n.load,t.exports.loadAll=n.loadAll,t.exports.safeLoad=n.safeLoad,t.exports.safeLoadAll=n.safeLoadAll,t.exports.dump=i.dump,t.exports.safeDump=i.safeDump,t.exports.YAMLException=e("./js-yaml/exception"),t.exports.MINIMAL_SCHEMA=e("./js-yaml/schema/failsafe"),t.exports.SAFE_SCHEMA=e("./js-yaml/schema/default_safe"),t.exports.DEFAULT_SCHEMA=e("./js-yaml/schema/default_full"),t.exports.scan=o("scan"),t.exports.parse=o("parse"),t.exports.compose=o("compose"),t.exports.addConstructor=o("addConstructor")},{"./js-yaml/dumper":95,"./js-yaml/exception":96,"./js-yaml/loader":97,"./js-yaml/schema":99,"./js-yaml/schema/core":100,"./js-yaml/schema/default_full":101,"./js-yaml/schema/default_safe":102,"./js-yaml/schema/failsafe":103,"./js-yaml/schema/json":104,"./js-yaml/type":105}],94:[function(e,t,r){"use strict";function n(e){return null==e}t.exports.isNothing=n,t.exports.isObject=function(e){return"object"==typeof e&&null!==e},t.exports.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},t.exports.repeat=function(e,t){var r,n="";for(r=0;rn&&" "!==e[N+1],N=o);else if(!T(s))return W;R=R&&D(s)}l=l||f&&o-N-1>n&&" "!==e[N+1]}return u||l?r>9&&U(e)?W:l?G:q:R&&!i(e)?z:$}function V(e,t,r,n){e.dump=function(){if(0===t.length)return"''";if(!e.noCompatMode&&-1!==R.indexOf(t))return"'"+t+"'";var o=e.indent*Math.max(1,r),s=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=n||e.flowLevel>-1&&r>=e.flowLevel;switch(K(t,a,e.indent,s,function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r"+H(t,e.indent)+Y(F(function(e,t){var r,n,i=/(\n+)([^\n]*)/g,o=(a=e.indexOf("\n"),a=-1!==a?a:e.length,i.lastIndex=a,J(e.slice(0,a),t)),s="\n"===e[0]||" "===e[0];var a;for(;n=i.exec(e);){var u=n[1],l=n[2];r=" "===l[0],o+=u+(s||r||""===l?"":"\n")+J(l,t),s=r}return o}(t,s),o));case W:return'"'+function(e){for(var t,r,n,i="",o=0;o=55296&&t<=56319&&(r=e.charCodeAt(o+1))>=56320&&r<=57343?(i+=P(1024*(t-55296)+r-56320+65536),o++):(n=N[t],i+=!n&&T(t)?e[o]:n||P(t));return i}(t)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function H(e,t){var r=U(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function Y(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function J(e,t){if(""===e||" "===e[0])return e;for(var r,n,i=/ [^ ]/g,o=0,s=0,a=0,u="";r=i.exec(e);)(a=r.index)-o>t&&(n=s>o?s:a,u+="\n"+e.slice(o,n),o=n+1),s=a;return u+="\n",e.length-o>t&&s>o?u+=e.slice(o,s)+"\n"+e.slice(s+1):u+=e.slice(o),u.slice(1)}function Z(e,t,r){var n,o,s,l,c,f;for(s=0,l=(o=r?e.explicitTypes:e.implicitTypes).length;s tag resolver accepts not "'+f+'" style');n=c.represent[f](t,f)}e.dump=n}return!0}return!1}function Q(e,t,r,n,o,s){e.tag=null,e.dump=r,Z(e,r,!1)||Z(e,r,!0);var u=a.call(e.dump);n&&(n=e.flowLevel<0||e.flowLevel>t);var l,f,p="[object Object]"===u||"[object Array]"===u;if(p&&(f=-1!==(l=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||f||2!==e.indent&&t>0)&&(o=!1),f&&e.usedDuplicates[l])e.dump="*ref_"+l;else{if(p&&f&&!e.usedDuplicates[l]&&(e.usedDuplicates[l]=!0),"[object Object]"===u)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var o,s,a,u,l,f,p="",d=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new i("sortKeys must be a boolean or a function");for(o=0,s=h.length;o1024)&&(e.dump&&c===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,l&&(f+=L(e,t)),Q(e,t+1,u,!0,l)&&(e.dump&&c===e.dump.charCodeAt(0)?f+=":":f+=": ",p+=f+=e.dump));e.tag=d,e.dump=p||"{}"}(e,t,e.dump,o),f&&(e.dump="&ref_"+l+e.dump)):(!function(e,t,r){var n,i,o,s,a,u="",l=e.tag,c=Object.keys(r);for(n=0,i=c.length;n1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Q(e,t,s,!1,!1)&&(u+=a+=e.dump));e.tag=l,e.dump="{"+u+"}"}(e,t,e.dump),f&&(e.dump="&ref_"+l+" "+e.dump));else if("[object Array]"===u)n&&0!==e.dump.length?(!function(e,t,r,n){var i,o,s="",a=e.tag;for(i=0,o=r.length;i "+e.dump)}return!0}function X(e,t){var r,n,i=[],o=[];for(function e(t,r,n){var i,o,s;if(null!==t&&"object"==typeof t)if(-1!==(o=r.indexOf(t)))-1===n.indexOf(o)&&n.push(o);else if(r.push(t),Array.isArray(t))for(o=0,s=t.length;o>10),56320+(e-65536&1023))}for(var O=new Array(256),j=new Array(256),M=0;M<256;M++)O[M]=A(M)?1:0,j[M]=A(M);function N(e,t){return new i(t,new o(e.filename,e.input,e.position,e.line,e.position-e.lineStart))}function R(e,t){throw N(e,t)}function P(e,t){e.onWarning&&e.onWarning.call(null,N(e,t))}var I={YAML:function(e,t,r){var n,i,o;null!==e.version&&R(e,"duplication of %YAML directive"),1!==r.length&&R(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&R(e,"ill-formed argument of the YAML directive"),i=parseInt(n[1],10),o=parseInt(n[2],10),1!==i&&R(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=o<2,1!==o&&2!==o&&P(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,i;2!==r.length&&R(e,"TAG directive accepts exactly two arguments"),n=r[0],i=r[1],b.test(n)||R(e,"ill-formed tag handle (first argument) of the TAG directive"),u.call(e.tagMap,n)&&R(e,'there is a previously declared suffix for "'+n+'" tag handle'),w.test(i)||R(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagMap[n]=i}};function F(e,t,r,n){var i,o,s,a;if(t1&&(e.result+=n.repeat("\n",t-1))}function $(e,t){var r,n,i=e.tag,o=e.anchor,s=[],a=!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=s),n=e.input.charCodeAt(e.position);0!==n&&45===n&&_(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,D(e,!0,-1)&&e.lineIndent<=t)s.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,W(e,t,f,!1,!0),s.push(e.result),D(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)R(e,"bad indentation of a sequence entry");else if(e.lineIndentt?M=1:e.lineIndent===t?M=0:e.lineIndentt?M=1:e.lineIndent===t?M=0:e.lineIndentt)&&(W(e,t,p,!0,i)&&(y?m=e.result:g=e.result),y||(B(e,f,d,h,m,g,o,s),h=m=g=null),D(e,!0,-1),a=e.input.charCodeAt(e.position)),e.lineIndent>t&&0!==a)R(e,"bad indentation of a mapping entry");else if(e.lineIndent=0))break;0===o?R(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?R(e,"repeat of an indentation width identifier"):(f=t+o-1,c=!0)}if(k(s)){do{s=e.input.charCodeAt(++e.position)}while(k(s));if(35===s)do{s=e.input.charCodeAt(++e.position)}while(!x(s)&&0!==s)}for(;0!==s;){for(T(e),e.lineIndent=0,s=e.input.charCodeAt(e.position);(!c||e.lineIndentf&&(f=e.lineIndent),x(s))p++;else{if(e.lineIndent0){for(i=s,o=0;i>0;i--)(s=C(a=e.input.charCodeAt(++e.position)))>=0?o=(o<<4)+s:R(e,"expected hexadecimal character");e.result+=E(o),e.position++}else R(e,"unknown escape sequence");r=n=e.position}else x(a)?(F(e,r,n,!0),z(e,D(e,!1,t)),r=n=e.position):e.position===e.lineStart&&U(e)?R(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}R(e,"unexpected end of the stream within a double quoted scalar")}(e,w)?P=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!_(n)&&!S(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&R(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(r)||R(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],D(e,!0,-1),!0}(e)?function(e,t,r){var n,i,o,s,a,u,l,c,f=e.kind,p=e.result;if(_(c=e.input.charCodeAt(e.position))||S(c)||35===c||38===c||42===c||33===c||124===c||62===c||39===c||34===c||37===c||64===c||96===c)return!1;if((63===c||45===c)&&(_(n=e.input.charCodeAt(e.position+1))||r&&S(n)))return!1;for(e.kind="scalar",e.result="",i=o=e.position,s=!1;0!==c;){if(58===c){if(_(n=e.input.charCodeAt(e.position+1))||r&&S(n))break}else if(35===c){if(_(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&U(e)||r&&S(c))break;if(x(c)){if(a=e.line,u=e.lineStart,l=e.lineIndent,D(e,!1,-1),e.lineIndent>=t){s=!0,c=e.input.charCodeAt(e.position);continue}e.position=o,e.line=a,e.lineStart=u,e.lineIndent=l;break}}s&&(F(e,i,o,!1),z(e,e.line-a),i=o=e.position,s=!1),k(c)||(o=e.position+1),c=e.input.charCodeAt(++e.position)}return F(e,i,o,!1),!!e.result||(e.kind=f,e.result=p,!1)}(e,w,l===r)&&(P=!0,null===e.tag&&(e.tag="?")):(P=!0,null===e.tag&&null===e.anchor||R(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===M&&(P=g&&$(e,A))),null!==e.tag&&"!"!==e.tag)if("?"===e.tag){for(y=0,v=e.implicitTypes.length;y tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result)?(e.result=b.construct(e.result),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):R(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):R(e,"unknown tag !<"+e.tag+">");return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||P}function K(e){var t,r,n,i,o=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};0!==(i=e.input.charCodeAt(e.position))&&(D(e,!0,-1),i=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==i));){for(s=!0,i=e.input.charCodeAt(++e.position),t=e.position;0!==i&&!_(i);)i=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&R(e,"directive name must not be less than one character in length");0!==i;){for(;k(i);)i=e.input.charCodeAt(++e.position);if(35===i){do{i=e.input.charCodeAt(++e.position)}while(0!==i&&!x(i));break}if(x(i))break;for(t=e.position;0!==i&&!_(i);)i=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==i&&T(e),u.call(I,r)?I[r](e,r,n):P(e,'unknown document directive "'+r+'"')}D(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,D(e,!0,-1)):s&&R(e,"directives end mark is expected"),W(e,e.lineIndent-1,p,!1,!0),D(e,!0,-1),e.checkLineBreaks&&y.test(e.input.slice(o,e.position))&&P(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&U(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,D(e,!0,-1)):e.position0&&-1==="\0\r\n…\u2028\u2029".indexOf(this.buffer.charAt(i-1));)if(i-=1,this.position-i>t/2-1){r=" ... ",i+=5;break}for(o="",s=this.position;st/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),n.repeat(" ",e)+r+a+o+"\n"+n.repeat(" ",e+this.position-i+r.length)+"^"},i.prototype.toString=function(e){var t,r="";return this.name&&(r+='in "'+this.name+'" '),r+="at line "+(this.line+1)+", column "+(this.column+1),e||(t=this.getSnippet())&&(r+=":\n"+t),r},t.exports=i},{"./common":94}],99:[function(e,t,r){"use strict";var n=e("./common"),i=e("./exception"),o=e("./type");function s(e,t,r){var n=[];return e.include.forEach(function(e){r=s(e,t,r)}),e[t].forEach(function(e){r.forEach(function(t,r){t.tag===e.tag&&t.kind===e.kind&&n.push(r)}),r.push(e)}),r.filter(function(e,t){return-1===n.indexOf(t)})}function a(e){this.include=e.include||[],this.implicit=e.implicit||[],this.explicit=e.explicit||[],this.implicit.forEach(function(e){if(e.loadKind&&"scalar"!==e.loadKind)throw new i("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=s(this,"implicit",[]),this.compiledExplicit=s(this,"explicit",[]),this.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{}};function n(e){r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,i=e.replace(/[\r\n=]/g,""),s=i.length,a=o,u=0,l=[];for(t=0;t>16&255),l.push(u>>8&255),l.push(255&u)),u=u<<6|a.indexOf(i.charAt(t));return 0==(r=s%4*6)?(l.push(u>>16&255),l.push(u>>8&255),l.push(255&u)):18===r?(l.push(u>>10&255),l.push(u>>2&255)):12===r&&l.push(u>>4&255),n?n.from?n.from(l):new n(l):l},predicate:function(e){return n&&n.isBuffer(e)},represent:function(e){var t,r,n="",i=0,s=e.length,a=o;for(t=0;t>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]),i=(i<<8)+e[t];return 0==(r=s%3)?(n+=a[i>>18&63],n+=a[i>>12&63],n+=a[i>>6&63],n+=a[63&i]):2===r?(n+=a[i>>10&63],n+=a[i>>4&63],n+=a[i<<2&63],n+=a[64]):1===r&&(n+=a[i>>2&63],n+=a[i<<4&63],n+=a[64],n+=a[64]),n}})},{"../type":105}],107:[function(e,t,r){"use strict";var n=e("../type");t.exports=new n("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})},{"../type":105}],108:[function(e,t,r){"use strict";var n=e("../common"),i=e("../type"),o=new RegExp("^(?:[-+]?(?:0|[1-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var s=/^[-+]?[0-9]+e/;t.exports=new i("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!o.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r,n,i;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,i=[],"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:t.indexOf(":")>=0?(t.split(":").forEach(function(e){i.unshift(parseFloat(e,10))}),t=0,n=1,i.forEach(function(e){t+=e*n,n*=60}),r*t):r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||n.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(n.isNegativeZero(e))return"-0.0";return r=e.toString(10),s.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"})},{"../common":94,"../type":105}],109:[function(e,t,r){"use strict";var n=e("../common"),i=e("../type");function o(e){return 48<=e&&e<=55}function s(e){return 48<=e&&e<=57}t.exports=new i("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,i=0,a=!1;if(!n)return!1;if("-"!==(t=e[i])&&"+"!==t||(t=e[++i]),"0"===t){if(i+1===n)return!0;if("b"===(t=e[++i])){for(i++;i=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0"+e.toString(8):"-0"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},{"../common":94,"../type":105}],110:[function(e,t,r){"use strict";var n;try{n=e("esprima")}catch(e){"undefined"!=typeof window&&(n=window.esprima)}var i=e("../../type");t.exports=new i("tag:yaml.org,2002:js/function",{kind:"scalar",resolve:function(e){if(null===e)return!1;try{var t="("+e+")",r=n.parse(t,{range:!0});return"Program"===r.type&&1===r.body.length&&"ExpressionStatement"===r.body[0].type&&("ArrowFunctionExpression"===r.body[0].expression.type||"FunctionExpression"===r.body[0].expression.type)}catch(e){return!1}},construct:function(e){var t,r="("+e+")",i=n.parse(r,{range:!0}),o=[];if("Program"!==i.type||1!==i.body.length||"ExpressionStatement"!==i.body[0].type||"ArrowFunctionExpression"!==i.body[0].expression.type&&"FunctionExpression"!==i.body[0].expression.type)throw new Error("Failed to resolve function");return i.body[0].expression.params.forEach(function(e){o.push(e.name)}),t=i.body[0].expression.body.range,"BlockStatement"===i.body[0].expression.body.type?new Function(o,r.slice(t[0]+1,t[1]-1)):new Function(o,"return "+r.slice(t[0],t[1]))},predicate:function(e){return"[object Function]"===Object.prototype.toString.call(e)},represent:function(e){return e.toString()}})},{"../../type":105}],111:[function(e,t,r){"use strict";var n=e("../../type");t.exports=new n("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:function(e){if(null===e)return!1;if(0===e.length)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if("/"===t[0]){if(r&&(n=r[1]),n.length>3)return!1;if("/"!==t[t.length-n.length-1])return!1}return!0},construct:function(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return"/"===t[0]&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)},predicate:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},represent:function(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}})},{"../../type":105}],112:[function(e,t,r){"use strict";var n=e("../../type");t.exports=new n("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:function(){return!0},construct:function(){},predicate:function(e){return void 0===e},represent:function(){return""}})},{"../../type":105}],113:[function(e,t,r){"use strict";var n=e("../type");t.exports=new n("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}})},{"../type":105}],114:[function(e,t,r){"use strict";var n=e("../type");t.exports=new n("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}})},{"../type":105}],115:[function(e,t,r){"use strict";var n=e("../type");t.exports=new n("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},{"../type":105}],116:[function(e,t,r){"use strict";var n=e("../type"),i=Object.prototype.hasOwnProperty,o=Object.prototype.toString;t.exports=new n("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,a,u=[],l=e;for(t=0,r=l.length;t>>1,T=[["ary",k],["bind",m],["bindKey",g],["curry",v],["curryRight",b],["flip",S],["partial",w],["partialRight",x],["rearg",_]],D="[object Arguments]",U="[object Array]",z="[object AsyncFunction]",$="[object Boolean]",q="[object Date]",G="[object DOMException]",W="[object Error]",K="[object Function]",V="[object GeneratorFunction]",H="[object Map]",Y="[object Number]",J="[object Null]",Z="[object Object]",Q="[object Proxy]",X="[object RegExp]",ee="[object Set]",te="[object String]",re="[object Symbol]",ne="[object Undefined]",ie="[object WeakMap]",oe="[object WeakSet]",se="[object ArrayBuffer]",ae="[object DataView]",ue="[object Float32Array]",le="[object Float64Array]",ce="[object Int8Array]",fe="[object Int16Array]",pe="[object Int32Array]",de="[object Uint8Array]",he="[object Uint8ClampedArray]",me="[object Uint16Array]",ge="[object Uint32Array]",ye=/\b__p \+= '';/g,ve=/\b(__p \+=) '' \+/g,be=/(__e\(.*?\)|\b__t\)) \+\n'';/g,we=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,ke=RegExp(we.source),_e=RegExp(xe.source),Se=/<%-([\s\S]+?)%>/g,Ce=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Ee=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,je=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Me=/[\\^$.*+?()[\]{}|]/g,Ne=RegExp(Me.source),Re=/^\s+|\s+$/g,Pe=/^\s+/,Ie=/\s+$/,Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Le=/\{\n\/\* \[wrapped with (.+)\] \*/,Be=/,? & /,Te=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,De=/\\(\\)?/g,Ue=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ze=/\w*$/,$e=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Ge=/^\[object .+?Constructor\]$/,We=/^0o[0-7]+$/i,Ke=/^(?:0|[1-9]\d*)$/,Ve=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,He=/($^)/,Ye=/['\n\r\u2028\u2029\\]/g,Je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ze="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qe="[\\ud800-\\udfff]",Xe="["+Ze+"]",et="["+Je+"]",tt="\\d+",rt="[\\u2700-\\u27bf]",nt="[a-z\\xdf-\\xf6\\xf8-\\xff]",it="[^\\ud800-\\udfff"+Ze+tt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ot="\\ud83c[\\udffb-\\udfff]",st="[^\\ud800-\\udfff]",at="(?:\\ud83c[\\udde6-\\uddff]){2}",ut="[\\ud800-\\udbff][\\udc00-\\udfff]",lt="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ct="(?:"+nt+"|"+it+")",ft="(?:"+lt+"|"+it+")",pt="(?:"+et+"|"+ot+")"+"?",dt="[\\ufe0e\\ufe0f]?"+pt+("(?:\\u200d(?:"+[st,at,ut].join("|")+")[\\ufe0e\\ufe0f]?"+pt+")*"),ht="(?:"+[rt,at,ut].join("|")+")"+dt,mt="(?:"+[st+et+"?",et,at,ut,Qe].join("|")+")",gt=RegExp("['’]","g"),yt=RegExp(et,"g"),vt=RegExp(ot+"(?="+ot+")|"+mt+dt,"g"),bt=RegExp([lt+"?"+nt+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Xe,lt,"$"].join("|")+")",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Xe,lt+ct,"$"].join("|")+")",lt+"?"+ct+"+(?:['’](?:d|ll|m|re|s|t|ve))?",lt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",tt,ht].join("|"),"g"),wt=RegExp("[\\u200d\\ud800-\\udfff"+Je+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,kt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_t=-1,St={};St[ue]=St[le]=St[ce]=St[fe]=St[pe]=St[de]=St[he]=St[me]=St[ge]=!0,St[D]=St[U]=St[se]=St[$]=St[ae]=St[q]=St[W]=St[K]=St[H]=St[Y]=St[Z]=St[X]=St[ee]=St[te]=St[ie]=!1;var Ct={};Ct[D]=Ct[U]=Ct[se]=Ct[ae]=Ct[$]=Ct[q]=Ct[ue]=Ct[le]=Ct[ce]=Ct[fe]=Ct[pe]=Ct[H]=Ct[Y]=Ct[Z]=Ct[X]=Ct[ee]=Ct[te]=Ct[re]=Ct[de]=Ct[he]=Ct[me]=Ct[ge]=!0,Ct[W]=Ct[K]=Ct[ie]=!1;var At={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Et=parseFloat,Ot=parseInt,jt="object"==typeof e&&e&&e.Object===Object&&e,Mt="object"==typeof self&&self&&self.Object===Object&&self,Nt=jt||Mt||Function("return this")(),Rt="object"==typeof r&&r&&!r.nodeType&&r,Pt=Rt&&"object"==typeof t&&t&&!t.nodeType&&t,It=Pt&&Pt.exports===Rt,Ft=It&&jt.process,Lt=function(){try{var e=Pt&&Pt.require&&Pt.require("util").types;return e||Ft&&Ft.binding&&Ft.binding("util")}catch(e){}}(),Bt=Lt&&Lt.isArrayBuffer,Tt=Lt&&Lt.isDate,Dt=Lt&&Lt.isMap,Ut=Lt&&Lt.isRegExp,zt=Lt&&Lt.isSet,$t=Lt&&Lt.isTypedArray;function qt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function Gt(e,t,r,n){for(var i=-1,o=null==e?0:e.length;++i-1}function Jt(e,t,r){for(var n=-1,i=null==e?0:e.length;++n-1;);return r}function vr(e,t){for(var r=e.length;r--&&or(t,e[r],0)>-1;);return r}var br=cr({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),wr=cr({"&":"&","<":"<",">":">",'"':""","'":"'"});function xr(e){return"\\"+At[e]}function kr(e){return wt.test(e)}function _r(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function Sr(e,t){return function(r){return e(t(r))}}function Cr(e,t){for(var r=-1,n=e.length,i=0,o=[];++r",""":'"',"'":"'"});var Rr=function e(t){var r,Je=(t=null==t?Nt:Rr.defaults(Nt.Object(),t,Rr.pick(Nt,kt))).Array,Ze=t.Date,Qe=t.Error,Xe=t.Function,et=t.Math,tt=t.Object,rt=t.RegExp,nt=t.String,it=t.TypeError,ot=Je.prototype,st=Xe.prototype,at=tt.prototype,ut=t["__core-js_shared__"],lt=st.toString,ct=at.hasOwnProperty,ft=0,pt=(r=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",dt=at.toString,ht=lt.call(tt),mt=Nt._,vt=rt("^"+lt.call(ct).replace(Me,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wt=It?t.Buffer:n,At=t.Symbol,jt=t.Uint8Array,Mt=wt?wt.allocUnsafe:n,Rt=Sr(tt.getPrototypeOf,tt),Pt=tt.create,Ft=at.propertyIsEnumerable,Lt=ot.splice,rr=At?At.isConcatSpreadable:n,cr=At?At.iterator:n,Pr=At?At.toStringTag:n,Ir=function(){try{var e=Uo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Fr=t.clearTimeout!==Nt.clearTimeout&&t.clearTimeout,Lr=Ze&&Ze.now!==Nt.Date.now&&Ze.now,Br=t.setTimeout!==Nt.setTimeout&&t.setTimeout,Tr=et.ceil,Dr=et.floor,Ur=tt.getOwnPropertySymbols,zr=wt?wt.isBuffer:n,$r=t.isFinite,qr=ot.join,Gr=Sr(tt.keys,tt),Wr=et.max,Kr=et.min,Vr=Ze.now,Hr=t.parseInt,Yr=et.random,Jr=ot.reverse,Zr=Uo(t,"DataView"),Qr=Uo(t,"Map"),Xr=Uo(t,"Promise"),en=Uo(t,"Set"),tn=Uo(t,"WeakMap"),rn=Uo(tt,"create"),nn=tn&&new tn,on={},sn=fs(Zr),an=fs(Qr),un=fs(Xr),ln=fs(en),cn=fs(tn),fn=At?At.prototype:n,pn=fn?fn.valueOf:n,dn=fn?fn.toString:n;function hn(e){if(Oa(e)&&!ya(e)&&!(e instanceof vn)){if(e instanceof yn)return e;if(ct.call(e,"__wrapped__"))return ps(e)}return new yn(e)}var mn=function(){function e(){}return function(t){if(!Ea(t))return{};if(Pt)return Pt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function gn(){}function yn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function vn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=F,this.__views__=[]}function bn(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Ln(e,t,r,i,o,s){var a,u=t&c,l=t&f,d=t&p;if(r&&(a=o?r(e,i,o,s):r(e)),a!==n)return a;if(!Ea(e))return e;var h=ya(e);if(h){if(a=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&ct.call(e,"index")&&(r.index=e.index,r.input=e.input),r}(e),!u)return no(e,a)}else{var m=qo(e),g=m==K||m==V;if(xa(e))return Zi(e,u);if(m==Z||m==D||g&&!o){if(a=l||g?{}:Wo(e),!u)return l?function(e,t){return io(e,$o(e),t)}(e,function(e,t){return e&&io(t,ou(t),e)}(a,e)):function(e,t){return io(e,zo(e),t)}(e,Rn(a,e))}else{if(!Ct[m])return o?e:{};a=function(e,t,r){var n,i,o,s=e.constructor;switch(t){case se:return Qi(e);case $:case q:return new s(+e);case ae:return function(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case ue:case le:case ce:case fe:case pe:case de:case he:case me:case ge:return Xi(e,r);case H:return new s;case Y:case te:return new s(e);case X:return(o=new(i=e).constructor(i.source,ze.exec(i))).lastIndex=i.lastIndex,o;case ee:return new s;case re:return n=e,pn?tt(pn.call(n)):{}}}(e,m,u)}}s||(s=new _n);var y=s.get(e);if(y)return y;if(s.set(e,a),Pa(e))return e.forEach(function(n){a.add(Ln(n,t,r,n,e,s))}),a;if(ja(e))return e.forEach(function(n,i){a.set(i,Ln(n,t,r,i,e,s))}),a;var v=h?n:(d?l?Po:Ro:l?ou:iu)(e);return Wt(v||e,function(n,i){v&&(n=e[i=n]),jn(a,i,Ln(n,t,r,i,e,s))}),a}function Bn(e,t,r){var i=r.length;if(null==e)return!i;for(e=tt(e);i--;){var o=r[i],s=t[o],a=e[o];if(a===n&&!(o in e)||!s(a))return!1}return!0}function Tn(e,t,r){if("function"!=typeof e)throw new it(s);return is(function(){e.apply(n,r)},t)}function Dn(e,t,r,n){var o=-1,s=Yt,a=!0,u=e.length,l=[],c=t.length;if(!u)return l;r&&(t=Zt(t,hr(r))),n?(s=Jt,a=!1):t.length>=i&&(s=gr,a=!1,t=new kn(t));e:for(;++o-1},wn.prototype.set=function(e,t){var r=this.__data__,n=Mn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},xn.prototype.clear=function(){this.size=0,this.__data__={hash:new bn,map:new(Qr||wn),string:new bn}},xn.prototype.delete=function(e){var t=To(this,e).delete(e);return this.size-=t?1:0,t},xn.prototype.get=function(e){return To(this,e).get(e)},xn.prototype.has=function(e){return To(this,e).has(e)},xn.prototype.set=function(e,t){var r=To(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},kn.prototype.add=kn.prototype.push=function(e){return this.__data__.set(e,a),this},kn.prototype.has=function(e){return this.__data__.has(e)},_n.prototype.clear=function(){this.__data__=new wn,this.size=0},_n.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},_n.prototype.get=function(e){return this.__data__.get(e)},_n.prototype.has=function(e){return this.__data__.has(e)},_n.prototype.set=function(e,t){var r=this.__data__;if(r instanceof wn){var n=r.__data__;if(!Qr||n.length0&&r(a)?t>1?Wn(a,t-1,r,n,i):Qt(i,a):n||(i[i.length]=a)}return i}var Kn=uo(),Vn=uo(!0);function Hn(e,t){return e&&Kn(e,t,iu)}function Yn(e,t){return e&&Vn(e,t,iu)}function Jn(e,t){return Ht(t,function(t){return Sa(e[t])})}function Zn(e,t){for(var r=0,i=(t=Vi(t,e)).length;null!=e&&rt}function ti(e,t){return null!=e&&ct.call(e,t)}function ri(e,t){return null!=e&&t in tt(e)}function ni(e,t,r){for(var i=r?Jt:Yt,o=e[0].length,s=e.length,a=s,u=Je(s),l=1/0,c=[];a--;){var f=e[a];a&&t&&(f=Zt(f,hr(t))),l=Kr(f.length,l),u[a]=!r&&(t||o>=120&&f.length>=120)?new kn(a&&f):n}f=e[0];var p=-1,d=u[0];e:for(;++p=a)return u;var l=r[n];return u*("desc"==l?-1:1)}}return e.index-t.index}(e,t,r)})}function bi(e,t,r){for(var n=-1,i=t.length,o={};++n-1;)a!==e&&Lt.call(a,u,1),Lt.call(e,u,1);return e}function xi(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==o){var o=i;Vo(i)?Lt.call(e,i,1):Di(e,i)}}return e}function ki(e,t){return e+Dr(Yr()*(t-e+1))}function _i(e,t){var r="";if(!e||t<1||t>R)return r;do{t%2&&(r+=e),(t=Dr(t/2))&&(e+=e)}while(t);return r}function Si(e,t){return os(ts(e,t,Mu),e+"")}function Ci(e){return Cn(du(e))}function Ai(e,t){var r=du(e);return us(r,Fn(t,0,r.length))}function Ei(e,t,r,i){if(!Ea(e))return e;for(var o=-1,s=(t=Vi(t,e)).length,a=s-1,u=e;null!=u&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var o=Je(i);++n>>1,s=e[o];null!==s&&!Fa(s)&&(r?s<=t:s=i){var c=t?null:So(e);if(c)return Er(c);a=!1,o=gr,l=new kn}else l=t?[]:u;e:for(;++n=i?e:Ni(e,t,r)}var Ji=Fr||function(e){return Nt.clearTimeout(e)};function Zi(e,t){if(t)return e.slice();var r=e.length,n=Mt?Mt(r):new e.constructor(r);return e.copy(n),n}function Qi(e){var t=new e.constructor(e.byteLength);return new jt(t).set(new jt(e)),t}function Xi(e,t){var r=t?Qi(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var r=e!==n,i=null===e,o=e==e,s=Fa(e),a=t!==n,u=null===t,l=t==t,c=Fa(t);if(!u&&!c&&!s&&e>t||s&&a&&l&&!u&&!c||i&&a&&l||!r&&l||!o)return 1;if(!i&&!s&&!c&&e1?r[o-1]:n,a=o>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(o--,s):n,a&&Ho(r[0],r[1],a)&&(s=o<3?n:s,o=1),t=tt(t);++i-1?o[s?t[a]:a]:n}}function ho(e){return No(function(t){var r=t.length,i=r,o=yn.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new it(s);if(o&&!u&&"wrapper"==Fo(a))var u=new yn([],!0)}for(i=u?i:r;++i1&&v.reverse(),f&&lu))return!1;var c=s.get(e);if(c&&s.get(t))return c==t;var f=-1,p=!0,m=r&h?new kn:n;for(s.set(e,t),s.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Fe,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Wt(T,function(r){var n="_."+r[0];t&r[1]&&!Yt(e,n)&&e.push(n)}),e.sort()}(function(e){var t=e.match(Le);return t?t[1].split(Be):[]}(n),r)))}function as(e){var t=0,r=0;return function(){var i=Vr(),o=O-(i-r);if(r=i,o>0){if(++t>=E)return arguments[0]}else t=0;return e.apply(n,arguments)}}function us(e,t){var r=-1,i=e.length,o=i-1;for(t=t===n?i:t;++r1?e[t-1]:n;return Rs(e,r="function"==typeof r?(e.pop(),r):n)});function Ds(e){var t=hn(e);return t.__chain__=!0,t}function Us(e,t){return t(e)}var zs=No(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,o=function(t){return In(t,e)};return!(t>1||this.__actions__.length)&&i instanceof vn&&Vo(r)?((i=i.slice(r,+r+(t?1:0))).__actions__.push({func:Us,args:[o],thisArg:n}),new yn(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e})):this.thru(o)});var $s=oo(function(e,t,r){ct.call(e,r)?++e[r]:Pn(e,r,1)});var qs=po(gs),Gs=po(ys);function Ws(e,t){return(ya(e)?Wt:Un)(e,Bo(t,3))}function Ks(e,t){return(ya(e)?Kt:zn)(e,Bo(t,3))}var Vs=oo(function(e,t,r){ct.call(e,r)?e[r].push(t):Pn(e,r,[t])});var Hs=Si(function(e,t,r){var n=-1,i="function"==typeof t,o=ba(e)?Je(e.length):[];return Un(e,function(e){o[++n]=i?qt(t,e,r):ii(e,t,r)}),o}),Ys=oo(function(e,t,r){Pn(e,r,t)});function Js(e,t){return(ya(e)?Zt:di)(e,Bo(t,3))}var Zs=oo(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]});var Qs=Si(function(e,t){if(null==e)return[];var r=t.length;return r>1&&Ho(e,t[0],t[1])?t=[]:r>2&&Ho(t[0],t[1],t[2])&&(t=[t[0]]),vi(e,Wn(t,1),[])}),Xs=Lr||function(){return Nt.Date.now()};function ea(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Ao(e,k,n,n,n,n,t)}function ta(e,t){var r;if("function"!=typeof t)throw new it(s);return e=za(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=n),r}}var ra=Si(function(e,t,r){var n=m;if(r.length){var i=Cr(r,Lo(ra));n|=w}return Ao(e,n,t,r,i)}),na=Si(function(e,t,r){var n=m|g;if(r.length){var i=Cr(r,Lo(na));n|=w}return Ao(t,n,e,r,i)});function ia(e,t,r){var i,o,a,u,l,c,f=0,p=!1,d=!1,h=!0;if("function"!=typeof e)throw new it(s);function m(t){var r=i,s=o;return i=o=n,f=t,u=e.apply(s,r)}function g(e){var r=e-c;return c===n||r>=t||r<0||d&&e-f>=a}function y(){var e=Xs();if(g(e))return v(e);l=is(y,function(e){var r=t-(e-c);return d?Kr(r,a-(e-f)):r}(e))}function v(e){return l=n,h&&i?m(e):(i=o=n,u)}function b(){var e=Xs(),r=g(e);if(i=arguments,o=this,c=e,r){if(l===n)return function(e){return f=e,l=is(y,t),p?m(e):u}(c);if(d)return l=is(y,t),m(c)}return l===n&&(l=is(y,t)),u}return t=qa(t)||0,Ea(r)&&(p=!!r.leading,a=(d="maxWait"in r)?Wr(qa(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h),b.cancel=function(){l!==n&&Ji(l),f=0,i=c=o=l=n},b.flush=function(){return l===n?u:v(Xs())},b}var oa=Si(function(e,t){return Tn(e,1,t)}),sa=Si(function(e,t,r){return Tn(e,qa(t)||0,r)});function aa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(s);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return r.cache=o.set(i,s)||o,s};return r.cache=new(aa.Cache||xn),r}function ua(e){if("function"!=typeof e)throw new it(s);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}aa.Cache=xn;var la=Hi(function(e,t){var r=(t=1==t.length&&ya(t[0])?Zt(t[0],hr(Bo())):Zt(Wn(t,1),hr(Bo()))).length;return Si(function(n){for(var i=-1,o=Kr(n.length,r);++i=t}),ga=oi(function(){return arguments}())?oi:function(e){return Oa(e)&&ct.call(e,"callee")&&!Ft.call(e,"callee")},ya=Je.isArray,va=Bt?hr(Bt):function(e){return Oa(e)&&Xn(e)==se};function ba(e){return null!=e&&Aa(e.length)&&!Sa(e)}function wa(e){return Oa(e)&&ba(e)}var xa=zr||qu,ka=Tt?hr(Tt):function(e){return Oa(e)&&Xn(e)==q};function _a(e){if(!Oa(e))return!1;var t=Xn(e);return t==W||t==G||"string"==typeof e.message&&"string"==typeof e.name&&!Na(e)}function Sa(e){if(!Ea(e))return!1;var t=Xn(e);return t==K||t==V||t==z||t==Q}function Ca(e){return"number"==typeof e&&e==za(e)}function Aa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=R}function Ea(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Oa(e){return null!=e&&"object"==typeof e}var ja=Dt?hr(Dt):function(e){return Oa(e)&&qo(e)==H};function Ma(e){return"number"==typeof e||Oa(e)&&Xn(e)==Y}function Na(e){if(!Oa(e)||Xn(e)!=Z)return!1;var t=Rt(e);if(null===t)return!0;var r=ct.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&<.call(r)==ht}var Ra=Ut?hr(Ut):function(e){return Oa(e)&&Xn(e)==X};var Pa=zt?hr(zt):function(e){return Oa(e)&&qo(e)==ee};function Ia(e){return"string"==typeof e||!ya(e)&&Oa(e)&&Xn(e)==te}function Fa(e){return"symbol"==typeof e||Oa(e)&&Xn(e)==re}var La=$t?hr($t):function(e){return Oa(e)&&Aa(e.length)&&!!St[Xn(e)]};var Ba=xo(pi),Ta=xo(function(e,t){return e<=t});function Da(e){if(!e)return[];if(ba(e))return Ia(e)?Mr(e):no(e);if(cr&&e[cr])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[cr]());var t=qo(e);return(t==H?_r:t==ee?Er:du)(e)}function Ua(e){return e?(e=qa(e))===N||e===-N?(e<0?-1:1)*P:e==e?e:0:0===e?e:0}function za(e){var t=Ua(e),r=t%1;return t==t?r?t-r:t:0}function $a(e){return e?Fn(za(e),0,F):0}function qa(e){if("number"==typeof e)return e;if(Fa(e))return I;if(Ea(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ea(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Re,"");var r=qe.test(e);return r||We.test(e)?Ot(e.slice(2),r?2:8):$e.test(e)?I:+e}function Ga(e){return io(e,ou(e))}function Wa(e){return null==e?"":Bi(e)}var Ka=so(function(e,t){if(Qo(t)||ba(t))io(t,iu(t),e);else for(var r in t)ct.call(t,r)&&jn(e,r,t[r])}),Va=so(function(e,t){io(t,ou(t),e)}),Ha=so(function(e,t,r,n){io(t,ou(t),e,n)}),Ya=so(function(e,t,r,n){io(t,iu(t),e,n)}),Ja=No(In);var Za=Si(function(e,t){e=tt(e);var r=-1,i=t.length,o=i>2?t[2]:n;for(o&&Ho(t[0],t[1],o)&&(i=1);++r1),t}),io(e,Po(e),r),n&&(r=Ln(r,c|f|p,jo));for(var i=t.length;i--;)Di(r,t[i]);return r});var lu=No(function(e,t){return null==e?{}:function(e,t){return bi(e,t,function(t,r){return eu(e,r)})}(e,t)});function cu(e,t){if(null==e)return{};var r=Zt(Po(e),function(e){return[e]});return t=Bo(t),bi(e,r,function(e,r){return t(e,r[0])})}var fu=Co(iu),pu=Co(ou);function du(e){return null==e?[]:mr(e,iu(e))}var hu=co(function(e,t,r){return t=t.toLowerCase(),e+(r?mu(t):t)});function mu(e){return _u(Wa(e).toLowerCase())}function gu(e){return(e=Wa(e))&&e.replace(Ve,br).replace(yt,"")}var yu=co(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),vu=co(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),bu=lo("toLowerCase");var wu=co(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});var xu=co(function(e,t,r){return e+(r?" ":"")+_u(t)});var ku=co(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),_u=lo("toUpperCase");function Su(e,t,r){return e=Wa(e),(t=r?n:t)===n?function(e){return xt.test(e)}(e)?function(e){return e.match(bt)||[]}(e):function(e){return e.match(Te)||[]}(e):e.match(t)||[]}var Cu=Si(function(e,t){try{return qt(e,n,t)}catch(e){return _a(e)?e:new Qe(e)}}),Au=No(function(e,t){return Wt(t,function(t){t=cs(t),Pn(e,t,ra(e[t],e))}),e});function Eu(e){return function(){return e}}var Ou=ho(),ju=ho(!0);function Mu(e){return e}function Nu(e){return li("function"==typeof e?e:Ln(e,c))}var Ru=Si(function(e,t){return function(r){return ii(r,e,t)}}),Pu=Si(function(e,t){return function(r){return ii(e,r,t)}});function Iu(e,t,r){var n=iu(t),i=Jn(t,n);null!=r||Ea(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=Jn(t,iu(t)));var o=!(Ea(r)&&"chain"in r&&!r.chain),s=Sa(e);return Wt(i,function(r){var n=t[r];e[r]=n,s&&(e.prototype[r]=function(){var t=this.__chain__;if(o||t){var r=e(this.__wrapped__);return(r.__actions__=no(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,Qt([this.value()],arguments))})}),e}function Fu(){}var Lu=vo(Zt),Bu=vo(Vt),Tu=vo(tr);function Du(e){return Yo(e)?lr(cs(e)):function(e){return function(t){return Zn(t,e)}}(e)}var Uu=wo(),zu=wo(!0);function $u(){return[]}function qu(){return!1}var Gu=yo(function(e,t){return e+t},0),Wu=_o("ceil"),Ku=yo(function(e,t){return e/t},1),Vu=_o("floor");var Hu,Yu=yo(function(e,t){return e*t},1),Ju=_o("round"),Zu=yo(function(e,t){return e-t},0);return hn.after=function(e,t){if("function"!=typeof t)throw new it(s);return e=za(e),function(){if(--e<1)return t.apply(this,arguments)}},hn.ary=ea,hn.assign=Ka,hn.assignIn=Va,hn.assignInWith=Ha,hn.assignWith=Ya,hn.at=Ja,hn.before=ta,hn.bind=ra,hn.bindAll=Au,hn.bindKey=na,hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ya(e)?e:[e]},hn.chain=Ds,hn.chunk=function(e,t,r){t=(r?Ho(e,t,r):t===n)?1:Wr(za(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var o=0,s=0,a=Je(Tr(i/t));oo?0:o+r),(i=i===n||i>o?o:za(i))<0&&(i+=o),i=r>i?0:$a(i);r>>0)?(e=Wa(e))&&("string"==typeof t||null!=t&&!Ra(t))&&!(t=Bi(t))&&kr(e)?Yi(Mr(e),0,r):e.split(t,r):[]},hn.spread=function(e,t){if("function"!=typeof e)throw new it(s);return t=null==t?0:Wr(za(t),0),Si(function(r){var n=r[t],i=Yi(r,0,t);return n&&Qt(i,n),qt(e,this,i)})},hn.tail=function(e){var t=null==e?0:e.length;return t?Ni(e,1,t):[]},hn.take=function(e,t,r){return e&&e.length?Ni(e,0,(t=r||t===n?1:za(t))<0?0:t):[]},hn.takeRight=function(e,t,r){var i=null==e?0:e.length;return i?Ni(e,(t=i-(t=r||t===n?1:za(t)))<0?0:t,i):[]},hn.takeRightWhile=function(e,t){return e&&e.length?zi(e,Bo(t,3),!1,!0):[]},hn.takeWhile=function(e,t){return e&&e.length?zi(e,Bo(t,3)):[]},hn.tap=function(e,t){return t(e),e},hn.throttle=function(e,t,r){var n=!0,i=!0;if("function"!=typeof e)throw new it(s);return Ea(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ia(e,t,{leading:n,maxWait:t,trailing:i})},hn.thru=Us,hn.toArray=Da,hn.toPairs=fu,hn.toPairsIn=pu,hn.toPath=function(e){return ya(e)?Zt(e,cs):Fa(e)?[e]:no(ls(Wa(e)))},hn.toPlainObject=Ga,hn.transform=function(e,t,r){var n=ya(e),i=n||xa(e)||La(e);if(t=Bo(t,4),null==r){var o=e&&e.constructor;r=i?n?new o:[]:Ea(e)&&Sa(o)?mn(Rt(e)):{}}return(i?Wt:Hn)(e,function(e,n,i){return t(r,e,n,i)}),r},hn.unary=function(e){return ea(e,1)},hn.union=Os,hn.unionBy=js,hn.unionWith=Ms,hn.uniq=function(e){return e&&e.length?Ti(e):[]},hn.uniqBy=function(e,t){return e&&e.length?Ti(e,Bo(t,2)):[]},hn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?Ti(e,n,t):[]},hn.unset=function(e,t){return null==e||Di(e,t)},hn.unzip=Ns,hn.unzipWith=Rs,hn.update=function(e,t,r){return null==e?e:Ui(e,t,Ki(r))},hn.updateWith=function(e,t,r,i){return i="function"==typeof i?i:n,null==e?e:Ui(e,t,Ki(r),i)},hn.values=du,hn.valuesIn=function(e){return null==e?[]:mr(e,ou(e))},hn.without=Ps,hn.words=Su,hn.wrap=function(e,t){return ca(Ki(t),e)},hn.xor=Is,hn.xorBy=Fs,hn.xorWith=Ls,hn.zip=Bs,hn.zipObject=function(e,t){return Gi(e||[],t||[],jn)},hn.zipObjectDeep=function(e,t){return Gi(e||[],t||[],Ei)},hn.zipWith=Ts,hn.entries=fu,hn.entriesIn=pu,hn.extend=Va,hn.extendWith=Ha,Iu(hn,hn),hn.add=Gu,hn.attempt=Cu,hn.camelCase=hu,hn.capitalize=mu,hn.ceil=Wu,hn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=qa(r))==r?r:0),t!==n&&(t=(t=qa(t))==t?t:0),Fn(qa(e),t,r)},hn.clone=function(e){return Ln(e,p)},hn.cloneDeep=function(e){return Ln(e,c|p)},hn.cloneDeepWith=function(e,t){return Ln(e,c|p,t="function"==typeof t?t:n)},hn.cloneWith=function(e,t){return Ln(e,p,t="function"==typeof t?t:n)},hn.conformsTo=function(e,t){return null==t||Bn(e,t,iu(t))},hn.deburr=gu,hn.defaultTo=function(e,t){return null==e||e!=e?t:e},hn.divide=Ku,hn.endsWith=function(e,t,r){e=Wa(e),t=Bi(t);var i=e.length,o=r=r===n?i:Fn(za(r),0,i);return(r-=t.length)>=0&&e.slice(r,o)==t},hn.eq=da,hn.escape=function(e){return(e=Wa(e))&&_e.test(e)?e.replace(xe,wr):e},hn.escapeRegExp=function(e){return(e=Wa(e))&&Ne.test(e)?e.replace(Me,"\\$&"):e},hn.every=function(e,t,r){var i=ya(e)?Vt:$n;return r&&Ho(e,t,r)&&(t=n),i(e,Bo(t,3))},hn.find=qs,hn.findIndex=gs,hn.findKey=function(e,t){return nr(e,Bo(t,3),Hn)},hn.findLast=Gs,hn.findLastIndex=ys,hn.findLastKey=function(e,t){return nr(e,Bo(t,3),Yn)},hn.floor=Vu,hn.forEach=Ws,hn.forEachRight=Ks,hn.forIn=function(e,t){return null==e?e:Kn(e,Bo(t,3),ou)},hn.forInRight=function(e,t){return null==e?e:Vn(e,Bo(t,3),ou)},hn.forOwn=function(e,t){return e&&Hn(e,Bo(t,3))},hn.forOwnRight=function(e,t){return e&&Yn(e,Bo(t,3))},hn.get=Xa,hn.gt=ha,hn.gte=ma,hn.has=function(e,t){return null!=e&&Go(e,t,ti)},hn.hasIn=eu,hn.head=bs,hn.identity=Mu,hn.includes=function(e,t,r,n){e=ba(e)?e:du(e),r=r&&!n?za(r):0;var i=e.length;return r<0&&(r=Wr(i+r,0)),Ia(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&or(e,t,r)>-1},hn.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:za(r);return i<0&&(i=Wr(n+i,0)),or(e,t,i)},hn.inRange=function(e,t,r){return t=Ua(t),r===n?(r=t,t=0):r=Ua(r),function(e,t,r){return e>=Kr(t,r)&&e=-R&&e<=R},hn.isSet=Pa,hn.isString=Ia,hn.isSymbol=Fa,hn.isTypedArray=La,hn.isUndefined=function(e){return e===n},hn.isWeakMap=function(e){return Oa(e)&&qo(e)==ie},hn.isWeakSet=function(e){return Oa(e)&&Xn(e)==oe},hn.join=function(e,t){return null==e?"":qr.call(e,t)},hn.kebabCase=yu,hn.last=_s,hn.lastIndexOf=function(e,t,r){var i=null==e?0:e.length;if(!i)return-1;var o=i;return r!==n&&(o=(o=za(r))<0?Wr(i+o,0):Kr(o,i-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):ir(e,ar,o,!0)},hn.lowerCase=vu,hn.lowerFirst=bu,hn.lt=Ba,hn.lte=Ta,hn.max=function(e){return e&&e.length?qn(e,Mu,ei):n},hn.maxBy=function(e,t){return e&&e.length?qn(e,Bo(t,2),ei):n},hn.mean=function(e){return ur(e,Mu)},hn.meanBy=function(e,t){return ur(e,Bo(t,2))},hn.min=function(e){return e&&e.length?qn(e,Mu,pi):n},hn.minBy=function(e,t){return e&&e.length?qn(e,Bo(t,2),pi):n},hn.stubArray=$u,hn.stubFalse=qu,hn.stubObject=function(){return{}},hn.stubString=function(){return""},hn.stubTrue=function(){return!0},hn.multiply=Yu,hn.nth=function(e,t){return e&&e.length?yi(e,za(t)):n},hn.noConflict=function(){return Nt._===this&&(Nt._=mt),this},hn.noop=Fu,hn.now=Xs,hn.pad=function(e,t,r){e=Wa(e);var n=(t=za(t))?jr(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return bo(Dr(i),r)+e+bo(Tr(i),r)},hn.padEnd=function(e,t,r){e=Wa(e);var n=(t=za(t))?jr(e):0;return t&&nt){var i=e;e=t,t=i}if(r||e%1||t%1){var o=Yr();return Kr(e+o*(t-e+Et("1e-"+((o+"").length-1))),t)}return ki(e,t)},hn.reduce=function(e,t,r){var n=ya(e)?Xt:fr,i=arguments.length<3;return n(e,Bo(t,4),r,i,Un)},hn.reduceRight=function(e,t,r){var n=ya(e)?er:fr,i=arguments.length<3;return n(e,Bo(t,4),r,i,zn)},hn.repeat=function(e,t,r){return t=(r?Ho(e,t,r):t===n)?1:za(t),_i(Wa(e),t)},hn.replace=function(){var e=arguments,t=Wa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},hn.result=function(e,t,r){var i=-1,o=(t=Vi(t,e)).length;for(o||(o=1,e=n);++iR)return[];var r=F,n=Kr(e,F);t=Bo(t),e-=F;for(var i=dr(n,t);++r=s)return e;var u=r-jr(i);if(u<1)return i;var l=a?Yi(a,0,u).join(""):e.slice(0,u);if(o===n)return l+i;if(a&&(u+=l.length-u),Ra(o)){if(e.slice(u).search(o)){var c,f=l;for(o.global||(o=rt(o.source,Wa(ze.exec(o))+"g")),o.lastIndex=0;c=o.exec(f);)var p=c.index;l=l.slice(0,p===n?u:p)}}else if(e.indexOf(Bi(o),u)!=u){var d=l.lastIndexOf(o);d>-1&&(l=l.slice(0,d))}return l+i},hn.unescape=function(e){return(e=Wa(e))&&ke.test(e)?e.replace(we,Nr):e},hn.uniqueId=function(e){var t=++ft;return Wa(e)+t},hn.upperCase=ku,hn.upperFirst=_u,hn.each=Ws,hn.eachRight=Ks,hn.first=bs,Iu(hn,(Hu={},Hn(hn,function(e,t){ct.call(hn.prototype,t)||(Hu[t]=e)}),Hu),{chain:!1}),hn.VERSION="4.17.10",Wt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){hn[e].placeholder=hn}),Wt(["drop","take"],function(e,t){vn.prototype[e]=function(r){r=r===n?1:Wr(za(r),0);var i=this.__filtered__&&!t?new vn(this):this.clone();return i.__filtered__?i.__takeCount__=Kr(r,i.__takeCount__):i.__views__.push({size:Kr(r,F),type:e+(i.__dir__<0?"Right":"")}),i},vn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Wt(["filter","map","takeWhile"],function(e,t){var r=t+1,n=r==j||3==r;vn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Bo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),Wt(["head","last"],function(e,t){var r="take"+(t?"Right":"");vn.prototype[e]=function(){return this[r](1).value()[0]}}),Wt(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");vn.prototype[e]=function(){return this.__filtered__?new vn(this):this[r](1)}}),vn.prototype.compact=function(){return this.filter(Mu)},vn.prototype.find=function(e){return this.filter(e).head()},vn.prototype.findLast=function(e){return this.reverse().find(e)},vn.prototype.invokeMap=Si(function(e,t){return"function"==typeof e?new vn(this):this.map(function(r){return ii(r,e,t)})}),vn.prototype.reject=function(e){return this.filter(ua(Bo(e)))},vn.prototype.slice=function(e,t){e=za(e);var r=this;return r.__filtered__&&(e>0||t<0)?new vn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=za(t))<0?r.dropRight(-t):r.take(t-e)),r)},vn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},vn.prototype.toArray=function(){return this.take(F)},Hn(vn.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),o=hn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);o&&(hn.prototype[t]=function(){var t=this.__wrapped__,a=i?[1]:arguments,u=t instanceof vn,l=a[0],c=u||ya(t),f=function(e){var t=o.apply(hn,Qt([e],a));return i&&p?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var p=this.__chain__,d=!!this.__actions__.length,h=s&&!p,m=u&&!d;if(!s&&c){t=m?t:new vn(this);var g=e.apply(t,a);return g.__actions__.push({func:Us,args:[f],thisArg:n}),new yn(g,p)}return h&&m?e.apply(this,a):(g=this.thru(f),h?i?g.value()[0]:g.value():g)})}),Wt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);hn.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(ya(i)?i:[],e)}return this[r](function(r){return t.apply(ya(r)?r:[],e)})}}),Hn(vn.prototype,function(e,t){var r=hn[t];if(r){var n=r.name+"";(on[n]||(on[n]=[])).push({name:t,func:r})}}),on[mo(n,g).name]=[{name:"wrapper",func:n}],vn.prototype.clone=function(){var e=new vn(this.__wrapped__);return e.__actions__=no(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=no(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=no(this.__views__),e},vn.prototype.reverse=function(){if(this.__filtered__){var e=new vn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},vn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ya(e),n=t<0,i=r?e.length:0,o=function(e,t,r){for(var n=-1,i=r.length;++n=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},hn.prototype.plant=function(e){for(var t,r=this;r instanceof gn;){var i=ps(r);i.__index__=0,i.__values__=n,t?o.__wrapped__=i:t=i;var o=i;r=r.__wrapped__}return o.__wrapped__=e,t},hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof vn){var t=e;return this.__actions__.length&&(t=new vn(this)),(t=t.reverse()).__actions__.push({func:Us,args:[Es],thisArg:n}),new yn(t,this.__chain__)}return this.thru(Es)},hn.prototype.toJSON=hn.prototype.valueOf=hn.prototype.value=function(){return $i(this.__wrapped__,this.__actions__)},hn.prototype.first=hn.prototype.head,cr&&(hn.prototype[cr]=function(){return this}),hn}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Nt._=Rr,define(function(){return Rr})):Pt?((Pt.exports=Rr)._=Rr,Rt._=Rr):Nt._=Rr}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],126:[function(e,t,r){t.exports=function(e){var t="Uint32Array"in e,r=e.crypto||e.msCrypto,n=r&&"function"==typeof r.getRandomValues;if(!(t&&r&&n))return Math.random;var i=new Uint32Array(1),o=Math.pow(2,32);function s(){return r.getRandomValues(i),i[0]/o}return s.cryptographic=!0,s}("undefined"!=typeof self?self:window)},{}],127:[function(e,t,r){t.exports=["abs","and","annotation","annotation-xml","apply","approx","arccos","arccosh","arccot","arccoth","arccsc","arccsch","arcsec","arcsech","arcsin","arcsinh","arctan","arctanh","arg","bind","bvar","card","cartesianproduct","cbytes","ceiling","cerror","ci","cn","codomain","complexes","compose","condition","conjugate","cos","cosh","cot","coth","cs","csc","csch","csymbol","curl","declare","degree","determinant","diff","divergence","divide","domain","domainofapplication","emptyset","encoding","eq","equivalent","eulergamma","exists","exp","exponentiale","factorial","factorof","false","floor","fn","forall","function","gcd","geq","grad","gt","ident","image","imaginary","imaginaryi","implies","in","infinity","int","integers","intersect","interval","inverse","lambda","laplacian","lcm","leq","limit","list","ln","log","logbase","lowlimit","lt","maction","malign","maligngroup","malignmark","malignscope","math","matrix","matrixrow","max","mean","median","menclose","merror","mfenced","mfrac","mfraction","mglyph","mi","min","minus","mlabeledtr","mlongdiv","mmultiscripts","mn","mo","mode","moment","momentabout","mover","mpadded","mphantom","mprescripts","mroot","mrow","ms","mscarries","mscarry","msgroup","msline","mspace","msqrt","msrow","mstack","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","naturalnumbers","neq","none","not","notanumber","notin","notprsubset","notsubset","or","otherwise","outerproduct","partialdiff","pi","piece","piecewice","piecewise","plus","power","primes","product","prsubset","quotient","rationals","real","reals","reln","rem","root","scalarproduct","sdev","sec","sech","select","selector","semantics","sep","set","setdiff","share","sin","sinh","span","subset","sum","tan","tanh","tendsto","times","transpose","true","union","uplimit","var","variance","vector","vectorproduct","xor"]},{}],128:[function(e,t,r){"use strict";var n=e("./lib/expand"),i=e("./lib/utils");function o(e,t,r){if(!e||!t)return[];if(void 0===(r=r||{}).cache&&(r.cache=!0),!Array.isArray(t))return s(e,t,r);for(var n=t.length,o=0,a=[],u=[];n--;){var l=t[o++];"string"==typeof l&&33===l.charCodeAt(0)?a.push.apply(a,s(e,l.slice(1),r)):u.push.apply(u,s(e,l,r))}return i.diff(u,a)}function s(e,t,r){if("string"!==i.typeOf(e)&&!Array.isArray(e))throw new Error(c("match","files","a string or array"));e=i.arrayify(e);var n=(r=r||{}).negate||!1,s=t;"string"==typeof t&&((n="!"===t.charAt(0))&&(t=t.slice(1)),!0===r.nonegate&&(n=!1));for(var u=a(t,r),l=e.length,f=0,p=[];f1&&/^[\[?*]/.test(r.pattern)&&(r.pattern=(l.dot?c:u)+r.pattern);return r};var s="[^/]",a=s+"*?",u="(?!\\.)(?=.)",l="(?:\\/|^)\\.{1,2}($|\\/)",c="(?!"+l+")(?=.)",f="(?:(?!"+l+").)*?";function p(e){return e?"(?!"+l+")(?=.)"+a:u+a}function d(e){return e?f:"(?:(?!(?:\\/|^)\\.).)*?"}},{"./glob":131,"./utils":132}],131:[function(e,t,r){"use strict";var n=e("./chars"),i=e("./utils"),o=t.exports=function e(t,r){if(!(this instanceof e))return new e(t,r);this.options=r||{},this.pattern=t,this.history=[],this.tokens={},this.init(t)};o.prototype.init=function(e){this.orig=e,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},o.prototype.track=function(e){this.options.track&&this.history.push({msg:e,pattern:this.pattern})},o.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)&&(this.pattern=this.pattern.slice(1),!0)},o.prototype.braces=function(){if(!0!==this.options.nobraces&&!0!==this.options.nobrace){var e=this.pattern.match(/[\{\(\[]/g),t=this.pattern.match(/[\}\)\]]/g);e&&t&&e.length!==t.length&&(this.options.makeRe=!1);var r=i.braces(this.pattern,this.options);this.pattern=r.join("|")}},o.prototype.brackets=function(){!0!==this.options.nobrackets&&(this.pattern=i.brackets(this.pattern))},o.prototype.extglob=function(){!0!==this.options.noextglob&&i.isExtglob(this.pattern)&&(this.pattern=i.extglob(this.pattern,{escape:!0}))},o.prototype.parse=function(e){return this.tokens=i.parseGlob(e||this.pattern,!0),this.tokens},o.prototype._replace=function(e,t,r){this.track('before (find): "'+e+'" (replace with): "'+t+'"'),r&&(t=t.split("?").join("%~").split("*").join("%%")),this.pattern=e&&t&&"string"==typeof e?this.pattern.split(e).join(t):this.pattern.replace(e,t),this.track("after")},o.prototype.escape=function(e){this.track("before escape: ");this.pattern=e.replace(/["\\](['"]?[^"'\\]['"]?)/g,function(e,t){var r=n.ESC,i=r&&r[t];return i||(/[a-z]/i.test(e)?e.split("\\").join(""):e)}),this.track("after escape: ")},o.prototype.unescape=function(e){this.pattern=e.replace(/__([A-Z]+)_([A-Z]+)__/g,function(e,t){return n[t][e]}),this.pattern=function(e){return e=(e=e.split("%~").join("?")).split("%%").join("*")}(this.pattern)}},{"./chars":129,"./utils":132}],132:[function(e,t,r){(function(r){"use strict";var n=r&&"win32"===r.platform,i=e("path"),o=e("filename-regex"),s=t.exports;s.diff=e("arr-diff"),s.unique=e("array-unique"),s.braces=e("braces"),s.brackets=e("expand-brackets"),s.extglob=e("extglob"),s.isExtglob=e("is-extglob"),s.isGlob=e("is-glob"),s.typeOf=e("kind-of"),s.normalize=e("normalize-path"),s.omit=e("object.omit"),s.parseGlob=e("parse-glob"),s.cache=e("regex-cache"),s.filename=function(e){var t=e.match(o());return t&&t[0]},s.isPath=function(e,t){return t=t||{},function(r){var n=s.unixify(r,t);return t.nocase?e.toLowerCase()===n.toLowerCase():e===n}},s.hasPath=function(e,t){return function(r){return-1!==s.unixify(e,t).indexOf(r)}},s.matchPath=function(e,t){return t&&t.contains?s.hasPath(e,t):s.isPath(e,t)},s.hasFilename=function(e){return function(t){var r=s.filename(t);return r&&e.test(r)}},s.arrayify=function(e){return Array.isArray(e)?e:[e]},s.unixify=function(e,t){return t&&!1===t.unixify?e:t&&!0===t.unixify||n||"\\"===i.sep?s.normalize(e,!1):t&&!0===t.unescape?e?e.toString().replace(/\\(\w)/g,"$1"):"":e},s.escapePath=function(e){return e.replace(/[\\.]/g,"\\$&")},s.unescapeGlob=function(e){return e.replace(/[\\"']/g,"")},s.escapeRe=function(e){return e.replace(/[-[\\$*+?.#^\s{}(|)\]]/g,"\\$&")},t.exports=s}).call(this,e("_process"))},{_process:282,"arr-diff":2,"array-unique":6,braces:15,"expand-brackets":36,extglob:38,"filename-regex":40,"is-extglob":79,"is-glob":80,"kind-of":122,"normalize-path":137,"object.omit":140,"parse-glob":144,path:148,"regex-cache":303}],133:[function(e,t,r){t.exports=h,h.Minimatch=m;var n={sep:"/"};try{n=e("path")}catch(e){}var i=h.GLOBSTAR=m.GLOBSTAR={},o=e("brace-expansion"),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",u=a+"*?",l="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",c="(?:(?!(?:\\/|^)\\.).)*?",f="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{});var p=/\/+/;function d(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function h(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new m(t,r).match(e))}function m(e,t){if(!(this instanceof m))return new m(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function g(e,t){if(t||(t=this instanceof m?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:o(e)}h.filter=function(e,t){return t=t||{},function(r,n,i){return h(r,e,t)}},h.defaults=function(e){if(!e||!Object.keys(e).length)return h;var t=h,r=function(r,n,i){return t.minimatch(r,n,d(e,i))};return r.Minimatch=function(r,n){return new t.Minimatch(r,d(e,n))},r},m.defaults=function(e){return e&&Object.keys(e).length?h.defaults(e).Minimatch:m},m.prototype.debug=function(){},m.prototype.make=function(){if(this._made)return;var e=this.pattern,t=this.options;if(!t.nocomment&&"#"===e.charAt(0))return void(this.comment=!0);if(!e)return void(this.empty=!0);this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error);this.debug(this.pattern,r),r=this.globParts=r.map(function(e){return e.split(p)}),this.debug(this.pattern,r),r=r.map(function(e,t,r){return e.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,r),this.set=r},m.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=this.options,n=0;if(r.nonegate)return;for(var i=0,o=e.length;i65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return i;if(""===e)return"";var n,o="",l=!!r.nocase,c=!1,p=[],d=[],h=!1,m=-1,g=-1,v="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function w(){if(n){switch(n){case"*":o+=u,l=!0;break;case"?":o+=a,l=!0;break;default:o+="\\"+n}b.debug("clearStateChar %j %j",n,o),n=!1}}for(var x,k=0,_=e.length;k<_&&(x=e.charAt(k));k++)if(this.debug("%s\t%s %s %j",e,k,o,x),c&&f[x])o+="\\"+x,c=!1;else switch(x){case"/":return!1;case"\\":w(),c=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s\t%s %s %j <-- stateChar",e,k,o,x),h){this.debug(" in class"),"!"===x&&k===g+1&&(x="^"),o+=x;continue}b.debug("call clearStateChar %j",n),w(),n=x,r.noext&&w();continue;case"(":if(h){o+="(";continue}if(!n){o+="\\(";continue}p.push({type:n,start:k-1,reStart:o.length,open:s[n].open,close:s[n].close}),o+="!"===n?"(?:(?!(?:":"(?:",this.debug("plType %j %j",n,o),n=!1;continue;case")":if(h||!p.length){o+="\\)";continue}w(),l=!0;var S=p.pop();o+=S.close,"!"===S.type&&d.push(S),S.reEnd=o.length;continue;case"|":if(h||!p.length||c){o+="\\|",c=!1;continue}w(),o+="|";continue;case"[":if(w(),h){o+="\\"+x;continue}h=!0,g=k,m=o.length,o+=x;continue;case"]":if(k===g+1||!h){o+="\\"+x,c=!1;continue}if(h){var C=e.substring(g+1,k);try{RegExp("["+C+"]")}catch(e){var A=this.parse(C,y);o=o.substr(0,m)+"\\["+A[0]+"\\]",l=l||A[1],h=!1;continue}}l=!0,h=!1,o+=x;continue;default:w(),c?c=!1:!f[x]||"^"===x&&h||(o+="\\"),o+=x}h&&(C=e.substr(g+1),A=this.parse(C,y),o=o.substr(0,m)+"\\["+A[0],l=l||A[1]);for(S=p.pop();S;S=p.pop()){var E=o.slice(S.reStart+S.open.length);this.debug("setting tail",o,S),E=E.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(e,t,r){return r||(r="\\"),t+t+r+"|"}),this.debug("tail=%j\n %s",E,E,S,o);var O="*"===S.type?u:"?"===S.type?a:"\\"+S.type;l=!0,o=o.slice(0,S.reStart)+O+"\\("+E}w(),c&&(o+="\\\\");var j=!1;switch(o.charAt(0)){case".":case"[":case"(":j=!0}for(var M=d.length-1;M>-1;M--){var N=d[M],R=o.slice(0,N.reStart),P=o.slice(N.reStart,N.reEnd-8),I=o.slice(N.reEnd-8,N.reEnd),F=o.slice(N.reEnd);I+=F;var L=R.split("(").length-1,B=F;for(k=0;k=0&&!(i=e[o]);o--);for(o=0;o>> no match, partial?",e,p,t,d),p!==a))}if("string"==typeof c?(l=n.nocase?f.toLowerCase()===c.toLowerCase():f===c,this.debug("string match",c,f,l)):(l=f.match(c),this.debug("pattern match",c,f,l)),!l)return!1}if(o===a&&s===u)return!0;if(o===a)return r;if(s===u)return o===a-1&&""===e[o];throw new Error("wtf?")}},{"brace-expansion":14,path:148}],134:[function(e,t,r){function n(e){return"number"==typeof e||(!!/^0x[0-9a-f]+$/i.test(e)||/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e))}t.exports=function(e,t){t||(t={});var r={bools:{},strings:{},unknownFn:null};"function"==typeof t.unknown&&(r.unknownFn=t.unknown),"boolean"==typeof t.boolean&&t.boolean?r.allBools=!0:[].concat(t.boolean).filter(Boolean).forEach(function(e){r.bools[e]=!0});var i={};Object.keys(t.alias||{}).forEach(function(e){i[e]=[].concat(t.alias[e]),i[e].forEach(function(t){i[t]=[e].concat(i[e].filter(function(e){return t!==e}))})}),[].concat(t.string).filter(Boolean).forEach(function(e){r.strings[e]=!0,i[e]&&(r.strings[i[e]]=!0)});var o=t.default||{},s={_:[]};Object.keys(r.bools).forEach(function(e){u(e,void 0!==o[e]&&o[e])});var a=[];function u(e,t,o){if(!o||!r.unknownFn||function(e,t){return r.allBools&&/^--[^=]+$/.test(t)||r.strings[e]||r.bools[e]||i[e]}(e,o)||!1!==r.unknownFn(o)){var a=!r.strings[e]&&n(t)?Number(t):t;l(s,e.split("."),a),(i[e]||[]).forEach(function(e){l(s,e.split("."),a)})}}function l(e,t,n){var i=e;t.slice(0,-1).forEach(function(e){void 0===i[e]&&(i[e]={}),i=i[e]});var o=t[t.length-1];void 0===i[o]||r.bools[o]||"boolean"==typeof i[o]?i[o]=n:Array.isArray(i[o])?i[o].push(n):i[o]=[i[o],n]}function c(e){return i[e].some(function(e){return r.bools[e]})}-1!==e.indexOf("--")&&(a=e.slice(e.indexOf("--")+1),e=e.slice(0,e.indexOf("--")));for(var f=0;f0)return function(e){if((e=String(e)).length>100)return;var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(!t)return;var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*a;case"days":case"day":case"d":return r*s;case"hours":case"hour":case"hrs":case"hr":case"h":return r*o;case"minutes":case"minute":case"mins":case"min":case"m":return r*i;case"seconds":case"second":case"secs":case"sec":case"s":return r*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}(e);if("number"===l&&!1===isNaN(e))return t.long?u(r=e,s,"day")||u(r,o,"hour")||u(r,i,"minute")||u(r,n,"second")||r+" ms":function(e){if(e>=s)return Math.round(e/s)+"d";if(e>=o)return Math.round(e/o)+"h";if(e>=i)return Math.round(e/i)+"m";if(e>=n)return Math.round(e/n)+"s";return e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},{}],137:[function(e,t,r){var n=e("remove-trailing-separator");t.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");return e=e.replace(/[\\\/]+/g,"/"),!1!==t&&(e=n(e)),e}},{"remove-trailing-separator":304}],138:[function(e,t,r){var n,i,o;n="normalizeSelector",i=this,o=function(e,t){"use strict";return function(e){function t(){n&&(s.length>0&&/^[~+>]$/.test(s[s.length-1])&&s.push(" "),s.push(n))}var r,n,i,o,s=[],a=[0],u=0,l=/(?:[^\\]|(?:^|[^\\])(?:\\\\)+)$/,c=/^\s+$/,f=/[^\s=~!^|$*\[\]\(\)]{2}/,p=[/\s+|\/\*|["'>~+\[\(]/g,/\s+|\/\*|["'\[\]\(\)]/g,/\s+|\/\*|["'\[\]\(\)]/g,null,/\*\//g];for(e=e.trim();;){if(n="",(i=p[a[a.length-1]]).lastIndex=u,!(r=i.exec(e))){n=e.substr(u),t();break}if((o=u)<(u=i.lastIndex)-r[0].length&&(n=e.substring(o,u-r[0].length)),1===a[a.length-1]&&f.test(s[s.length-1].substr(-1)+n.charAt(0))&&s.push(" "),a[a.length-1]<3){if(t(),"["===r[0])a.push(1);else if("("===r[0])a.push(2);else if(/^["']$/.test(r[0]))a.push(3),p[3]=new RegExp(r[0],"g");else if("/*"===r[0])a.push(4);else if(/^[\]\)]$/.test(r[0])&&a.length>0)a.pop();else if(/^(?:\s+|[~+>])$/.test(r[0])&&(s.length>0&&!c.test(s[s.length-1])&&0===a[a.length-1]&&s.push(" "),c.test(r[0])))continue;s.push(r[0])}else s[s.length-1]+=n,l.test(s[s.length-1])&&(4===a[a.length-1]&&(s.length<2||c.test(s[s.length-2])?s.pop():s[s.length-1]=" ",r[0]=""),a.pop()),s[s.length-1]+=r[0]}return s.join("").trim()}},void 0!==t&&t.exports?t.exports=o():"function"==typeof define&&define.amd?define(o):i[n]=o(n,i)},{}],139:[function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u="0"&&e<="9"||e>="A"&&e<="F"||e>="a"&&e<="f"}function o(e){return e>="0"&&e<="7"}function s(e){return e>="0"&&e<="9"}var a={"'":"'",'"':'"',"\\":"\\",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v","/":"/"};function u(e,t){var r,u=!("json"===t.mode||t.legacy),l=u?n.isLineTerminator:n.isLineTerminatorJSON,c=u?n.isWhiteSpace:n.isWhiteSpaceJSON,f=e.length,p=0,d=0,h=0,m=[],g=function(){},y=function(e){return e};function v(t){var r=h-d;if(!t)if(h=u&&(c+="^");break}if(l+=p,r===u?c+="^":r>u&&(c+="\t"===e[u]?"\t":" "),l.length>78)break}return a+"\n"+l+"\n"+c}(e,t,h,p,r,u));throw o.row=p+1,o.column=r+1,o}function b(t){"\r"===t&&"\n"===e[h]&&h++,d=h,p++}function w(){for(;h=f||t[i]!=e[h])&&(h=r-1,v()),h++}function C(){for(var r=t.null_prototype?Object.create(null):{},n={},i=!1;h="1"&&r<="9"){for(;h=f&&v(),n=e[h++],a[n]&&(u||"v"!=n&&"'"!=n))r+=a[n];else if(u&&l(n))b(n);else if("u"===n||"x"===n&&u){for(var s="u"===n?4:2,c=0;c=f&&v(),i(e[h])||v("Bad escape sequence"),h++;r+=String.fromCharCode(parseInt(e.substr(h-s,s),16))}else if(u&&o(n)){if(n<"4"&&o(e[h])&&o(e[h+1]))var p=3;else if(o(e[h]))p=2;else p=1;h+=p-1,r+=String.fromCharCode(parseInt(e.substr(h-p,p),8))}else u?r+=n:(h--,v());else l(n)?v():(!u&&n.charCodeAt(0)<32&&(h--,v("Unexpected control character")),r+=n)}v()}t._tokenize&&(r=null,g=function(){if(null!==r)throw Error("internal error, token overlap");r=h},y=function(n,i){if(r!=h){var o={raw:e.substr(r,h-r),type:i,stack:m.slice(0)};void 0!==n&&(o.value=n),t._tokenize.call(null,o)}return r=null,n}),k();var M=w();if(void 0!==M||h=f)return"function"==typeof t.reviver&&(M=t.reviver.call(null,"",M)),M;v()}else v(h?"No data, only a whitespace":"No data, empty input")}t.exports.parse=function(e,t){if("function"==typeof t&&(t={reviver:t}),void 0!==e){"string"!=typeof e&&(e=String(e)),null==t&&(t={}),null==t.reserved_keys&&(t.reserved_keys="ignore"),"throw"!==t.reserved_keys&&"ignore"!==t.reserved_keys||null==t.null_prototype&&(t.null_prototype=!0);try{return u(e,t)}catch(e){if(e instanceof SyntaxError&&null!=e.row&&null!=e.column){var r=e;(e=SyntaxError(r.message)).column=r.column,e.row=r.row}throw e}}},t.exports.tokenize=function(e,r){null==r&&(r={}),r._tokenize=function(e){r._addstack&&e.stack.unshift.apply(e.stack,r._addstack),n.push(e)};var n=[];return n.data=t.exports.parse(e,r),n}},{"./unicode":147}],147:[function(e,t,r){var n=t.exports;t.exports.isWhiteSpace=function(e){return" "===e||" "===e||"\ufeff"===e||e>="\t"&&e<="\r"||" "===e||"᠎"===e||e>=" "&&e<=" "||"\u2028"===e||"\u2029"===e||" "===e||" "===e||" "===e},t.exports.isWhiteSpaceJSON=function(e){return" "===e||"\t"===e||"\n"===e||"\r"===e},t.exports.isLineTerminator=function(e){return"\n"===e||"\r"===e||"\u2028"===e||"\u2029"===e},t.exports.isLineTerminatorJSON=function(e){return"\n"===e||"\r"===e},t.exports.isIdentifierStart=function(e){return"$"===e||"_"===e||e>="A"&&e<="Z"||e>="a"&&e<="z"||e>="€"&&n.NonAsciiIdentifierStart.test(e)},t.exports.isIdentifierPart=function(e){return"$"===e||"_"===e||e>="A"&&e<="Z"||e>="a"&&e<="z"||e>="0"&&e<="9"||e>="€"&&n.NonAsciiIdentifierPart.test(e)},t.exports.NonAsciiIdentifierStart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,t.exports.NonAsciiIdentifierPart=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0\u08A2-\u08AC\u08E4-\u08FE\u0900-\u0963\u0966-\u096F\u0971-\u0977\u0979-\u097F\u0981-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C01-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C82\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D02\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F0\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191C\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1D00-\u1DE6\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA697\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7B\uAA80-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE26\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},{}],148:[function(e,t,r){(function(e){function t(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!i;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(r=s+"/"+r,i="/"===s.charAt(0))}return(i?"/":"")+(r=t(n(r.split("/"),function(e){return!!e}),!i).join("/"))||"."},r.normalize=function(e){var o=r.isAbsolute(e),s="/"===i(e,-1);return(e=t(n(e.split("/"),function(e){return!!e}),!o).join("/"))||o||(e="."),e&&s&&(e+="/"),(o?"/":"")+e},r.isAbsolute=function(e){return"/"===e.charAt(0)},r.join=function(){var e=Array.prototype.slice.call(arguments,0);return r.normalize(n(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},r.relative=function(e,t){function n(e){for(var t=0;t=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=r.resolve(e).substr(1),t=r.resolve(t).substr(1);for(var i=n(e.split("/")),o=n(t.split("/")),s=Math.min(i.length,o.length),a=s,u=0;u=1;--o)if(47===(t=e.charCodeAt(o))){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},r.basename=function(e,t){var r=function(e){"string"!=typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},r.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,o=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===n&&(i=!1,n=s+1),46===a?-1===t?t=s:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=s+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:282}],149:[function(e,t,r){(function(e){"use strict";function r(e){return"/"===e.charAt(0)}function n(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}t.exports="win32"===e.platform?n:r,t.exports.posix=r,t.exports.win32=n}).call(this,e("_process"))},{_process:282}],150:[function(e,t,r){(function(r){"use strict";var n=e("path");function i(e){return e[e.length-1]===n.sep?e.slice(0,-1):e}t.exports=function(e,t){return e=i(e),t=i(t),"win32"===r.platform&&(e=e.toLowerCase(),t=t.toLowerCase()),0===e.lastIndexOf(t,0)&&(e[t.length]===n.sep||void 0===e[t.length])}}).call(this,e("_process"))},{_process:282,path:148}],151:[function(e,t,r){"use strict";t.exports="function"==typeof Promise?Promise:e("pinkie")},{pinkie:152}],152:[function(e,t,r){(function(e,r){"use strict";var n,i="pending",o="settled",s="fulfilled",a="rejected",u=function(){},l=void 0!==e&&void 0!==e.process&&"function"==typeof e.process.emit,c=void 0===r?setTimeout:r,f=[];function p(){for(var e=0;e1&&void 0!==arguments[1]?arguments[1]:0,r=[],o=e.length,s=t;for(;s=0)r.push(a[1]);else if("space"!==a[0])break;s++}for(var u=0;u0||"brackets"===l||t[0])||"]"===e[0]||t.push(u),this.pos+=1}if(this.pos===this.tokens.length&&(this.pos-=1,n=!0),e.length>0&&this.unclosedBracket(o),n&&this.tokens.length>1)if(r===this.pos&&(this.pos+=1),this.ruleEnd({start:r,params:t,colon:i,mixin:s,extend:a,isEndOfBlock:!0}))return;this.unknownWord(r)}else this.spaces+=this.tokens[r][1]}},{key:"rule",value:function(e){e.pop();var t=new u.default;return this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t,t}},{key:"ruleEnd",value:function(e){var t=e.start;if(e.extend||e.mixin)return this.createRule(Object.assign(e,{empty:!0})),!0;if(e.colon){if(e.isEndOfBlock)for(;this.pos>t;){var r=this.tokens[this.pos][0];if("space"!==r&&"comment"!==r)break;this.pos-=1}return this.createDeclaration({start:t}),!0}return!1}},{key:"tokenize",value:function(){this.tokens=(0,p.default)(this.input)}}]),t}();r.default=m,t.exports=r.default},{"./find-extend-rule":153,"./import":154,"./is-mixin-token":155,"./less-tokenize":161,"./root":162,"./rule":163,"postcss/lib/comment":183,"postcss/lib/parser":193}],158:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,i=function(){function e(e,t){for(var r=0;r=0};var n=e("./globals"),i=[n.backTick,n.doubleQuote,n.singleQuote];t.exports=r.default},{"./globals":165}],167:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){e.css.charCodeAt(e.pos+1)===i.openedCurlyBracket?(e.nextPos=e.css.indexOf("}",e.pos+2),-1===e.nextPos&&(0,s.default)(e,"interpolation"),e.cssPart=e.css.slice(e.pos,e.nextPos+1),e.lines=e.cssPart.split("\n"),e.lastLine=e.lines.length-1,e.lastLine>0?(e.nextLine=e.line+e.lastLine,e.nextOffset=e.nextPos-e.lines[e.lastLine].length):(e.nextLine=e.line,e.nextOffset=e.offset),e.tokens.push(["word",e.cssPart,e.line,e.pos-e.offset,e.nextLine,e.nextPos-e.nextOffset]),e.offset=e.nextOffset,e.line=e.nextLine):(i.atEndPattern.lastIndex=e.pos+1,i.atEndPattern.test(e.css),0===i.atEndPattern.lastIndex?e.nextPos=e.css.length-1:e.nextPos=i.atEndPattern.lastIndex-2,e.cssPart=e.css.slice(e.pos,e.nextPos+1),e.token="at-word",i.variablePattern.test(e.cssPart)&&(i.wordEndPattern.lastIndex=e.pos+1,i.wordEndPattern.test(e.css),0===i.wordEndPattern.lastIndex?e.nextPos=e.css.length-1:e.nextPos=i.wordEndPattern.lastIndex-2,e.cssPart=e.css.slice(e.pos,e.nextPos+1),e.token="word"),e.tokens.push([e.token,e.cssPart,e.line,e.pos-e.offset,e.line,e.nextPos-e.offset]));e.pos=e.nextPos};var n,i=e("./globals"),o=e("./unclosed"),s=(n=o)&&n.__esModule?n:{default:n};t.exports=r.default},{"./globals":165,"./unclosed":178}],168:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){e.nextPos=e.pos,e.escape=!0;for(;e.css.charCodeAt(e.nextPos+1)===n.backslash;)e.nextPos+=1,e.escape=!e.escape;e.symbolCode=e.css.charCodeAt(e.nextPos+1),e.escape&&e.symbolCode!==n.slash&&e.symbolCode!==n.space&&e.symbolCode!==n.newline&&e.symbolCode!==n.tab&&e.symbolCode!==n.carriageReturn&&e.symbolCode!==n.feed&&(e.nextPos+=1);e.tokens.push(["word",e.css.slice(e.pos,e.nextPos+1),e.line,e.pos-e.offset,e.line,e.nextPos-e.offset]),e.pos=e.nextPos};var n=e("./globals");t.exports=r.default},{"./globals":165}],169:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){e.tokens.push([e.symbol,e.symbol,e.line,e.pos-e.offset])},t.exports=r.default},{}],170:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){e.tokens.push(["word",e.symbol,e.line,e.pos-e.offset,e.line,e.pos-e.offset+1])},t.exports=r.default},{}],171:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=e.css.charCodeAt(e.pos+1);if(e.symbolCode===n.slash&&t===n.asterisk)(0,a.default)(e);else if(e.symbolCode===n.slash&&t===n.slash)(0,s.default)(e);else{if((0,o.default)(e)){var r=(0,i.default)(e);r<0?(0,u.default)(e,"escaping"):e.nextPos=r}else n.wordEndPattern.lastIndex=e.pos+1,n.wordEndPattern.test(e.css),0===n.wordEndPattern.lastIndex?e.nextPos=e.css.length-1:e.nextPos=n.wordEndPattern.lastIndex-2;e.cssPart=e.css.slice(e.pos,e.nextPos+1),e.tokens.push(["word",e.cssPart,e.line,e.pos-e.offset,e.line,e.nextPos-e.offset]),e.pos=e.nextPos}};var n=e("./globals"),i=l(e("./find-end-of-escaping")),o=l(e("./is-escaping")),s=l(e("./tokenize-inline-comment")),a=l(e("./tokenize-multiline-comment")),u=l(e("./unclosed"));function l(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./find-end-of-escaping":164,"./globals":165,"./is-escaping":166,"./tokenize-inline-comment":172,"./tokenize-multiline-comment":173,"./unclosed":178}],172:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){e.nextPos=e.css.indexOf("\n",e.pos+2)-1,-2===e.nextPos&&(e.nextPos=e.css.length-1);e.tokens.push(["comment",e.css.slice(e.pos,e.nextPos+1),e.line,e.pos-e.offset,e.line,e.nextPos-e.offset,"inline"]),e.pos=e.nextPos},t.exports=r.default},{}],173:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){e.nextPos=e.css.indexOf("*/",e.pos+2)+1,0===e.nextPos&&(0,o.default)(e,"comment");e.cssPart=e.css.slice(e.pos,e.nextPos+1),e.lines=e.cssPart.split("\n"),e.lastLine=e.lines.length-1,e.lastLine>0?(e.nextLine=e.line+e.lastLine,e.nextOffset=e.nextPos-e.lines[e.lastLine].length):(e.nextLine=e.line,e.nextOffset=e.offset);e.tokens.push(["comment",e.cssPart,e.line,e.pos-e.offset,e.nextLine,e.nextPos-e.nextOffset]),e.offset=e.nextOffset,e.line=e.nextLine,e.pos=e.nextPos};var n,i=e("./unclosed"),o=(n=i)&&n.__esModule?n:{default:n};t.exports=r.default},{"./unclosed":178}],174:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){var t=e.css.charCodeAt(e.pos+1),r=e.tokens.length;if("url"===(r?e.tokens[r-1][1]:"")&&t!==i.singleQuote&&t!==i.doubleQuote&&t!==i.space&&t!==i.newline&&t!==i.tab&&t!==i.feed&&t!==i.carriageReturn){e.nextPos=e.pos;do{for(e.escaped=!1,e.nextPos=e.css.indexOf(")",e.nextPos+1),-1===e.nextPos&&(0,s.default)(e,"bracket"),e.escapePos=e.nextPos;e.css.charCodeAt(e.escapePos-1)===i.backslash;)e.escapePos-=1,e.escaped=!e.escaped}while(e.escaped);e.tokens.push(["brackets",e.css.slice(e.pos,e.nextPos+1),e.line,e.pos-e.offset,e.line,e.nextPos-e.offset]),e.pos=e.nextPos}else{e.nextPos=function(e,t,r){for(var n=0,i=r;i=0,o=/['"]/.test(e.cssPart);if(0===e.cssPart.length||"..."===e.cssPart||n&&!o)-1===e.nextPos&&(0,s.default)(e,"bracket"),e.tokens.push([e.symbol,e.symbol,e.line,e.pos-e.offset]);else{var a=i.badBracketPattern.test(e.cssPart);-1===e.nextPos||a?e.tokens.push([e.symbol,e.symbol,e.line,e.pos-e.offset]):(e.tokens.push(["brackets",e.cssPart,e.line,e.pos-e.offset,e.line,e.nextPos-e.offset]),e.pos=e.nextPos)}}};var n,i=e("./globals"),o=e("./unclosed"),s=(n=o)&&n.__esModule?n:{default:n};t.exports=r.default},{"./globals":165,"./unclosed":178}],175:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){e.nextPos=e.pos;do{for(e.escaped=!1,e.nextPos=e.css.indexOf(e.symbol,e.nextPos+1),-1===e.nextPos&&(0,s.default)(e,"quote"),e.escapePos=e.nextPos;e.css.charCodeAt(e.escapePos-1)===i.backslash;)e.escapePos-=1,e.escaped=!e.escaped}while(e.escaped);e.tokens.push(["string",e.css.slice(e.pos,e.nextPos+1),e.line,e.pos-e.offset,e.line,e.nextPos-e.offset]),e.pos=e.nextPos};var n,i=e("./globals"),o=e("./unclosed"),s=(n=o)&&n.__esModule?n:{default:n};t.exports=r.default},{"./globals":165,"./unclosed":178}],176:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){switch(e.symbolCode){case n.newline:case n.space:case n.tab:case n.carriageReturn:case n.feed:(0,f.default)(e);break;case n.comma:(0,a.default)(e);break;case n.colon:case n.semicolon:case n.openedCurlyBracket:case n.closedCurlyBracket:case n.closedParenthesis:case n.openSquareBracket:case n.closeSquareBracket:(0,s.default)(e);break;case n.openedParenthesis:(0,l.default)(e);break;case n.singleQuote:case n.doubleQuote:(0,c.default)(e);break;case n.atRule:(0,i.default)(e);break;case n.backslash:(0,o.default)(e);break;default:(0,u.default)(e)}};var n=e("./globals"),i=p(e("./tokenize-at-rule")),o=p(e("./tokenize-backslash")),s=p(e("./tokenize-basic-symbol")),a=p(e("./tokenize-comma")),u=p(e("./tokenize-default")),l=p(e("./tokenize-opened-parenthesis")),c=p(e("./tokenize-quotes")),f=p(e("./tokenize-whitespace"));function p(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./globals":165,"./tokenize-at-rule":167,"./tokenize-backslash":168,"./tokenize-basic-symbol":169,"./tokenize-comma":170,"./tokenize-default":171,"./tokenize-opened-parenthesis":174,"./tokenize-quotes":175,"./tokenize-whitespace":177}],177:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){e.nextPos=e.pos;do{e.nextPos+=1,e.symbolCode=e.css.charCodeAt(e.nextPos),e.symbolCode===n.newline&&(e.offset=e.nextPos,e.line+=1)}while(e.symbolCode===n.space||e.symbolCode===n.newline||e.symbolCode===n.tab||e.symbolCode===n.carriageReturn||e.symbolCode===n.feed);e.tokens.push(["space",e.css.slice(e.pos,e.nextPos)]),e.pos=e.nextPos-1};var n=e("./globals");t.exports=r.default},{"./globals":165}],178:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){throw e.input.error("Unclosed "+t,e.line,e.pos-e.offset)},t.exports=r.default},{}],179:[function(e,t,r){"use strict";Object.defineProperty(t,"exports",{enumerable:!0,get:function(){var e={modifiers:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},colors:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39]},bgColors:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49]}};return e.colors.grey=e.colors.gray,Object.keys(e).forEach(function(t){var r=e[t];Object.keys(r).forEach(function(t){var n=r[t];e[t]=r[t]={open:"["+n[0]+"m",close:"["+n[1]+"m"}}),Object.defineProperty(e,t,{value:r,enumerable:!1})}),e}})},{}],180:[function(e,t,r){(function(r){"use strict";var n=e("escape-string-regexp"),i=e("ansi-styles"),o=e("strip-ansi"),s=e("has-ansi"),a=e("supports-color"),u=Object.defineProperties,l="win32"===r.platform&&!/^xterm/i.test(r.env.TERM);function c(e){this.enabled=e&&void 0!==e.enabled?e.enabled:a}l&&(i.blue.open="");var f,p=(f={},Object.keys(i).forEach(function(e){i[e].closeRe=new RegExp(n(i[e].close),"g"),f[e]={get:function(){return h.call(this,this._styles.concat(e))}}}),f),d=u(function(){},p);function h(e){var t=function(){return function(){var e=arguments,t=e.length,r=0!==t&&String(arguments[0]);if(t>1)for(var n=1;n=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var a=s,u=this.normalize(a,this.last),l=Array.isArray(u),c=0;for(u=l?u:u[Symbol.iterator]();;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var p=f;this.nodes.push(p)}}return this},r.prototype.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var a=s,u=this.normalize(a,this.first,"prepend").reverse(),l=u,c=Array.isArray(l),f=0;for(l=c?l:l[Symbol.iterator]();;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;this.nodes.unshift(d)}for(var h in this.indexes)this.indexes[h]=this.indexes[h]+u.length}return this},r.prototype.cleanRaws=function(e){if(t.prototype.cleanRaws.call(this,e),this.nodes){var r=this.nodes,n=Array.isArray(r),i=0;for(r=n?r:r[Symbol.iterator]();;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}o.cleanRaws(e)}}},r.prototype.insertBefore=function(e,t){var r=0===(e=this.index(e))&&"prepend",n=this.normalize(t,this.nodes[e],r).reverse(),i=n,o=Array.isArray(i),s=0;for(i=o?i:i[Symbol.iterator]();;){var a;if(o){if(s>=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}var u=a;this.nodes.splice(e,0,u)}var l=void 0;for(var c in this.indexes)e<=(l=this.indexes[c])&&(this.indexes[c]=l+n.length);return this},r.prototype.insertAfter=function(e,t){e=this.index(e);var r=this.normalize(t,this.nodes[e]).reverse(),n=r,i=Array.isArray(n),o=0;for(n=i?n:n[Symbol.iterator]();;){var s;if(i){if(o>=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var a=s;this.nodes.splice(e+1,0,a)}var u=void 0;for(var l in this.indexes)e<(u=this.indexes[l])&&(this.indexes[l]=u+r.length);return this},r.prototype.remove=function(e){return void 0!==e?((0,o.default)("Container#remove is deprecated. Use Container#removeChild"),this.removeChild(e)):t.prototype.remove.call(this),this},r.prototype.removeChild=function(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var r in this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this},r.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),r=0;for(e=t?e:e[Symbol.iterator]();;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{if((r=e.next()).done)break;n=r.value}n.parent=void 0}return this.nodes=[],this},r.prototype.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&-1===t.props.indexOf(n.prop)||t.fast&&-1===n.value.indexOf(t.fast)||(n.value=n.value.replace(e,r))}),this},r.prototype.every=function(e){return this.nodes.every(e)},r.prototype.some=function(e){return this.nodes.some(e)},r.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},r.prototype.normalize=function(t,r){var n=this;if("string"==typeof t)t=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(e("./parse")(t).nodes);else if(!Array.isArray(t))if("root"===t.type)t=t.nodes;else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new i.default(t)]}else if(t.selector){t=[new(e("./rule"))(t)]}else if(t.name){t=[new(e("./at-rule"))(t)]}else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new s.default(t)]}return t.map(function(e){return void 0===e.raws&&(e=n.rebuild(e)),e.parent&&(e=e.clone()),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/[^\s]/g,"")),e.parent=n,e})},r.prototype.rebuild=function(t,r){var n=this,o=void 0;if("root"===t.type){var a=e("./root");o=new a}else if("atrule"===t.type){var u=e("./at-rule");o=new u}else if("rule"===t.type){var l=e("./rule");o=new l}else"decl"===t.type?o=new i.default:"comment"===t.type&&(o=new s.default);for(var c in t)"nodes"===c?o.nodes=t.nodes.map(function(e){return n.rebuild(e,o)}):"parent"===c&&r?o.parent=r:t.hasOwnProperty(c)&&(o[c]=t[c]);return o},r.prototype.eachInside=function(e){return(0,o.default)("Container#eachInside is deprecated. Use Container#walk instead."),this.walk(e)},r.prototype.eachDecl=function(e,t){return(0,o.default)("Container#eachDecl is deprecated. Use Container#walkDecls instead."),this.walkDecls(e,t)},r.prototype.eachRule=function(e,t){return(0,o.default)("Container#eachRule is deprecated. Use Container#walkRules instead."),this.walkRules(e,t)},r.prototype.eachAtRule=function(e,t){return(0,o.default)("Container#eachAtRule is deprecated. Use Container#walkAtRules instead."),this.walkAtRules(e,t)},r.prototype.eachComment=function(e){return(0,o.default)("Container#eachComment is deprecated. Use Container#walkComments instead."),this.walkComments(e)},n(r,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}},{key:"semicolon",get:function(){return(0,o.default)("Node#semicolon is deprecated. Use Node#raws.semicolon"),this.raws.semicolon},set:function(e){(0,o.default)("Node#semicolon is deprecated. Use Node#raws.semicolon"),this.raws.semicolon=e}},{key:"after",get:function(){return(0,o.default)("Node#after is deprecated. Use Node#raws.after"),this.raws.after},set:function(e){(0,o.default)("Node#after is deprecated. Use Node#raws.after"),this.raws.after=e}}]),r}(a(e("./node")).default);r.default=u,t.exports=r.default},{"./at-rule":182,"./comment":183,"./declaration":186,"./node":191,"./parse":192,"./root":197,"./rule":198,"./warn-once":203}],185:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(e,t){for(var r=0;r",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.prototype.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;void 0===e&&(e=i.default),e&&(r=(0,s.default)(r));var n=r.split(/\r?\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,n.length),l=String(u).length,c=new o.default.constructor({enabled:!0});function f(t){return e?c.red.bold(t):t}function p(t){return e?c.gray(t):t}return n.slice(a,u).map(function(e,r){var n=a+1+r,i=" "+(" "+n).slice(-l)+" | ";if(n===t.line){var o=p(i.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return f(">")+p(i)+e+"\n "+o+f("^")}return" "+p(i)+e}).join("\n")},e.prototype.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},n(e,[{key:"generated",get:function(){return(0,a.default)("CssSyntaxError#generated is deprecated. Use input instead."),this.input}}]),e}();r.default=l,t.exports=r.default},{"./terminal-highlight":201,"./warn-once":203,chalk:180,"supports-color":205}],186:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.css=t.toString(),"\ufeff"!==this.css[0]&&"￾"!==this.css[0]||(this.css=this.css.slice(1)),r.from&&(/^\w+:\/\//.test(r.from)?this.file=r.from:this.file=s.default.resolve(r.from));var n=new o.default(this.css,r);if(n.text){this.map=n;var i=n.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}this.file||(u+=1,this.id=""),this.map&&(this.map.file=this.from)}return e.prototype.error=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0,s=this.origin(t,r);return(o=s?new i.default(e,s.line,s.column,s.source,s.file,n.plugin):new i.default(e,t,r,this.css,this.file,n.plugin)).input={line:t,column:r,source:this.css},this.file&&(o.input.file=this.file),o},e.prototype.origin=function(e,t){if(!this.map)return!1;var r=this.map.consumer(),n=r.originalPositionFor({line:e,column:t});if(!n.source)return!1;var i={file:this.mapResolve(n.source),line:n.line,column:n.column},o=r.sourceContentFor(n.source);return o&&(i.source=o),i},e.prototype.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:s.default.resolve(this.map.consumer().sourceRoot||".",e)},n(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();r.default=l,t.exports=r.default},{"./css-syntax-error":185,"./previous-map":194,path:148}],188:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(e,t){for(var r=0;rparseInt(s[1]))&&(0,a.default)("Your current PostCSS version is "+i+", but "+r+" uses "+n+". Perhaps this is the source of the error below.")}}else e.plugin=t.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}},e.prototype.asyncTick=function(e,t){var r=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var n=this.processor.plugins[this.plugin],i=this.run(n);this.plugin+=1,f(i)?i.then(function(){r.asyncTick(e,t)}).catch(function(e){r.handleError(e,n),r.processed=!0,t(e)}):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},e.prototype.async=function(){var e=this;return this.processed?new Promise(function(t,r){e.error?r(e.error):t(e.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(t,r){if(e.error)return r(e.error);e.plugin=0,e.asyncTick(t,r)}).then(function(){return e.processed=!0,e.stringify()}),this.processing)},e.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),r=0;for(e=t?e:e[Symbol.iterator]();;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{if((r=e.next()).done)break;n=r.value}var i=n;if(f(this.run(i)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},e.prototype.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},e.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=s.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new o.default(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},n(e,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),e}();r.default=p,t.exports=r.default},{"./map-generator":190,"./parse":192,"./result":196,"./stringify":200,"./warn-once":203}],189:[function(e,t,r){"use strict";r.__esModule=!0;var n={split:function(e,t,r){for(var n=[],i="",o=!1,s=0,a=!1,u=!1,l=0;l0&&(s-=1):0===s&&-1!==t.indexOf(c)&&(o=!0),o?(""!==i&&n.push(i.trim()),i="",o=!1):i+=c}return(r||""!==i)&&n.push(i.trim()),n},space:function(e){return n.split(e,[" ","\n","\t"])},comma:function(e){return n.split(e,[","],!0)}};r.default=n,t.exports=r.default},{}],190:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("js-base64"),i=s(e("source-map")),o=s(e("path"));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n}return e.prototype.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},e.prototype.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;-1===e.previousMaps.indexOf(r)&&e.previousMaps.push(r)}})),this.previousMaps},e.prototype.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},e.prototype.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},e.prototype.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e=void 0,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)},e.prototype.setSourcesContent=function(){var e=this,t={};this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.relative(n);e.map.setSourceContent(i,r.source.input.css)}}})},e.prototype.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),r=0;for(e=t?e:e[Symbol.iterator]();;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{if((r=e.next()).done)break;n=r.value}var s=n,a=this.relative(s.file),u=s.root||o.default.dirname(s.file),l=void 0;!1===this.mapOpts.sourcesContent?(l=new i.default.SourceMapConsumer(s.text)).sourcesContent&&(l.sourcesContent=l.sourcesContent.map(function(){return null})):l=s.consumer(),this.map.applySourceMap(l,a,this.relative(u))}},e.prototype.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},e.prototype.addAnnotation=function(){var e=void 0;e=this.isInline()?"data:application/json;base64,"+n.Base64.encode(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+".map";var t="\n";-1!==this.css.indexOf("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},e.prototype.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):"to.css"},e.prototype.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},e.prototype.relative=function(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?o.default.dirname(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o.default.dirname(o.default.resolve(t,this.mapOpts.annotation))),e=o.default.relative(t,e),"\\"===o.default.sep?e.replace(/\\/g,"/"):e},e.prototype.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},e.prototype.generateString=function(){var e=this;this.css="",this.map=new i.default.SourceMapGenerator({file:this.outputFile()});var t=1,r=1,n=void 0,o=void 0;this.stringify(this.root,function(i,s,a){e.css+=i,s&&"end"!==a&&(s.source&&s.source.start?e.map.addMapping({source:e.sourcePath(s),generated:{line:t,column:r-1},original:{line:s.source.start.line,column:s.source.start.column-1}}):e.map.addMapping({source:"",original:{line:1,column:0},generated:{line:t,column:r-1}})),(n=i.match(/\n/g))?(t+=n.length,o=i.lastIndexOf("\n"),r=i.length-o):r+=i.length,s&&"start"!==a&&(s.source&&s.source.end?e.map.addMapping({source:e.sourcePath(s),generated:{line:t,column:r-1},original:{line:s.source.end.line,column:s.source.end.column}}):e.map.addMapping({source:"",original:{line:1,column:0},generated:{line:t,column:r-1}}))})},e.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},e}();r.default=a,t.exports=r.default},{"js-base64":91,path:148,"source-map":321}],191:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.raws={},"object"!==(void 0===t?"undefined":i(t))&&void 0!==t)throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(t));for(var r in t)this[r]=t[r]}return e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var r=this.positionBy(t);return this.source.input.error(e,r.line,r.column,t)}return new o.default(e)},e.prototype.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.toString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a.default;e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function e(t,r){var n=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var s=t[o],a=void 0===s?"undefined":i(s);"parent"===o&&"object"===a?r&&(n[o]=r):"source"===o?n[o]=s:s instanceof Array?n[o]=s.map(function(t){return e(t,n)}):"before"!==o&&"after"!==o&&"between"!==o&&"semicolon"!==o&&("object"===a&&null!==s&&(s=e(s)),n[o]=s)}return n}(this);for(var r in e)t[r]=e[r];return t},e.prototype.cloneBefore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t},e.prototype.cloneAfter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t},e.prototype.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=Array(e),r=0;r=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var a=s;this.parent.insertBefore(this,a)}this.remove()}return this},e.prototype.moveTo=function(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this},e.prototype.moveBefore=function(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this},e.prototype.moveAfter=function(e){return this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this},e.prototype.next=function(){var e=this.parent.index(this);return this.parent.nodes[e+1]},e.prototype.prev=function(){var e=this.parent.index(this);return this.parent.nodes[e-1]},e.prototype.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var r=this[t];r instanceof Array?e[t]=r.map(function(e){return"object"===(void 0===e?"undefined":i(e))&&e.toJSON?e.toJSON():e}):"object"===(void 0===r?"undefined":i(r))&&r.toJSON?e[t]=r.toJSON():e[t]=r}return e},e.prototype.raw=function(e,t){return(new s.default).raw(this,e,t)},e.prototype.root=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},e.prototype.positionInside=function(e){for(var t=this.toString(),r=this.source.start.column,n=this.source.start.line,i=0;i0&&this.unclosedBracket(i),t&&n){for(;this.pos>s&&("space"===(e=this.tokens[this.pos][0])||"comment"===e);)this.pos-=1;this.decl(this.tokens.slice(s,this.pos+1))}else this.unknownWord(s)},e.prototype.rule=function(e){e.pop();var t=new u.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},e.prototype.decl=function(e){var t=new n.default;this.init(t);var r=e[e.length-1];for(";"===r[0]&&(this.semicolon=!0,e.pop()),r[4]?t.source.end={line:r[4],column:r[5]}:t.source.end={line:r[2],column:r[3]};"word"!==e[0][0];)t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;t.prop+=e.shift()[1]}t.raws.between="";for(var o=void 0;e.length;){if(":"===(o=e.shift())[0]){t.raws.between+=o[1];break}t.raws.between+=o[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var s=e.length-1;s>0;s--){if("!important"===(o=e[s])[1]){t.important=!0;var a=this.stringFrom(e,s);" !important"!==(a=this.spacesFromEnd(e)+a)&&(t.raws.important=a);break}if("important"===o[1]){for(var u=e.slice(0),l="",c=s;c>0;c--){var f=u[c][0];if(0===l.trim().indexOf("!")&&"space"!==f)break;l=u.pop()[1]+l}0===l.trim().indexOf("!")&&(t.important=!0,t.raws.important=l,e=u)}if("space"!==o[0]&&"comment"!==o[0])break}this.raw(t,"value",e),-1!==t.value.indexOf(":")&&this.checkMissedSemicolon(e)},e.prototype.atrule=function(e){var t=new s.default;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2],e[3]);var r=!1,n=!1,i=[];for(this.pos+=1;this.pos=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon",n[2],n[3])}},e}();r.default=c,t.exports=r.default},{"./at-rule":182,"./comment":183,"./declaration":186,"./root":197,"./rule":198,"./tokenize":202}],194:[function(e,t,r){"use strict";r.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=e("js-base64"),o=u(e("source-map")),s=u(e("path")),a=u(e("fs"));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.loadAnnotation(t),this.inline=this.startWith(this.annotation,"data:");var n=r.map?r.map.prev:void 0,i=this.loadMap(r.from,n);i&&(this.text=i)}return e.prototype.consumer=function(){return this.consumerCache||(this.consumerCache=new o.default.SourceMapConsumer(this.text)),this.consumerCache},e.prototype.withContent=function(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)},e.prototype.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},e.prototype.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);t&&(this.annotation=t[1].trim())},e.prototype.decodeInline=function(e){var t="data:application/json;charset=utf-8;base64,",r="data:application/json;charset=utf8;base64,",n="data:application/json;base64,",o="data:application/json,";if(this.startWith(e,o))return decodeURIComponent(e.substr(o.length));if(this.startWith(e,n))return i.Base64.decode(e.substr(n.length));if(this.startWith(e,r))return i.Base64.decode(e.substr(r.length));if(this.startWith(e,t))return i.Base64.decode(e.substr(t.length));var s=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+s)},e.prototype.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var r=t(e);if(r&&a.default.existsSync&&a.default.existsSync(r))return a.default.readFileSync(r,"utf-8").toString().trim();throw new Error("Unable to load previous source map: "+r.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var n=this.annotation;return e&&(n=s.default.join(s.default.dirname(e),n)),this.root=s.default.dirname(n),!(!a.default.existsSync||!a.default.existsSync(n))&&a.default.readFileSync(n,"utf-8").toString().trim()}},e.prototype.isMap=function(e){return"object"===(void 0===e?"undefined":n(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings)},e}();r.default=l,t.exports=r.default},{fs:16,"js-base64":91,path:148,"source-map":321}],195:[function(e,t,r){"use strict";r.__esModule=!0;var n,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=e("./lazy-result"),s=(n=o)&&n.__esModule?n:{default:n};var a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.version="5.2.18",this.plugins=this.normalize(t)}return e.prototype.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(this,e,t)},e.prototype.normalize=function(e){var t=[],r=e,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var s;if(n){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}var a=s;if(a.postcss&&(a=a.postcss),"object"===(void 0===a?"undefined":i(a))&&Array.isArray(a.plugins))t=t.concat(a.plugins);else{if("function"!=typeof a)throw"object"===(void 0===a?"undefined":i(a))&&(a.parse||a.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(a+" is not a PostCSS plugin");t.push(a)}}return t},e}();r.default=a,t.exports=r.default},{"./lazy-result":188}],196:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new s.default(e,t);return this.messages.push(r),r},e.prototype.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},i(e,[{key:"content",get:function(){return this.css}}]),e}();r.default=a,t.exports=r.default},{"./warning":204}],197:[function(e,t,r){"use strict";r.__esModule=!0;var n=o(e("./container")),i=o(e("./warn-once"));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(t){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,e));return n.type="root",n.nodes||(n.nodes=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.removeChild=function(e){return 0===(e=this.index(e))&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[e].raws.before),t.prototype.removeChild.call(this,e)},r.prototype.normalize=function(e,r,n){var i=t.prototype.normalize.call(this,e);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r){var o=i,s=Array.isArray(o),a=0;for(o=s?o:o[Symbol.iterator]();;){var u;if(s){if(a>=o.length)break;u=o[a++]}else{if((a=o.next()).done)break;u=a.value}u.raws.before=r.raws.before}}return i},r.prototype.toResult=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(e("./lazy-result"))(new(e("./processor")),this,t).stringify()},r.prototype.remove=function(e){(0,i.default)("Root#remove is deprecated. Use Root#removeChild"),this.removeChild(e)},r.prototype.prevMap=function(){return(0,i.default)("Root#prevMap is deprecated. Use Root#source.input.map"),this.source.input.map},r}(n.default);r.default=s,t.exports=r.default},{"./container":184,"./lazy-result":188,"./processor":195,"./warn-once":203}],198:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(e,t){for(var r=0;r0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t},e.prototype.rawBeforeOpen=function(e){var t=void 0;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},e.prototype.rawColon=function(e){var t=void 0;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},e.prototype.beforeAfter=function(e,t){var r=void 0;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(-1!==r.indexOf("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{},r=[],C=e.css.valueOf(),A=t.ignoreErrors,E=void 0,O=void 0,j=void 0,M=void 0,N=void 0,R=void 0,P=void 0,I=void 0,F=void 0,L=void 0,B=void 0,T=void 0,D=void 0,U=C.length,z=-1,$=1,q=0;function G(t){throw e.error("Unclosed "+t,$,q-z)}for(;q0?(I=$+N,F=O-M[N].length):(I=$,F=z),r.push(["string",C.slice(q,O+1),$,q-z,I,O-F]),z=F,$=I,q=O;break;case x:k.lastIndex=q+1,k.test(C),O=0===k.lastIndex?C.length-1:k.lastIndex-2,r.push(["at-word",C.slice(q,O+1),$,q-z,$,O-z]),q=O;break;case o:for(O=q,P=!0;C.charCodeAt(O+1)===o;)O+=1,P=!P;E=C.charCodeAt(O+1),P&&E!==s&&E!==u&&E!==a&&E!==c&&E!==f&&E!==l&&(O+=1),r.push(["word",C.slice(q,O+1),$,q-z,$,O-z]),q=O;break;default:E===s&&C.charCodeAt(q+1)===b?(0===(O=C.indexOf("*/",q+2)+1)&&(A?O=C.length:G("comment")),R=C.slice(q,O+1),M=R.split("\n"),(N=M.length-1)>0?(I=$+N,F=O-M[N].length):(I=$,F=z),r.push(["comment",R,$,q-z,I,O-F]),z=F,$=I,q=O):(_.lastIndex=q+1,_.test(C),O=0===_.lastIndex?C.length-1:_.lastIndex-2,r.push(["word",C.slice(q,O+1),$,q-z,$,O-z]),q=O)}q++}return r};var n=39,i=34,o=92,s=47,a=10,u=32,l=12,c=9,f=13,p=91,d=93,h=40,m=41,g=123,y=125,v=59,b=42,w=58,x=64,k=/[ \n\t\r\f\{\(\)'"\\;/\[\]#]/g,_=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,S=/.[\\\/\("'\n]/;t.exports=r.default},{}],203:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){if(n[e])return;n[e]=!0,"undefined"!=typeof console&&console.warn&&console.warn(e)};var n={};t.exports=r.default},{}],204:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="warning",this.text=t,r.node&&r.node.source){var n=r.node.positionBy(r);this.line=n.line,this.column=n.column}for(var i in r)this[i]=r[i]}return e.prototype.toString=function(){return this.node?this.node.error(this.text,{plugin:this.plugin,index:this.index,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text},e}();r.default=n,t.exports=r.default},{}],205:[function(e,t,r){"use strict";t.exports=!1},{}],206:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){return new o.default({nodes:(0,s.parseMediaList)(e),type:"media-query-list",value:e.trim()})};var n,i=e("./nodes/Container"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./parsers")},{"./nodes/Container":207,"./parsers":209}],207:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n,i=e("./Node"),o=(n=i)&&n.__esModule?n:{default:n};function s(e){var t=this;this.constructor(e),this.nodes=e.nodes,void 0===this.after&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),void 0===this.before&&(this.before=this.nodes.length>0?this.nodes[0].before:""),void 0===this.sourceIndex&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(e){e.parent=t})}s.prototype=Object.create(o.default.prototype),s.constructor=o.default,s.prototype.walk=function(e,t){for(var r="string"==typeof e||e instanceof RegExp,n=r?t:e,i="string"==typeof e?new RegExp(e):e,o=0;o0;){var c=e[u];"("===c&&l++,")"===c&&l--,u++}t.unshift(new n.default({type:"url",value:e.substring(0,u).trim(),sourceIndex:s[1].length,before:s[1],after:/^(\s*)/.exec(e.substring(u))[1]})),r=u}for(var f=r;f0&&(r[f-1].after=u.before),void 0===u.type){if(f>0){if("media-feature-expression"===r[f-1].type){u.type="keyword";continue}if("not"===r[f-1].value||"only"===r[f-1].value){u.type="media-type";continue}if("and"===r[f-1].value){u.type="media-feature-expression";continue}"media-type"===r[f-1].type&&(r[f+1]?u.type="media-feature-expression"===r[f+1].type?"keyword":"media-feature-expression":u.type="media-feature-expression")}if(0===f){if(!r[f+1]){u.type="media-type";continue}if(r[f+1]&&("media-feature-expression"===r[f+1].type||"keyword"===r[f+1].type)){u.type="media-type";continue}if(r[f+2]){if("media-feature-expression"===r[f+2].type){u.type="media-type",r[f+1].type="keyword";continue}if("keyword"===r[f+2].type){u.type="keyword",r[f+1].type="media-type";continue}}if(r[f+3]&&"media-feature-expression"===r[f+3].type){u.type="keyword",r[f+1].type="media-type",r[f+2].type="keyword";continue}}}return r}},{"./nodes/Container":207,"./nodes/Node":208}],210:[function(e,t,r){t.exports=function e(t,r){var n=r.parent,i="atrule"===n.type&&"nest"===n.name;return"root"===n.type?[t]:"rule"===n.type||i?(i?n.params.split(",").map(function(e){return e.trim()}):n.selectors).reduce(function(r,i){if(-1!==t.indexOf("&")){var o=e(i,n).map(function(e){return t.replace(/&/g,e)});return r.concat(o)}var s=[i,t].join(" ");return r.concat(e(s,n))},[]):e(t,n)}},{}],211:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("postcss/lib/container");var o=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type="decl",n.isNested=!0,n.nodes||(n.nodes=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=i)&&n.__esModule?n:{default:n}).default);r.default=o,t.exports=r.default},{"postcss/lib/container":246}],212:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t){var r=new n.default(e,t),o=new i.default(r);return o.parse(),o.root};var n=o(e("postcss/lib/input")),i=o(e("./scss-parser"));function o(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./scss-parser":213,"postcss/lib/input":249}],213:[function(e,t,r){"use strict";r.__esModule=!0;var n=a(e("postcss/lib/comment")),i=a(e("postcss/lib/parser")),o=a(e("./nested-declaration")),s=a(e("./scss-tokenize"));function a(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.createTokenizer=function(){this.tokenizer=(0,s.default)(this.input)},t.prototype.rule=function(t){var r=!1,n=0,i="",s=t,a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var l;if(a){if(u>=s.length)break;l=s[u++]}else{if((u=s.next()).done)break;l=u.value}var c=l;if(r)"comment"!==c[0]&&"{"!==c[0]&&(i+=c[1]);else{if("space"===c[0]&&-1!==c[1].indexOf("\n"))break;"("===c[0]?n+=1:")"===c[0]?n-=1:0===n&&":"===c[0]&&(r=!0)}}if(!r||""===i.trim()||/^[a-zA-Z-:#]/.test(i))e.prototype.rule.call(this,t);else{t.pop();var f=new o.default;this.init(f);var p=t[t.length-1];for(p[4]?f.source.end={line:p[4],column:p[5]}:f.source.end={line:p[2],column:p[3]};"word"!==t[0][0];)f.raws.before+=t.shift()[1];for(f.source.start={line:t[0][2],column:t[0][3]},f.prop="";t.length;){var d=t[0][0];if(":"===d||"space"===d||"comment"===d)break;f.prop+=t.shift()[1]}f.raws.between="";for(var h=void 0;t.length;){if(":"===(h=t.shift())[0]){f.raws.between+=h[1];break}f.raws.between+=h[1]}"_"!==f.prop[0]&&"*"!==f.prop[0]||(f.raws.before+=f.prop[0],f.prop=f.prop.slice(1)),f.raws.between+=this.spacesAndCommentsFromStart(t),this.precheckMissedSemicolon(t);for(var m=t.length-1;m>0;m--){if("!important"===(h=t[m])[1]){f.important=!0;var g=this.stringFrom(t,m);" !important"!==(g=this.spacesFromEnd(t)+g)&&(f.raws.important=g);break}if("important"===h[1]){for(var y=t.slice(0),v="",b=m;b>0;b--){var w=y[b][0];if(0===v.trim().indexOf("!")&&"space"!==w)break;v=y.pop()[1]+v}0===v.trim().indexOf("!")&&(f.important=!0,f.raws.important=v,t=y)}if("space"!==h[0]&&"comment"!==h[0])break}this.raw(f,"value",t),-1!==f.value.indexOf(":")&&this.checkMissedSemicolon(t),this.current=f}},t.prototype.comment=function(t){if("inline"===t[6]){var r=new n.default;this.init(r,t[2],t[3]),r.raws.inline=!0,r.source.end={line:t[4],column:t[5]};var i=t[1].slice(2);if(/^\s*$/.test(i))r.text="",r.raws.left=i,r.raws.right="";else{var o=i.match(/^(\s*)([^]*[^\s])(\s*)$/),s=o[2].replace(/(\*\/|\/\*)/g,"*//*");r.text=s,r.raws.left=o[1],r.raws.right=o[3],r.raws.text=o[2]}}else e.prototype.comment.call(this,t)},t.prototype.raw=function(t,r,n){if(e.prototype.raw.call(this,t,r,n),t.raws[r]){var i=t.raws[r].raw;t.raws[r].raw=n.reduce(function(e,t){return"comment"===t[0]&&"inline"===t[6]?e+"/*"+t[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*")+"*/":e+t[1]},""),i!==t.raws[r].raw&&(t.raws[r].scss=i)}},t}(i.default);r.default=u,t.exports=r.default},{"./nested-declaration":211,"./scss-tokenize":217,"postcss/lib/comment":245,"postcss/lib/parser":255}],214:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("postcss/lib/stringifier");var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.comment=function(e){var t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");if(e.raws.inline){var n=e.raws.text||e.text;this.builder("//"+t+n+r,e)}else this.builder("/*"+t+e.text+r+"*/",e)},t.prototype.decl=function(t,r){if(t.isNested){var n=this.raw(t,"between","colon"),i=t.prop+n+this.rawValue(t,"value");t.important&&(i+=t.raws.important||" !important"),this.builder(i+"{",t,"start");var o=void 0;t.nodes&&t.nodes.length?(this.body(t),o=this.raw(t,"after")):o=this.raw(t,"after","emptyBody"),o&&this.builder(o),this.builder("}",t,"end")}else e.prototype.decl.call(this,t,r)},t.prototype.rawValue=function(e,t){var r=e[t],n=e.raws[t];return n&&n.value===r?n.scss?n.scss:n.raw:r},t}(((n=i)&&n.__esModule?n:{default:n}).default);r.default=o,t.exports=r.default},{"postcss/lib/stringifier":262}],215:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t){new o.default(t).stringify(e)};var n,i=e("./scss-stringifier"),o=(n=i)&&n.__esModule?n:{default:n};t.exports=r.default},{"./scss-stringifier":214}],216:[function(e,t,r){"use strict";r.__esModule=!0;var n=o(e("./scss-stringify")),i=o(e("./scss-parse"));function o(e){return e&&e.__esModule?e:{default:e}}r.default={parse:i.default,stringify:n.default},t.exports=r.default},{"./scss-parse":212,"./scss-stringify":215}],217:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.css.valueOf(),j=t.ignoreErrors,M=void 0,N=void 0,R=void 0,P=void 0,I=void 0,F=void 0,L=void 0,B=void 0,T=void 0,D=void 0,U=void 0,z=void 0,$=void 0,q=void 0,G=r.length,W=-1,K=1,V=0,H=[],Y=[];function J(t){throw e.error("Unclosed "+t,K,V-W)}function Z(){for(var e=1,t=!1,s=!1;e>0;)N+=1,r.length<=N&&J("interpolation"),M=r.charCodeAt(N),z=r.charCodeAt(N+1),t?s||M!==t?M===o?s=!D:s&&(s=!1):(t=!1,s=!1):M===n||M===i?t=M:M===y?e-=1:M===_&&z===g&&(e+=1)}return{back:function(e){Y.push(e)},nextToken:function(){if(Y.length)return Y.pop();if(V>=G)return;((M=r.charCodeAt(V))===a||M===l||M===f&&r.charCodeAt(V+1)!==a)&&(W=V,K+=1);switch(M){case a:case u:case c:case f:case l:N=V;do{N+=1,(M=r.charCodeAt(N))===a&&(W=N,K+=1)}while(M===u||M===a||M===c||M===f||M===l);$=["space",r.slice(V,N)],V=N-1;break;case p:$=["[","[",K,V-W];break;case d:$=["]","]",K,V-W];break;case g:$=["{","{",K,V-W];break;case y:$=["}","}",K,V-W];break;case k:$=["word",",",K,V-W,K,V-W+1];break;case w:$=[":",":",K,V-W];break;case v:$=[";",";",K,V-W];break;case h:if(U=H.length?H.pop()[1]:"",z=r.charCodeAt(V+1),"url"===U&&z!==n&&z!==i){for(q=1,D=!1,N=V+1;N<=r.length-1;){if((z=r.charCodeAt(N))===o)D=!D;else if(z===h)q+=1;else if(z===m&&0===(q-=1))break;N+=1}F=r.slice(V,N+1),P=F.split("\n"),(I=P.length-1)>0?(B=K+I,T=N-P[I].length):(B=K,T=W),$=["brackets",F,K,V-W,B,N-T],W=T,K=B,V=N}else N=r.indexOf(")",V+1),F=r.slice(V,N+1),-1===N||A.test(F)?$=["(","(",K,V-W]:($=["brackets",F,K,V-W,K,N-W],V=N);break;case m:$=[")",")",K,V-W];break;case n:case i:for(R=M,N=V,D=!1;N0?(B=K+I,T=N-P[I].length):(B=K,T=W),$=["string",r.slice(V,N+1),K,V-W,B,N-T],W=T,K=B,V=N;break;case x:S.lastIndex=V+1,S.test(r),N=0===S.lastIndex?r.length-1:S.lastIndex-2,$=["at-word",r.slice(V,N+1),K,V-W,K,N-W],V=N;break;case o:for(N=V,L=!0;r.charCodeAt(N+1)===o;)N+=1,L=!L;if(M=r.charCodeAt(N+1),L&&M!==s&&M!==u&&M!==a&&M!==c&&M!==f&&M!==l&&(N+=1,E.test(r.charAt(N)))){for(;E.test(r.charAt(N+1));)N+=1;r.charCodeAt(N+1)===u&&(N+=1)}$=["word",r.slice(V,N+1),K,V-W,K,N-W],V=N;break;default:z=r.charCodeAt(V+1),M===_&&z===g?(N=V,Z(),F=r.slice(V,N+1),P=F.split("\n"),(I=P.length-1)>0?(B=K+I,T=N-P[I].length):(B=K,T=W),$=["word",F,K,V-W,B,N-T],W=T,K=B,V=N):M===s&&z===b?(0===(N=r.indexOf("*/",V+2)+1)&&(j?N=r.length:J("comment")),F=r.slice(V,N+1),P=F.split("\n"),(I=P.length-1)>0?(B=K+I,T=N-P[I].length):(B=K,T=W),$=["comment",F,K,V-W,B,N-T],W=T,K=B,V=N):M===s&&z===s?(O.lastIndex=V+1,O.test(r),N=0===O.lastIndex?r.length-1:O.lastIndex-2,F=r.slice(V,N+1),$=["comment",F,K,V-W,K,N-W,"inline"],V=N):(C.lastIndex=V+1,C.test(r),N=0===C.lastIndex?r.length-1:C.lastIndex-2,$=["word",r.slice(V,N+1),K,V-W,K,N-W],H.push($),V=N)}return V++,$},endOfFile:function(){return 0===Y.length&&V>=G}}};var n=39,i=34,o=92,s=47,a=10,u=32,l=12,c=9,f=13,p=91,d=93,h=40,m=41,g=123,y=125,v=59,b=42,w=58,x=64,k=44,_=35,S=/[ \n\t\r\f\{\}\(\)'"\\;/\[\]#]/g,C=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,A=/.[\\\/\("'\n]/,E=/[a-f0-9]/i,O=/[\r\f\n]/g;t.exports=r.default},{}],218:[function(e,t,r){"use strict";r.__esModule=!0;var n=y(e("./processor")),i=y(e("./selectors/attribute")),o=y(e("./selectors/className")),s=y(e("./selectors/combinator")),a=y(e("./selectors/comment")),u=y(e("./selectors/id")),l=y(e("./selectors/nesting")),c=y(e("./selectors/pseudo")),f=y(e("./selectors/root")),p=y(e("./selectors/selector")),d=y(e("./selectors/string")),h=y(e("./selectors/tag")),m=y(e("./selectors/universal")),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(e("./selectors/types"));function y(e){return e&&e.__esModule?e:{default:e}}var v=function(e){return new n.default(e)};v.attribute=function(e){return new i.default(e)},v.className=function(e){return new o.default(e)},v.combinator=function(e){return new s.default(e)},v.comment=function(e){return new a.default(e)},v.id=function(e){return new u.default(e)},v.nesting=function(e){return new l.default(e)},v.pseudo=function(e){return new c.default(e)},v.root=function(e){return new f.default(e)},v.selector=function(e){return new p.default(e)},v.string=function(e){return new d.default(e)},v.tag=function(e){return new h.default(e)},v.universal=function(e){return new m.default(e)},Object.keys(g).forEach(function(e){"__esModule"!==e&&(v[e]=g[e])}),r.default=v,t.exports=r.default},{"./processor":220,"./selectors/attribute":221,"./selectors/className":222,"./selectors/combinator":223,"./selectors/comment":224,"./selectors/id":226,"./selectors/nesting":228,"./selectors/pseudo":230,"./selectors/root":231,"./selectors/selector":232,"./selectors/string":233,"./selectors/tag":234,"./selectors/types":235,"./selectors/universal":236}],219:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(e,t){for(var r=0;r1?(""===i[0]&&(i[0]=!0),o.attribute=this.parseValue(i[2]),o.namespace=this.parseNamespace(i[0])):o.attribute=this.parseValue(n[0]),t=new m.default(o),n[2]){var s=n[2].split(/(\s+i\s*?)$/),a=s[0].trim();t.value=this.lossy?a:s[0],s[1]&&(t.insensitive=!0,this.lossy||(t.raws.insensitive=s[1])),t.quoted="'"===a[0]||'"'===a[0],t.raws.unquoted=t.quoted?a.slice(1,-1):a}this.newNode(t),this.position++},e.prototype.combinator=function(){if("|"===this.currToken[1])return this.namespace();for(var e=new y.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position1&&e.nextToken&&"("===e.nextToken[0]&&e.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},e.prototype.space=function(){var e=this.currToken;0===this.position||","===this.prevToken[0]||"("===this.prevToken[0]?(this.spaces=this.parseSpace(e[1]),this.position++):this.position===this.tokens.length-1||","===this.nextToken[0]||")"===this.nextToken[0]?(this.current.last.spaces.after=this.parseSpace(e[1]),this.position++):this.combinator()},e.prototype.string=function(){var e=this.currToken;this.newNode(new d.default({value:this.currToken[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++},e.prototype.universal=function(e){var t=this.nextToken;if(t&&"|"===t[1])return this.position++,this.namespace();this.newNode(new g.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),e),this.position++},e.prototype.splitWord=function(e,t){for(var r=this,n=this.nextToken,a=this.currToken[1];n&&"word"===n[0];){this.position++;var u=this.currToken[1];if(a+=u,u.lastIndexOf("\\")===u.length-1){var c=this.nextToken;c&&"space"===c[0]&&(a+=this.parseSpace(c[1]," "),this.position++)}n=this.nextToken}var d=(0,o.default)(a,"."),h=(0,o.default)(a,"#"),m=(0,o.default)(a,"#{");m.length&&(h=h.filter(function(e){return!~m.indexOf(e)}));var g=(0,b.default)((0,s.default)((0,i.default)([[0],d,h])));g.forEach(function(n,i){var o=g[i+1]||a.length,s=a.slice(n,o);if(0===i&&t)return t.call(r,s,g.length);var u=void 0;u=~d.indexOf(n)?new l.default({value:s.slice(1),source:{start:{line:r.currToken[2],column:r.currToken[3]+n},end:{line:r.currToken[4],column:r.currToken[3]+(o-1)}},sourceIndex:r.currToken[6]+g[i]}):~h.indexOf(n)?new f.default({value:s.slice(1),source:{start:{line:r.currToken[2],column:r.currToken[3]+n},end:{line:r.currToken[4],column:r.currToken[3]+(o-1)}},sourceIndex:r.currToken[6]+g[i]}):new p.default({value:s,source:{start:{line:r.currToken[2],column:r.currToken[3]+n},end:{line:r.currToken[4],column:r.currToken[3]+(o-1)}},sourceIndex:r.currToken[6]+g[i]}),r.newNode(u,e)}),this.position++},e.prototype.word=function(e){var t=this.nextToken;return t&&"|"===t[1]?(this.position++,this.namespace()):this.splitWord(e)},e.prototype.loop=function(){for(;this.position1&&void 0!==arguments[1]?arguments[1]:{},r=new s.default({css:e,error:function(e){throw new Error(e)},options:t});return this.res=r,this.func(r),this},i(e,[{key:"result",get:function(){return String(this.res)}}]),e}();r.default=a,t.exports=r.default},{"./parser":219}],221:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./namespace"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.ATTRIBUTE,n.raws={},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){var e=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&e.push(this.operator),this.value&&e.push(this.value),this.raws.insensitive?e.push(this.raws.insensitive):this.insensitive&&e.push(" i"),e.push("]"),e.concat(this.spaces.after).join("")},t}(o.default);r.default=a,t.exports=r.default},{"./namespace":227,"./types":235}],222:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./namespace"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.CLASS,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){return[this.spaces.before,this.ns,String("."+this.value),this.spaces.after].join("")},t}(o.default);r.default=a,t.exports=r.default},{"./namespace":227,"./types":235}],223:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./node"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.COMBINATOR,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);r.default=a,t.exports=r.default},{"./node":229,"./types":235}],224:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./node"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.COMMENT,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);r.default=a,t.exports=r.default},{"./node":229,"./types":235}],225:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(){function e(e,t){for(var r=0;r=e&&(this.indexes[r]=t-1);return this},t.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),r=0;for(e=t?e:e[Symbol.iterator]();;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{if((r=e.next()).done)break;n=r.value}n.parent=void 0}return this.nodes=[],this},t.prototype.empty=function(){return this.removeAll()},t.prototype.insertAfter=function(e,t){var r=this.index(e);this.nodes.splice(r+1,0,t);var n=void 0;for(var i in this.indexes)r<=(n=this.indexes[i])&&(this.indexes[i]=n+this.nodes.length);return this},t.prototype.insertBefore=function(e,t){var r=this.index(e);this.nodes.splice(r,0,t);var n=void 0;for(var i in this.indexes)r<=(n=this.indexes[i])&&(this.indexes[i]=n+this.nodes.length);return this},t.prototype.each=function(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var t=this.lastEach;if(this.indexes[t]=0,this.length){for(var r=void 0,n=void 0;this.indexes[t]0&&void 0!==arguments[0]?arguments[0]:{};for(var r in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t)this[r]=t[r];var n=t.spaces,i=(n=void 0===n?{}:n).before,o=void 0===i?"":i,s=n.after,a=void 0===s?"":s;this.spaces={before:o,after:a}}return e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.replaceWith=function(){if(this.parent){for(var e in arguments)this.parent.insertBefore(this,arguments[e]);this.remove()}return this},e.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},e.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function e(t,r){if("object"!==(void 0===t?"undefined":n(t)))return t;var i=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var s=t[o],a=void 0===s?"undefined":n(s);"parent"===o&&"object"===a?r&&(i[o]=r):s instanceof Array?i[o]=s.map(function(t){return e(t,i)}):i[o]=e(s,i)}return i}(this);for(var r in e)t[r]=e[r];return t},e.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},e}();r.default=i,t.exports=r.default},{}],230:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./container"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.PSEUDO,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){var e=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),e,this.spaces.after].join("")},t}(o.default);r.default=a,t.exports=r.default},{"./container":225,"./types":235}],231:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./container"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.ROOT,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.toString=function(){var e=this.reduce(function(e,t){var r=String(t);return r?e+r+",":""},"").slice(0,-1);return this.trailingComma?e+",":e},t}(o.default);r.default=a,t.exports=r.default},{"./container":225,"./types":235}],232:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./container"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.SELECTOR,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);r.default=a,t.exports=r.default},{"./container":225,"./types":235}],233:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./node"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.STRING,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);r.default=a,t.exports=r.default},{"./node":229,"./types":235}],234:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./namespace"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.TAG,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);r.default=a,t.exports=r.default},{"./namespace":227,"./types":235}],235:[function(e,t,r){"use strict";r.__esModule=!0;r.TAG="tag",r.STRING="string",r.SELECTOR="selector",r.ROOT="root",r.PSEUDO="pseudo",r.NESTING="nesting",r.ID="id",r.COMMENT="comment",r.COMBINATOR="combinator",r.CLASS="class",r.ATTRIBUTE="attribute",r.UNIVERSAL="universal"},{}],236:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./namespace"),o=(n=i)&&n.__esModule?n:{default:n},s=e("./types");var a=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type=s.UNIVERSAL,n.value="*",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default);r.default=a,t.exports=r.default},{"./namespace":227,"./types":235}],237:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){return e.sort(function(e,t){return e-t})},t.exports=r.default},{}],238:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=[],r=e.css.valueOf(),O=void 0,j=void 0,M=void 0,N=void 0,R=void 0,P=void 0,I=void 0,F=void 0,L=void 0,B=void 0,T=void 0,D=r.length,U=-1,z=1,$=0,q=function(t,n){if(!e.safe)throw e.error("Unclosed "+t,z,$-U,$);j=(r+=n).length-1};for(;$0?(F=z+R,L=j-N[R].length):(F=z,L=U),t.push(["comment",P,z,$-U,F,j-L,$]),U=L,z=F,$=j):(E.lastIndex=$+1,E.test(r),j=0===E.lastIndex?r.length-1:E.lastIndex-2,t.push(["word",r.slice($,j+1),z,$-U,z,j-U,$]),$=j)}$++}return t};var n=39,i=34,o=92,s=47,a=10,u=32,l=12,c=9,f=13,p=43,d=62,h=126,m=124,g=44,y=40,v=41,b=91,w=93,x=59,k=42,_=58,S=38,C=64,A=/[ \n\t\r\{\(\)'"\\;/]/g,E=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;t.exports=r.default},{}],239:[function(e,t,r){var n=e("./parse"),i=e("./walk"),o=e("./stringify");function s(e){return this instanceof s?(this.nodes=n(e),this):new s(e)}s.prototype.toString=function(){return Array.isArray(this.nodes)?o(this.nodes):""},s.prototype.walk=function(e,t){return i(this.nodes,e,t),this},s.unit=e("./unit"),s.walk=i,s.stringify=o,t.exports=s},{"./parse":240,"./stringify":241,"./unit":242,"./walk":243}],240:[function(e,t,r){var n="(".charCodeAt(0),i=")".charCodeAt(0),o="'".charCodeAt(0),s='"'.charCodeAt(0),a="\\".charCodeAt(0),u="/".charCodeAt(0),l=",".charCodeAt(0),c=":".charCodeAt(0),f="*".charCodeAt(0);t.exports=function(e){for(var t,r,p,d,h,m,g,y,v=[],b=e,w=0,x=b.charCodeAt(w),k=b.length,_=[{nodes:v}],S=0,C="",A="",E="";w=48&&t<=57)l+=e[r],u=!0;else if(t===o){if(a)break;a=!0,l+=e[r]}else{if(t!==i&&t!==n)break;if(0!==r)break;l+=e[r]}r+=1}return!!u&&{number:l,unit:e.slice(r)}}},{}],243:[function(e,t,r){t.exports=function e(t,r,n){var i,o,s,a;for(i=0,o=t.length;i=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var a=s,u=this.normalize(a,this.last),l=Array.isArray(u),c=0;for(u=l?u:u[Symbol.iterator]();;){var f;if(l){if(c>=u.length)break;f=u[c++]}else{if((c=u.next()).done)break;f=c.value}var p=f;this.nodes.push(p)}}return this},r.prototype.prepend=function(){for(var e=arguments.length,t=Array(e),r=0;r=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var a=s,u=this.normalize(a,this.first,"prepend").reverse(),l=u,c=Array.isArray(l),f=0;for(l=c?l:l[Symbol.iterator]();;){var p;if(c){if(f>=l.length)break;p=l[f++]}else{if((f=l.next()).done)break;p=f.value}var d=p;this.nodes.unshift(d)}for(var h in this.indexes)this.indexes[h]=this.indexes[h]+u.length}return this},r.prototype.cleanRaws=function(e){if(t.prototype.cleanRaws.call(this,e),this.nodes){var r=this.nodes,n=Array.isArray(r),i=0;for(r=n?r:r[Symbol.iterator]();;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}o.cleanRaws(e)}}},r.prototype.insertBefore=function(e,t){var r=0===(e=this.index(e))&&"prepend",n=this.normalize(t,this.nodes[e],r).reverse(),i=n,o=Array.isArray(i),s=0;for(i=o?i:i[Symbol.iterator]();;){var a;if(o){if(s>=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}var u=a;this.nodes.splice(e,0,u)}var l=void 0;for(var c in this.indexes)e<=(l=this.indexes[c])&&(this.indexes[c]=l+n.length);return this},r.prototype.insertAfter=function(e,t){e=this.index(e);var r=this.normalize(t,this.nodes[e]).reverse(),n=r,i=Array.isArray(n),o=0;for(n=i?n:n[Symbol.iterator]();;){var s;if(i){if(o>=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var a=s;this.nodes.splice(e+1,0,a)}var u=void 0;for(var l in this.indexes)e<(u=this.indexes[l])&&(this.indexes[l]=u+r.length);return this},r.prototype.removeChild=function(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);var t=void 0;for(var r in this.indexes)(t=this.indexes[r])>=e&&(this.indexes[r]=t-1);return this},r.prototype.removeAll=function(){var e=this.nodes,t=Array.isArray(e),r=0;for(e=t?e:e[Symbol.iterator]();;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{if((r=e.next()).done)break;n=r.value}n.parent=void 0}return this.nodes=[],this},r.prototype.replaceValues=function(e,t,r){return r||(r=t,t={}),this.walkDecls(function(n){t.props&&-1===t.props.indexOf(n.prop)||t.fast&&-1===n.value.indexOf(t.fast)||(n.value=n.value.replace(e,r))}),this},r.prototype.every=function(e){return this.nodes.every(e)},r.prototype.some=function(e){return this.nodes.some(e)},r.prototype.index=function(e){return"number"==typeof e?e:this.nodes.indexOf(e)},r.prototype.normalize=function(t,r){var n=this;if("string"==typeof t)t=function e(t){return t.map(function(t){return t.nodes&&(t.nodes=e(t.nodes)),delete t.source,t})}(e("./parse")(t).nodes);else if(Array.isArray(t)){var s=t=t.slice(0),a=Array.isArray(s),u=0;for(s=a?s:s[Symbol.iterator]();;){var l;if(a){if(u>=s.length)break;l=s[u++]}else{if((u=s.next()).done)break;l=u.value}var c=l;c.parent&&c.parent.removeChild(c,"ignore")}}else if("root"===t.type){var f=t=t.nodes.slice(0),p=Array.isArray(f),d=0;for(f=p?f:f[Symbol.iterator]();;){var h;if(p){if(d>=f.length)break;h=f[d++]}else{if((d=f.next()).done)break;h=d.value}var m=h;m.parent&&m.parent.removeChild(m,"ignore")}}else if(t.type)t=[t];else if(t.prop){if(void 0===t.value)throw new Error("Value field is missed in node creation");"string"!=typeof t.value&&(t.value=String(t.value)),t=[new i.default(t)]}else if(t.selector){t=[new(e("./rule"))(t)]}else if(t.name){t=[new(e("./at-rule"))(t)]}else{if(!t.text)throw new Error("Unknown node type in node creation");t=[new o.default(t)]}return t.map(function(e){return"function"!=typeof e.before&&(e=n.rebuild(e)),e.parent&&e.parent.removeChild(e),void 0===e.raws.before&&r&&void 0!==r.raws.before&&(e.raws.before=r.raws.before.replace(/[^\s]/g,"")),e.parent=n,e})},r.prototype.rebuild=function(t,r){var n=this,s=void 0;if("root"===t.type){var a=e("./root");s=new a}else if("atrule"===t.type){var u=e("./at-rule");s=new u}else if("rule"===t.type){var l=e("./rule");s=new l}else"decl"===t.type?s=new i.default:"comment"===t.type&&(s=new o.default);for(var c in t)"nodes"===c?s.nodes=t.nodes.map(function(e){return n.rebuild(e,s)}):"parent"===c&&r?s.parent=r:t.hasOwnProperty(c)&&(s[c]=t[c]);return s},n(r,[{key:"first",get:function(){if(this.nodes)return this.nodes[0]}},{key:"last",get:function(){if(this.nodes)return this.nodes[this.nodes.length-1]}}]),r}(s(e("./node")).default);r.default=a,t.exports=r.default},{"./at-rule":244,"./comment":245,"./declaration":248,"./node":253,"./parse":254,"./root":260,"./rule":261}],247:[function(e,t,r){"use strict";r.__esModule=!0;var n=s(e("supports-color")),i=s(e("chalk")),o=s(e("./terminal-highlight"));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(t,r,n,i,o,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name="CssSyntaxError",this.reason=t,o&&(this.file=o),i&&(this.source=i),s&&(this.plugin=s),void 0!==r&&void 0!==n&&(this.line=r,this.column=n),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,e)}return e.prototype.setMessage=function(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"",void 0!==this.line&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason},e.prototype.showSourceCode=function(e){var t=this;if(!this.source)return"";var r=this.source;void 0===e&&(e=n.default.stdout),e&&(r=(0,o.default)(r));var s=r.split(/\r?\n/),a=Math.max(this.line-3,0),u=Math.min(this.line+2,s.length),l=String(u).length;function c(t){return e&&i.default.red?i.default.red.bold(t):t}function f(t){return e&&i.default.gray?i.default.gray(t):t}return s.slice(a,u).map(function(e,r){var n=a+1+r,i=" "+(" "+n).slice(-l)+" | ";if(n===t.line){var o=f(i.replace(/\d/g," "))+e.slice(0,t.column-1).replace(/[^\t]/g," ");return c(">")+f(i)+e+"\n "+o+c("^")}return" "+f(i)+e}).join("\n")},e.prototype.toString=function(){var e=this.showSourceCode();return e&&(e="\n\n"+e+"\n"),this.name+": "+this.message+e},e}();r.default=a,t.exports=r.default},{"./terminal-highlight":264,chalk:16,"supports-color":16}],248:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./node");var o=function(e){function t(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r));return n.type="decl",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=i)&&n.__esModule?n:{default:n}).default);r.default=o,t.exports=r.default},{"./node":253}],249:[function(e,t,r){"use strict";r.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null===t||"object"===(void 0===t?"undefined":n(t))&&!t.toString)throw new Error("PostCSS received "+t+" instead of CSS string");this.css=t.toString(),"\ufeff"!==this.css[0]&&"￾"!==this.css[0]||(this.css=this.css.slice(1)),r.from&&(/^\w+:\/\//.test(r.from)?this.file=r.from:this.file=a.default.resolve(r.from));var i=new s.default(this.css,r);if(i.text){this.map=i;var o=i.consumer().file;!this.file&&o&&(this.file=this.mapResolve(o))}this.file||(l+=1,this.id=""),this.map&&(this.map.file=this.from)}return e.prototype.error=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0,s=this.origin(t,r);return(i=s?new o.default(e,s.line,s.column,s.source,s.file,n.plugin):new o.default(e,t,r,this.css,this.file,n.plugin)).input={line:t,column:r,source:this.css},this.file&&(i.input.file=this.file),i},e.prototype.origin=function(e,t){if(!this.map)return!1;var r=this.map.consumer(),n=r.originalPositionFor({line:e,column:t});if(!n.source)return!1;var i={file:this.mapResolve(n.source),line:n.line,column:n.column},o=r.sourceContentFor(n.source);return o&&(i.source=o),i},e.prototype.mapResolve=function(e){return/^\w+:\/\//.test(e)?e:a.default.resolve(this.map.consumer().sourceRoot||".",e)},i(e,[{key:"from",get:function(){return this.file||this.id}}]),e}();r.default=c,t.exports=r.default},{"./css-syntax-error":247,"./previous-map":257,path:148}],250:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(e,t){for(var r=0;rparseInt(s[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+r+" uses "+n+". Perhaps this is the source of the error below.")}}else e.plugin=t.postcssPlugin,e.setMessage()}catch(e){console&&console.error&&console.error(e)}},e.prototype.asyncTick=function(e,t){var r=this;if(this.plugin>=this.processor.plugins.length)return this.processed=!0,e();try{var n=this.processor.plugins[this.plugin],i=this.run(n);this.plugin+=1,f(i)?i.then(function(){r.asyncTick(e,t)}).catch(function(e){r.handleError(e,n),r.processed=!0,t(e)}):this.asyncTick(e,t)}catch(e){this.processed=!0,t(e)}},e.prototype.async=function(){var e=this;return this.processed?new Promise(function(t,r){e.error?r(e.error):t(e.stringify())}):this.processing?this.processing:(this.processing=new Promise(function(t,r){if(e.error)return r(e.error);e.plugin=0,e.asyncTick(t,r)}).then(function(){return e.processed=!0,e.stringify()}),this.processing)},e.prototype.sync=function(){if(this.processed)return this.result;if(this.processed=!0,this.processing)throw new Error("Use process(css).then(cb) to work with async plugins");if(this.error)throw this.error;var e=this.result.processor.plugins,t=Array.isArray(e),r=0;for(e=t?e:e[Symbol.iterator]();;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{if((r=e.next()).done)break;n=r.value}var i=n;if(f(this.run(i)))throw new Error("Use process(css).then(cb) to work with async plugins")}return this.result},e.prototype.run=function(e){this.result.lastPlugin=e;try{return e(this.result.root,this.result)}catch(t){throw this.handleError(t,e),t}},e.prototype.stringify=function(){if(this.stringified)return this.result;this.stringified=!0,this.sync();var e=this.result.opts,t=s.default;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);var r=new o.default(t,this.result.root,this.result.opts).generate();return this.result.css=r[0],this.result.map=r[1],this.result},n(e,[{key:"processor",get:function(){return this.result.processor}},{key:"opts",get:function(){return this.result.opts}},{key:"css",get:function(){return this.stringify().css}},{key:"content",get:function(){return this.stringify().content}},{key:"map",get:function(){return this.stringify().map}},{key:"root",get:function(){return this.sync().root}},{key:"messages",get:function(){return this.sync().messages}}]),e}();r.default=p,t.exports=r.default},{"./map-generator":252,"./parse":254,"./result":259,"./stringify":263,"./warn-once":267}],251:[function(e,t,r){arguments[4][189][0].apply(r,arguments)},{dup:189}],252:[function(e,t,r){(function(n){"use strict";r.__esModule=!0;var i=s(e("source-map")),o=s(e("path"));function s(e){return e&&e.__esModule?e:{default:e}}var a=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stringify=t,this.mapOpts=n.map||{},this.root=r,this.opts=n}return e.prototype.isMap=function(){return void 0!==this.opts.map?!!this.opts.map:this.previous().length>0},e.prototype.previous=function(){var e=this;return this.previousMaps||(this.previousMaps=[],this.root.walk(function(t){if(t.source&&t.source.input.map){var r=t.source.input.map;-1===e.previousMaps.indexOf(r)&&e.previousMaps.push(r)}})),this.previousMaps},e.prototype.isInline=function(){if(void 0!==this.mapOpts.inline)return this.mapOpts.inline;var e=this.mapOpts.annotation;return(void 0===e||!0===e)&&(!this.previous().length||this.previous().some(function(e){return e.inline}))},e.prototype.isSourcesContent=function(){return void 0!==this.mapOpts.sourcesContent?this.mapOpts.sourcesContent:!this.previous().length||this.previous().some(function(e){return e.withContent()})},e.prototype.clearAnnotation=function(){if(!1!==this.mapOpts.annotation)for(var e=void 0,t=this.root.nodes.length-1;t>=0;t--)"comment"===(e=this.root.nodes[t]).type&&0===e.text.indexOf("# sourceMappingURL=")&&this.root.removeChild(t)},e.prototype.setSourcesContent=function(){var e=this,t={};this.root.walk(function(r){if(r.source){var n=r.source.input.from;if(n&&!t[n]){t[n]=!0;var i=e.relative(n);e.map.setSourceContent(i,r.source.input.css)}}})},e.prototype.applyPrevMaps=function(){var e=this.previous(),t=Array.isArray(e),r=0;for(e=t?e:e[Symbol.iterator]();;){var n;if(t){if(r>=e.length)break;n=e[r++]}else{if((r=e.next()).done)break;n=r.value}var s=n,a=this.relative(s.file),u=s.root||o.default.dirname(s.file),l=void 0;!1===this.mapOpts.sourcesContent?(l=new i.default.SourceMapConsumer(s.text)).sourcesContent&&(l.sourcesContent=l.sourcesContent.map(function(){return null})):l=s.consumer(),this.map.applySourceMap(l,a,this.relative(u))}},e.prototype.isAnnotation=function(){return!!this.isInline()||(void 0!==this.mapOpts.annotation?this.mapOpts.annotation:!this.previous().length||this.previous().some(function(e){return e.annotation}))},e.prototype.toBase64=function(e){return n?n.from&&n.from!==Uint8Array.from?n.from(e).toString("base64"):new n(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))},e.prototype.addAnnotation=function(){var e=void 0;e=this.isInline()?"data:application/json;base64,"+this.toBase64(this.map.toString()):"string"==typeof this.mapOpts.annotation?this.mapOpts.annotation:this.outputFile()+".map";var t="\n";-1!==this.css.indexOf("\r\n")&&(t="\r\n"),this.css+=t+"/*# sourceMappingURL="+e+" */"},e.prototype.outputFile=function(){return this.opts.to?this.relative(this.opts.to):this.opts.from?this.relative(this.opts.from):"to.css"},e.prototype.generateMap=function(){return this.generateString(),this.isSourcesContent()&&this.setSourcesContent(),this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]},e.prototype.relative=function(e){if(0===e.indexOf("<"))return e;if(/^\w+:\/\//.test(e))return e;var t=this.opts.to?o.default.dirname(this.opts.to):".";return"string"==typeof this.mapOpts.annotation&&(t=o.default.dirname(o.default.resolve(t,this.mapOpts.annotation))),e=o.default.relative(t,e),"\\"===o.default.sep?e.replace(/\\/g,"/"):e},e.prototype.sourcePath=function(e){return this.mapOpts.from?this.mapOpts.from:this.relative(e.source.input.from)},e.prototype.generateString=function(){var e=this;this.css="",this.map=new i.default.SourceMapGenerator({file:this.outputFile()});var t=1,r=1,n=void 0,o=void 0;this.stringify(this.root,function(i,s,a){e.css+=i,s&&"end"!==a&&(s.source&&s.source.start?e.map.addMapping({source:e.sourcePath(s),generated:{line:t,column:r-1},original:{line:s.source.start.line,column:s.source.start.column-1}}):e.map.addMapping({source:"",original:{line:1,column:0},generated:{line:t,column:r-1}})),(n=i.match(/\n/g))?(t+=n.length,o=i.lastIndexOf("\n"),r=i.length-o):r+=i.length,s&&"start"!==a&&(s.source&&s.source.end?e.map.addMapping({source:e.sourcePath(s),generated:{line:t,column:r-1},original:{line:s.source.end.line,column:s.source.end.column}}):e.map.addMapping({source:"",original:{line:1,column:0},generated:{line:t,column:r-1}}))})},e.prototype.generate=function(){if(this.clearAnnotation(),this.isMap())return this.generateMap();var e="";return this.stringify(this.root,function(t){e+=t}),[e]},e}();r.default=a,t.exports=r.default}).call(this,e("buffer").Buffer)},{buffer:18,path:148,"source-map":279}],253:[function(e,t,r){"use strict";r.__esModule=!0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=u(e("./css-syntax-error")),o=u(e("./stringifier")),s=u(e("./stringify")),a=u(e("./warn-once"));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.raws={},"object"!==(void 0===t?"undefined":n(t))&&void 0!==t)throw new Error("PostCSS nodes constructor accepts object, not "+JSON.stringify(t));for(var r in t)this[r]=t[r]}return e.prototype.error=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.source){var r=this.positionBy(t);return this.source.input.error(e,r.line,r.column,t)}return new i.default(e)},e.prototype.warn=function(e,t,r){var n={node:this};for(var i in r)n[i]=r[i];return e.warn(t,n)},e.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},e.prototype.toString=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default;e.stringify&&(e=e.stringify);var t="";return e(this,function(e){t+=e}),t},e.prototype.clone=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=function e(t,r){var i=new t.constructor;for(var o in t)if(t.hasOwnProperty(o)){var s=t[o],a=void 0===s?"undefined":n(s);"parent"===o&&"object"===a?r&&(i[o]=r):"source"===o?i[o]=s:s instanceof Array?i[o]=s.map(function(t){return e(t,i)}):("object"===a&&null!==s&&(s=e(s)),i[o]=s)}return i}(this);for(var r in e)t[r]=e[r];return t},e.prototype.cloneBefore=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertBefore(this,t),t},e.prototype.cloneAfter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.clone(e);return this.parent.insertAfter(this,t),t},e.prototype.replaceWith=function(){if(this.parent){for(var e=arguments.length,t=Array(e),r=0;r=n.length)break;s=n[o++]}else{if((o=n.next()).done)break;s=o.value}var a=s;this.parent.insertBefore(this,a)}this.remove()}return this},e.prototype.moveTo=function(e){return(0,a.default)("Node#moveTo was deprecated. Use Container#append."),this.cleanRaws(this.root()===e.root()),this.remove(),e.append(this),this},e.prototype.moveBefore=function(e){return(0,a.default)("Node#moveBefore was deprecated. Use Node#before."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertBefore(e,this),this},e.prototype.moveAfter=function(e){return(0,a.default)("Node#moveAfter was deprecated. Use Node#after."),this.cleanRaws(this.root()===e.root()),this.remove(),e.parent.insertAfter(e,this),this},e.prototype.next=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e+1]}},e.prototype.prev=function(){if(this.parent){var e=this.parent.index(this);return this.parent.nodes[e-1]}},e.prototype.before=function(e){return this.parent.insertBefore(this,e),this},e.prototype.after=function(e){return this.parent.insertAfter(this,e),this},e.prototype.toJSON=function(){var e={};for(var t in this)if(this.hasOwnProperty(t)&&"parent"!==t){var r=this[t];r instanceof Array?e[t]=r.map(function(e){return"object"===(void 0===e?"undefined":n(e))&&e.toJSON?e.toJSON():e}):"object"===(void 0===r?"undefined":n(r))&&r.toJSON?e[t]=r.toJSON():e[t]=r}return e},e.prototype.raw=function(e,t){return(new o.default).raw(this,e,t)},e.prototype.root=function(){for(var e=this;e.parent;)e=e.parent;return e},e.prototype.cleanRaws=function(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between},e.prototype.positionInside=function(e){for(var t=this.toString(),r=this.source.start.column,n=this.source.start.line,i=0;i0&&this.unclosedBracket(i),t&&n){for(;s.length&&("space"===(a=s[s.length-1][0])||"comment"===a);)this.tokenizer.back(s.pop());this.decl(s)}else this.unknownWord(s)},e.prototype.rule=function(e){e.pop();var t=new u.default;this.init(t,e[0][2],e[0][3]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t},e.prototype.decl=function(e){var t=new n.default;this.init(t);var r=e[e.length-1];for(";"===r[0]&&(this.semicolon=!0,e.pop()),r[4]?t.source.end={line:r[4],column:r[5]}:t.source.end={line:r[2],column:r[3]};"word"!==e[0][0];)1===e.length&&this.unknownWord(e),t.raws.before+=e.shift()[1];for(t.source.start={line:e[0][2],column:e[0][3]},t.prop="";e.length;){var i=e[0][0];if(":"===i||"space"===i||"comment"===i)break;t.prop+=e.shift()[1]}t.raws.between="";for(var o=void 0;e.length;){if(":"===(o=e.shift())[0]){t.raws.between+=o[1];break}t.raws.between+=o[1]}"_"!==t.prop[0]&&"*"!==t.prop[0]||(t.raws.before+=t.prop[0],t.prop=t.prop.slice(1)),t.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(var s=e.length-1;s>0;s--){if("!important"===(o=e[s])[1].toLowerCase()){t.important=!0;var a=this.stringFrom(e,s);" !important"!==(a=this.spacesFromEnd(e)+a)&&(t.raws.important=a);break}if("important"===o[1].toLowerCase()){for(var u=e.slice(0),l="",c=s;c>0;c--){var f=u[c][0];if(0===l.trim().indexOf("!")&&"space"!==f)break;l=u.pop()[1]+l}0===l.trim().indexOf("!")&&(t.important=!0,t.raws.important=l,e=u)}if("space"!==o[0]&&"comment"!==o[0])break}this.raw(t,"value",e),-1!==t.value.indexOf(":")&&this.checkMissedSemicolon(e)},e.prototype.atrule=function(e){var t=new s.default;t.name=e[1].slice(1),""===t.name&&this.unnamedAtrule(t,e),this.init(t,e[2],e[3]);for(var r=void 0,n=void 0,i=!1,o=!1,a=[];!this.tokenizer.endOfFile();){if(";"===(e=this.tokenizer.nextToken())[0]){t.source.end={line:e[2],column:e[3]},this.semicolon=!0;break}if("{"===e[0]){o=!0;break}if("}"===e[0]){if(a.length>0){for(r=a[n=a.length-1];r&&"space"===r[0];)r=a[--n];r&&(t.source.end={line:r[4],column:r[5]})}this.end(e);break}if(a.push(e),this.tokenizer.endOfFile()){i=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),i&&(e=a[a.length-1],t.source.end={line:e[4],column:e[5]},this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),o&&(t.nodes=[],this.current=t)},e.prototype.end=function(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end={line:e[2],column:e[3]},this.current=this.current.parent):this.unexpectedClose(e)},e.prototype.endFile=function(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces},e.prototype.freeSemicolon=function(e){if(this.spaces+=e[1],this.current.nodes){var t=this.current.nodes[this.current.nodes.length-1];t&&"rule"===t.type&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="")}},e.prototype.init=function(e,t,r){this.current.push(e),e.source={start:{line:t,column:r},input:this.input},e.raws.before=this.spaces,this.spaces="","comment"!==e.type&&(this.semicolon=!1)},e.prototype.raw=function(e,t,r){for(var n=void 0,i=void 0,o=r.length,s="",a=!0,u=void 0,l=void 0,c=/^([.|#])?([\w])+/i,f=0;f=0&&("space"===(n=e[i])[0]||2!==(r+=1));i--);throw this.input.error("Missed semicolon",n[2],n[3])}},e}();r.default=c,t.exports=r.default},{"./at-rule":244,"./comment":245,"./declaration":248,"./root":260,"./rule":261,"./tokenize":265}],256:[function(e,t,r){"use strict";r.__esModule=!0;var n=d(e("./declaration")),i=d(e("./processor")),o=d(e("./stringify")),s=d(e("./comment")),a=d(e("./at-rule")),u=d(e("./vendor")),l=d(e("./parse")),c=d(e("./list")),f=d(e("./rule")),p=d(e("./root"));function d(e){return e&&e.__esModule?e:{default:e}}function h(){for(var e=arguments.length,t=Array(e),r=0;r0)},e.prototype.startWith=function(e,t){return!!e&&e.substr(0,t.length)===t},e.prototype.loadAnnotation=function(e){var t=e.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//);t&&(this.annotation=t[1].trim())},e.prototype.decodeInline=function(e){var t="data:application/json,";if(this.startWith(e,t))return decodeURIComponent(e.substr(t.length));if(/^data:application\/json;(?:charset=utf-?8;)?base64,/.test(e))return r=e.substr(RegExp.lastMatch.length),n?n.from&&n.from!==Uint8Array.from?n.from(r,"base64").toString():new n(r,"base64").toString():window.atob(r);var r,i=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+i)},e.prototype.loadMap=function(e,t){if(!1===t)return!1;if(t){if("string"==typeof t)return t;if("function"==typeof t){var r=t(e);if(r&&a.default.existsSync&&a.default.existsSync(r))return a.default.readFileSync(r,"utf-8").toString().trim();throw new Error("Unable to load previous source map: "+r.toString())}if(t instanceof o.default.SourceMapConsumer)return o.default.SourceMapGenerator.fromSourceMap(t).toString();if(t instanceof o.default.SourceMapGenerator)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){var n=this.annotation;return e&&(n=s.default.join(s.default.dirname(e),n)),this.root=s.default.dirname(n),!(!a.default.existsSync||!a.default.existsSync(n))&&a.default.readFileSync(n,"utf-8").toString().trim()}},e.prototype.isMap=function(e){return"object"===(void 0===e?"undefined":i(e))&&("string"==typeof e.mappings||"string"==typeof e._mappings)},e}();r.default=l,t.exports=r.default}).call(this,e("buffer").Buffer)},{buffer:18,fs:16,path:148,"source-map":279}],258:[function(e,t,r){"use strict";r.__esModule=!0;var n,i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=e("./lazy-result"),s=(n=o)&&n.__esModule?n:{default:n};var a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.version="6.0.23",this.plugins=this.normalize(t)}return e.prototype.use=function(e){return this.plugins=this.plugins.concat(this.normalize([e])),this},e.prototype.process=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new s.default(this,e,t)},e.prototype.normalize=function(e){var t=[],r=e,n=Array.isArray(r),o=0;for(r=n?r:r[Symbol.iterator]();;){var s;if(n){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}var a=s;if(a.postcss&&(a=a.postcss),"object"===(void 0===a?"undefined":i(a))&&Array.isArray(a.plugins))t=t.concat(a.plugins);else{if("function"!=typeof a)throw"object"===(void 0===a?"undefined":i(a))&&(a.parse||a.stringify)?new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."):new Error(a+" is not a PostCSS plugin");t.push(a)}}return t},e}();r.default=a,t.exports=r.default},{"./lazy-result":250}],259:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(){function e(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:{};t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);var r=new s.default(e,t);return this.messages.push(r),r},e.prototype.warnings=function(){return this.messages.filter(function(e){return"warning"===e.type})},i(e,[{key:"content",get:function(){return this.css}}]),e}();r.default=a,t.exports=r.default},{"./warning":268}],260:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./container");var o=function(t){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,e));return n.type="root",n.nodes||(n.nodes=[]),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.removeChild=function(e,r){var n=this.index(e);return!r&&0===n&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),t.prototype.removeChild.call(this,e)},r.prototype.normalize=function(e,r,n){var i=t.prototype.normalize.call(this,e);if(r)if("prepend"===n)this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r){var o=i,s=Array.isArray(o),a=0;for(o=s?o:o[Symbol.iterator]();;){var u;if(s){if(a>=o.length)break;u=o[a++]}else{if((a=o.next()).done)break;u=a.value}u.raws.before=r.raws.before}}return i},r.prototype.toResult=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new(e("./lazy-result"))(new(e("./processor")),this,t).stringify()},r}(((n=i)&&n.__esModule?n:{default:n}).default);r.default=o,t.exports=r.default},{"./container":246,"./lazy-result":250,"./processor":258}],261:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(e,t){for(var r=0;r0&&"comment"===e.nodes[t].type;)t-=1;for(var r=this.raw(e,"semicolon"),n=0;n0&&void 0!==e.raws.after)return-1!==(t=e.raws.after).indexOf("\n")&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/[^\s]/g,"")),t},e.prototype.rawBeforeOpen=function(e){var t=void 0;return e.walk(function(e){if("decl"!==e.type&&void 0!==(t=e.raws.between))return!1}),t},e.prototype.rawColon=function(e){var t=void 0;return e.walkDecls(function(e){if(void 0!==e.raws.between)return t=e.raws.between.replace(/[^\s:]/g,""),!1}),t},e.prototype.beforeAfter=function(e,t){var r=void 0;r="decl"===e.type?this.raw(e,null,"beforeDecl"):"comment"===e.type?this.raw(e,null,"beforeComment"):"before"===t?this.raw(e,null,"beforeRule"):this.raw(e,null,"beforeClose");for(var n=e.parent,i=0;n&&"root"!==n.type;)i+=1,n=n.parent;if(-1!==r.indexOf("\n")){var o=this.raw(e,null,"indent");if(o.length)for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:{},r=e.css.valueOf(),A=t.ignoreErrors,E=void 0,O=void 0,j=void 0,M=void 0,N=void 0,R=void 0,P=void 0,I=void 0,F=void 0,L=void 0,B=void 0,T=void 0,D=void 0,U=void 0,z=r.length,$=-1,q=1,G=0,W=[],K=[];function V(t){throw e.error("Unclosed "+t,q,G-$)}return{back:function(e){K.push(e)},nextToken:function(){if(K.length)return K.pop();if(G>=z)return;((E=r.charCodeAt(G))===a||E===l||E===f&&r.charCodeAt(G+1)!==a)&&($=G,q+=1);switch(E){case a:case u:case c:case f:case l:O=G;do{O+=1,(E=r.charCodeAt(O))===a&&($=O,q+=1)}while(E===u||E===a||E===c||E===f||E===l);U=["space",r.slice(G,O)],G=O-1;break;case p:U=["[","[",q,G-$];break;case d:U=["]","]",q,G-$];break;case g:U=["{","{",q,G-$];break;case y:U=["}","}",q,G-$];break;case w:U=[":",":",q,G-$];break;case v:U=[";",";",q,G-$];break;case h:if(T=W.length?W.pop()[1]:"",D=r.charCodeAt(G+1),"url"===T&&D!==n&&D!==i&&D!==u&&D!==a&&D!==c&&D!==l&&D!==f){O=G;do{if(L=!1,-1===(O=r.indexOf(")",O+1))){if(A){O=G;break}V("bracket")}for(B=O;r.charCodeAt(B-1)===o;)B-=1,L=!L}while(L);U=["brackets",r.slice(G,O+1),q,G-$,q,O-$],G=O}else O=r.indexOf(")",G+1),R=r.slice(G,O+1),-1===O||S.test(R)?U=["(","(",q,G-$]:(U=["brackets",R,q,G-$,q,O-$],G=O);break;case m:U=[")",")",q,G-$];break;case n:case i:j=E===n?"'":'"',O=G;do{if(L=!1,-1===(O=r.indexOf(j,O+1))){if(A){O=G+1;break}V("string")}for(B=O;r.charCodeAt(B-1)===o;)B-=1,L=!L}while(L);R=r.slice(G,O+1),M=R.split("\n"),(N=M.length-1)>0?(I=q+N,F=O-M[N].length):(I=q,F=$),U=["string",r.slice(G,O+1),q,G-$,I,O-F],$=F,q=I,G=O;break;case x:k.lastIndex=G+1,k.test(r),O=0===k.lastIndex?r.length-1:k.lastIndex-2,U=["at-word",r.slice(G,O+1),q,G-$,q,O-$],G=O;break;case o:for(O=G,P=!0;r.charCodeAt(O+1)===o;)O+=1,P=!P;if(E=r.charCodeAt(O+1),P&&E!==s&&E!==u&&E!==a&&E!==c&&E!==f&&E!==l&&(O+=1,C.test(r.charAt(O)))){for(;C.test(r.charAt(O+1));)O+=1;r.charCodeAt(O+1)===u&&(O+=1)}U=["word",r.slice(G,O+1),q,G-$,q,O-$],G=O;break;default:E===s&&r.charCodeAt(G+1)===b?(0===(O=r.indexOf("*/",G+2)+1)&&(A?O=r.length:V("comment")),R=r.slice(G,O+1),M=R.split("\n"),(N=M.length-1)>0?(I=q+N,F=O-M[N].length):(I=q,F=$),U=["comment",R,q,G-$,I,O-F],$=F,q=I,G=O):(_.lastIndex=G+1,_.test(r),O=0===_.lastIndex?r.length-1:_.lastIndex-2,U=["word",r.slice(G,O+1),q,G-$,q,O-$],W.push(U),G=O)}return G++,U},endOfFile:function(){return 0===K.length&&G>=z}}};var n=39,i=34,o=92,s=47,a=10,u=32,l=12,c=9,f=13,p=91,d=93,h=40,m=41,g=123,y=125,v=59,b=42,w=58,x=64,k=/[ \n\t\r\f\{\}\(\)'"\\;/\[\]#]/g,_=/[ \n\t\r\f\(\)\{\}:;@!'"\\\]\[#]|\/(?=\*)/g,S=/.[\\\/\("'\n]/,C=/[a-f0-9]/i;t.exports=r.default},{}],266:[function(e,t,r){"use strict";r.__esModule=!0;r.default={prefix:function(e){var t=e.match(/^(-\w+-)/);return t?t[0]:""},unprefixed:function(e){return e.replace(/^-\w+-/,"")}},t.exports=r.default},{}],267:[function(e,t,r){arguments[4][203][0].apply(r,arguments)},{dup:203}],268:[function(e,t,r){arguments[4][204][0].apply(r,arguments)},{dup:204}],269:[function(e,t,r){var n=e("./util"),i=Object.prototype.hasOwnProperty,o="undefined"!=typeof Map;function s(){this._array=[],this._set=o?new Map:Object.create(null)}s.fromArray=function(e,t){for(var r=new s,n=0,i=e.length;n=0)return t}else{var r=n.toSetString(e);if(i.call(this._set,r))return this._set[r]}throw new Error('"'+e+'" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e>>=5)>0&&(t|=32),r+=n.encode(t)}while(i>0);return r},r.decode=function(e,t,r){var i,o,s,a,u=e.length,l=0,c=0;do{if(t>=u)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=n.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),l+=(o&=31)<>1,1==(1&s)?-a:a),r.rest=t}},{"./base64":271}],271:[function(e,t,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e0?n-u>1?e(u,n,i,o,s,a):a==r.LEAST_UPPER_BOUND?n1?e(t,u,i,o,s,a):a==r.LEAST_UPPER_BOUND?u:t<0?-1:t}(-1,t.length,e,t,n,i||r.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===n(t[o],t[o-1],!0);)--o;return o}},{}],273:[function(e,t,r){var n=e("./util");function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,r,i,o,s,a;t=this._last,r=e,i=t.generatedLine,o=r.generatedLine,s=t.generatedColumn,a=r.generatedColumn,o>i||o==i&&a>=s||n.compareByGeneratedPositionsInflated(t,r)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(n.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},r.MappingList=i},{"./util":278}],274:[function(e,t,r){function n(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function i(e,t,r,o){if(r=0){var a=this._originalMappings[s];if(void 0===e.column)for(var u=a.originalLine;a&&a.originalLine===u;)o.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==l;)o.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return o},r.SourceMapConsumer=u,l.prototype=Object.create(u.prototype),l.prototype.consumer=u,l.prototype._findSourceIndex=function(e){var t,r=e;if(null!=this.sourceRoot&&(r=n.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);for(t=0;t1&&(r.source=m+o[1],m+=o[1],r.originalLine=d+o[2],d=r.originalLine,r.originalLine+=1,r.originalColumn=h+o[3],h=r.originalColumn,o.length>4&&(r.name=g+o[4],g+=o[4])),k.push(r),"number"==typeof r.originalLine&&x.push(r)}a(k,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=k,a(x,n.compareByOriginalPositions),this.__originalMappings=x},l.prototype._findMapping=function(e,t,r,n,o,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,o,s)},l.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var o=n.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),o=n.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=n.getArg(i,"name",null);return null!==s&&(s=this._names.at(s)),{source:o,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var r=this._findSourceIndex(e);if(r>=0)return this.sourcesContent[r];var i,o=e;if(null!=this.sourceRoot&&(o=n.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(i=n.urlParse(this.sourceRoot))){var s=o.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!i.path||"/"==i.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(t)return null;throw new Error('"'+o+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var r={source:t,originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",u.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===r.source)return{line:n.getArg(o,"generatedLine",null),column:n.getArg(o,"generatedColumn",null),lastColumn:n.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},r.BasicSourceMapConsumer=l,f.prototype=Object.create(u.prototype),f.prototype.constructor=u,f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},a.prototype._serializeMappings=function(){for(var e,t,r,o,s=0,a=1,u=0,l=0,c=0,f=0,p="",d=this._mappings.toArray(),h=0,m=d.length;h0){if(!i.compareByGeneratedPositionsInflated(t,d[h-1]))continue;e+=","}e+=n.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=n.encode(o-f),f=o,e+=n.encode(t.originalLine-1-l),l=t.originalLine-1,e+=n.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-c),c=r)),p+=e}return p},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},r.SourceMapGenerator=a},{"./array-set":269,"./base64-vlq":270,"./mapping-list":273,"./util":278}],277:[function(e,t,r){var n=e("./source-map-generator").SourceMapGenerator,i=e("./util"),o=/(\r?\n)/,s="$$$isSourceNode$$$";function a(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[s]=!0,null!=n&&this.add(n)}a.fromStringWithSourceMap=function(e,t,r){var n=new a,s=e.split(o),u=0,l=function(){return e()+(e()||"");function e(){return u=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r=0;c--)"."===(i=u[c])?u.splice(c,1):".."===i?l++:l>0&&(""===i?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return""===(t=u.join("/"))&&(t=a?"/":"."),n?(n.path=t,s(n)):t}function u(e,t){""===e&&(e="."),""===t&&(t=".");var r=o(t),n=o(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),s(r);if(r||t.match(i))return t;if(n&&!n.host&&!n.path)return n.host=t,s(n);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=u,s(n)):u}r.urlParse=o,r.urlGenerate=s,r.normalize=a,r.join=u,r.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},r.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var l=!("__proto__"in Object.create(null));function c(e){return e}function f(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function p(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}r.toSetString=l?c:function(e){return f(e)?"$"+e:e},r.fromSetString=l?c:function(e){return f(e)?e.slice(1):e},r.compareByOriginalPositions=function(e,t,r){var n=p(e.source,t.source);return 0!==n?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)||r?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!=(n=e.generatedLine-t.generatedLine)?n:p(e.name,t.name)},r.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)||r?n:0!==(n=p(e.source,t.source))?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:p(e.name,t.name)},r.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=p(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:p(e.name,t.name)},r.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},r.computeSourceURL=function(e,t,r){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),r){var n=o(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=u(s(n),t)}return a(t)}},{}],279:[function(e,t,r){r.SourceMapGenerator=e("./lib/source-map-generator").SourceMapGenerator,r.SourceMapConsumer=e("./lib/source-map-consumer").SourceMapConsumer,r.SourceNode=e("./lib/source-node").SourceNode},{"./lib/source-map-consumer":275,"./lib/source-map-generator":276,"./lib/source-node":277}],280:[function(e,t,r){"use strict";r.before=function(e,t){return e.replace(t,function(e){var t=Math.random().toString().slice(2,7);return n[t]=e,"__ID"+t+"__"})},r.after=function(e){return e.replace(/__ID(.{5})__/g,function(e,t){return n[t]})};var n={}},{}],281:[function(e,t,r){(function(e){"use strict";!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,r,n,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,r)});case 3:return e.nextTick(function(){t.call(null,r,n)});case 4:return e.nextTick(function(){t.call(null,r,n,i)});default:for(o=new Array(a-1),s=0;s1)for(var r=1;r= 0x80 (not a basic code point)","invalid-input":"Invalid input"},k=c-f,_=Math.floor,S=String.fromCharCode;function C(e){throw new RangeError(x[e])}function A(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function E(e,t){var r=e.split("@"),n="";return r.length>1&&(n=r[0]+"@",e=r[1]),n+A((e=e.replace(w,".")).split("."),t).join(".")}function O(e){for(var t,r,n=[],i=0,o=e.length;i=55296&&t<=56319&&i65535&&(t+=S((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=S(e)}).join("")}function M(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function N(e,t,r){var n=0;for(e=r?_(e/h):e>>1,e+=_(e/t);e>k*p>>1;n+=c)e=_(e/k);return _(n+(k+1)*e/(e+d))}function R(e){var t,r,n,i,o,s,a,u,d,h,v,b=[],w=e.length,x=0,k=g,S=m;for((r=e.lastIndexOf(y))<0&&(r=0),n=0;n=128&&C("not-basic"),b.push(e.charCodeAt(n));for(i=r>0?r+1:0;i=w&&C("invalid-input"),((u=(v=e.charCodeAt(i++))-48<10?v-22:v-65<26?v-65:v-97<26?v-97:c)>=c||u>_((l-x)/s))&&C("overflow"),x+=u*s,!(u<(d=a<=S?f:a>=S+p?p:a-S));a+=c)s>_(l/(h=c-d))&&C("overflow"),s*=h;S=N(x-o,t=b.length+1,0==o),_(x/t)>l-k&&C("overflow"),k+=_(x/t),x%=t,b.splice(x++,0,k)}return j(b)}function P(e){var t,r,n,i,o,s,a,u,d,h,v,b,w,x,k,A=[];for(b=(e=O(e)).length,t=g,r=0,o=m,s=0;s=t&&v_((l-r)/(w=n+1))&&C("overflow"),r+=(a-t)*w,t=a,s=0;sl&&C("overflow"),v==t){for(u=r,d=c;!(u<(h=d<=o?f:d>=o+p?p:d-o));d+=c)k=u-h,x=c-h,A.push(S(M(h+k%x,0))),u=_(k/x);A.push(S(M(u,0))),o=N(r,w,n==i),r=0,++n}++r,++t}return A.join("")}if(a={version:"1.4.1",ucs2:{decode:O,encode:j},decode:R,encode:P,toASCII:function(e){return E(e,function(e){return b.test(e)?"xn--"+P(e):e})},toUnicode:function(e){return E(e,function(e){return v.test(e)?R(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return a});else if(i&&o)if(t.exports==i)o.exports=a;else for(u in a)a.hasOwnProperty(u)&&(i[u]=a[u]);else n.punycode=a}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],284:[function(e,t,r){"use strict";function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.exports=function(e,t,r,o){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var c=0;c=0?(f=m.substr(0,g),p=m.substr(g+1)):(f=m,p=""),d=decodeURIComponent(f),h=decodeURIComponent(p),n(s,d)?i(s[d])?s[d].push(h):s[d]=[s[d],h]:s[d]=h}return s};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],285:[function(e,t,r){"use strict";var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?o(s(e),function(s){var a=encodeURIComponent(n(s))+r;return i(e[s])?o(e[s],function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[s]))}).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n=0}},{}],289:[function(e,t,r){var n=Object.prototype.toString;function i(e){return e.constructor?e.constructor.name:null}t.exports=function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return"GeneratorFunction"===i(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){if(e.constructor&&"function"==typeof e.constructor.isBuffer)return e.constructor.isBuffer(e);return!1}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(e){if(-1!==e.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(i(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=n.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}},{}],290:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":291}],291:[function(e,t,r){"use strict";var n=e("process-nextick-args"),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=f;var o=e("core-util-is");o.inherits=e("inherits");var s=e("./_stream_readable"),a=e("./_stream_writable");o.inherits(f,s);for(var u=i(a.prototype),l=0;l0?("string"==typeof t||s.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),n?s.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,s,t,!0):s.ended?e.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!r?(t=s.decoder.write(t),s.objectMode||0!==t.length?x(e,s,t,!1):A(e,s)):x(e,s,t,!1))):n||(s.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function S(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(C,e):C(e))}function C(e){d("emit readable"),e.emit("readable"),M(e)}function A(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(E,e,t))}function E(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;eo.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0===(e-=s)){s===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(s));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=l.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0===(e-=s)){s===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(s));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function R(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(P,t,e))}function P(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function I(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?R(this):S(this),null;if(0===(e=_(e,t))&&t.ended)return 0===t.length&&R(this),null;var n,i=t.needReadable;return d("need readable",i),(0===t.length||t.length-e0?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&R(this)),null!==n&&this.emit("data",n),n},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,d("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:b;function l(t,r){d("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",v),e.removeListener("drain",f),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",m),p=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||f())}function c(){d("onend"),e.end()}o.endEmitted?i.nextTick(u):n.once("end",u),e.on("unpipe",l);var f=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&a(e,"data")&&(t.flowing=!0,M(e))}}(n);e.on("drain",f);var p=!1;var h=!1;function m(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==I(o.pipes,e))&&!p&&(d("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,h=!0),n.pause())}function g(t){d("onerror",t),b(),e.removeListener("error",g),0===a(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",v),b()}function v(){d("onfinish"),e.removeListener("close",y),b()}function b(){d("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?s(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",y),e.once("finish",v),e.emit("pipe",n),o.flowing||(d("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r),this);if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o-1?i:o.nextTick;v.WritableState=y;var l=e("core-util-is");l.inherits=e("inherits");var c={deprecate:e("util-deprecate")},f=e("./internal/streams/stream"),p=e("safe-buffer").Buffer,d=n.Uint8Array||function(){};var h,m=e("./internal/streams/destroy");function g(){}function y(t,r){a=a||e("./_stream_duplex"),t=t||{};var n=r instanceof a;this.objectMode=!!t.objectMode,n&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var i=t.highWaterMark,l=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===t.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?(o.nextTick(i,n),o.nextTick(S,e,t),e._writableState.errorEmitted=!0,e.emit("error",n)):(i(n),e._writableState.errorEmitted=!0,e.emit("error",n),S(e,t))}(e,r,n,t,i);else{var s=k(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||x(e,r),n?u(w,e,r,s,i):w(e,r,s,i)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function v(t){if(a=a||e("./_stream_duplex"),!(h.call(v,this)||this instanceof a))return new v(t);this._writableState=new y(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),f.call(this)}function b(e,t,r,n,i,o,s){t.writelen=n,t.writecb=s,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),S(e,t)}function x(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0,u=!0;r;)i[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;i.allBuffers=u,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,c=r.encoding,f=r.callback;if(b(e,t,!1,t.objectMode?1:l.length,l,c,f),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function k(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function _(e,t){e._final(function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),S(e,t)})}function S(e,t){var r=k(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(_,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}l.inherits(v,f),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(h=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!h.call(this,e)||this===v&&(e&&e._writableState instanceof y)}})):h=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,r){var n,i=this._writableState,s=!1,a=!i.objectMode&&(n=e,p.isBuffer(n)||n instanceof d);return a&&!p.isBuffer(e)&&(e=function(e){return p.from(e)}(e)),"function"==typeof t&&(r=t,t=null),a?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof r&&(r=g),i.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),o.nextTick(t,r)}(this,r):(a||function(e,t,r,n){var i=!0,s=!1;return null===r?s=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(e.emit("error",s),o.nextTick(n,s),i=!1),i}(this,i,e,r))&&(i.pendingcb++,s=function(e,t,r,n,i,o){if(!r){var s=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=p.from(t,r));return t}(t,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=t.objectMode?1:n.length;t.length+=a;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,S(e,t),r&&(t.finished?o.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("timers").setImmediate)},{"./_stream_duplex":291,"./internal/streams/destroy":297,"./internal/streams/stream":298,_process:282,"core-util-is":23,inherits:72,"process-nextick-args":281,"safe-buffer":310,timers:604,"util-deprecate":608}],296:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=e("util");t.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);if(1===this.length)return this.head.data;for(var t,r,i,o=n.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=s.data,r=o,i=a,t.copy(r,i),a+=s.data.length,s=s.next;return o},e}(),i&&i.inspect&&i.inspect.custom&&(t.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},{"safe-buffer":310,util:16}],297:[function(e,t,r){"use strict";var n=e("process-nextick-args");function i(e,t){e.emit("error",t)}t.exports={destroy:function(e,t){var r=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(i,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(n.nextTick(i,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":281}],298:[function(e,t,r){t.exports=e("events").EventEmitter},{events:34}],299:[function(e,t,r){t.exports=e("./readable").PassThrough},{"./readable":300}],300:[function(e,t,r){(r=t.exports=e("./lib/_stream_readable.js")).Stream=r,r.Readable=r,r.Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":291,"./lib/_stream_passthrough.js":292,"./lib/_stream_readable.js":293,"./lib/_stream_transform.js":294,"./lib/_stream_writable.js":295}],301:[function(e,t,r){t.exports=e("./readable").Transform},{"./readable":300}],302:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":295}],303:[function(e,t,r){"use strict";var n=e("is-equal-shallow"),i={},o={};t.exports=function(e,t,r){var s,a,u="_default_";if(!t&&!r)return"function"!=typeof e?e:i[u]||(i[u]=e(t));if("string"==typeof t){if(!r)return i[t]||(i[t]=e(t));u=t}else r=t;if((a=o[u])&&n(a.opts,r))return a.regex;return function(e,t,r){o[e]={regex:r,opts:t}}(u,r,s=e(t,r)),s},t.exports.cache=o,t.exports.basic=i},{"is-equal-shallow":77}],304:[function(e,t,r){(function(e){var r="win32"===e.platform;function n(e,t){var n=e[t];return t>0&&("/"===n||r&&"\\"===n)}t.exports=function(e){var t=e.length-1;if(t<2)return e;for(;n(e,t);)t--;return e.substr(0,t+1)}}).call(this,e("_process"))},{_process:282}],305:[function(e,t,r){"use strict";t.exports=function(e,t){for(var r=new Array(t),n=0;n=r)return i.substr(0,r);for(;r>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,r)}},{}],307:[function(e,t,r){"use strict";var n=e("module"),i=e("path");t.exports=function(e,r,o){if("object"==typeof r&&(o=r,r=void 0),r=r||"",(o=o||{}).appendPaths=o.appendPaths||[],o.prependPaths=o.prependPaths||[],"string"!=typeof e)throw new Error("code must be a string, not "+typeof e);var s=n._nodeModulePaths(i.dirname(r)),a=new n(r,t.parent);return a.filename=r,a.paths=[].concat(o.prependPaths).concat(s).concat(o.appendPaths),a._compile(e,r),a.exports}},{module:17,path:148}],308:[function(e,t,r){"use strict";const n=e("path"),i=e("module"),o=(e,t,r)=>{if("string"!=typeof e)throw new TypeError(`Expected \`fromDir\` to be of type \`string\`, got \`${typeof e}\``);if("string"!=typeof t)throw new TypeError(`Expected \`moduleId\` to be of type \`string\`, got \`${typeof t}\``);e=n.resolve(e);const o=n.join(e,"noop.js"),s=()=>i._resolveFilename(t,{id:o,filename:o,paths:i._nodeModulePaths(e)});if(r)try{return s()}catch(e){return null}return s()};t.exports=((e,t)=>o(e,t)),t.exports.silent=((e,t)=>o(e,t,!0))},{module:17,path:148}],309:[function(e,t,r){(function(r){t.exports=p,p.sync=y;var n=e("assert"),i=e("path"),o=e("fs"),s=e("glob"),a=parseInt("666",8),u={nosort:!0,silent:!0},l=0,c="win32"===r.platform;function f(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(function(t){e[t]=e[t]||o[t],e[t+="Sync"]=e[t]||o[t]}),e.maxBusyTries=e.maxBusyTries||3,e.emfileWait=e.emfileWait||1e3,!1===e.glob&&(e.disableGlob=!0),e.disableGlob=e.disableGlob||!1,e.glob=e.glob||u}function p(e,t,r){"function"==typeof t&&(r=t,t={}),n(e,"rimraf: missing path"),n.equal(typeof e,"string","rimraf: path should be a string"),n.equal(typeof r,"function","rimraf: callback function required"),n(t,"rimraf: invalid options argument provided"),n.equal(typeof t,"object","rimraf: options should be object"),f(t);var i=0,o=null,a=0;if(t.disableGlob||!s.hasMagic(e))return u(null,[e]);function u(e,n){return e?r(e):0===(a=n.length)?r():void n.forEach(function(e){d(e,t,function n(s){if(s){if(("EBUSY"===s.code||"ENOTEMPTY"===s.code||"EPERM"===s.code)&&i=0){var a=this._originalMappings[s];if(void 0===e.column)for(var u=a.originalLine;a&&a.originalLine===u;)o.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var l=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==l;)o.push({line:n.getArg(a,"generatedLine",null),column:n.getArg(a,"generatedColumn",null),lastColumn:n.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return o},r.SourceMapConsumer=u,l.prototype=Object.create(u.prototype),l.prototype.consumer=u,l.fromSourceMap=function(e){var t=Object.create(l.prototype),r=t._names=o.fromArray(e._names.toArray(),!0),i=t._sources=o.fromArray(e._sources.toArray(),!0);t.sourceRoot=e._sourceRoot,t.sourcesContent=e._generateSourcesContent(t._sources.toArray(),t.sourceRoot),t.file=e._file;for(var s=e._mappings.toArray().slice(),u=t.__generatedMappings=[],f=t.__originalMappings=[],p=0,d=s.length;p1&&(r.source=m+o[1],m+=o[1],r.originalLine=d+o[2],d=r.originalLine,r.originalLine+=1,r.originalColumn=h+o[3],h=r.originalColumn,o.length>4&&(r.name=g+o[4],g+=o[4])),k.push(r),"number"==typeof r.originalLine&&x.push(r)}a(k,n.compareByGeneratedPositionsDeflated),this.__generatedMappings=k,a(x,n.compareByOriginalPositions),this.__originalMappings=x},l.prototype._findMapping=function(e,t,r,n,o,s){if(e[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[r]);if(e[n]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[n]);return i.search(e,t,o,s)},l.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[r];if(i.generatedLine===t.generatedLine){var o=n.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),null!=this.sourceRoot&&(o=n.join(this.sourceRoot,o)));var s=n.getArg(i,"name",null);return null!==s&&(s=this._names.at(s)),{source:o,line:n.getArg(i,"originalLine",null),column:n.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},l.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e}))},l.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;if(null!=this.sourceRoot&&(e=n.relative(this.sourceRoot,e)),this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];var r;if(null!=this.sourceRoot&&(r=n.urlParse(this.sourceRoot))){var i=e.replace(/^file:\/\//,"");if("file"==r.scheme&&this._sources.has(i))return this.sourcesContent[this._sources.indexOf(i)];if((!r.path||"/"==r.path)&&this._sources.has("/"+e))return this.sourcesContent[this._sources.indexOf("/"+e)]}if(t)return null;throw new Error('"'+e+'" is not in the SourceMap.')},l.prototype.generatedPositionFor=function(e){var t=n.getArg(e,"source");if(null!=this.sourceRoot&&(t=n.relative(this.sourceRoot,t)),!this._sources.has(t))return{line:null,column:null,lastColumn:null};var r={source:t=this._sources.indexOf(t),originalLine:n.getArg(e,"line"),originalColumn:n.getArg(e,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",n.compareByOriginalPositions,n.getArg(e,"bias",u.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===r.source)return{line:n.getArg(o,"generatedLine",null),column:n.getArg(o,"generatedColumn",null),lastColumn:n.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},r.BasicSourceMapConsumer=l,f.prototype=Object.create(u.prototype),f.prototype.constructor=u,f.prototype._version=3,Object.defineProperty(f.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&e.column>=0)||t||r||n)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&r))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:r,original:t,name:n}))},a.prototype._serializeMappings=function(){for(var e,t,r,o,s=0,a=1,u=0,l=0,c=0,f=0,p="",d=this._mappings.toArray(),h=0,m=d.length;h0){if(!i.compareByGeneratedPositionsInflated(t,d[h-1]))continue;e+=","}e+=n.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=n.encode(o-f),f=o,e+=n.encode(t.originalLine-1-l),l=t.originalLine-1,e+=n.encode(t.originalColumn-u),u=t.originalColumn,null!=t.name&&(r=this._names.indexOf(t.name),e+=n.encode(r-c),c=r)),p+=e}return p},a.prototype._generateSourcesContent=function(e,t){return e.map(function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var r=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},r.SourceMapGenerator=a},{"./array-set":311,"./base64-vlq":312,"./mapping-list":315,"./util":320}],319:[function(e,t,r){var n=e("./source-map-generator").SourceMapGenerator,i=e("./util"),o=/(\r?\n)/,s="$$$isSourceNode$$$";function a(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==r?null:r,this.name=null==i?null:i,this[s]=!0,null!=n&&this.add(n)}a.fromStringWithSourceMap=function(e,t,r){var n=new a,s=e.split(o),u=0,l=function(){return e()+(e()||"");function e(){return u=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,r=0,n=this.children.length;r0){for(t=[],r=0;r=0;c--)"."===(i=u[c])?u.splice(c,1):".."===i?l++:l>0&&(""===i?(u.splice(c+1,l),l=0):(u.splice(c,2),l--));return""===(t=u.join("/"))&&(t=a?"/":"."),n?(n.path=t,s(n)):t}r.urlParse=o,r.urlGenerate=s,r.normalize=a,r.join=function(e,t){""===e&&(e="."),""===t&&(t=".");var r=o(t),n=o(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),s(r);if(r||t.match(i))return t;if(n&&!n.host&&!n.path)return n.host=t,s(n);var u="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=u,s(n)):u},r.isAbsolute=function(e){return"/"===e.charAt(0)||!!e.match(n)},r.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var r=0;0!==t.indexOf(e+"/");){var n=e.lastIndexOf("/");if(n<0)return t;if((e=e.slice(0,n)).match(/^([^\/]+:\/)?\/*$/))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)};var u=!("__proto__"in Object.create(null));function l(e){return e}function c(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var r=t-10;r>=0;r--)if(36!==e.charCodeAt(r))return!1;return!0}function f(e,t){return e===t?0:e>t?1:-1}r.toSetString=u?l:function(e){return c(e)?"$"+e:e},r.fromSetString=u?l:function(e){return c(e)?e.slice(1):e},r.compareByOriginalPositions=function(e,t,r){var n=e.source-t.source;return 0!==n?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)||r?n:0!=(n=e.generatedColumn-t.generatedColumn)?n:0!=(n=e.generatedLine-t.generatedLine)?n:e.name-t.name},r.compareByGeneratedPositionsDeflated=function(e,t,r){var n=e.generatedLine-t.generatedLine;return 0!==n?n:0!=(n=e.generatedColumn-t.generatedColumn)||r?n:0!=(n=e.source-t.source)?n:0!=(n=e.originalLine-t.originalLine)?n:0!=(n=e.originalColumn-t.originalColumn)?n:e.name-t.name},r.compareByGeneratedPositionsInflated=function(e,t){var r=e.generatedLine-t.generatedLine;return 0!==r?r:0!=(r=e.generatedColumn-t.generatedColumn)?r:0!==(r=f(e.source,t.source))?r:0!=(r=e.originalLine-t.originalLine)?r:0!=(r=e.originalColumn-t.originalColumn)?r:f(e.name,t.name)}},{}],321:[function(e,t,r){arguments[4][279][0].apply(r,arguments)},{"./lib/source-map-consumer":317,"./lib/source-map-generator":318,"./lib/source-node":319,dup:279}],322:[function(e,t,r){var n,i,o=(n=function(e){var t,r,n,o,s=[];for(n=0,o=(t=e.split(",")).length;n0&&s.push(i(r));return s},i=function(e){var t,r,n,i=e,o={a:0,b:0,c:0},s=[];return t=function(t,r){var n,a,u,l,c,f;if(t.test(i))for(a=0,u=(n=i.match(t)).length;a~\.\[:]+)/g,"a"),t(/(\.[^\s\+>~\.\[:]+)/g,"b"),t(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),t(/(:[\w-]+\([^\)]*\))/gi,"b"),t(/(:[^\s\+>~\.\[:]+)/g,"b"),i=(i=i.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," "),t(/([^\s\+>~\.\[:]+)/g,"c"),s.sort(function(e,t){return e.index-t.index}),{selector:e,specificity:"0,"+o.a.toString()+","+o.b.toString()+","+o.c.toString(),specificityArray:[0,o.a,o.b,o.c],parts:s}},{calculate:n,compare:function(e,t){var r,n,o;if("string"==typeof e){if(-1!==e.indexOf(","))throw"Invalid CSS selector";r=i(e).specificityArray}else{if(!Array.isArray(e))throw"Invalid CSS selector or specificity array";if(4!==e.filter(function(e){return"number"==typeof e}).length)throw"Invalid specificity array";r=e}if("string"==typeof t){if(-1!==t.indexOf(","))throw"Invalid CSS selector";n=i(t).specificityArray}else{if(!Array.isArray(t))throw"Invalid CSS selector or specificity array";if(4!==t.filter(function(e){return"number"==typeof e}).length)throw"Invalid specificity array";n=t}for(o=0;o<4;o+=1){if(r[o]n[o])return 1}return 0}});void 0!==r&&(r.calculate=o.calculate,r.compare=o.compare)},{}],323:[function(e,t,r){t.exports=i;var n=e("events").EventEmitter;function i(){n.call(this)}e("inherits")(i,n),i.Readable=e("readable-stream/readable.js"),i.Writable=e("readable-stream/writable.js"),i.Duplex=e("readable-stream/duplex.js"),i.Transform=e("readable-stream/transform.js"),i.PassThrough=e("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",a),r.on("close",u));var s=!1;function a(){s||(s=!0,e.end())}function u(){s||(s=!0,"function"==typeof e.destroy&&e.destroy())}function l(e){if(c(),0===n.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",a),r.removeListener("close",u),r.removeListener("error",l),e.removeListener("error",l),r.removeListener("end",c),r.removeListener("close",c),e.removeListener("close",c)}return r.on("error",l),e.on("error",l),r.on("end",c),r.on("close",c),e.on("close",c),e.emit("pipe",r),e}},{events:34,inherits:72,"readable-stream/duplex.js":290,"readable-stream/passthrough.js":299,"readable-stream/readable.js":300,"readable-stream/transform.js":301,"readable-stream/writable.js":302}],324:[function(e,t,r){"use strict";var n=e("safe-buffer").Buffer,i=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=l,t=4;break;case"utf8":this.fillLast=a,t=4;break;case"base64":this.text=c,this.end=f,t=3;break;default:return this.write=p,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function s(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function a(e){var t=this.lastTotal-this.lastNeed,r=function(e,t,r){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function c(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function p(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}r.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r=0)return i>0&&(e.lastNeed=i-1),i;if(--n=0)return i>0&&(e.lastNeed=i-2),i;if(--n=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":310}],325:[function(e,t,r){"use strict";var n=e("ansi-regex")();t.exports=function(e){return"string"==typeof e?e.replace(n,""):e}},{"ansi-regex":1}],326:[function(e,t,r){t.exports=function(e,t){var r=e.source,n=e.target,i=!e.comments||"skip"===e.comments,o=!e.strings||"skip"===e.strings,s=!e.functionNames||"skip"===e.functionNames,a="skip"===e.functionArguments,u="skip"===e.parentheticals,l=!1;Object.keys(e).forEach(function(t){if("only"===e[t]){if(l)throw new Error('Only one syntax feature option can be the "only" one to check');l=!0}});var c,f="only"===e.comments,p="only"===e.strings,d="only"===e.functionNames,h="only"===e.functionArguments,m="only"===e.parentheticals,g=!1,y=!1,v=!1,b=!1,w=!1,x=0,k=0,_=Array.isArray(n)?function(e){for(var t=0,r=n.length;t{c(e.source.start.line,t,e)})}(e):0===m.indexOf(u)?function(e){f(u,e.text).forEach(t=>{c(e.source.start.line+1,t,e)})}(e):0===m.indexOf(o)?function(e){f(o,e.text).forEach(t=>{if(t!==l){if(h(t))throw e.error(`"${t}" has already been disabled`,{plugin:"stylelint"});p(e.source.start.line,t)}else{if(h(l))throw e.error("All rules have already been disabled",{plugin:"stylelint"});Object.keys(r).forEach(t=>{p(e.source.start.line,t)})}})}(e):0===m.indexOf(s)&&function(e){f(s,e.text).forEach(t=>{if(t!==l){if(h(l)&&void 0===r[t])return r[t]?r[t].push(n.clone(n.last(r[l]))):r[t]=n.cloneDeep(r.all),void d(e.source.end.line,t);if(!h(t))throw e.error(`"${t}" has not been disabled`,{plugin:"stylelint"});d(e.source.end.line,t)}else{if(n.values(r).every(e=>n.isEmpty(e)||!!n.last(e.end)))throw e.error("No rules have been disabled",{plugin:"stylelint"});Object.keys(r).forEach(t=>{n.get(n.last(r[t]),"end")||d(e.source.end.line,t)})}})}(e)}),t;function c(e,t,n){if(h(l))throw n.error("All rules have already been disabled",{plugin:"stylelint"});if(h(t))throw n.error(`"${t}" has already been disabled`,{plugin:"stylelint"});t===l?Object.keys(r).forEach(t=>{p(e,t),d(e,t)}):(p(e,t),d(e,t))}function f(e,t){const r=n.compact(t.slice(e.length).split(",")).map(e=>e.trim());return n.isEmpty(r)?[l]:r}function p(e,t){const i={start:e};!function(e){r[e]||(r[e]=n.cloneDeep(r.all))}(t),r[t].push(i)}function d(e,t){const i=n.last(r[t]);i&&(i.end=e)}function h(e){return void 0!==r[e]&&(void 0!==n.last(r[e])&&void 0===n.get(n.last(r[e]),"end"))}}},{lodash:125}],328:[function(e,t,r){"use strict";const n=e("lodash"),i=e("./utils/configurationError"),o=e("./dynamicRequire"),s=e("./utils/getModulePath"),a=e("globjoin"),u=e("./normalizeRuleSettings"),l=e("path"),c=e("./rules");function f(e,t,r,i){return Promise.resolve().then(()=>i?n.merge(t,e._options.configOverrides):t).then(t=>(function(e,t,r){if(void 0===t.extends)return Promise.resolve(t);const i=Array.isArray(t.extends)?t.extends:[t.extends],o=n.omit(t,"extends");return i.reduce((t,n)=>t.then(t=>(function(e,t,r,n){const i=s(r,n);return e._extendExplorer.load(null,i)})(e,0,r,n).then(e=>e?p(t,e.config):t)),Promise.resolve(o)).then(e=>p(e,o))})(e,t,r)).then(e=>(function(e,t){e.ignoreFiles&&(e.ignoreFiles=[].concat(e.ignoreFiles).map(e=>l.isAbsolute(e.replace(/^!/,""))?e:a(t,e)));e.plugins&&(e.plugins=[].concat(e.plugins).map(e=>s(t,e)));e.processors&&(e.processors=function(e,t){return(Array.isArray(e)?e:[e]).map(e=>"string"==typeof e?s(t,e):[s(t,e[0]),e[1]])}(e.processors,t));return e})(e,r))}function p(e,t){const r={};(e.plugins||t.plugins)&&(r.plugins=[],e.plugins&&(r.plugins=r.plugins.concat(e.plugins)),t.plugins&&(r.plugins=n.uniq(r.plugins.concat(t.plugins))));const i={};(e.processors||t.processors)&&(i.processors=[],e.processors&&(i.processors=i.processors.concat(e.processors)),t.processors&&(i.processors=n.uniq(i.processors.concat(t.processors))));const o={};return(e.rules||t.rules)&&(o.rules=Object.assign({},e.rules,t.rules)),Object.assign({},e,t,i,r,o)}const d=new Map;t.exports={augmentConfigExtended:function(e,t){const r=t;if(!r)return Promise.resolve(null);const i=l.dirname(r.filepath||"");return f(e,n.omit(r.config,"ignoreFiles"),i).then(e=>({config:e,filepath:r.filepath}))},augmentConfigFull:function(e,t){const r=t;if(!r)return Promise.resolve(null);const s=r.config,a=r.filepath;return f(e,s,e._options.configBasedir||l.dirname(a||""),!0).then(e=>(function(e){if(!e.plugins)return e;const t=(Array.isArray(e.plugins)?e.plugins:[e.plugins]).reduce((e,t)=>{let r=o(t);r=r.default||r;const s=Array.isArray(r)?r:[r];return s.forEach(r=>{if(!r.ruleName)throw i("stylelint v3+ requires plugins to expose a ruleName. "+`The plugin "${t}" is not doing this, so will not work `+"with stylelint v3+. Please file an issue with the plugin.");if(!n.includes(r.ruleName,"/"))throw i("stylelint v7+ requires plugin rules to be namspaced, i.e. only `plugin-namespace/plugin-rule-name` plugin rule names are supported. "+`The plugin rule "${r.ruleName}" does not do this, so will not work. `+"Please file an issue with the plugin.");e[r.ruleName]=r.rule}),e},{});return e.pluginFunctions=t,e})(e)).then(e=>(function(e){if(!e.processors)return e;const t=[],r=[];return[].concat(e.processors).forEach(e=>{const n=JSON.stringify(e);let i;if(d.has(n))i=d.get(n);else{const t=(e=[].concat(e))[0],r=e[1];let s=o(t);i=(s=s.default||s)(r),d.set(n,i)}i&&i.code&&t.push(i.code),i&&i.result&&r.push(i.result)}),e.codeProcessors=t,e.resultProcessors=r,e})(e)).then(e=>{if(!e.rules)throw i('No rules found within configuration. Have you provided a "rules" property?');return function(e){const t={};return e.rules?(Object.keys(e.rules).forEach(r=>{const o=n.get(e,["rules",r]),s=c[r]||n.get(e,["pluginFunctions",r]);if(!s)throw i(`Undefined rule ${r}`);t[r]=u(o,r,n.get(s,"primaryOptionArray"))}),e.rules=t,e):e}(e)}).then(e=>({config:e,filepath:r.filepath}))}}},{"./dynamicRequire":332,"./normalizeRuleSettings":340,"./rules":424,"./utils/configurationError":525,"./utils/getModulePath":533,globjoin:59,lodash:125,path:148}],329:[function(e,t,r){"use strict";t.exports=function(e,t){return{ruleName:e,rule:t}}},{}],330:[function(e,t,r){"use strict";const n=e("lodash"),i=e("./augmentConfig"),o=e("cosmiconfig"),s=e("./createStylelintResult"),a=e("./getConfigForFile"),u=e("./getPostcssResult"),l=e("./isPathIgnored"),c=e("./lintSource");t.exports=function(e){const t={_options:e=e||{}};return t._fullExplorer=o("stylelint",{argv:!1,rcExtensions:!0,transform:n.partial(i.augmentConfigFull,t)}),t._extendExplorer=o(null,{argv:!1,transform:n.partial(i.augmentConfigExtended,t)}),t._specifiedConfigCache=new Map,t._postcssResultCache=new Map,t._createStylelintResult=n.partial(s,t),t._getPostcssResult=n.partial(u,t),t._lintSource=n.partial(c,t),t.getConfigForFile=n.partial(a,t),t.isPathIgnored=n.partial(l,t),t}},{"./augmentConfig":328,"./createStylelintResult":331,"./getConfigForFile":335,"./getPostcssResult":336,"./isPathIgnored":337,"./lintSource":338,cosmiconfig:24,lodash:125}],331:[function(e,t,r){"use strict";const n=e("lodash");t.exports=function(e,t,r){const i=t.root.source?t.root.source.input.file||t.root.source.input.id:void 0,o=n.remove(t.messages,{stylelintType:"deprecation"}).map(e=>({text:e.text,reference:e.stylelintReference})),s=n.remove(t.messages,{stylelintType:"invalidOption"}).map(e=>({text:e.text})),a=n.remove(t.messages,{stylelintType:"parseError"});let u={source:i,deprecations:o,invalidOptionWarnings:s,parseErrors:a,errored:t.stylelint.stylelintError,warnings:t.messages.map(e=>({line:e.line,column:e.column,rule:e.rule,severity:e.severity,text:e.text})),ignored:t.stylelint.ignored,_postcssResult:t};return e.getConfigForFile(r).then(e=>{const t=e.config;return t.resultProcessors&&t.resultProcessors.forEach(e=>{const t=e(u,i);t&&(u=t)}),u})}},{lodash:125}],332:[function(e,t,r){"use strict";t.exports=function(t){return e(t)}},{}],333:[function(e,t,r){"use strict";t.exports={json:e("./jsonFormatter"),string:()=>{},verbose:()=>{}}},{"./jsonFormatter":334}],334:[function(e,t,r){"use strict";const n=e("lodash");t.exports=function(e){const t=e.map(e=>n.omitBy(e,(e,t)=>"_"===t[0]));return JSON.stringify(t)}},{lodash:125}],335:[function(e,t,r){(function(r){"use strict";const n=e("./augmentConfig").augmentConfigFull,i=e("./utils/configurationError"),o=e("path");t.exports=function(e,t){t=t||r.cwd();const s=e._options.config;if(void 0!==s){const t=e._specifiedConfigCache.get(s);if(t)return t;const i=n(e,{config:s,filepath:o.join(r.cwd(),"argument-config")});return e._specifiedConfigCache.set(s,i),i}return e._fullExplorer.load(t,e._options.configFile).then(t=>t||e._fullExplorer.load(r.cwd())).then(e=>{if(!e){throw i(`No configuration provided${t?` for ${t}`:""}`)}return e})}}).call(this,e("_process"))},{"./augmentConfig":328,"./utils/configurationError":525,_process:282,path:148}],336:[function(e,t,r){"use strict";const n=e("./dynamicRequire"),i=e("fs"),o=e("postcss-less"),s=e("path"),a=e("postcss"),u=e("postcss-scss"),l=e("sugarss"),c=a();t.exports=function(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e._postcssResultCache.get(t.filePath);if(r)return Promise.resolve(r);let a;var f;if(void 0!==t.code?a=Promise.resolve(t.code):t.filePath&&(f=t.filePath,a=new Promise((e,t)=>{i.readFile(f,"utf8",(r,n)=>{if(r)return t(r);e(n)})})),!a)throw new Error("code or filePath required");return a.then(r=>{const i=e._options.customSyntax;let a=e._options.syntax;if(i)try{a=n(i)}catch(e){throw new Error(`Cannot resolve custom syntax module ${i}`)}else{const e=s.extname(t.filePath||"");if("scss"===a||!a&&".scss"===e)a=u;else if("less"===a||!a&&".less"===e)a=o;else if("sugarss"===a||!a&&".sss"===e)a=l;else if(a)throw new Error("You must use a valid syntax option, either: scss, less or sugarss")}const f={};f.from=t.filePath,a&&!a.stringify?f.parser=a:f.syntax=a;const p=t.code?t.codeFilename:t.filePath;let d=r;return t.codeProcessors&&t.codeProcessors.forEach(e=>{d=e(d,p)}),c.process(d,f)}).then(r=>(e._postcssResultCache.set(t.filePath,r),r))}},{"./dynamicRequire":332,fs:17,path:148,postcss:256,"postcss-less":160,"postcss-scss":216,sugarss:594}],337:[function(e,t,r){(function(r){"use strict";const n=e("micromatch"),i=e("path");t.exports=function(e,t){const o=t;return o?e.getConfigForFile(o).then(e=>{const t=e.config,s=i.isAbsolute(o)?o:i.resolve(r.cwd(),o);return!!n(s,t.ignoreFiles).length}):Promise.resolve(!1)}}).call(this,e("_process"))},{_process:282,micromatch:128,path:148}],338:[function(e,t,r){(function(r){"use strict";const n=e("lodash"),i=e("./assignDisabledRanges"),o=e("./utils/configurationError"),s=e("./utils/getOsEol"),a=e("path"),u=e("./rules");function l(e,t,r){t.stylelint=t.stylelint||{},t.stylelint.ruleSeverities={},t.stylelint.customMessages={},t.stylelint.quiet=r.quiet;const a=t.root.toResult({stringifier:t.opts.syntax}).css.match(/\r?\n/),l=a?a[0]:s(),c=t.root;i(c,t),(e._options.reportNeedlessDisables||e._options.ignoreDisables)&&(t.stylelint.ignoreDisables=!0);const f=[];return(r.rules?Object.keys(r.rules):[]).forEach(i=>{const s=u[i]||n.get(r,["pluginFunctions",i]);if(void 0===s)throw o(`Undefined rule ${i}`);const a=n.get(r,["rules",i]);if(null===a||null===a[0])return;const p=a[0],d=a[1],h=r.defaultSeverity||"error";t.stylelint.ruleSeverities[i]=n.get(d,"severity",h),t.stylelint.customMessages[i]=n.get(d,"message");const m=Promise.resolve().then(()=>s(p,d,{fix:e._options.fix,newline:l})(c,t));f.push(m)}),Promise.all(f)}t.exports=function(e,t){if(!(t=t||{}).filePath&&void 0===t.code&&!t.existingPostcssResult)return Promise.reject(new Error("You must provide filePath, code, or existingPostcssResult"));const n=void 0!==t.code,i=n?t.codeFilename:t.filePath;return void 0===i||a.isAbsolute(i)?e.isPathIgnored(i).catch(e=>{if(n&&"ENOENT"===e.code)return!1;throw e}).then(o=>{if(o){const e=t.existingPostcssResult||function(e){return{root:{source:{input:{file:e}}},messages:[],stylelint:{stylelintError:null}}}(i);return e.stylelint=e.stylelint||{},e.stylelint.ignored=!0,e}const s=e._options.configFile||i;return e.getConfigForFile(s).catch(t=>{if(n&&"ENOENT"===t.code)return e.getConfigForFile(r.cwd());throw t}).then(r=>{const n=r.config,o=t.existingPostcssResult;return o?l(e,o,n).then(()=>o):e._getPostcssResult({code:t.code,codeFilename:t.codeFilename,filePath:i,codeProcessors:n.codeProcessors}).then(t=>l(e,t,n).then(()=>t))})}):n?Promise.reject(new Error("codeFilename must be an absolute path")):Promise.reject(new Error("filePath must be an absolute path"))}}).call(this,e("_process"))},{"./assignDisabledRanges":327,"./rules":424,"./utils/configurationError":525,"./utils/getOsEol":535,_process:282,lodash:125,path:148}],339:[function(e,t,r){"use strict";const n=e("lodash");function i(e,t){const r=e.rule,n=e.line;return t.start<=n&&(void 0!==t.end&&t.end>=n||void 0===t.end)&&(!t.rules||-1!==t.rules.indexOf(r))}t.exports=function(e){const t=[];return e.forEach(e=>{if(!e._postcssResult)return;const r={source:e.source,ranges:[]},o=n.cloneDeep(e._postcssResult.stylelint.disabledRanges);o&&(e.warnings.forEach(e=>{const t=e.rule,r=o[t];if(r)for(const t of r.reverse())if(i(e,t))return void(t.used=!0);for(const t of o.all.reverse())if(i(e,t))return void(t.used=!0)}),Object.keys(o).forEach(e=>{o[e].forEach(e=>{const t=r.ranges.find(t=>t.start===e.start&&t.end===e.end);e.used||t||r.ranges.push(e),e.used&&t&&n.remove(r.ranges,t)})}),r.ranges=n.sortBy(r.ranges,["start","end"]),t.push(r))}),t}},{lodash:125}],340:[function(e,t,r){"use strict";const n=e("lodash"),i=e("./rules");t.exports=function(e,t,r){if(null===e)return null;if(!Array.isArray(e))return[e];if(null===e[0])return null;if(void 0===r){const e=i[t];r=n.get(e,"primaryOptionArray")}return r?1===e.length&&Array.isArray(e[0])?e:2===e.length&&!n.isPlainObject(e[0])&&n.isPlainObject(e[1])?e:[e]:e}},{"./rules":424,lodash:125}],341:[function(e,t,r){(function(r){"use strict";const n=e("lodash"),i=e("./createStylelint"),o=e("path"),s=e("postcss");t.exports=s.plugin("stylelint",function(e){const t=(e=e||{}).rules?{config:e}:e,s=i(t);return(t,i)=>{let a=e.from||n.get(t,"source.input.file");return void 0===a||o.isAbsolute(a)||(a=o.join(r.cwd(),a)),s._lintSource({filePath:a,existingPostcssResult:i})}})}).call(this,e("_process"))},{"./createStylelint":330,_process:282,lodash:125,path:148,postcss:256}],342:[function(e,t,r){"use strict";const n=e("lodash"),i={};function o(){const e=Array.from(arguments);return new Set(e.reduce((e,t)=>e.concat(n.toArray(t)),[]))}i.nonLengthUnits=new Set(["%","s","ms","deg","grad","turn","rad","Hz","kHz","dpi","dpcm","dppx"]),i.lengthUnits=new Set(["em","ex","ch","rem","vh","vw","vmin","vmax","vm","px","mm","cm","in","pt","pc","q","fr"]),i.units=o(i.nonLengthUnits,i.lengthUnits),i.colorFunctionNames=new Set(["rgb","rgba","hsl","hsla","hwb","gray"]),i.camelCaseFunctionNames=new Set(["translateX","translateY","translateZ","scaleX","scaleY","scaleZ","rotateX","rotateY","rotateZ","skewX","skewY"]),i.basicKeywords=new Set(["initial","inherit","unset"]),i.fontFamilyKeywords=o(i.basicKeywords,["serif","sans-serif","cursive","fantasy","monospace"]),i.fontWeightRelativeKeywords=new Set(["bolder","lighter"]),i.fontWeightAbsoluteKeywords=new Set(["bold"]),i.fontWeightNumericKeywords=new Set(["100","200","300","400","500","600","700","800","900"]),i.fontWeightKeywords=o(i.basicKeywords,i.fontWeightRelativeKeywords,i.fontWeightAbsoluteKeywords,i.fontWeightNumericKeywords),i.animationNameKeywords=o(i.basicKeywords,["none"]),i.animationTimingFunctionKeywords=o(i.basicKeywords,["linear","ease","ease-in","ease-in-out","ease-out","step-start","step-end","steps","cubic-bezier"]),i.animationIterationCountKeywords=new Set(["infinite"]),i.animationDirectionKeywords=o(i.basicKeywords,["normal","reverse","alternate","alternate-reverse"]),i.animationFillModeKeywords=new Set(["none","forwards","backwards","both"]),i.animationPlayStateKeywords=o(i.basicKeywords,["running","paused"]),i.animationShorthandKeywords=o(i.basicKeywords,i.animationNameKeywords,i.animationTimingFunctionKeywords,i.animationIterationCountKeywords,i.animationDirectionKeywords,i.animationFillModeKeywords,i.animationPlayStateKeywords),i.levelOneAndTwoPseudoElements=new Set(["before","after","first-line","first-letter"]),i.levelThreePseudoElements=new Set(["before","after","first-line","first-letter","selection","spelling-error","grammar-error","backdrop","marker","placeholder","shadow","slotted","content"]),i.pseudoElements=o(i.levelOneAndTwoPseudoElements,i.levelThreePseudoElements),i.aNPlusBNotationPseudoClasses=new Set(["nth-child","nth-column","nth-last-child","nth-last-column","nth-last-of-type","nth-of-type"]),i.linguisticPseudoClasses=new Set(["dir","lang"]),i.atRulePagePseudoClasses=new Set(["first","right","left","blank"]),i.otherPseudoClasses=new Set(["active","any-link","blank","checked","contains","current","default","disabled","drop","empty","enabled","first-child","first-of-type","focus","focus-ring","focus-within","fullscreen","future","has","host","host-context","hover","indeterminate","in-range","invalid","last-child","last-of-type","link","matches","not","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","playing","paused","read-only","read-write","required","root","scope","target","user-error","user-invalid","val","valid","visited"]),i.webkitProprietaryPseudoElements=new Set(["scrollbar","scrollbar-button","scrollbar-track","scrollbar-track-piece","scrollbar-thumb","scrollbar-corner","resize"]),i.webkitProprietaryPseudoClasses=new Set(["horizontal","vertical","decrement","increment","start","end","double-button","single-button","no-button","corner-present","window-inactive"]),i.pseudoClasses=o(i.aNPlusBNotationPseudoClasses,i.linguisticPseudoClasses,i.otherPseudoClasses),i.shorthandTimeProperties=new Set(["transition","animation"]),i.longhandTimeProperties=new Set(["transition-duration","transition-delay","animation-duration","animation-delay"]),i.timeProperties=o(i.shorthandTimeProperties,i.longhandTimeProperties),i.camelCaseKeywords=new Set(["optimizeSpeed","optimizeQuality","optimizeLegibility","geometricPrecision","currentColor","crispEdges","visiblePainted","visibleFill","visibleStroke","sRGB","linearRGB"]),i.counterIncrementKeywords=o(i.basicKeywords,["none"]),i.counterResetKeywords=o(i.basicKeywords,["none"]),i.gridRowKeywords=o(i.basicKeywords,["auto","span"]),i.gridColumnKeywords=o(i.basicKeywords,["auto","span"]),i.gridAreaKeywords=o(i.basicKeywords,["auto","span"]),i.listStyleTypeKeywords=o(i.basicKeywords,["none","disc","circle","square","decimal","cjk-decimal","decimal-leading-zero","lower-roman","upper-roman","lower-greek","lower-alpha","lower-latin","upper-alpha","upper-latin","arabic-indic","armenian","bengali","cambodian","cjk-earthly-branch","cjk-ideographic","devanagari","ethiopic-numeric","georgian","gujarati","gurmukhi","hebrew","hiragana","hiragana-iroha","japanese-formal","japanese-informal","kannada","katakana","katakana-iroha","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","lao","lower-armenian","malayalam","mongolian","myanmar","oriya","persian","simp-chinese-formal","simp-chinese-informal","tamil","telugu","thai","tibetan","trad-chinese-formal","trad-chinese-informal","upper-armenian","disclosure-open","disclosure-closed","ethiopic-halehame","ethiopic-halehame-am","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","hangul","hangul-consonant","urdu"]),i.listStylePositionKeywords=o(i.basicKeywords,["inside","outside"]),i.listStyleImageKeywords=o(i.basicKeywords,["none"]),i.listStyleShorthandKeywords=o(i.basicKeywords,i.listStyleTypeKeywords,i.listStylePositionKeywords,i.listStyleImageKeywords),i.fontStyleKeywords=o(i.basicKeywords,["normal","italic","oblique"]),i.fontVariantKeywords=o(i.basicKeywords,["normal","none","historical-forms","none","common-ligatures","no-common-ligatures","discretionary-ligatures","no-discretionary-ligatures","historical-ligatures","no-historical-ligatures","contextual","no-contextual","small-caps","small-caps","all-small-caps","petite-caps","all-petite-caps","unicase","titling-caps","lining-nums","oldstyle-nums","proportional-nums","tabular-nums","diagonal-fractions","stacked-fractions","ordinal","slashed-zero","jis78","jis83","jis90","jis04","simplified","traditional","full-width","proportional-width","ruby"]),i.fontStretchKeywords=o(i.basicKeywords,["semi-condensed","condensed","extra-condensed","ultra-condensed","semi-expanded","expanded","extra-expanded","ultra-expanded"]),i.fontSizeKeywords=o(i.basicKeywords,["xx-small","x-small","small","medium","large","x-large","xx-large","larger","smaller"]),i.lineHeightKeywords=o(i.basicKeywords,["normal"]),i.fontShorthandKeywords=o(i.basicKeywords,i.fontStyleKeywords,i.fontVariantKeywords,i.fontWeightKeywords,i.fontStretchKeywords,i.fontSizeKeywords,i.lineHeightKeywords,i.fontFamilyKeywords),i.keyframeSelectorKeywords=new Set(["from","to"]),i.atRules=new Set(["apply","annotation","character-variant","charset","counter-style","custom-media","custom-selector","document","font-face","font-feature-values","import","keyframes","media","namespace","nest","ornaments","page","styleset","stylistic","supports","swash","viewport"]),i.deprecatedMediaFeatureNames=new Set(["device-aspect-ratio","device-height","device-width","max-device-aspect-ratio","max-device-height","max-device-width","min-device-aspect-ratio","min-device-height","min-device-width"]),i.mediaFeatureNames=o(i.deprecatedMediaFeatureNames,["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","grid","height","hover","max-aspect-ratio","max-color","max-color-index","max-height","max-monochrome","max-resolution","max-width","min-aspect-ratio","min-color","min-color-index","min-height","min-monochrome","min-resolution","min-width","monochrome","orientation","overflow-block","overflow-inline","pointer","resolution","scan","scripting","update","width"]),i.systemColors=new Set(["activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext"]),i.nonStandardHtmlTags=new Set(["acronym","applet","basefont","big","blink","center","content","dir","font","frame","frameset","hgroup","isindex","keygen","listing","marquee","noembed","plaintext","spacer","strike","tt","xmp"]),t.exports=i},{lodash:125}],343:[function(e,t,r){"use strict";t.exports={aliceblue:["#f0f8ff","#fff0f8ff"],antiquewhite:["#faebd7","#fffaebd7"],aqua:["#00ffff","#ff00ffff","#0ff","#f0ff"],aquamarine:["#7fffd4","#ff7fffd4"],azure:["#f0ffff","#fff0ffff"],beige:["#f5f5dc","#fff5f5dc"],bisque:["#ffe4c4","#ffffe4c4"],black:["#000000","#ff000000","#000","#f000"],blanchedalmond:["#ffebcd","#ffffebcd"],blue:["#0000ff","#ff0000ff","#00f","#f00f"],blueviolet:["#8a2be2","#ff8a2be2"],brown:["#a52a2a","#ffa52a2a"],burlywood:["#deb887","#ffdeb887"],cadetblue:["#5f9ea0","#ff5f9ea0"],chartreuse:["#7fff00","#ff7fff00"],chocolate:["#d2691e","#ffd2691e"],coral:["#ff7f50","#ffff7f50"],cornflowerblue:["#6495ed","#ff6495ed"],cornsilk:["#fff8dc","#fffff8dc"],crimson:["#dc143c","#ffdc143c"],cyan:["#00ffff","#ff00ffff","#0ff","#f0ff"],darkblue:["#00008b","#ff00008b"],darkcyan:["#008b8b","#ff008b8b"],darkgoldenrod:["#b8860b","#ffb8860b"],darkgray:["#a9a9a9","#ffa9a9a9"],darkgreen:["#006400","#ff006400"],darkgrey:["#a9a9a9","#ffa9a9a9"],darkkhaki:["#bdb76b","#ffbdb76b"],darkmagenta:["#8b008b","#ff8b008b"],darkolivegreen:["#556b2f","#ff556b2f"],darkorange:["#ff8c00","#ffff8c00"],darkorchid:["#9932cc","#ff9932cc"],darkred:["#8b0000","#ff8b0000"],darksalmon:["#e9967a","#ffe9967a"],darkseagreen:["#8fbc8f","#ff8fbc8f"],darkslateblue:["#483d8b","#ff483d8b"],darkslategray:["#2f4f4f","#ff2f4f4f"],darkslategrey:["#2f4f4f","#ff2f4f4f"],darkturquoise:["#00ced1","#ff00ced1"],darkviolet:["#9400d3","#ff9400d3"],deeppink:["#ff1493","#ffff1493"],deepskyblue:["#00bfff","#ff00bfff"],dimgray:["#696969","#ff696969"],dimgrey:["#696969","#ff696969"],dodgerblue:["#1e90ff","#ff1e90ff"],firebrick:["#b22222","#ffb22222"],floralwhite:["#fffaf0","#fffffaf0"],forestgreen:["#228b22","#ff228b22"],fuchsia:["#ff00ff","#ffff00ff","#f0f","#ff0f"],gainsboro:["#dcdcdc","#ffdcdcdc"],ghostwhite:["#f8f8ff","#fff8f8ff"],gold:["#ffd700","#ffffd700"],goldenrod:["#daa520","#ffdaa520"],gray:["#808080","#ff808080"],green:["#008000","#ff008000"],greenyellow:["#adff2f","#ffadff2f"],grey:["#808080","#ff808080"],honeydew:["#f0fff0","#fff0fff0"],hotpink:["#ff69b4","#ffff69b4"],indianred:["#cd5c5c","#ffcd5c5c"],indigo:["#4b0082","#ff4b0082"],ivory:["#fffff0","#fffffff0"],khaki:["#f0e68c","#fff0e68c"],lavender:["#e6e6fa","#ffe6e6fa"],lavenderblush:["#fff0f5","#fffff0f5"],lawngreen:["#7cfc00","#ff7cfc00"],lemonchiffon:["#fffacd","#fffffacd"],lightblue:["#add8e6","#ffadd8e6"],lightcoral:["#f08080","#fff08080"],lightcyan:["#e0ffff","#ffe0ffff"],lightgoldenrodyellow:["#fafad2","#fffafad2"],lightgray:["#d3d3d3","#ffd3d3d3"],lightgreen:["#90ee90","#ff90ee90"],lightgrey:["#d3d3d3","#ffd3d3d3"],lightpink:["#ffb6c1","#ffffb6c1"],lightsalmon:["#ffa07a","#ffffa07a"],lightseagreen:["#20b2aa","#ff20b2aa"],lightskyblue:["#87cefa","#ff87cefa"],lightslategray:["#778899","#ff778899","#789","#f789"],lightslategrey:["#778899","#ff778899","#789","#f789"],lightsteelblue:["#b0c4de","#ffb0c4de"],lightyellow:["#ffffe0","#ffffffe0"],lime:["#00ff00","#ff00ff00","#0f0","#f0f0"],limegreen:["#32cd32","#ff32cd32"],linen:["#faf0e6","#fffaf0e6"],magenta:["#ff00ff","#ffff00ff","#f0f","#ff0f"],maroon:["#800000","#ff800000"],mediumaquamarine:["#66cdaa","#ff66cdaa"],mediumblue:["#0000cd","#ff0000cd"],mediumorchid:["#ba55d3","#ffba55d3"],mediumpurple:["#9370db","#ff9370db"],mediumseagreen:["#3cb371","#ff3cb371"],mediumslateblue:["#7b68ee","#ff7b68ee"],mediumspringgreen:["#00fa9a","#ff00fa9a"],mediumturquoise:["#48d1cc","#ff48d1cc"],mediumvioletred:["#c71585","#ffc71585"],midnightblue:["#191970","#ff191970"],mintcream:["#f5fffa","#fff5fffa"],mistyrose:["#ffe4e1","#ffffe4e1"],moccasin:["#ffe4b5","#ffffe4b5"],navajowhite:["#ffdead","#ffffdead"],navy:["#000080","#ff000080"],oldlace:["#fdf5e6","#fffdf5e6"],olive:["#808000","#ff808000"],olivedrab:["#6b8e23","#ff6b8e23"],orange:["#ffa500","#ffffa500"],orangered:["#ff4500","#ffff4500"],orchid:["#da70d6","#ffda70d6"],palegoldenrod:["#eee8aa","#ffeee8aa"],palegreen:["#98fb98","#ff98fb98"],paleturquoise:["#afeeee","#ffafeeee"],palevioletred:["#db7093","#ffdb7093"],papayawhip:["#ffefd5","#ffffefd5"],peachpuff:["#ffdab9","#ffffdab9"],peru:["#cd853f","#ffcd853f"],pink:["#ffc0cb","#ffffc0cb"],plum:["#dda0dd","#ffdda0dd"],powderblue:["#b0e0e6","#ffb0e0e6"],purple:["#800080","#ff800080"],rebeccapurple:["#663399","#ff663399","#639","#f639"],red:["#ff0000","#ffff0000","#f00","#ff00"],rosybrown:["#bc8f8f","#ffbc8f8f"],royalblue:["#4169e1","#ff4169e1"],saddlebrown:["#8b4513","#ff8b4513"],salmon:["#fa8072","#fffa8072"],sandybrown:["#f4a460","#fff4a460"],seagreen:["#2e8b57","#ff2e8b57"],seashell:["#fff5ee","#fffff5ee"],sienna:["#a0522d","#ffa0522d"],silver:["#c0c0c0","#ffc0c0c0"],skyblue:["#87ceeb","#ff87ceeb"],slateblue:["#6a5acd","#ff6a5acd"],slategray:["#708090","#ff708090"],slategrey:["#708090","#ff708090"],snow:["#fffafa","#fffffafa"],springgreen:["#00ff7f","#ff00ff7f"],steelblue:["#4682b4","#ff4682b4"],tan:["#d2b48c","#ffd2b48c"],teal:["#008080","#ff008080"],thistle:["#d8bfd8","#ffd8bfd8"],tomato:["#ff6347","#ffff6347"],turquoise:["#40e0d0","#ff40e0d0"],violet:["#ee82ee","#ffee82ee"],wheat:["#f5deb3","#fff5deb3"],white:["#ffffff","#ffffffff","#fff","#ffff"],whitesmoke:["#f5f5f5","#fff5f5f5"],yellow:["#ffff00","#ffffff00","#ff0","#fff0"],yellowgreen:["#9acd32","#ff9acd32"]}},{}],344:[function(e,t,r){"use strict";const n={};n.acceptCustomIdents=new Set(["animation","animation-name","font","font-family","counter-increment","grid-row","grid-column","grid-area","list-style","list-style-type"]),t.exports=n},{}],345:[function(e,t,r){"use strict";const n={};n.mediaFeaturePunctuation=new Set([":","=",">",">=","<","<="]),n.nonSpaceCombinators=new Set([">","+","~",">>>","/deep/"]),t.exports=n},{}],346:[function(e,t,r){"use strict";t.exports={margin:["margin-top","margin-bottom","margin-left","margin-right"],padding:["padding-top","padding-bottom","padding-left","padding-right"],background:["background-image","background-size","background-position","background-repeat","background-origin","background-clip","background-attachment","background-color"],font:["font-style","font-variant","font-weight","font-stretch","font-size","font-family","line-height"],border:["border-top-width","border-bottom-width","border-left-width","border-right-width","border-top-style","border-bottom-style","border-left-style","border-right-style","border-top-color","border-bottom-color","border-left-color","border-right-color"],"border-top":["border-top-width","border-top-style","border-top-color"],"border-bottom":["border-bottom-width","border-bottom-style","border-bottom-color"],"border-left":["border-left-width","border-left-style","border-left-color"],"border-right":["border-right-width","border-right-style","border-right-color"],"border-width":["border-top-width","border-bottom-width","border-left-width","border-right-width"],"border-style":["border-top-style","border-bottom-style","border-left-style","border-right-style"],"border-color":["border-top-color","border-bottom-color","border-left-color","border-right-color"],"list-style":["list-style-type","list-style-position","list-style-image"],"border-radius":["border-top-right-radius","border-top-left-radius","border-bottom-right-radius","border-bottom-left-radius"],transition:["transition-delay","transition-duration","transition-property","transition-timing-function"],animation:["animation-name","animation-duration","animation-timing-function","animation-delay","animation-iteration-count","animation-direction","animation-fill-mode","animation-play-state"],"border-block-end":["border-block-end-width","border-block-end-style","border-block-end-color"],"border-block-start":["border-block-start-width","border-block-start-style","border-block-start-color"],"border-image":["border-image-source","border-image-slice","border-image-width","border-image-outset","border-image-repeat"],"border-inline-end":["border-inline-end-width","border-inline-end-style","border-inline-end-color"],"border-inline-start":["border-inline-start-width","border-inline-start-style","border-inline-start-color"],"column-rule":["column-rule-width","column-rule-style","column-rule-color"],columns:["column-width","column-count"],flex:["flex-grow","flex-shrink","flex-basis"],"flex-flow":["flex-direction","flex-wrap"],grid:["grid-template-rows","grid-template-columns","grid-template-areas","grid-auto-rows","grid-auto-columns","grid-auto-flow","grid-column-gap","grid-row-gap"],"grid-area":["grid-row-start","grid-column-start","grid-row-end","grid-column-end"],"grid-column":["grid-column-start","grid-column-end"],"grid-gap":["grid-row-gap","grid-column-gap"],"grid-row":["grid-row-start","grid-row-end"],"grid-template":["grid-template-columns","grid-template-rows","grid-template-areas"],outline:["outline-color","outline-style","outline-width"],"text-decoration":["text-decoration-color","text-decoration-style","text-decoration-line"],"text-emphasis":["text-emphasis-style","text-emphasis-color"],mask:["mask-image","mask-mode","mask-position","mask-size","mask-repeat","mask-origin","mask-clip","mask-composite"]}},{}],347:[function(e,t,r){"use strict";const n=e("lodash"),i=e("postcss"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u="at-rule-blacklist",l=s(u,{rejected:e=>`Unexpected at-rule "${e}"`}),c=function(e){const t=[].concat(e);return(e,r)=>{a(r,u,{actual:t,possible:[n.isString]})&&e.walkAtRules(e=>{const n=e.name;-1!==t.indexOf(i.vendor.unprefixed(n).toLowerCase())&&o({message:l.rejected(n),node:e,result:r,ruleName:u})})}};c.primaryOptionArray=!0,c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],348:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/addEmptyLineBefore"),o=e("../../utils/getPreviousNonSharedLineCommentNode"),s=e("../../utils/hasEmptyLine"),a=e("../../utils/isAfterCommentLine"),u=e("../../utils/isBlocklessAtRuleAfterBlocklessAtRule"),l=e("../../utils/isBlocklessAtRuleAfterSameNameBlocklessAtRule"),c=e("../../utils/isFirstNested"),f=e("../../utils/optionsMatches"),p=e("../../utils/removeEmptyLinesBefore"),d=e("../../utils/report"),h=e("../../utils/ruleMessages"),m=e("../../utils/validateOptions"),g="at-rule-empty-line-before",y=h(g,{expected:"Expected empty line before at-rule",rejected:"Unexpected empty line before at-rule"}),v=function(e,t,r){return(h,v)=>{m(v,g,{actual:e,possible:["always","never"]},{actual:t,possible:{except:["after-same-name","inside-block","blockless-after-same-name-blockless","blockless-after-blockless","first-nested"],ignore:["after-comment","inside-block","blockless-after-same-name-blockless","blockless-after-blockless"],ignoreAtRules:[n.isString]},optional:!0})&&h.walkAtRules(n=>{const m=n.parent!==h;if(n===h.first)return;if(f(t,"ignoreAtRules",n.name))return;if(f(t,"ignore","blockless-after-blockless")&&u(n))return;if(f(t,"ignore","blockless-after-same-name-blockless")&&l(n))return;if(f(t,"ignore","inside-block")&&m)return;if(f(t,"ignore","after-comment")&&a(n))return;const b=s(n.raws.before);let w="always"===e;if((f(t,"except","after-same-name")&&function(e){const t=o(e);return t&&"atrule"===t.type&&t.name===e.name}(n)||f(t,"except","inside-block")&&m||f(t,"except","first-nested")&&c(n)||f(t,"except","blockless-after-blockless")&&u(n)||f(t,"except","blockless-after-same-name-blockless")&&l(n))&&(w=!w),w===b)return;if(r.fix)return void(w?i(n,r.newline):p(n,r.newline));const x=w?y.expected:y.rejected;d({message:x,node:n,result:v,ruleName:g})})}};v.ruleName=g,v.messages=y,t.exports=v},{"../../utils/addEmptyLineBefore":517,"../../utils/getPreviousNonSharedLineCommentNode":536,"../../utils/hasEmptyLine":541,"../../utils/isAfterCommentLine":547,"../../utils/isBlocklessAtRuleAfterBlocklessAtRule":549,"../../utils/isBlocklessAtRuleAfterSameNameBlocklessAtRule":550,"../../utils/isFirstNested":558,"../../utils/optionsMatches":583,"../../utils/removeEmptyLinesBefore":586,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],349:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s="at-rule-name-case",a=i(s,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),u=function(e,t,r){return(t,i)=>{o(i,s,{actual:e,possible:["lower","upper"]})&&t.walkAtRules(t=>{const o=t.name,u="lower"===e?o.toLowerCase():o.toUpperCase();o!==u&&(r.fix?t.name=u:n({message:a.expected(o,u),node:t,ruleName:s,result:i}))})}};u.ruleName=s,u.messages=a,t.exports=u},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],350:[function(e,t,r){"use strict";const n=e("../atRuleNameSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="at-rule-name-newline-after",u=i(a,{expectedAfter:e=>`Expected newline after at-rule name "${e}"`}),l=function(e){const t=s("newline",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","always-multi-line"]})&&n({root:r,result:i,locationChecker:t.afterOneOnly,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../atRuleNameSpaceChecker":356}],351:[function(e,t,r){"use strict";const n=e("../atRuleNameSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="at-rule-name-space-after",u=i(a,{expectedAfter:e=>`Expected single space after at-rule name "${e}"`}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","always-single-line"]})&&n({root:r,result:i,locationChecker:t.after,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../atRuleNameSpaceChecker":356}],352:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../reference/keywordSets"),o=e("../../utils/optionsMatches"),s=e("postcss"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="at-rule-no-unknown",f=u(c,{rejected:e=>`Unexpected unknown at-rule "${e}"`}),p=function(e,t){return(r,u)=>{l(u,c,{actual:e},{actual:t,possible:{ignoreAtRules:[n.isString]},optional:!0})&&r.walkAtRules(e=>{const r=e.name;o(t,"ignoreAtRules",e.name)||s.vendor.prefix(r)||i.atRules.has(r.toLowerCase())||a({message:f.rejected(`@${r}`),node:e,ruleName:c,result:u})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../reference/keywordSets":342,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],353:[function(e,t,r){"use strict";const n=e("../../utils/hasBlock"),i=e("../../utils/nextNonCommentNode"),o=e("../../utils/rawNodeString"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l=e("../../utils/whitespaceChecker"),c="at-rule-semicolon-newline-after",f=a(c,{expectedAfter:()=>'Expected newline after ";"'}),p=function(e){const t=l("newline",e,f);return(r,a)=>{u(a,c,{actual:e,possible:["always"]})&&r.walkAtRules(e=>{const r=e.next();if(!r)return;if(n(e))return;const u=i(r);u&&t.afterOneOnly({source:o(u),index:-1,err:t=>{s({message:t,node:e,index:e.toString().length+1,result:a,ruleName:c})}})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/hasBlock":539,"../../utils/nextNonCommentNode":581,"../../utils/rawNodeString":585,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],354:[function(e,t,r){"use strict";const n=e("../../utils/hasBlock"),i=e("../../utils/rawNodeString"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u=e("../../utils/whitespaceChecker"),l="at-rule-semicolon-space-before",c=s(l,{expectedBefore:()=>'Expected single space before ";"',rejectedBefore:()=>'Unexpected whitespace before ";"'}),f=function(e){const t=u("space",e,c);return(r,s)=>{a(s,l,{actual:e,possible:["always","never"]})&&r.walkAtRules(e=>{if(n(e))return;const r=i(e);t.before({source:r,index:r.length,err:t=>{o({message:t,node:e,index:r.length-1,result:s,ruleName:l})}})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/hasBlock":539,"../../utils/rawNodeString":585,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],355:[function(e,t,r){"use strict";const n=e("lodash"),i=e("postcss"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u="at-rule-whitelist",l=s(u,{rejected:e=>`Unexpected at-rule "${e}"`}),c=function(e){const t=[].concat(e);return(e,r)=>{a(r,u,{actual:t,possible:[n.isString]})&&e.walkAtRules(e=>{const n=e.name;-1===t.indexOf(i.vendor.unprefixed(n).toLowerCase())&&o({message:l.rejected(n),node:e,result:r,ruleName:u})})}};c.primaryOptionArray=!0,c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],356:[function(e,t,r){"use strict";const n=e("../utils/isStandardSyntaxAtRule"),i=e("../utils/report");t.exports=function(e){e.root.walkAtRules(t=>{n(t)&&function(t,r,n){e.locationChecker({source:t,index:r,err:t=>i({message:t,node:n,index:r,result:e.result,ruleName:e.checkedRuleName}),errTarget:`@${n.name}`})}(`@${t.name}${t.raws.afterName||""}${t.params}`,t.name.length,t)})}},{"../utils/isStandardSyntaxAtRule":566,"../utils/report":587}],357:[function(e,t,r){"use strict";const n=e("../../utils/blockString"),i=e("../../utils/hasBlock"),o=e("../../utils/hasEmptyBlock"),s=e("../../utils/hasEmptyLine"),a=e("../../utils/isSingleLineString"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="block-closing-brace-empty-line-before",p=l(f,{expected:"Expected empty line before closing brace",rejected:"Unexpected empty line before closing brace"}),d=function(e){return(t,r)=>{function l(t){if(!i(t)||o(t))return;const l=(t.raws.after||"").replace(/;+/,"");if(void 0===l)return;const c=t.toString();let d=c.length-1;"\r"===c[d-1]&&(d-=1);const h="always-multi-line"===e&&!a(n(t));if(h===s(l))return;const m=h?p.expected:p.rejected;u({message:m,result:r,ruleName:f,node:t,index:d})}c(r,f,{actual:e,possible:["always-multi-line","never"]})&&(t.walkRules(l),t.walkAtRules(l))}};d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/blockString":520,"../../utils/hasBlock":539,"../../utils/hasEmptyBlock":540,"../../utils/hasEmptyLine":541,"../../utils/isSingleLineString":565,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],358:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/blockString"),o=e("../../utils/hasBlock"),s=e("../../utils/optionsMatches"),a=e("../../utils/rawNodeString"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f=e("../../utils/whitespaceChecker"),p="block-closing-brace-newline-after",d=l(p,{expectedAfter:()=>'Expected newline after "}"',expectedAfterSingleLine:()=>'Expected newline after "}" of a single-line block',rejectedAfterSingleLine:()=>'Unexpected whitespace after "}" of a single-line block',expectedAfterMultiLine:()=>'Expected newline after "}" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "}" of a multi-line block'}),h=function(e,t){const r=f("newline",e,d);return(l,f)=>{function d(e){if(!o(e))return;if(s(t,"ignoreAtRules",e.name))return;const n=e.next();if(!n)return;const l="comment"===n.type&&!/[^ ]/.test(n.raws.before||"")&&-1===n.toString().indexOf("\n")?n.next():n;if(!l)return;let c=e.toString().length,d=a(l);d&&";"===d[0]&&(d=d.slice(1),c++),r.afterOneOnly({source:d,index:-1,lineCheckStr:i(e),err:t=>{u({message:t,node:e,index:c,result:f,ruleName:p})}})}c(f,p,{actual:e,possible:["always","always-single-line","never-single-line","always-multi-line","never-multi-line"]},{actual:t,possible:{ignoreAtRules:[n.isString]},optional:!0})&&(l.walkRules(d),l.walkAtRules(d))}};h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/blockString":520,"../../utils/hasBlock":539,"../../utils/optionsMatches":583,"../../utils/rawNodeString":585,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,lodash:125}],359:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/blockString"),o=e("../../utils/hasBlock"),s=e("../../utils/hasEmptyBlock"),a=e("../../utils/isSingleLineString"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="block-closing-brace-newline-before",p=l(f,{expectedBefore:'Expected newline before "}"',expectedBeforeMultiLine:'Expected newline before "}" of a multi-line block',rejectedBeforeMultiLine:'Unexpected whitespace before "}" of a multi-line block'}),d=function(e){return(t,r)=>{function l(t){if(!o(t)||s(t))return;const l=(t.raws.after||"").replace(/;+/,"");if(void 0===l)return;const c=!a(i(t)),d=t.toString();let h=d.length-2;function m(e){u({message:e,result:r,ruleName:f,node:t,index:h})}"\r"===d[h-1]&&(h-=1),n.startsWith(l,"\n")||n.startsWith(l,"\r\n")||("always"===e?m(p.expectedBefore):c&&"always-multi-line"===e&&m(p.expectedBeforeMultiLine)),""!==l&&c&&"never-multi-line"===e&&m(p.rejectedBeforeMultiLine)}c(r,f,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&(t.walkRules(l),t.walkAtRules(l))}};d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/blockString":520,"../../utils/hasBlock":539,"../../utils/hasEmptyBlock":540,"../../utils/isSingleLineString":565,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],360:[function(e,t,r){"use strict";const n=e("../../utils/blockString"),i=e("../../utils/hasBlock"),o=e("../../utils/rawNodeString"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l=e("../../utils/whitespaceChecker"),c="block-closing-brace-space-after",f=a(c,{expectedAfter:()=>'Expected single space after "}"',rejectedAfter:()=>'Unexpected whitespace after "}"',expectedAfterSingleLine:()=>'Expected single space after "}" of a single-line block',rejectedAfterSingleLine:()=>'Unexpected whitespace after "}" of a single-line block',expectedAfterMultiLine:()=>'Expected single space after "}" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "}" of a multi-line block'}),p=function(e){const t=l("space",e,f);return function(r,a){function l(e){const r=e.next();if(!r)return;if(!i(e))return;let u=e.toString().length,l=o(r);l&&";"===l[0]&&(l=l.slice(1),u++),t.after({source:l,index:-1,lineCheckStr:n(e),err:t=>{s({message:t,node:e,index:u,result:a,ruleName:c})}})}u(a,c,{actual:e,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]})&&(r.walkRules(l),r.walkAtRules(l))}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/blockString":520,"../../utils/hasBlock":539,"../../utils/rawNodeString":585,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],361:[function(e,t,r){"use strict";const n=e("../../utils/blockString"),i=e("../../utils/hasBlock"),o=e("../../utils/hasEmptyBlock"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l=e("../../utils/whitespaceChecker"),c="block-closing-brace-space-before",f=a(c,{expectedBefore:()=>'Expected single space before "}"',rejectedBefore:()=>'Unexpected whitespace before "}"',expectedBeforeSingleLine:()=>'Expected single space before "}" of a single-line block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "}" of a single-line block',expectedBeforeMultiLine:()=>'Expected single space before "}" of a multi-line block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "}" of a multi-line block'}),p=function(e){const t=l("space",e,f);return(r,a)=>{function l(e){if(!i(e)||o(e))return;const r=n(e),u=e.toString();let l=u.length-2;"\r"===u[l-1]&&(l-=1),t.before({source:r,index:r.length-1,err:t=>{s({message:t,node:e,index:l,result:a,ruleName:c})}})}u(a,c,{actual:e,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]})&&(r.walkRules(l),r.walkAtRules(l))}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/blockString":520,"../../utils/hasBlock":539,"../../utils/hasEmptyBlock":540,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],362:[function(e,t,r){"use strict";const n=e("../../utils/beforeBlockString"),i=e("../../utils/hasEmptyBlock"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u="block-no-empty",l=s(u,{rejected:"Unexpected empty block"}),c=function(e){return(t,r)=>{function s(e){if(!i(e))return;let t=n(e,{noRawBefore:!0}).length;void 0===e.raws.between&&t--,o({message:l.rejected,node:e,index:t,result:r,ruleName:u})}a(r,u,{actual:e})&&(t.walkRules(s),t.walkAtRules(s))}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/beforeBlockString":519,"../../utils/hasEmptyBlock":540,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],363:[function(e,t,r){"use strict";const n=e("../../utils/beforeBlockString"),i=e("../../utils/blockString"),o=e("../../utils/hasBlock"),s=e("../../utils/hasEmptyBlock"),a=e("../../utils/nextNonCommentNode"),u=e("../../utils/rawNodeString"),l=e("../../utils/report"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p=e("../../utils/whitespaceChecker"),d="block-opening-brace-newline-after",h=c(d,{expectedAfter:()=>'Expected newline after "{"',expectedAfterMultiLine:()=>'Expected newline after "{" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "{" of a multi-line block'}),m=function(e){const t=p("newline",e,h);return(r,c)=>{function p(e){if(!o(e)||s(e))return;const r=a(e.first);r&&t.afterOneOnly({source:u(r),index:-1,lineCheckStr:i(e),err:t=>{l({message:t,node:e,index:n(e,{noRawBefore:!0}).length+1,result:c,ruleName:d})}})}f(c,d,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&(r.walkRules(p),r.walkAtRules(p))}};m.ruleName=d,m.messages=h,t.exports=m},{"../../utils/beforeBlockString":519,"../../utils/blockString":520,"../../utils/hasBlock":539,"../../utils/hasEmptyBlock":540,"../../utils/nextNonCommentNode":581,"../../utils/rawNodeString":585,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],364:[function(e,t,r){"use strict";const n=e("../../utils/beforeBlockString"),i=e("../../utils/blockString"),o=e("../../utils/hasBlock"),s=e("../../utils/hasEmptyBlock"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c=e("../../utils/whitespaceChecker"),f="block-opening-brace-newline-before",p=u(f,{expectedBefore:()=>'Expected newline before "{"',expectedBeforeSingleLine:()=>'Expected newline before "{" of a single-line block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "{" of a single-line block',expectedBeforeMultiLine:()=>'Expected newline before "{" of a multi-line block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "{" of a multi-line block'}),d=function(e){const t=c("newline",e,p);return(r,u)=>{function c(e){if(!o(e)||s(e))return;const r=n(e),l=n(e,{noRawBefore:!0});let c=l.length-1;"\r"===l[c-1]&&(c-=1),t.beforeAllowingIndentation({lineCheckStr:i(e),source:r,index:r.length,err:t=>{a({message:t,node:e,index:c,result:u,ruleName:f})}})}l(u,f,{actual:e,possible:["always","always-single-line","never-single-line","always-multi-line","never-multi-line"]})&&(r.walkRules(c),r.walkAtRules(c))}};d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/beforeBlockString":519,"../../utils/blockString":520,"../../utils/hasBlock":539,"../../utils/hasEmptyBlock":540,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],365:[function(e,t,r){"use strict";const n=e("../../utils/beforeBlockString"),i=e("../../utils/blockString"),o=e("../../utils/hasBlock"),s=e("../../utils/hasEmptyBlock"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c=e("../../utils/whitespaceChecker"),f="block-opening-brace-space-after",p=u(f,{expectedAfter:()=>'Expected single space after "{"',rejectedAfter:()=>'Unexpected whitespace after "{"',expectedAfterSingleLine:()=>'Expected single space after "{" of a single-line block',rejectedAfterSingleLine:()=>'Unexpected whitespace after "{" of a single-line block',expectedAfterMultiLine:()=>'Expected single space after "{" of a multi-line block',rejectedAfterMultiLine:()=>'Unexpected whitespace after "{" of a multi-line block'}),d=function(e){const t=c("space",e,p);return(r,u)=>{function c(e){o(e)&&!s(e)&&t.after({source:i(e),index:0,err:t=>{a({message:t,node:e,index:n(e,{noRawBefore:!0}).length+1,result:u,ruleName:f})}})}l(u,f,{actual:e,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]})&&(r.walkRules(c),r.walkAtRules(c))}};d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/beforeBlockString":519,"../../utils/blockString":520,"../../utils/hasBlock":539,"../../utils/hasEmptyBlock":540,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],366:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/beforeBlockString"),o=e("../../utils/blockString"),s=e("../../utils/hasBlock"),a=e("../../utils/hasEmptyBlock"),u=e("../../utils/optionsMatches"),l=e("../../utils/report"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p=e("../../utils/whitespaceChecker"),d="block-opening-brace-space-before",h=c(d,{expectedBefore:()=>'Expected single space before "{"',rejectedBefore:()=>'Unexpected whitespace before "{"',expectedBeforeSingleLine:()=>'Expected single space before "{" of a single-line block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "{" of a single-line block',expectedBeforeMultiLine:()=>'Expected single space before "{" of a multi-line block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "{" of a multi-line block'}),m=function(e,t){const r=p("space",e,h);return(c,p)=>{function h(e){if(!s(e)||a(e))return;if(u(t,"ignoreAtRules",e.name))return;const n=i(e),c=i(e,{noRawBefore:!0});let f=c.length-1;"\r"===c[f-1]&&(f-=1),r.before({source:n,index:n.length,lineCheckStr:o(e),err:t=>{l({message:t,node:e,index:f,result:p,ruleName:d})}})}f(p,d,{actual:e,possible:["always","never","always-single-line","never-single-line","always-multi-line","never-multi-line"]},{actual:t,possible:{ignoreAtRules:[n.isString]},optional:!0})&&(c.walkRules(h),c.walkAtRules(h))}};m.ruleName=d,m.messages=h,t.exports=m},{"../../utils/beforeBlockString":519,"../../utils/blockString":520,"../../utils/hasBlock":539,"../../utils/hasEmptyBlock":540,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,lodash:125}],367:[function(e,t,r){"use strict";const n=e("../../utils/blurFunctionArguments"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("style-search"),a=e("../../utils/validateOptions"),u="color-hex-case",l=o(u,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),c=function(e,t,r){return(t,o)=>{a(o,u,{actual:e,possible:["lower","upper"]})&&t.walkDecls(t=>{const a=n(t.toString(),"url"),c=[];if(s({source:a,target:"#"},n=>{const s=/^#[0-9A-Za-z]+/.exec(a.substr(n.startIndex));if(!s)return;const f=s[0],p=f.toLowerCase(),d=f.toUpperCase(),h="lower"===e?p:d;f!==h&&(r.fix?c.unshift({expectedHex:h,currentHex:f,startIndex:n.startIndex}):i({message:l.expected(f,h),node:t,index:n.startIndex,result:o,ruleName:u}))}),c.length){const e=t.prop,r=t.raws.between;c.forEach(function(n){t.value=function(e,t,r,n){const i=n+1,o=e.slice(0,i),s=e.slice(i+t.length);return o+r+s}(t.value,n.currentHex,n.expectedHex,n.startIndex-e.length-r.length-1)})}})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/blurFunctionArguments":522,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"style-search":326}],368:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("style-search"),s=e("../../utils/validateOptions"),a="color-hex-length",u=i(a,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),l=function(e){return(t,r)=>{s(r,a,{actual:e,possible:["short","long"]})&&t.walkDecls(t=>{const i=t.toString();o({source:i,target:"#"},o=>{const s=/^#[0-9A-Za-z]+/.exec(i.substr(o.startIndex));if(!s)return;const l=s[0];if("long"===e&&4!==l.length&&5!==l.length)return;if("short"===e&&(l.length<6||!function(e){return(e=e.toLowerCase())[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]&&(7===e.length||9===e.length&&e[7]===e[8])}(l)))return;const p="long"===e?f:c;n({message:u.expected(l,p(l)),node:t,index:o.startIndex,result:r,ruleName:a})})})}};function c(e){let t="#";for(let r=1;r`Expected "${t}" to be "${e}"`,rejected:e=>`Unexpected named color "${e}"`}),g=["word","function"],y=function(e,t){return(r,f)=>{if(!p(f,h,{actual:e,possible:["never","always-where-possible"]},{actual:t,possible:{ignoreProperties:[n.isString],ignore:["inside-function"]},optional:!0}))return;const y=Object.keys(a);function v(e,t,r){c({result:f,ruleName:h,message:e,node:t,index:r})}r.walkDecls(r=>{l.acceptCustomIdents.has(r.prop)||u(t,"ignoreProperties",r.prop)||d(r.value).walk(n=>{const l=n.value,c=n.type,f=n.sourceIndex;if(u(t,"ignore","inside-function")&&"function"===c)return!1;if(!o(n))return!1;if(!s(l))return;if(-1===g.indexOf(c))return;if("never"===e&&"word"===c&&-1!==y.indexOf(l.toLowerCase()))return void v(m.rejected(l),r,i(r)+f);if("always-where-possible"!==e)return;let p;for(let e=0,t=y.length;e`Unexpected hex color "${e}"`}),u=function(e){return(t,r)=>{s(r,"color-no-hex",{actual:e})&&t.walkDecls(e=>{const t=e.toString();o({source:t,target:"#"},i=>{if(!/[:,\s]/.test(t[i.startIndex-1]))return;const o=/^#[0-9A-Za-z]+/.exec(t.substr(i.startIndex));if(!o)return;const s=o[0];n({message:a.rejected(s),node:e,index:i.startIndex,result:r,ruleName:"color-no-hex"})})})}};u.ruleName="color-no-hex",u.messages=a,t.exports=u},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"style-search":326}],371:[function(e,t,r){"use strict";const n=e("../../utils/isValidHex"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("style-search"),a=e("../../utils/validateOptions"),u="color-no-invalid-hex",l=o(u,{rejected:e=>`Unexpected invalid hex color "${e}"`}),c=function(e){return(t,r)=>{a(r,u,{actual:e})&&t.walkDecls(e=>{const t=e.toString();s({source:t,target:"#"},o=>{if(!/[:,\s]/.test(t[o.startIndex-1]))return;const s=/^#[0-9A-Za-z]+/.exec(t.substr(o.startIndex));if(!s)return;const a=s[0];n(a)||i({message:l.rejected(a),node:e,index:o.startIndex,result:r,ruleName:u})})})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/isValidHex":577,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"style-search":326}],372:[function(e,t,r){"use strict";const n=e("../../utils/addEmptyLineBefore"),i=e("../../utils/hasEmptyLine"),o=e("../../utils/isAfterCommentLine"),s=e("../../utils/isFirstNested"),a=e("../../utils/isSharedLineComment"),u=e("../../utils/optionsMatches"),l=e("../../utils/removeEmptyLinesBefore"),c=e("../../utils/report"),f=e("../../utils/ruleMessages"),p=e("../../utils/validateOptions"),d="comment-empty-line-before",h=f(d,{expected:"Expected empty line before comment",rejected:"Unexpected empty line before comment"}),m=function(e,t,r){return(f,m)=>{p(m,d,{actual:e,possible:["always","never"]},{actual:t,possible:{except:["first-nested"],ignore:["stylelint-commands","after-comment"]},optional:!0})&&f.walkComments(p=>{if(p===f.first)return;if(0===p.text.indexOf("stylelint-")&&u(t,"ignore","stylelint-commands"))return;if(u(t,"ignore","after-comment")&&o(p))return;if(a(p))return;if(p.raws.inline||p.inline)return;const g=(()=>(!u(t,"except","first-nested")||!s(p))&&"always"===e)(),y=p.raws.before||"";if(g===i(y))return;if(r.fix)return void(g?n(p,r.newline):l(p,r.newline));const v=g?h.expected:h.rejected;c({message:v,node:p,result:m,ruleName:d})})}};m.ruleName=d,m.messages=h,t.exports=m},{"../../utils/addEmptyLineBefore":517,"../../utils/hasEmptyLine":541,"../../utils/isAfterCommentLine":547,"../../utils/isFirstNested":558,"../../utils/isSharedLineComment":564,"../../utils/optionsMatches":583,"../../utils/removeEmptyLinesBefore":586,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],373:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s="comment-no-empty",a=i(s,{rejected:"Unexpected empty comment"}),u=function(e){return(t,r)=>{o(r,s,{actual:e})&&t.walkComments(e=>{e.raws.inline||e.inline||e.text&&0!==e.text.length||n({message:a.rejected,node:e,result:r,ruleName:s})})}};u.ruleName=s,u.messages=a,t.exports=u},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],374:[function(e,t,r){"use strict";const n=e("../../utils/isWhitespace"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("../../utils/validateOptions"),a="comment-whitespace-inside",u=o(a,{expectedOpening:'Expected whitespace after "/*"',rejectedOpening:'Unexpected whitespace after "/*"',expectedClosing:'Expected whitespace before "*/"',rejectedClosing:'Unexpected whitespace before "*/"'}),l=function(e){return function(t,r){s(r,a,{actual:e,possible:["always","never"]})&&t.walkComments(function(t){if(t.raws.inline||t.inline)return;const o=t.toString(),s=o.substr(0,4);if(/^\/\*[#!]\s/.test(s))return;const l=o.match(/(^\/\*+)(\s)?/),c=o.match(/(\s)?(\*+\/)$/),f=l[1],p=l[2]||"",d=c[1]||"",h=c[2];function m(e,n){i({message:e,index:n,result:r,ruleName:a,node:t})}"never"===e&&""!==p&&m(u.rejectedOpening,f.length),"always"!==e||n(p)||m(u.expectedOpening,f.length),"never"===e&&""!==d&&m(u.rejectedClosing,t.toString().length-h.length-1),"always"!==e||n(d)||m(u.expectedClosing,t.toString().length-h.length-1)})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/isWhitespace":579,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],375:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/containsString"),o=e("../../utils/matchesStringOrRegExp"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="comment-word-blacklist",c=a(l,{rejected:e=>`Unexpected word matching pattern "${e}"`}),f=function(e){return(t,r)=>{u(r,l,{actual:e,possible:[n.isString]})&&t.walkComments(t=>{const n=t.text;if("/*# "===t.toString().substr(0,4))return;const a=o(n,e)||i(n,e);a&&s({message:c.rejected(a.pattern),node:t,result:r,ruleName:l})})}};f.primaryOptionArray=!0,f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/containsString":526,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],376:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u="custom-media-pattern",l=s(u,{expected:"Expected custom media query name to match specified pattern"}),c=function(e){return(t,r)=>{if(!a(r,u,{actual:e,possible:[n.isRegExp,n.isString]}))return;const s=n.isString(e)?new RegExp(e):e;t.walkAtRules(e=>{if("custom-media"!==e.name.toLowerCase())return;const t=e.params.match(/^--(\S+)\b/)[1];s.test(t)||o({message:l.expected,node:e,index:i(e),result:r,ruleName:u})})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/atRuleParamIndex":518,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],377:[function(e,t,r){"use strict";const n=e("../../utils/addEmptyLineBefore"),i=e("../../utils/blockString"),o=e("../../utils/getPreviousNonSharedLineCommentNode"),s=e("../../utils/hasEmptyLine"),a=e("../../utils/isAfterCommentLine"),u=e("../../utils/isCustomProperty"),l=e("../../utils/isFirstNested"),c=e("../../utils/isSingleLineString"),f=e("../../utils/isStandardSyntaxDeclaration"),p=e("../../utils/optionsMatches"),d=e("../../utils/removeEmptyLinesBefore"),h=e("../../utils/report"),m=e("../../utils/ruleMessages"),g=e("../../utils/validateOptions"),y="custom-property-empty-line-before",v=m(y,{expected:"Expected empty line before custom property",rejected:"Unexpected empty line before custom property"}),b=function(e,t,r){return(m,b)=>{g(b,y,{actual:e,possible:["always","never"]},{actual:t,possible:{except:["first-nested","after-comment","after-custom-property"],ignore:["after-comment","inside-single-line-block"]},optional:!0})&&m.walkDecls(m=>{const g=m.prop,w=m.parent;if(!f(m))return;if(!u(g))return;if(p(t,"ignore","after-comment")&&a(m))return;if(p(t,"ignore","inside-single-line-block")&&c(i(w)))return;let x="always"===e;p(t,"except","first-nested")&&l(m)&&(x=!x),p(t,"except","after-comment")&&a(m)&&(x=!x);const k=o(m);if(p(t,"except","after-custom-property")&&k&&k.prop&&u(k.prop)&&(x=!x),x===s(m.raws.before))return;if(r.fix)return void(x?n(m,r.newline):d(m,r.newline));const _=x?v.expected:v.rejected;h({message:_,node:m,result:b,ruleName:y})})}};b.ruleName=y,b.messages=v,t.exports=b},{"../../utils/addEmptyLineBefore":517,"../../utils/blockString":520,"../../utils/getPreviousNonSharedLineCommentNode":536,"../../utils/hasEmptyLine":541,"../../utils/isAfterCommentLine":547,"../../utils/isCustomProperty":555,"../../utils/isFirstNested":558,"../../utils/isSingleLineString":565,"../../utils/isStandardSyntaxDeclaration":567,"../../utils/optionsMatches":583,"../../utils/removeEmptyLinesBefore":586,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],378:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isCustomProperty"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u="custom-property-pattern",l=s(u,{expected:"Expected custom property name to match specified pattern"}),c=function(e){return(t,r)=>{if(!a(r,u,{actual:e,possible:[n.isRegExp,n.isString]}))return;const s=n.isString(e)?new RegExp(e):e;t.walkDecls(e=>{const t=e.prop;i(t)&&(s.test(t.slice(2))||o({message:l.expected,node:e,result:r,ruleName:u}))})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/isCustomProperty":555,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],379:[function(e,t,r){"use strict";const n=e("../declarationBangSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="declaration-bang-space-after",u=i(a,{expectedAfter:()=>'Expected single space after "!"',rejectedAfter:()=>'Unexpected whitespace after "!"'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never"]})&&n({root:r,result:i,locationChecker:t.after,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../declarationBangSpaceChecker":399}],380:[function(e,t,r){"use strict";const n=e("../declarationBangSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="declaration-bang-space-before",u=i(a,{expectedBefore:()=>'Expected single space before "!"',rejectedBefore:()=>'Unexpected whitespace before "!"'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never"]})&&n({root:r,result:i,locationChecker:t.before,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../declarationBangSpaceChecker":399}],381:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isCustomProperty"),o=e("../../utils/isStandardSyntaxProperty"),s=e("../../utils/optionsMatches"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="declaration-block-no-duplicate-properties",f=u(c,{rejected:e=>`Unexpected duplicate "${e}"`}),p=function(e,t){return(r,u)=>{l(u,c,{actual:e},{actual:t,possible:{ignore:["consecutive-duplicates","consecutive-duplicates-with-different-values"],ignoreProperties:[n.isString]},optional:!0})&&r.each(e=>{"rule"!==e.type&&"atrule"!==e.type||function e(r){const n=[];const l=[];r.each(r=>{if(r.nodes&&r.nodes.length&&e(r),"decl"!==r.type)return;const p=r.prop,d=r.value;if(!o(p))return;if(i(p))return;if(s(t,"ignoreProperties",p))return;if("src"===p.toLowerCase())return;const h=n.indexOf(p.toLowerCase());if(-1!==h){if(s(t,"ignore","consecutive-duplicates-with-different-values"))return h!==n.length-1?void a({message:f.rejected(p),node:r,result:u,ruleName:c}):d===l[h]?void a({message:f.rejected(d),node:r,result:u,ruleName:c}):void 0;if(s(t,"ignore","consecutive-duplicates")&&h===n.length-1)return;a({message:f.rejected(p),node:r,result:u,ruleName:c})}n.push(p.toLowerCase()),l.push(d.toLowerCase())})}(e)})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isCustomProperty":555,"../../utils/isStandardSyntaxProperty":570,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],382:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/optionsMatches"),o=e("postcss"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../reference/shorthandData"),l=e("../../utils/validateOptions"),c="declaration-block-no-redundant-longhand-properties",f=a(c,{expected:e=>`Expected shorthand property "${e}"`}),p=function(e,t){return(r,a)=>{if(!l(a,c,{actual:e},{actual:t,possible:{ignoreShorthands:[n.isString]},optional:!0}))return;const p=n.transform(u,(e,r,n)=>{i(t,"ignoreShorthands",n)||r.forEach(t=>{(e[t]||(e[t]=[])).push(n)})});function d(e){const t={};e.each(e=>{if("decl"!==e.type)return;const r=e.prop.toLowerCase(),i=o.vendor.unprefixed(r),l=o.vendor.prefix(r),d=p[i];d&&d.forEach(i=>{const o=l+i;t[o]||(t[o]=[]),t[o].push(r);const p=u[i].map(e=>l+e);n.isEqual(p.sort(),t[o].sort())&&s({ruleName:c,result:a,node:e,message:f.expected(o)})})})}r.walkRules(d),r.walkAtRules(d)}};p.ruleName=c,p.messages=f,t.exports=p},{"../../reference/shorthandData":346,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],383:[function(e,t,r){"use strict";const n=e("postcss"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("../../reference/shorthandData"),a=e("../../utils/validateOptions"),u="declaration-block-no-shorthand-property-overrides",l=o(u,{rejected:(e,t)=>`Unexpected shorthand "${e}" after "${t}"`}),c=function(e){return(t,r)=>{function o(e){const t={};e.each(e=>{if("decl"!==e.type)return;const o=e.prop,a=n.vendor.unprefixed(o),c=n.vendor.prefix(o).toLowerCase(),f=s[a.toLowerCase()];f?f.forEach(n=>{t.hasOwnProperty(c+n)&&i({ruleName:u,result:r,node:e,message:l.rejected(o,t[c+n])})}):t[o.toLowerCase()]=o})}a(r,u,{actual:e})&&(t.walkRules(o),t.walkAtRules(o))}};c.ruleName=u,c.messages=l,t.exports=c},{"../../reference/shorthandData":346,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,postcss:256}],384:[function(e,t,r){"use strict";const n=e("../../utils/blockString"),i=e("../../utils/nextNonCommentNode"),o=e("../../utils/rawNodeString"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l=e("../../utils/whitespaceChecker"),c="declaration-block-semicolon-newline-after",f=a(c,{expectedAfter:()=>'Expected newline after ";"',expectedAfterMultiLine:()=>'Expected newline after ";" in a multi-line declaration block',rejectedAfterMultiLine:()=>'Unexpected newline after ";" in a multi-line declaration block'}),p=function(e){const t=l("newline",e,f);return(r,a)=>{u(a,c,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&r.walkDecls(e=>{const r=e.parent;if(!r.raws.semicolon&&r.last===e)return;const u=e.next();if(!u)return;const l=i(u);l&&t.afterOneOnly({source:o(l),index:-1,lineCheckStr:n(r),err:t=>{s({message:t,node:e,index:e.toString().length+1,result:a,ruleName:c})}})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/blockString":520,"../../utils/nextNonCommentNode":581,"../../utils/rawNodeString":585,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],385:[function(e,t,r){"use strict";const n=e("../../utils/blockString"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("../../utils/validateOptions"),a=e("../../utils/whitespaceChecker"),u="declaration-block-semicolon-newline-before",l=o(u,{expectedBefore:()=>'Expected newline before ";"',expectedBeforeMultiLine:()=>'Expected newline before ";" in a multi-line declaration block',rejectedBeforeMultiLine:()=>'Unexpected whitespace before ";" in a multi-line declaration block'}),c=function(e){const t=a("newline",e,l);return function(r,o){s(o,u,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&r.walkDecls(function(e){const r=e.parent;if(!r.raws.semicolon&&r.last===e)return;const s=e.toString();t.beforeAllowingIndentation({source:s,index:s.length,lineCheckStr:n(r),err:t=>{i({message:t,node:e,index:e.toString().length-1,result:o,ruleName:u})}})})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/blockString":520,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],386:[function(e,t,r){"use strict";const n=e("../../utils/blockString"),i=e("../../utils/rawNodeString"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u=e("../../utils/whitespaceChecker"),l="declaration-block-semicolon-space-after",c=s(l,{expectedAfter:()=>'Expected single space after ";"',rejectedAfter:()=>'Unexpected whitespace after ";"',expectedAfterSingleLine:()=>'Expected single space after ";" in a single-line declaration block',rejectedAfterSingleLine:()=>'Unexpected whitespace after ";" in a single-line declaration block'}),f=function(e){const t=u("space",e,c);return function(r,s){a(s,l,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&r.walkDecls(function(e){const r=e.parent;if(!r.raws.semicolon&&r.last===e)return;const a=e.next();a&&t.after({source:i(a),index:-1,lineCheckStr:n(r),err:t=>{o({message:t,node:e,index:e.toString().length+1,result:s,ruleName:l})}})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/blockString":520,"../../utils/rawNodeString":585,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],387:[function(e,t,r){"use strict";const n=e("../../utils/blockString"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("../../utils/validateOptions"),a=e("../../utils/whitespaceChecker"),u="declaration-block-semicolon-space-before",l=o(u,{expectedBefore:()=>'Expected single space before ";"',rejectedBefore:()=>'Unexpected whitespace before ";"',expectedBeforeSingleLine:()=>'Expected single space before ";" in a single-line declaration block',rejectedBeforeSingleLine:()=>'Unexpected whitespace before ";" in a single-line declaration block'}),c=function(e){const t=a("space",e,l);return(r,o)=>{s(o,u,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&r.walkDecls(e=>{const r=e.parent;if(!r.raws.semicolon&&r.last===e)return;const s=e.toString();t.before({source:s,index:s.length,lineCheckStr:n(r),err:t=>{i({message:t,node:e,index:e.toString().length-1,result:o,ruleName:u})}})})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/blockString":520,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],388:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/beforeBlockString"),o=e("../../utils/blockString"),s=e("../../utils/isSingleLineString"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="declaration-block-single-line-max-declarations",f=u(c,{expected:e=>`Expected no more than ${e} ${1===e?"declaration":"declarations"}`}),p=function(e){return(t,r)=>{l(r,c,{actual:e,possible:[n.isNumber]})&&t.walkRules(t=>{if(!s(o(t)))return;if(!t.nodes)return;t.nodes.filter(e=>"decl"===e.type).length<=e||a({message:f.expected(e),node:t,index:i(t,{noRawBefore:!0}).length,result:r,ruleName:c})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/beforeBlockString":519,"../../utils/blockString":520,"../../utils/isSingleLineString":565,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],389:[function(e,t,r){"use strict";const n=e("../../utils/hasBlock"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("../../utils/validateOptions"),a="declaration-block-trailing-semicolon",u=o(a,{expected:"Expected a trailing semicolon",rejected:"Unexpected trailing semicolon"}),l=function(e){return(t,r)=>{function o(t){let n;if("always"===e){if(t.parent.raws.semicolon)return;n=u.expected}if("never"===e){if(!t.parent.raws.semicolon)return;n=u.rejected}i({message:n,node:t,index:t.toString().trim().length-1,result:r,ruleName:a})}s(r,a,{actual:e,possible:["always","never"]})&&(t.walkAtRules(e=>{e.parent!==t&&e===e.parent.last&&(n(e)||o(e))}),t.walkDecls(e=>{e===e.parent.last&&o(e)}))}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/hasBlock":539,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],390:[function(e,t,r){"use strict";const n=e("../../utils/declarationValueIndex"),i=e("../../utils/isStandardSyntaxDeclaration"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u=e("../../utils/whitespaceChecker"),l="declaration-colon-newline-after",c=s(l,{expectedAfter:()=>'Expected newline after ":"',expectedAfterMultiLine:()=>'Expected newline after ":" with a multi-line declaration'}),f=function(e){const t=u("newline",e,c);return(r,s)=>{a(s,l,{actual:e,possible:["always","always-multi-line"]})&&r.walkDecls(e=>{if(!i(e))return;const r=n(e)+(e.raws.between||"").length-1,a=e.toString().slice(0,r)+"xxx";for(let r=0,n=a.length;r{o({message:t,node:e,index:n,result:s,ruleName:l})}})}})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/declarationValueIndex":527,"../../utils/isStandardSyntaxDeclaration":567,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591}],391:[function(e,t,r){"use strict";const n=e("../declarationColonSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="declaration-colon-space-after",u=i(a,{expectedAfter:()=>'Expected single space after ":"',rejectedAfter:()=>'Unexpected whitespace after ":"',expectedAfterSingleLine:()=>'Expected single space after ":" with a single-line declaration'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never","always-single-line"]})&&n({root:r,result:i,locationChecker:t.after,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../declarationColonSpaceChecker":400}],392:[function(e,t,r){"use strict";const n=e("../declarationColonSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="declaration-colon-space-before",u=i(a,{expectedBefore:()=>'Expected single space before ":"',rejectedBefore:()=>'Unexpected whitespace before ":"'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never"]})&&n({root:r,result:i,locationChecker:t.before,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../declarationColonSpaceChecker":400}],393:[function(e,t,r){"use strict";const n=e("../../utils/addEmptyLineBefore"),i=e("../../utils/blockString"),o=e("../../utils/hasEmptyLine"),s=e("../../utils/isAfterCommentLine"),a=e("../../utils/isAfterStandardPropertyDeclaration"),u=e("../../utils/isCustomProperty"),l=e("../../utils/isFirstNested"),c=e("../../utils/isSingleLineString"),f=e("../../utils/isStandardSyntaxDeclaration"),p=e("../../utils/optionsMatches"),d=e("../../utils/removeEmptyLinesBefore"),h=e("../../utils/report"),m=e("../../utils/ruleMessages"),g=e("../../utils/validateOptions"),y="declaration-empty-line-before",v=m(y,{expected:"Expected empty line before declaration",rejected:"Unexpected empty line before declaration"}),b=function(e,t,r){return(m,b)=>{g(b,y,{actual:e,possible:["always","never"]},{actual:t,possible:{except:["first-nested","after-comment","after-declaration"],ignore:["after-comment","after-declaration","inside-single-line-block"]},optional:!0})&&m.walkDecls(m=>{const g=m.prop,w=m.parent;if(!f(m))return;if(u(g))return;if(p(t,"ignore","after-comment")&&s(m))return;if(p(t,"ignore","after-declaration")&&a(m))return;if(p(t,"ignore","inside-single-line-block")&&c(i(w)))return;let x="always"===e;if(p(t,"except","first-nested")&&l(m)&&(x=!x),p(t,"except","after-comment")&&s(m)&&(x=!x),p(t,"except","after-declaration")&&a(m)&&(x=!x),x===o(m.raws.before))return;if(r.fix)return void(x?n(m,r.newline):d(m,r.newline));const k=x?v.expected:v.rejected;h({message:k,node:m,result:b,ruleName:y})})}};b.ruleName=y,b.messages=v,t.exports=b},{"../../utils/addEmptyLineBefore":517,"../../utils/blockString":520,"../../utils/hasEmptyLine":541,"../../utils/isAfterCommentLine":547,"../../utils/isAfterStandardPropertyDeclaration":548,"../../utils/isCustomProperty":555,"../../utils/isFirstNested":558,"../../utils/isSingleLineString":565,"../../utils/isStandardSyntaxDeclaration":567,"../../utils/optionsMatches":583,"../../utils/removeEmptyLinesBefore":586,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],394:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s="declaration-no-important",a=i(s,{rejected:"Unexpected !important"}),u=function(e){return(t,r)=>{o(r,s,{actual:e})&&t.walkDecls(e=>{e.important&&n({message:a.rejected,node:e,word:"important",result:r,ruleName:s})})}};u.ruleName=s,u.messages=a,t.exports=u},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],395:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/getUnitFromValueNode"),s=e("../../utils/matchesStringOrRegExp"),a=e("postcss"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f=e("postcss-value-parser"),p="declaration-property-unit-blacklist",d=l(p,{rejected:(e,t)=>`Unexpected unit "${t}" for property "${e}"`}),h=function(e){return(t,r)=>{c(r,p,{actual:e,possible:[n.isObject]})&&t.walkDecls(t=>{const l=t.prop,c=t.value,h=a.vendor.unprefixed(l),m=n.find(e,(e,t)=>s(h,t));m&&f(c).walk(function(e){if("function"===e.type&&"url"===e.value.toLowerCase())return!1;if("string"===e.type)return;const n=o(e);!n||n&&-1===m.indexOf(n.toLowerCase())||u({message:d.rejected(l,n),node:t,index:i(t)+e.sourceIndex,result:r,ruleName:p})})})}};h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/declarationValueIndex":527,"../../utils/getUnitFromValueNode":538,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256,"postcss-value-parser":239}],396:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/getUnitFromValueNode"),s=e("../../utils/matchesStringOrRegExp"),a=e("postcss"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f=e("postcss-value-parser"),p="declaration-property-unit-whitelist",d=l(p,{rejected:(e,t)=>`Unexpected unit "${t}" for property "${e}"`}),h=function(e){return(t,r)=>{c(r,p,{actual:e,possible:[n.isObject]})&&t.walkDecls(t=>{const l=t.prop,c=t.value,h=a.vendor.unprefixed(l),m=n.find(e,(e,t)=>s(h,t));m&&f(c).walk(function(e){if("function"===e.type&&"url"===e.value.toLowerCase())return!1;if("string"===e.type)return;const n=o(e);n&&-1===(n&&m.indexOf(n.toLowerCase()))&&u({message:d.rejected(l,n),node:t,index:i(t)+e.sourceIndex,result:r,ruleName:p})})})}};h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/declarationValueIndex":527,"../../utils/getUnitFromValueNode":538,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256,"postcss-value-parser":239}],397:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/matchesStringOrRegExp"),o=e("postcss"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="declaration-property-value-blacklist",c=a(l,{rejected:(e,t)=>`Unexpected value "${t}" for property "${e}"`}),f=function(e){return(t,r)=>{u(r,l,{actual:e,possible:[n.isObject]})&&t.walkDecls(t=>{const a=t.prop,u=t.value,f=o.vendor.unprefixed(a),p=n.find(e,(e,t)=>i(f,t));n.isEmpty(p)||i(u,p)&&s({message:c.rejected(a,u),node:t,result:r,ruleName:l})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],398:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/matchesStringOrRegExp"),o=e("postcss"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="declaration-property-value-whitelist",c=a(l,{rejected:(e,t)=>`Unexpected value "${t}" for property "${e}"`}),f=function(e){return(t,r)=>{u(r,l,{actual:e,possible:[n.isObject]})&&t.walkDecls(t=>{const a=t.prop,u=t.value,f=o.vendor.unprefixed(a),p=n.find(e,(e,t)=>i(f,t));n.isEmpty(p)||i(u,p)||s({message:c.rejected(a,u),node:t,result:r,ruleName:l})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],399:[function(e,t,r){"use strict";const n=e("../utils/declarationValueIndex"),i=e("../utils/report"),o=e("style-search");t.exports=function(e){e.root.walkDecls(function(t){const r=n(t),s=t.toString(),a=t.toString().slice(r);-1!==a.indexOf("!")&&o({source:a,target:"!"},n=>{!function(t,r,n){e.locationChecker({source:t,index:r,err:t=>i({message:t,node:n,index:r,result:e.result,ruleName:e.checkedRuleName})})}(s,n.startIndex+r,t)})})}},{"../utils/declarationValueIndex":527,"../utils/report":587,"style-search":326}],400:[function(e,t,r){"use strict";const n=e("../utils/declarationValueIndex"),i=e("../utils/isStandardSyntaxDeclaration"),o=e("../utils/report");t.exports=function(e){e.root.walkDecls(t=>{if(!i(t))return;const r=n(t)+(t.raws.between||"").length-1,s=t.toString().slice(0,r)+"xxx";for(let r=0,n=s.length;r{o({message:r,node:t,index:t.prop.toString().length+1,result:e.result,ruleName:e.checkedRuleName})}});break}})}},{"../utils/declarationValueIndex":527,"../utils/isStandardSyntaxDeclaration":567,"../utils/report":587}],401:[function(e,t,r){"use strict";const n=/[^><](>=?|<=?|=)/g;t.exports=function(e,t){if("media"!==e.name.toLowerCase())return;const r=e.params;let i;for(;null!==(i=n.exec(r));)t(i,r,e)}},{}],402:[function(e,t,r){"use strict";const n=e("../../utils/findFontFamily"),i=e("../../utils/isStandardSyntaxValue"),o=e("../../utils/isVariable"),s=e("../../reference/keywordSets"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="font-family-name-quotes",f=u(c,{expected:e=>`Expected quotes around "${e}"`,rejected:e=>`Unexpected quotes around "${e}"`});const p=function(e){return(t,r)=>{function u(e,t,n){a({result:r,ruleName:c,message:e,node:n,word:t})}l(r,c,{actual:e,possible:["always-where-required","always-where-recommended","always-unless-keyword"]})&&t.walkDecls(/^font(-family)?$/i,t=>{const r=n(t.value);0!==r.length&&r.forEach(r=>{let n=r.value;r.quote&&(n=r.quote+n+r.quote),function(t,r){if(!i(t))return;if(o(t))return;const n="'"===t[0]||'"'===t[0],a=t.replace(/^['"]|['"]$/g,"");if(s.fontFamilyKeywords.has(a.toLowerCase())||(l=a,0===l.indexOf("-apple-")||"BlinkMacSystemFont"===l))return n?u(f.rejected(a),a,r):void 0;var l;const c=function(e){return e.split(/\s+/).some(e=>/^(-?\d|--)/.test(e)||!/^[-_a-zA-Z0-9\u00A0-\u10FFFF]+$/.test(e))}(a),p=function(e){return!/^[-a-zA-Z]+$/.test(e)}(a);switch(e){case"always-unless-keyword":return n?void 0:u(f.expected(a),a,r);case"always-where-recommended":return!p&&n?u(f.rejected(a),a,r):p&&!n?u(f.expected(a),a,r):void 0;case"always-where-required":!c&&n?u(f.rejected(a),a,r):c&&!n&&u(f.expected(a),a,r)}}(n,t)})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../reference/keywordSets":342,"../../utils/findFontFamily":530,"../../utils/isStandardSyntaxValue":575,"../../utils/isVariable":578,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],403:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/findFontFamily"),s=e("../../reference/keywordSets"),a=e("../../utils/optionsMatches"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="font-family-no-duplicate-names",p=l(f,{rejected:e=>`Unexpected duplicate name ${e}`}),d=function(e,t){return(r,l)=>{function d(e,t,r){u({result:l,ruleName:f,message:e,node:r,index:t})}c(l,f,{actual:e},{actual:t,possible:{ignoreFontFamilyNames:[n.isString]},optional:!0})&&r.walkDecls(/^font(-family)?$/i,e=>{const r=new Set,n=new Set,u=o(e.value);0!==u.length&&u.forEach(o=>{const u=o.value.trim();if(!a(t,"ignoreFontFamilyNames",o.value.trim()))return(e=>!e.quote&&s.fontFamilyKeywords.has(e.value.toLowerCase()))(o)?r.has(u.toLowerCase())?void d(p.rejected(u),i(e)+o.sourceIndex,e):void r.add(u):void(n.has(u)?d(p.rejected(u),i(e)+o.sourceIndex,e):n.add(u))})})}};d.ruleName=f,d.messages=p,t.exports=d},{"../../reference/keywordSets":342,"../../utils/declarationValueIndex":527,"../../utils/findFontFamily":530,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],404:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/isNumbery"),s=e("../../utils/isStandardSyntaxValue"),a=e("../../utils/isVariable"),u=e("../../reference/keywordSets"),l=e("../../utils/optionsMatches"),c=e("postcss"),f=e("../../utils/report"),p=e("../../utils/ruleMessages"),d=e("../../utils/validateOptions"),h="font-weight-notation",m=p(h,{expected:e=>`Expected ${e} font-weight notation`,invalidNamed:e=>`Unexpected invalid font-weight name "${e}"`}),g="inherit",y="initial",v="normal",b=["400","700"],w=function(e,t){return(r,p)=>{function w(r,c){if(!s(r))return;if(a(r))return;if(r.toLowerCase()===g||r.toLowerCase()===y)return;if(l(t,"ignore","relative")&&u.fontWeightRelativeKeywords.has(r.toLowerCase()))return;const d=c.value.indexOf(r);if("numeric"===e&&!o(r))return w(m.expected("numeric"));if("named-where-possible"===e)return o(r)?void(n.includes(b,r)&&w(m.expected("named"))):u.fontWeightKeywords.has(r.toLowerCase())||r.toLowerCase()===v?void 0:w(m.invalidNamed(r));function w(e){f({ruleName:h,result:p,message:e,node:c,index:i(c)+d})}}d(p,h,{actual:e,possible:["numeric","named-where-possible"]},{actual:t,possible:{ignore:["relative"]},optional:!0})&&r.walkDecls(e=>{"font-weight"===e.prop.toLowerCase()&&w(e.value,e),"font"===e.prop.toLowerCase()&&function(e){const t=c.list.space(e.value).some(o);for(const r of c.list.space(e.value))if(r.toLowerCase()===v&&!t||o(r)||r.toLowerCase()!==v&&u.fontWeightKeywords.has(r.toLowerCase()))return void w(r,e)}(e)})}};w.ruleName=h,w.messages=m,t.exports=w},{"../../reference/keywordSets":342,"../../utils/declarationValueIndex":527,"../../utils/isNumbery":561,"../../utils/isStandardSyntaxValue":575,"../../utils/isVariable":578,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],405:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/isStandardSyntaxFunction"),s=e("../../utils/matchesStringOrRegExp"),a=e("postcss"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f=e("postcss-value-parser"),p="function-blacklist",d=l(p,{rejected:e=>`Unexpected function "${e}"`}),h=function(e){return(t,r)=>{c(r,p,{actual:e,possible:[n.isString]})&&t.walkDecls(t=>{const n=t.value;f(n).walk(function(n){"function"===n.type&&o(n)&&s(a.vendor.unprefixed(n.value),e)&&u({message:d.rejected(n.value),node:t,index:i(t)+n.sourceIndex,result:r,ruleName:p})})})}};h.primaryOptionArray=!0,h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/declarationValueIndex":527,"../../utils/isStandardSyntaxFunction":568,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256,"postcss-value-parser":239}],406:[function(e,t,r){"use strict";const n=e("balanced-match"),i=e("../../utils/isWhitespace"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("style-search"),u=e("../../utils/validateOptions"),l=e("postcss-value-parser"),c="function-calc-no-unspaced-operator",f=s(c,{expectedBefore:e=>`Expected single space before "${e}" operator`,expectedAfter:e=>`Expected single space after "${e}" operator`,expectedOperatorBeforeSign:e=>`Expected an operator before sign "${e}"`}),p=function(e){return(t,r)=>{function s(e,t,n){o({message:e,node:t,index:n,result:r,ruleName:c})}u(r,c,{actual:e})&&t.walkDecls(e=>{l(e.value).walk(t=>{if("function"!==t.type||"calc"!==t.value.toLowerCase())return;const r=n("(",")",l.stringify(t)).body,o=e.source.start.column+e.prop.length+(e.raws.between||"").length+t.sourceIndex,u=function(e){return e.replace(/[$@][^)\s]+|#{.+?}/g,"0")}(r);function c(t){a({source:u,target:t,functionArguments:"skip"},r=>{const n=r.startIndex;if("+"!==t&&"-"!==t||!/[\d@$.]/.test(u[n+1]))" "===u[n-1]&&!i(u[n-2])||function(e,t){let r=t;for(;r&&i(e[r]);){if("\n"===e[r])return!0;r--}return!1}(u,n-1)||s(f.expectedBefore(t),e,o+n)," "===u[n+1]&&!i(u[n+2])||"\n"===u[n+1]||"\r\n"===u.substr(n+1,2)||s(f.expectedAfter(t),e,o+n);else{const r=u.substr(0,n);if("("===r[r.length-1])return;if(/^\s*$/.test(r))return;if(/[*/+-]\s*$/.test(r))return;s(f.expectedOperatorBeforeSign(t),e,o+n)}})}c("+"),c("-"),c("*"),c("/")})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isWhitespace":579,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"balanced-match":12,"postcss-value-parser":239,"style-search":326}],407:[function(e,t,r){"use strict";const n=e("../functionCommaSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="function-comma-newline-after",u=i(a,{expectedAfter:()=>'Expected newline after ","',expectedAfterMultiLine:()=>'Expected newline after "," in a multi-line function',rejectedAfterMultiLine:()=>'Unexpected whitespace after "," in a multi-line function'}),l=function(e){const t=s("newline",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&n({root:r,result:i,locationChecker:t.afterOneOnly,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../functionCommaSpaceChecker":422}],408:[function(e,t,r){"use strict";const n=e("../functionCommaSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="function-comma-newline-before",u=i(a,{expectedBefore:()=>'Expected newline before ","',expectedBeforeMultiLine:()=>'Expected newline before "," in a multi-line function',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "," in a multi-line function'}),l=function(e){const t=s("newline",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&n({root:r,result:i,locationChecker:t.beforeAllowingIndentation,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../functionCommaSpaceChecker":422}],409:[function(e,t,r){"use strict";const n=e("../functionCommaSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="function-comma-space-after",u=i(a,{expectedAfter:()=>'Expected single space after ","',rejectedAfter:()=>'Unexpected whitespace after ","',expectedAfterSingleLine:()=>'Expected single space after "," in a single-line function',rejectedAfterSingleLine:()=>'Unexpected whitespace after "," in a single-line function'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&n({root:r,result:i,locationChecker:t.after,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../functionCommaSpaceChecker":422}],410:[function(e,t,r){"use strict";const n=e("../functionCommaSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="function-comma-space-before",u=i(a,{expectedBefore:()=>'Expected single space before ","',rejectedBefore:()=>'Unexpected whitespace before ","',expectedBeforeSingleLine:()=>'Expected single space before "," in a single-line function',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "," in a single-line function'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&n({root:r,result:i,locationChecker:t.before,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../functionCommaSpaceChecker":422}],411:[function(e,t,r){"use strict";const n=e("../../utils/declarationValueIndex"),i=e("../../utils/functionArgumentsSearch"),o=e("postcss"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l=e("postcss-value-parser"),c="function-linear-gradient-no-nonstandard-direction",f=a(c,{rejected:"Unexpected nonstandard direction"});const p=function(e){return(t,r)=>{u(r,c,{actual:e})&&t.walkDecls(e=>{l(e.value).walk(t=>{"function"===t.type&&i(l.stringify(t).toLowerCase(),"linear-gradient",(i,a)=>{const u=i.split(",")[0].trim();if(/[\d.]/.test(u[0])){if(/^[\d.]+(?:deg|grad|rad|turn)$/.test(u))return;l()}else/left|right|top|bottom/.test(u)&&(function(e,t){const r=t?/^to (top|left|bottom|right)(?: (top|left|bottom|right))?$/:/^(top|left|bottom|right)(?: (top|left|bottom|right))?$/,n=e.match(r);return!!n&&(2===n.length||3===n.length&&n[1]!==n[2])}(u,!o.vendor.prefix(t.value))||l());function l(){s({message:f.rejected,node:e,index:n(e)+t.sourceIndex+a,result:r,ruleName:c})}})})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/declarationValueIndex":527,"../../utils/functionArgumentsSearch":531,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,postcss:256,"postcss-value-parser":239}],412:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("style-search"),a=e("../../utils/validateOptions"),u="function-max-empty-lines",l=o(u,{expected:e=>`Expected no more than ${e} empty ${1===e?"line":"lines"}`}),c=function(e){const t=e+1;return(r,o)=>{a(o,u,{actual:e,possible:n.isNumber})&&r.walkDecls(r=>{if(-1===r.value.indexOf("("))return;const a=r.toString(),c=n.repeat("\n",t),f=n.repeat("\r\n",t);s({source:a,target:"\n",functionArguments:"only"},n=>{if(a.substr(n.startIndex+1,t)===c||a.substr(n.startIndex+1,2*t)===f){let t=n.startIndex;"\r"===a[t-1]&&(t-=1),i({message:l.expected(e),node:r,index:t,result:o,ruleName:u})}})})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"style-search":326}],413:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/isStandardSyntaxFunction"),s=e("../../reference/keywordSets"),a=e("../../utils/matchesStringOrRegExp"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f=e("postcss-value-parser"),p="function-name-case",d=l(p,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),h=new Map;s.camelCaseFunctionNames.forEach(e=>{h.set(e.toLowerCase(),e)});const m=function(e,t){return(r,s)=>{c(s,p,{actual:e,possible:["lower","upper"]},{actual:t,possible:{ignoreFunctions:[n.isString]},optional:!0})&&r.walkDecls(r=>{const n=r.value;f(n).walk(function(n){if("function"!==n.type||!o(n))return;const l=n.value,c=l.toLowerCase(),f=t&&t.ignoreFunctions||[];if(f.length>0&&a(l,f))return;let m=null;l!==(m="lower"===e&&h.has(c)?h.get(c):"lower"===e?c:l.toUpperCase())&&u({message:d.expected(l,m),node:r,index:i(r)+n.sourceIndex,result:s,ruleName:p})})})}};m.ruleName=p,m.messages=d,t.exports=m},{"../../reference/keywordSets":342,"../../utils/declarationValueIndex":527,"../../utils/isStandardSyntaxFunction":568,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-value-parser":239}],414:[function(e,t,r){"use strict";const n=e("../../utils/declarationValueIndex"),i=e("../../utils/isSingleLineString"),o=e("../../utils/isStandardSyntaxFunction"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l=e("postcss-value-parser"),c="function-parentheses-newline-inside",f=a(c,{expectedOpening:'Expected newline after "("',expectedClosing:'Expected newline before ")"',expectedOpeningMultiLine:'Expected newline after "(" in a multi-line function',rejectedOpeningMultiLine:'Unexpected whitespace after "(" in a multi-line function',expectedClosingMultiLine:'Expected newline before ")" in a multi-line function',rejectedClosingMultiLine:'Unexpected whitespace before ")" in a multi-line function'}),p=function(e){return(t,r)=>{u(r,c,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&t.walkDecls(t=>{function a(e,i){s({ruleName:c,result:r,message:e,node:t,index:n(t)+i})}-1!==t.value.indexOf("(")&&l(t.value).walk(t=>{if("function"!==t.type)return;if(!o(t))return;const r=l.stringify(t),n=!i(r);function s(e){return-1!==e.indexOf("\n")}const u=t.sourceIndex+t.value.length+1;"always"!==e||s(t.before)||a(f.expectedOpening,u),n&&"always-multi-line"===e&&!s(t.before)&&a(f.expectedOpeningMultiLine,u),n&&"never-multi-line"===e&&""!==t.before&&a(f.rejectedOpeningMultiLine,u);const c=t.sourceIndex+r.length-2;"always"!==e||s(t.after)||a(f.expectedClosing,c),n&&"always-multi-line"===e&&!s(t.after)&&a(f.expectedClosingMultiLine,c),n&&"never-multi-line"===e&&""!==t.after&&a(f.rejectedClosingMultiLine,c)})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/declarationValueIndex":527,"../../utils/isSingleLineString":565,"../../utils/isStandardSyntaxFunction":568,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-value-parser":239}],415:[function(e,t,r){"use strict";const n=e("../../utils/declarationValueIndex"),i=e("../../utils/isSingleLineString"),o=e("../../utils/isStandardSyntaxFunction"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l=e("postcss-value-parser"),c="function-parentheses-space-inside",f=a(c,{expectedOpening:'Expected single space after "("',rejectedOpening:'Unexpected whitespace after "("',expectedClosing:'Expected single space before ")"',rejectedClosing:'Unexpected whitespace before ")"',expectedOpeningSingleLine:'Expected single space after "(" in a single-line function',rejectedOpeningSingleLine:'Unexpected whitespace after "(" in a single-line function',expectedClosingSingleLine:'Expected single space before ")" in a single-line function',rejectedClosingSingleLine:'Unexpected whitespace before ")" in a single-line function'}),p=function(e){return(t,r)=>{u(r,c,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&t.walkDecls(t=>{function a(e,i){s({ruleName:c,result:r,message:e,node:t,index:n(t)+i})}-1!==t.value.indexOf("(")&&l(t.value).walk(t=>{if("function"!==t.type)return;if(!o(t))return;if(!t.nodes.length)return;const r=l.stringify(t),n=i(r),s=t.sourceIndex+t.value.length+1;"always"===e&&" "!==t.before&&a(f.expectedOpening,s),"never"===e&&""!==t.before&&a(f.rejectedOpening,s),n&&"always-single-line"===e&&" "!==t.before&&a(f.expectedOpeningSingleLine,s),n&&"never-single-line"===e&&""!==t.before&&a(f.rejectedOpeningSingleLine,s);const u=t.sourceIndex+r.length-2;"always"===e&&" "!==t.after&&a(f.expectedClosing,u),"never"===e&&""!==t.after&&a(f.rejectedClosing,u),n&&"always-single-line"===e&&" "!==t.after&&a(f.expectedClosingSingleLine,u),n&&"never-single-line"===e&&""!==t.after&&a(f.rejectedClosingSingleLine,u)})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/declarationValueIndex":527,"../../utils/isSingleLineString":565,"../../utils/isStandardSyntaxFunction":568,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-value-parser":239}],416:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/functionArgumentsSearch"),o=e("../../utils/isStandardSyntaxUrl"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="function-url-no-scheme-relative",c=a(l,{rejected:"Unexpected scheme-relative url"}),f=function(e){return(t,r)=>{u(r,l,{actual:e})&&t.walkDecls(function(e){i(e.toString().toLowerCase(),"url",(t,i)=>{const a=n.trim(t," '\"");o(a)&&0===a.indexOf("//")&&s({message:c.rejected,node:e,index:i,result:r,ruleName:l})})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/functionArgumentsSearch":531,"../../utils/isStandardSyntaxUrl":574,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],417:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/functionArgumentsSearch"),s=e("../../utils/isStandardSyntaxUrl"),a=e("../../utils/optionsMatches"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="function-url-quotes",p=l(f,{expected:()=>"Expected quotes",rejected:()=>"Unexpected quotes"}),d=function(e,t){return(r,l)=>{function d(e){"atrule"===e.type&&function(e){const t=e.params.toLowerCase();o(t,"url",(t,r)=>{h(t,e,r+i(e),"url")}),o(t,"url-prefix",(t,r)=>{h(t,e,r+i(e),"url-prefix")}),o(t,"domain",(t,r)=>{h(t,e,r+i(e),"domain")})}(e),e.walkDecls(function(e){o(e.toString().toLowerCase(),"url",(t,r)=>{h(t,e,r,"url")})})}function h(r,i,o,u){let l="always"===e;const c=r.trimLeft();if(!s(c))return;const f=o+r.length-c.length,d="'"===c[0]||'"'===c[0],h=r.trim(),g=n.includes(["","''",'""'],h);if(a(t,"except","empty")&&g&&(l=!l),l){if(d)return;m(p.expected(u),i,f)}else{if(!d)return;m(p.rejected(u),i,f)}}function m(e,t,r){u({message:e,node:t,index:r,result:l,ruleName:f})}c(l,f,{actual:e,possible:["always","never"]},{actual:t,possible:{except:["empty"]},optional:!0})&&(r.walkAtRules(d),r.walkRules(d))}};d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/atRuleParamIndex":518,"../../utils/functionArgumentsSearch":531,"../../utils/isStandardSyntaxUrl":574,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],418:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/functionArgumentsSearch"),o=e("../../utils/getSchemeFromUrl"),s=e("../../utils/isStandardSyntaxUrl"),a=e("../../utils/matchesStringOrRegExp"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="function-url-scheme-blacklist",p=l(f,{rejected:e=>`Unexpected URL scheme "${e}:"`}),d=function(e){return(t,r)=>{c(r,f,{actual:e,possible:[n.isString]})&&t.walkDecls(function(t){i(t.toString().toLowerCase(),"url",(i,l)=>{const c=n.trim(i," ");if(!s(c))return;const d=n.trim(c,"'\""),h=o(d);null!==h&&a(h,e)&&u({message:p.rejected(h),node:t,index:l,result:r,ruleName:f})})})}};d.primaryOptionArray=!0,d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/functionArgumentsSearch":531,"../../utils/getSchemeFromUrl":537,"../../utils/isStandardSyntaxUrl":574,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],419:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/functionArgumentsSearch"),o=e("../../utils/getSchemeFromUrl"),s=e("../../utils/isStandardSyntaxUrl"),a=e("../../utils/matchesStringOrRegExp"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="function-url-scheme-whitelist",p=l(f,{rejected:e=>`Unexpected URL scheme "${e}:"`}),d=function(e){return(t,r)=>{c(r,f,{actual:e,possible:[n.isString]})&&t.walkDecls(function(t){i(t.toString().toLowerCase(),"url",(i,l)=>{const c=n.trim(i," ");if(!s(c))return;const d=n.trim(c,"'\""),h=o(d);null!==h&&(a(h,e)||u({message:p.rejected(h),node:t,index:l,result:r,ruleName:f}))})})}};d.primaryOptionArray=!0,d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/functionArgumentsSearch":531,"../../utils/getSchemeFromUrl":537,"../../utils/isStandardSyntaxUrl":574,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],420:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/isStandardSyntaxFunction"),s=e("../../utils/matchesStringOrRegExp"),a=e("postcss"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f=e("postcss-value-parser"),p="function-whitelist",d=l(p,{rejected:e=>`Unexpected function "${e}"`}),h=function(e){const t=[].concat(e);return(e,r)=>{c(r,p,{actual:t,possible:[n.isString]})&&e.walkDecls(e=>{const n=e.value;f(n).walk(function(n){"function"===n.type&&o(n)&&(s(a.vendor.unprefixed(n.value),t)||u({message:d.rejected(n.value),node:e,index:i(e)+n.sourceIndex,result:r,ruleName:p}))})})}};h.primaryOptionArray=!0,h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/declarationValueIndex":527,"../../utils/isStandardSyntaxFunction":568,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256,"postcss-value-parser":239}],421:[function(e,t,r){"use strict";const n=e("../../utils/isWhitespace"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("style-search"),a=e("../../utils/validateOptions"),u="function-whitespace-after",l=o(u,{expected:'Expected whitespace after ")"',rejected:'Unexpected whitespace after ")"'}),c=new Set([")",",","}",":",void 0]),f=function(e){return(t,r)=>{a(r,u,{actual:e,possible:["always","never"]})&&t.walkDecls(t=>{const o=t.toString();s({source:o,target:")",functionArguments:"only"},s=>{!function(t,o,s){const a=t[o+1];if("always"===e){if(" "===a)return;if("\n"===a)return;if("\r\n"===t.substr(o+1,2))return;if(c.has(a))return;i({message:l.expected,node:s,index:o+1,result:r,ruleName:u})}else"never"===e&&n(a)&&i({message:l.rejected,node:s,index:o+1,result:r,ruleName:u})}(o,s.startIndex,t)})})}};f.ruleName=u,f.messages=l,t.exports=f},{"../../utils/isWhitespace":579,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"style-search":326}],422:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../utils/declarationValueIndex"),o=e("../utils/isStandardSyntaxFunction"),s=e("../utils/report"),a=e("style-search"),u=e("postcss-value-parser");t.exports=function(e){e.root.walkDecls(t=>{const r=n.get(t,"raws.value.raw",t.value);u(r).walk(r=>{if("function"!==r.type)return;if(!o(r))return;if("url"===r.value.toLowerCase())return;const n=(()=>{let e=u.stringify(r);return e=(e=(e=e.slice(r.value.length+1)).slice(0,e.length-1)).replace(/( *\/(\*.*\*\/(?!\S)|\/.*)|(\/(\*.*\*\/|\/.*)))/,"")})();a({source:n,target:",",functionArguments:"skip"},o=>{e.locationChecker({source:n,index:o.startIndex,err:n=>{const a=i(t)+r.value.length+1+r.sourceIndex+o.startIndex;s({index:a,message:n,node:t,result:e.result,ruleName:e.checkedRuleName})}})})})})}},{"../utils/declarationValueIndex":527,"../utils/isStandardSyntaxFunction":568,"../utils/report":587,lodash:125,"postcss-value-parser":239,"style-search":326}],423:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/beforeBlockString"),o=e("../../utils/hasBlock"),s=e("../../utils/optionsMatches"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("style-search"),c=e("../../utils/validateOptions"),f="indentation",p=u(f,{expected:e=>`Expected indentation of ${e}`}),d=function(e,t,r){t=t||{};const u="tab"===e,d=u?"\t":n.repeat(" ",e),g=u?"tab":"space";return(u,g)=>{function v(e,i,o){if(-1===e.indexOf("\n"))return;const c=[];let h=0;if(l({source:e,target:"\n",outsideParens:s(t,"ignore","inside-parens")},(l,m)=>{const v=/^[ \t]*\)/.test(e.slice(l.startIndex+1));if(s(t,"ignore","inside-parens")&&(v||l.insideParens))return;let b=i;if(!s(t,"ignore","inside-parens")&&l.insideParens){1===m&&(h-=1);let r=l.startIndex;switch("\r"===e[l.startIndex-1]&&r--,/\([ \t]*$/.test(e.slice(0,r))&&(h+=1),b+=h,v&&(h-=1),t.indentInsideParens){case"twice":v&&!t.indentClosingBrace||(b+=1);break;case"once-at-root-twice-in-block":if(o.parent===u){v&&!t.indentClosingBrace&&(b-=1);break}v&&!t.indentClosingBrace||(b+=1);break;default:v&&!t.indentClosingBrace&&(b-=1)}}const w=/^([ \t]*)\S/.exec(e.slice(l.startIndex+1));if(!w)return;const x=w[1],k=n.repeat(d,b);x!==k&&(r.fix?c.unshift({expectedIndentation:k,currentIndentation:x,startIndex:l.startIndex}):a({message:p.expected(y(b)),node:o,index:l.startIndex+x.length+1,result:g,ruleName:f}))}),c.length){if("rule"===o.type&&c.forEach(function(e){o.selector=m(o.selector,e.currentIndentation,e.expectedIndentation,e.startIndex)}),"decl"===o.type){const e=o.prop,t=o.raws.between;c.forEach(function(r){r.startIndex{const l=function e(r,n){n=n||0;if("root"===r.parent.type)return n;let i;i=e(r.parent,n+1);s(t,"except","block")&&("rule"===r.type||"atrule"===r.type)&&o(r)&&i--;return i}(e),c=n.repeat(d,l);let m=e.raws.before||"";const b=e.raws.after||"",w=u.first===e||-1!==m.indexOf("\n");"*"!==m[m.length-1]&&"_"!==m[m.length-1]||(m=m.slice(0,m.length-1)),w&&m.slice(m.lastIndexOf("\n")+1)!==c&&(r.fix?e.raws.before=h(e.raws.before,c):a({message:p.expected(y(l)),node:e,result:g,ruleName:f}));const x=t.indentClosingBrace?l+1:l,k=n.repeat(d,x);o(e)&&b&&-1!==b.indexOf("\n")&&b.slice(b.lastIndexOf("\n")+1)!==k&&(r.fix?e.raws.after=h(e.raws.after,k):a({message:p.expected(y(x)),node:e,index:e.toString().length-1,result:g,ruleName:f})),e.value&&function(e,r){if(-1===e.value.indexOf("\n"))return;if(s(t,"ignore","value"))return;const n=e.toString(),i=s(t,"except","value")?r:r+1;v(n,i,e)}(e,l),e.selector&&function(e,t){const r=e.selector;e.params&&(t+=1);v(r,t,e)}(e,l),"atrule"===e.type&&function(e,r){if(s(t,"ignore","param"))return;const n=s(t,"except","param")||"nest"===e.name?r:r+1;v(i(e).trim(),n,e)}(e,l)})};function y(t){const r=u?t:t*e;return`${r} ${1===r?g:g+"s"}`}};function h(e,t){if(!n.isString(e))return e;const r=e.length;if(!r)return e;let i=e[r-1];return"*"!==i&&"_"!==i&&(i=""),e.slice(0,e.lastIndexOf("\n")+1)+t+i}function m(e,t,r,n){const i=n+1;return e.slice(0,i)+r+e.slice(i+t.length)}d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/beforeBlockString":519,"../../utils/hasBlock":539,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"style-search":326}],424:[function(e,t,r){"use strict";const n=e("./at-rule-blacklist"),i=e("./at-rule-empty-line-before"),o=e("./at-rule-name-case"),s=e("./at-rule-name-newline-after"),a=e("./at-rule-name-space-after"),u=e("./at-rule-no-unknown"),l=e("./at-rule-semicolon-newline-after"),c=e("./at-rule-semicolon-space-before"),f=e("./at-rule-whitelist"),p=e("./block-closing-brace-empty-line-before"),d=e("./block-closing-brace-newline-after"),h=e("./block-closing-brace-newline-before"),m=e("./block-closing-brace-space-after"),g=e("./block-closing-brace-space-before"),y=e("./block-no-empty"),v=e("./block-opening-brace-newline-after"),b=e("./block-opening-brace-newline-before"),w=e("./block-opening-brace-space-after"),x=e("./block-opening-brace-space-before"),k=e("./color-hex-case"),_=e("./color-hex-length"),S=e("./color-named"),C=e("./color-no-hex"),A=e("./color-no-invalid-hex"),E=e("./comment-empty-line-before"),O=e("./comment-no-empty"),j=e("./comment-whitespace-inside"),M=e("./comment-word-blacklist"),N=e("./custom-media-pattern"),R=e("./custom-property-empty-line-before"),P=e("./custom-property-pattern"),I=e("./declaration-bang-space-after"),F=e("./declaration-bang-space-before"),L=e("./declaration-block-no-duplicate-properties"),B=e("./declaration-block-no-redundant-longhand-properties"),T=e("./declaration-block-no-shorthand-property-overrides"),D=e("./declaration-block-semicolon-newline-after"),U=e("./declaration-block-semicolon-newline-before"),z=e("./declaration-block-semicolon-space-after"),$=e("./declaration-block-semicolon-space-before"),q=e("./declaration-block-single-line-max-declarations"),G=e("./declaration-block-trailing-semicolon"),W=e("./declaration-colon-newline-after"),K=e("./declaration-colon-space-after"),V=e("./declaration-colon-space-before"),H=e("./declaration-empty-line-before"),Y=e("./declaration-no-important"),J=e("./declaration-property-unit-blacklist"),Z=e("./declaration-property-unit-whitelist"),Q=e("./declaration-property-value-blacklist"),X=e("./declaration-property-value-whitelist"),ee=e("./font-family-name-quotes"),te=e("./font-family-no-duplicate-names"),re=e("./font-weight-notation"),ne=e("./function-blacklist"),ie=e("./function-calc-no-unspaced-operator"),oe=e("./function-comma-newline-after"),se=e("./function-comma-newline-before"),ae=e("./function-comma-space-after"),ue=e("./function-comma-space-before"),le=e("./function-linear-gradient-no-nonstandard-direction"),ce=e("./function-max-empty-lines"),fe=e("./function-name-case"),pe=e("./function-parentheses-newline-inside"),de=e("./function-parentheses-space-inside"),he=e("./function-url-no-scheme-relative"),me=e("./function-url-quotes"),ge=e("./function-url-scheme-blacklist"),ye=e("./function-url-scheme-whitelist"),ve=e("./function-whitelist"),be=e("./function-whitespace-after"),we=e("./indentation"),xe=e("./keyframe-declaration-no-important"),ke=e("./length-zero-no-unit"),_e=e("./max-empty-lines"),Se=e("./max-line-length"),Ce=e("./max-nesting-depth"),Ae=e("./media-feature-colon-space-after"),Ee=e("./media-feature-colon-space-before"),Oe=e("./media-feature-name-blacklist"),je=e("./media-feature-name-case"),Me=e("./media-feature-name-no-unknown"),Ne=e("./media-feature-name-whitelist"),Re=e("./media-feature-parentheses-space-inside"),Pe=e("./media-feature-range-operator-space-after"),Ie=e("./media-feature-range-operator-space-before"),Fe=e("./media-query-list-comma-newline-after"),Le=e("./media-query-list-comma-newline-before"),Be=e("./media-query-list-comma-space-after"),Te=e("./media-query-list-comma-space-before"),De=e("./no-descending-specificity"),Ue=e("./no-duplicate-selectors"),ze=e("./no-empty-source"),$e=e("./no-eol-whitespace"),qe=e("./no-extra-semicolons"),Ge=e("./no-invalid-double-slash-comments"),We=e("./no-missing-end-of-source-newline"),Ke=e("./no-unknown-animations"),Ve=e("./number-leading-zero"),He=e("./number-max-precision"),Ye=e("./number-no-trailing-zeros"),Je=e("./property-blacklist"),Ze=e("./property-case"),Qe=e("./property-no-unknown"),Xe=e("./property-whitelist"),et=e("./rule-empty-line-before"),tt=e("./selector-attribute-brackets-space-inside"),rt=e("./selector-attribute-operator-blacklist"),nt=e("./selector-attribute-operator-space-after"),it=e("./selector-attribute-operator-space-before"),ot=e("./selector-attribute-operator-whitelist"),st=e("./selector-attribute-quotes"),at=e("./selector-class-pattern"),ut=e("./selector-combinator-space-after"),lt=e("./selector-combinator-space-before"),ct=e("./selector-descendant-combinator-no-non-space"),ft=e("./selector-id-pattern"),pt=e("./selector-list-comma-newline-after"),dt=e("./selector-list-comma-newline-before"),ht=e("./selector-list-comma-space-after"),mt=e("./selector-list-comma-space-before"),gt=e("./selector-max-attribute"),yt=e("./selector-max-class"),vt=e("./selector-max-combinators"),bt=e("./selector-max-compound-selectors"),wt=e("./selector-max-empty-lines"),xt=e("./selector-max-id"),kt=e("./selector-max-specificity"),_t=e("./selector-max-type"),St=e("./selector-max-universal"),Ct=e("./selector-nested-pattern"),At=e("./selector-no-qualifying-type"),Et=e("./selector-pseudo-class-blacklist"),Ot=e("./selector-pseudo-class-case"),jt=e("./selector-pseudo-class-no-unknown"),Mt=e("./selector-pseudo-class-parentheses-space-inside"),Nt=e("./selector-pseudo-class-whitelist"),Rt=e("./selector-pseudo-element-case"),Pt=e("./selector-pseudo-element-colon-notation"),It=e("./selector-pseudo-element-no-unknown"),Ft=e("./selector-type-case"),Lt=e("./selector-type-no-unknown"),Bt=e("./shorthand-property-no-redundant-values"),Tt=e("./string-no-newline"),Dt=e("./string-quotes"),Ut=e("./time-min-milliseconds"),zt=e("./unit-blacklist"),$t=e("./unit-case"),qt=e("./unit-no-unknown"),Gt=e("./unit-whitelist"),Wt=e("./value-keyword-case"),Kt=e("./value-list-comma-newline-after"),Vt=e("./value-list-comma-newline-before"),Ht=e("./value-list-comma-space-after"),Yt=e("./value-list-comma-space-before"),Jt=e("./value-list-max-empty-lines");t.exports={"at-rule-blacklist":n,"at-rule-empty-line-before":i,"at-rule-name-case":o,"at-rule-name-newline-after":s,"at-rule-semicolon-space-before":c,"at-rule-name-space-after":a,"at-rule-no-unknown":u,"at-rule-semicolon-newline-after":l,"at-rule-whitelist":f,"block-closing-brace-empty-line-before":p,"block-closing-brace-newline-after":d,"block-closing-brace-newline-before":h,"block-closing-brace-space-after":m,"block-closing-brace-space-before":g,"block-no-empty":y,"block-opening-brace-newline-after":v,"block-opening-brace-newline-before":b,"block-opening-brace-space-after":w,"block-opening-brace-space-before":x,"color-hex-case":k,"color-hex-length":_,"color-named":S,"color-no-hex":C,"color-no-invalid-hex":A,"comment-empty-line-before":E,"comment-no-empty":O,"comment-whitespace-inside":j,"comment-word-blacklist":M,"custom-media-pattern":N,"custom-property-empty-line-before":R,"custom-property-pattern":P,"declaration-bang-space-after":I,"declaration-bang-space-before":F,"declaration-block-no-duplicate-properties":L,"declaration-block-no-redundant-longhand-properties":B,"declaration-block-no-shorthand-property-overrides":T,"declaration-block-semicolon-newline-after":D,"declaration-block-semicolon-newline-before":U,"declaration-block-semicolon-space-after":z,"declaration-block-semicolon-space-before":$,"declaration-block-single-line-max-declarations":q,"declaration-block-trailing-semicolon":G,"declaration-colon-newline-after":W,"declaration-colon-space-after":K,"declaration-colon-space-before":V,"declaration-empty-line-before":H,"declaration-no-important":Y,"declaration-property-unit-blacklist":J,"declaration-property-unit-whitelist":Z,"declaration-property-value-blacklist":Q,"declaration-property-value-whitelist":X,"font-family-name-quotes":ee,"font-family-no-duplicate-names":te,"font-weight-notation":re,"function-blacklist":ne,"function-calc-no-unspaced-operator":ie,"function-comma-newline-after":oe,"function-comma-newline-before":se,"function-comma-space-after":ae,"function-comma-space-before":ue,"function-linear-gradient-no-nonstandard-direction":le,"function-max-empty-lines":ce,"function-name-case":fe,"function-parentheses-newline-inside":pe,"function-parentheses-space-inside":de,"function-url-no-scheme-relative":he,"function-url-quotes":me,"function-url-scheme-blacklist":ge,"function-url-scheme-whitelist":ye,"function-whitelist":ve,"function-whitespace-after":be,"keyframe-declaration-no-important":xe,"length-zero-no-unit":ke,"max-empty-lines":_e,"max-line-length":Se,"max-nesting-depth":Ce,"media-feature-colon-space-after":Ae,"media-feature-colon-space-before":Ee,"media-feature-name-blacklist":Oe,"media-feature-name-case":je,"media-feature-name-no-unknown":Me,"media-feature-name-whitelist":Ne,"media-feature-parentheses-space-inside":Re,"media-feature-range-operator-space-after":Pe,"media-feature-range-operator-space-before":Ie,"media-query-list-comma-newline-after":Fe,"media-query-list-comma-newline-before":Le,"media-query-list-comma-space-after":Be,"media-query-list-comma-space-before":Te,"no-descending-specificity":De,"no-duplicate-selectors":Ue,"no-empty-source":ze,"no-eol-whitespace":$e,"no-extra-semicolons":qe,"no-invalid-double-slash-comments":Ge,"no-missing-end-of-source-newline":We,"no-unknown-animations":Ke,"number-leading-zero":Ve,"number-max-precision":He,"number-no-trailing-zeros":Ye,"property-blacklist":Je,"property-case":Ze,"property-no-unknown":Qe,"property-whitelist":Xe,"rule-empty-line-before":et,"selector-attribute-brackets-space-inside":tt,"selector-attribute-operator-blacklist":rt,"selector-attribute-operator-space-after":nt,"selector-attribute-operator-space-before":it,"selector-attribute-operator-whitelist":ot,"selector-attribute-quotes":st,"selector-class-pattern":at,"selector-combinator-space-after":ut,"selector-combinator-space-before":lt,"selector-descendant-combinator-no-non-space":ct,"selector-id-pattern":ft,"selector-list-comma-newline-after":pt,"selector-list-comma-newline-before":dt,"selector-list-comma-space-after":ht,"selector-list-comma-space-before":mt,"selector-max-attribute":gt,"selector-max-class":yt,"selector-max-combinators":vt,"selector-max-compound-selectors":bt,"selector-max-empty-lines":wt,"selector-max-id":xt,"selector-max-specificity":kt,"selector-max-type":_t,"selector-max-universal":St,"selector-nested-pattern":Ct,"selector-no-qualifying-type":At,"selector-pseudo-class-blacklist":Et,"selector-pseudo-class-case":Ot,"selector-pseudo-class-no-unknown":jt,"selector-pseudo-class-parentheses-space-inside":Mt,"selector-pseudo-class-whitelist":Nt,"selector-pseudo-element-case":Rt,"selector-pseudo-element-colon-notation":Pt,"selector-pseudo-element-no-unknown":It,"selector-type-case":Ft,"selector-type-no-unknown":Lt,"shorthand-property-no-redundant-values":Bt,"string-no-newline":Tt,"string-quotes":Dt,"time-min-milliseconds":Ut,"unit-blacklist":zt,"unit-case":$t,"unit-no-unknown":qt,"unit-whitelist":Gt,"value-keyword-case":Wt,"value-list-comma-newline-after":Kt,"value-list-comma-newline-before":Vt,"value-list-comma-space-after":Ht,"value-list-comma-space-before":Yt,"value-list-max-empty-lines":Jt,indentation:we}},{"./at-rule-blacklist":347,"./at-rule-empty-line-before":348,"./at-rule-name-case":349,"./at-rule-name-newline-after":350,"./at-rule-name-space-after":351,"./at-rule-no-unknown":352,"./at-rule-semicolon-newline-after":353,"./at-rule-semicolon-space-before":354,"./at-rule-whitelist":355,"./block-closing-brace-empty-line-before":357,"./block-closing-brace-newline-after":358,"./block-closing-brace-newline-before":359,"./block-closing-brace-space-after":360,"./block-closing-brace-space-before":361,"./block-no-empty":362,"./block-opening-brace-newline-after":363,"./block-opening-brace-newline-before":364,"./block-opening-brace-space-after":365,"./block-opening-brace-space-before":366,"./color-hex-case":367,"./color-hex-length":368,"./color-named":369,"./color-no-hex":370,"./color-no-invalid-hex":371,"./comment-empty-line-before":372,"./comment-no-empty":373,"./comment-whitespace-inside":374,"./comment-word-blacklist":375,"./custom-media-pattern":376,"./custom-property-empty-line-before":377,"./custom-property-pattern":378,"./declaration-bang-space-after":379,"./declaration-bang-space-before":380,"./declaration-block-no-duplicate-properties":381,"./declaration-block-no-redundant-longhand-properties":382,"./declaration-block-no-shorthand-property-overrides":383,"./declaration-block-semicolon-newline-after":384,"./declaration-block-semicolon-newline-before":385,"./declaration-block-semicolon-space-after":386,"./declaration-block-semicolon-space-before":387,"./declaration-block-single-line-max-declarations":388,"./declaration-block-trailing-semicolon":389,"./declaration-colon-newline-after":390,"./declaration-colon-space-after":391,"./declaration-colon-space-before":392,"./declaration-empty-line-before":393,"./declaration-no-important":394,"./declaration-property-unit-blacklist":395,"./declaration-property-unit-whitelist":396,"./declaration-property-value-blacklist":397,"./declaration-property-value-whitelist":398,"./font-family-name-quotes":402,"./font-family-no-duplicate-names":403,"./font-weight-notation":404,"./function-blacklist":405,"./function-calc-no-unspaced-operator":406,"./function-comma-newline-after":407,"./function-comma-newline-before":408,"./function-comma-space-after":409,"./function-comma-space-before":410,"./function-linear-gradient-no-nonstandard-direction":411,"./function-max-empty-lines":412,"./function-name-case":413,"./function-parentheses-newline-inside":414,"./function-parentheses-space-inside":415,"./function-url-no-scheme-relative":416,"./function-url-quotes":417,"./function-url-scheme-blacklist":418,"./function-url-scheme-whitelist":419,"./function-whitelist":420,"./function-whitespace-after":421,"./indentation":423,"./keyframe-declaration-no-important":425,"./length-zero-no-unit":426,"./max-empty-lines":427,"./max-line-length":428,"./max-nesting-depth":429,"./media-feature-colon-space-after":430,"./media-feature-colon-space-before":431,"./media-feature-name-blacklist":432,"./media-feature-name-case":433,"./media-feature-name-no-unknown":434,"./media-feature-name-whitelist":435,"./media-feature-parentheses-space-inside":436,"./media-feature-range-operator-space-after":437,"./media-feature-range-operator-space-before":438,"./media-query-list-comma-newline-after":439,"./media-query-list-comma-newline-before":440,"./media-query-list-comma-space-after":441,"./media-query-list-comma-space-before":442,"./no-descending-specificity":445,"./no-duplicate-selectors":446,"./no-empty-source":447,"./no-eol-whitespace":448,"./no-extra-semicolons":449,"./no-invalid-double-slash-comments":450,"./no-missing-end-of-source-newline":451,"./no-unknown-animations":452,"./number-leading-zero":453,"./number-max-precision":454,"./number-no-trailing-zeros":455,"./property-blacklist":456,"./property-case":457,"./property-no-unknown":458,"./property-whitelist":459,"./rule-empty-line-before":460,"./selector-attribute-brackets-space-inside":461,"./selector-attribute-operator-blacklist":462,"./selector-attribute-operator-space-after":463,"./selector-attribute-operator-space-before":464,"./selector-attribute-operator-whitelist":465,"./selector-attribute-quotes":466,"./selector-class-pattern":467,"./selector-combinator-space-after":468,"./selector-combinator-space-before":469,"./selector-descendant-combinator-no-non-space":470,"./selector-id-pattern":471,"./selector-list-comma-newline-after":472,"./selector-list-comma-newline-before":473,"./selector-list-comma-space-after":474,"./selector-list-comma-space-before":475,"./selector-max-attribute":476,"./selector-max-class":477,"./selector-max-combinators":478,"./selector-max-compound-selectors":479,"./selector-max-empty-lines":480,"./selector-max-id":481,"./selector-max-specificity":482,"./selector-max-type":483,"./selector-max-universal":484,"./selector-nested-pattern":485,"./selector-no-qualifying-type":486,"./selector-pseudo-class-blacklist":487,"./selector-pseudo-class-case":488,"./selector-pseudo-class-no-unknown":489,"./selector-pseudo-class-parentheses-space-inside":490,"./selector-pseudo-class-whitelist":491,"./selector-pseudo-element-case":492,"./selector-pseudo-element-colon-notation":493,"./selector-pseudo-element-no-unknown":494,"./selector-type-case":495,"./selector-type-no-unknown":496,"./shorthand-property-no-redundant-values":500,"./string-no-newline":501,"./string-quotes":502,"./time-min-milliseconds":503,"./unit-blacklist":504,"./unit-case":505,"./unit-no-unknown":506,"./unit-whitelist":507,"./value-keyword-case":508,"./value-list-comma-newline-after":509,"./value-list-comma-newline-before":510,"./value-list-comma-space-after":511,"./value-list-comma-space-before":512,"./value-list-max-empty-lines":513}],425:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s="keyframe-declaration-no-important",a=i(s,{rejected:"Unexpected !important"}),u=function(e){return(t,r)=>{o(r,s,{actual:e})&&t.walkAtRules(/^(-(moz|webkit)-)?keyframes$/i,e=>{e.walkDecls(e=>{e.important&&n({message:a.rejected,node:e,word:"important",result:r,ruleName:s})})})}};u.ruleName=s,u.messages=a,t.exports=u},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],426:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/beforeBlockString"),o=e("../../utils/blurComments"),s=e("../../utils/hasBlock"),a=e("../../reference/keywordSets"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("style-search"),f=e("../../utils/validateOptions"),p=e("postcss-value-parser"),d="length-zero-no-unit",h=l(d,{rejected:"Unexpected unit"}),m=function(e){return(t,r)=>{function l(e,t){const i=new Set;c({source:e,target:"0"},o=>{const s=o.startIndex;if(i.has(s))return;const l=n.findLastIndex(e.substr(0,s),e=>-1!==[" ",",",")","(","#",":","\n","\t"].indexOf(e));if("#"===e[l])return;const c=-1===l?0:l+1,f=n.findIndex(e.substr(c),e=>-1!==[" ",",",")"].indexOf(e)),m=-1===f?e.length:f+c,g=e.slice(c,m),y=p.unit(g);!y||y&&!y.unit||(n.range(c,m).forEach(e=>i.add(e)),0===parseFloat(g,10)&&a.lengthUnits.has(y.unit.toLowerCase())&&u({message:h.rejected,node:t,index:m-y.unit.length,result:r,ruleName:d}))})}f(r,d,{actual:e})&&(t.walkDecls(e=>{l(o(e.toString()),e)}),t.walkAtRules(e=>{l(s(e)?i(e,{noRawBefore:!0}):e.toString(),e)}))}};m.ruleName=d,m.messages=h,t.exports=m},{"../../reference/keywordSets":342,"../../utils/beforeBlockString":519,"../../utils/blurComments":521,"../../utils/hasBlock":539,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-value-parser":239,"style-search":326}],427:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/optionsMatches"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("style-search"),u=e("../../utils/validateOptions"),l="max-empty-lines",c=s(l,{expected:e=>`Expected no more than ${e} empty ${1===e?"line":"lines"}`}),f=function(e,t){const r=e+1;return(s,f)=>{if(!u(f,l,{actual:e,possible:n.isNumber},{actual:t,possible:{ignore:["comments"]},optional:!0}))return;const p=s.toString(),d=n.repeat("\n",r),h=n.repeat("\r\n",r),m=i(t,"ignore","comments");function g(t,n,i){const s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;let a=!1;t.substr(n,r)===d?a=n+r:t.substr(n,2*r)===h&&(a=n+2*r),a&&o({message:c.expected(e),node:i,index:a+s,result:f,ruleName:l})}a({source:p,target:"\n"},e=>{g(p,e.endIndex,s)}),m||s.walkComments(e=>{const t=(e.raws.left||"")+e.text+(e.raws.right||"");a({source:t,target:"\n"},r=>{g(t,r.endIndex,e,2)})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"style-search":326}],428:[function(e,t,r){"use strict";const n=e("lodash"),i=e("execall"),o=e("../../utils/optionsMatches"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("style-search"),l=e("../../utils/validateOptions"),c="max-line-length",f=a(c,{expected:e=>`Expected line length to be no more than ${e} ${1===e?"character":"characters"}`}),p=function(e,t){return(r,a)=>{if(!l(a,c,{actual:e,possible:n.isNumber},{actual:t,possible:{ignore:["non-comments","comments"],ignorePattern:[n.isString]},optional:!0}))return;const p=r.source.input.css,d=o(t,"ignore","non-comments"),h=o(t,"ignore","comments");function m(t){s({index:t,result:a,ruleName:c,message:f.expected(e),node:r})}function g(r){let s=p.indexOf("\n",r.endIndex);"\r"===p[s-1]&&(s-=1),-1===s&&(s=p.length);const a=s-r.endIndex,u=p.slice(r.endIndex,s);if(o(t,"ignorePattern",u))return;if(a-i(/url\((.*)\)/gi,u).reduce((e,t)=>e+n.get(t,"sub[0].length",0),0)-i(/@import\s+(['"].*['"])/gi,u).reduce((e,t)=>e+n.get(t,"sub[0].length",0),0)<=e)return;const l=s-1;if(h){if(r.insideComment)return;const e=p.slice(r.endIndex).trim().slice(0,2);if("/*"===e||"//"===e)return}if(d){if(r.insideComment)return m(l);const e=p.slice(r.endIndex).trim().slice(0,2);if("/*"!==e&&"//"!==e)return;return m(l)}return-1!==p.slice(r.endIndex,s).replace(/^\s+/,"").indexOf(" ")?m(l):void 0}g({endIndex:0}),u({source:p,target:["\n"],comments:"check"},g)}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,execall:35,lodash:125,"style-search":326}],429:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/hasBlock"),o=e("../../utils/optionsMatches"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="max-nesting-depth",c=a(l,{expected:e=>`Expected nesting depth to be no more than ${e}`}),f=function(e,t){const r=e=>"atrule"===e.type&&o(t,"ignoreAtRules",e.name);return(a,f)=>{function p(n){if(r(n))return;if(!i(n))return;(function e(n,i){i=i||0;const s=n.parent;if(r(s))return 0;if("root"===s.type||"atrule"===s.type&&"root"===s.parent.type)return i;if(o(t,"ignore","blockless-at-rules")&&"atrule"===n.type&&n.every(e=>"decl"!==e.type))return e(s,i);return e(s,i+1)})(n)>e&&s({ruleName:l,result:f,node:n,message:c.expected(e)})}u(f,l,{actual:e,possible:[n.isNumber]},{optional:!0,actual:t,possible:{ignore:["blockless-at-rules"],ignoreAtRules:[n.isString]}}),a.walkRules(p),a.walkAtRules(p)}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/hasBlock":539,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],430:[function(e,t,r){"use strict";const n=e("../mediaFeatureColonSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="media-feature-colon-space-after",u=i(a,{expectedAfter:()=>'Expected single space after ":"',rejectedAfter:()=>'Unexpected whitespace after ":"'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never"]})&&n({root:r,result:i,locationChecker:t.after,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../mediaFeatureColonSpaceChecker":443}],431:[function(e,t,r){"use strict";const n=e("../mediaFeatureColonSpaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="media-feature-colon-space-before",u=i(a,{expectedBefore:()=>'Expected single space before ":"',rejectedBefore:()=>'Unexpected whitespace before ":"'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never"]})&&n({root:r,result:i,locationChecker:t.before,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../mediaFeatureColonSpaceChecker":443}],432:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/isCustomMediaQuery"),s=e("../../utils/isRangeContextMediaFeature"),a=e("../../utils/isStandardSyntaxMediaFeatureName"),u=e("../../utils/matchesStringOrRegExp"),l=e("postcss-media-query-parser").default,c=e("../../utils/report"),f=e("../../utils/ruleMessages"),p=e("../../utils/validateOptions"),d="media-feature-name-blacklist",h=f(d,{rejected:e=>`Unexpected media feature name "${e}"`}),m=function(e){return(t,r)=>{p(r,d,{actual:e,possible:[n.isString]})&&t.walkAtRules(/^media$/i,t=>{l(t.params).walk(/^media-feature$/i,n=>{const l=n.parent,f=n.sourceIndex,p=n.value;s(l.value)||!a(p)||o(p)||u(p,e)&&c({index:i(t)+f,message:h.rejected(p),node:t,ruleName:d,result:r})})})}};m.primaryOptionArray=!0,m.ruleName=d,m.messages=h,t.exports=m},{"../../utils/atRuleParamIndex":518,"../../utils/isCustomMediaQuery":554,"../../utils/isRangeContextMediaFeature":563,"../../utils/isStandardSyntaxMediaFeatureName":569,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-media-query-parser":206}],433:[function(e,t,r){"use strict";const n=e("../../utils/atRuleParamIndex"),i=e("../../utils/isCustomMediaQuery"),o=e("../../utils/isRangeContextMediaFeature"),s=e("../../utils/isStandardSyntaxMediaFeatureName"),a=e("postcss-media-query-parser").default,u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="media-feature-name-case",p=l(f,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),d=function(e){return(t,r)=>{c(r,f,{actual:e,possible:["lower","upper"]})&&t.walkAtRules(/^media$/i,t=>{a(t.params).walk(/^media-feature$/i,a=>{const l=a.parent,c=a.sourceIndex,d=a.value;if(o(l.value)||!s(d)||i(d))return;const h="lower"===e?d.toLowerCase():d.toUpperCase();d!==h&&u({index:n(t)+c,message:p.expected(d,h),node:t,ruleName:f,result:r})})})}};d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/atRuleParamIndex":518,"../../utils/isCustomMediaQuery":554,"../../utils/isRangeContextMediaFeature":563,"../../utils/isStandardSyntaxMediaFeatureName":569,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-media-query-parser":206}],434:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/isCustomMediaQuery"),s=e("../../utils/isRangeContextMediaFeature"),a=e("../../utils/isStandardSyntaxMediaFeatureName"),u=e("../../reference/keywordSets"),l=e("postcss-media-query-parser").default,c=e("../../utils/optionsMatches"),f=e("postcss"),p=e("../../utils/report"),d=e("../../utils/ruleMessages"),h=e("../../utils/validateOptions"),m="media-feature-name-no-unknown",g=d(m,{rejected:e=>`Unexpected unknown media feature name "${e}"`}),y=function(e,t){return(r,d)=>{h(d,m,{actual:e},{actual:t,possible:{ignoreMediaFeatureNames:[n.isString]},optional:!0})&&r.walkAtRules(/^media$/i,e=>{l(e.params).walk(/^media-feature$/i,r=>{const n=r.parent,l=r.sourceIndex,h=r.value;s(n.value)||!a(h)||o(h)||c(t,"ignoreMediaFeatureNames",h)||f.vendor.prefix(h)||u.mediaFeatureNames.has(h.toLowerCase())||p({index:i(e)+l,message:g.rejected(h),node:e,ruleName:m,result:d})})})}};y.ruleName=m,y.messages=g,t.exports=y},{"../../reference/keywordSets":342,"../../utils/atRuleParamIndex":518,"../../utils/isCustomMediaQuery":554,"../../utils/isRangeContextMediaFeature":563,"../../utils/isStandardSyntaxMediaFeatureName":569,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256,"postcss-media-query-parser":206}],435:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/isCustomMediaQuery"),s=e("../../utils/isRangeContextMediaFeature"),a=e("../../utils/isStandardSyntaxMediaFeatureName"),u=e("../../utils/matchesStringOrRegExp"),l=e("postcss-media-query-parser").default,c=e("../../utils/report"),f=e("../../utils/ruleMessages"),p=e("../../utils/validateOptions"),d="media-feature-name-whitelist",h=f(d,{rejected:e=>`Unexpected media feature name "${e}"`}),m=function(e){return(t,r)=>{p(r,d,{actual:e,possible:[n.isString]})&&t.walkAtRules(/^media$/i,t=>{l(t.params).walk(/^media-feature$/i,n=>{const l=n.parent,f=n.sourceIndex,p=n.value;s(l.value)||!a(p)||o(p)||u(p,e)||c({index:i(t)+f,message:h.rejected(p),node:t,ruleName:d,result:r})})})}};m.primaryOptionArray=!0,m.ruleName=d,m.messages=h,t.exports=m},{"../../utils/atRuleParamIndex":518,"../../utils/isCustomMediaQuery":554,"../../utils/isRangeContextMediaFeature":563,"../../utils/isStandardSyntaxMediaFeatureName":569,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-media-query-parser":206}],436:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("style-search"),u=e("../../utils/validateOptions"),l="media-feature-parentheses-space-inside",c=s(l,{expectedOpening:'Expected single space after "("',rejectedOpening:'Unexpected whitespace after "("',expectedClosing:'Expected single space before ")"',rejectedClosing:'Unexpected whitespace before ")"'}),f=function(e){return(t,r)=>{u(r,l,{actual:e,possible:["always","never"]})&&t.walkAtRules(/^media$/i,t=>{const s=n.get(t,"raws.params.raw",t.params),u=i(t);a({source:s,target:"("},n=>{const i=" "===s[n.startIndex+1];i&&"never"===e&&o({message:c.rejectedOpening,node:t,index:n.startIndex+1+u,result:r,ruleName:l}),i||"always"!==e||o({message:c.expectedOpening,node:t,index:n.startIndex+1+u,result:r,ruleName:l})}),a({source:s,target:")"},n=>{const i=" "===s[n.startIndex-1];i&&"never"===e&&o({message:c.rejectedClosing,node:t,index:n.startIndex-1+u,result:r,ruleName:l}),i||"always"!==e||o({message:c.expectedClosing,node:t,index:n.startIndex-1+u,result:r,ruleName:l})})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/atRuleParamIndex":518,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"style-search":326}],437:[function(e,t,r){"use strict";const n=e("../../utils/atRuleParamIndex"),i=e("../findMediaOperator"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u=e("../../utils/whitespaceChecker"),l="media-feature-range-operator-space-after",c=s(l,{expectedAfter:()=>"Expected single space after range operator",rejectedAfter:()=>"Unexpected whitespace after range operator"}),f=function(e){const t=u("space",e,c);return(r,s)=>{function u(e,r,i){const a=e.index+e[1].length;t.after({source:r,index:a,err:e=>{o({message:e,node:i,index:a+n(i)+1,result:s,ruleName:l})}})}a(s,l,{actual:e,possible:["always","never"]})&&r.walkAtRules(/^media$/i,e=>{i(e,u)})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/atRuleParamIndex":518,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../findMediaOperator":401}],438:[function(e,t,r){"use strict";const n=e("../../utils/atRuleParamIndex"),i=e("../findMediaOperator"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u=e("../../utils/whitespaceChecker"),l="media-feature-range-operator-space-before",c=s(l,{expectedBefore:()=>"Expected single space before range operator",rejectedBefore:()=>"Unexpected whitespace before range operator"}),f=function(e){const t=u("space",e,c);return(r,s)=>{function u(e,r,i){t.before({source:r,index:e.index+1,err:t=>{o({message:t,node:i,index:e.index+n(i),result:s,ruleName:l})}})}a(s,l,{actual:e,possible:["always","never"]})&&r.walkAtRules(/^media$/i,e=>{i(e,u)})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/atRuleParamIndex":518,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../findMediaOperator":401}],439:[function(e,t,r){"use strict";const n=e("../mediaQueryListCommaWhitespaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="media-query-list-comma-newline-after",u=i(a,{expectedAfter:()=>'Expected newline after ","',expectedAfterMultiLine:()=>'Expected newline after "," in a multi-line list',rejectedAfterMultiLine:()=>'Unexpected whitespace after "," in a multi-line list'}),l=function(e){const t=s("newline",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&n({root:r,result:i,locationChecker:t.afterOneOnly,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../mediaQueryListCommaWhitespaceChecker":444}],440:[function(e,t,r){"use strict";const n=e("../mediaQueryListCommaWhitespaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="media-query-list-comma-newline-before",u=i(a,{expectedBefore:()=>'Expected newline before ","',expectedBeforeMultiLine:()=>'Expected newline before "," in a multi-line list',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "," in a multi-line list'}),l=function(e){const t=s("newline",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&n({root:r,result:i,locationChecker:t.beforeAllowingIndentation,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../mediaQueryListCommaWhitespaceChecker":444}],441:[function(e,t,r){"use strict";const n=e("../mediaQueryListCommaWhitespaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="media-query-list-comma-space-after",u=i(a,{expectedAfter:()=>'Expected single space after ","',rejectedAfter:()=>'Unexpected whitespace after ","',expectedAfterSingleLine:()=>'Expected single space after "," in a single-line list',rejectedAfterSingleLine:()=>'Unexpected whitespace after "," in a single-line list'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&n({root:r,result:i,locationChecker:t.after,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../mediaQueryListCommaWhitespaceChecker":444}],442:[function(e,t,r){"use strict";const n=e("../mediaQueryListCommaWhitespaceChecker"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="media-query-list-comma-space-before",u=i(a,{expectedBefore:()=>'Expected single space before ","',rejectedBefore:()=>'Unexpected whitespace before ","',expectedBeforeSingleLine:()=>'Expected single space before "," in a single-line list',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "," in a single-line list'}),l=function(e){const t=s("space",e,u);return(r,i)=>{o(i,a,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&n({root:r,result:i,locationChecker:t.before,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../mediaQueryListCommaWhitespaceChecker":444}],443:[function(e,t,r){"use strict";const n=e("../utils/atRuleParamIndex"),i=e("../utils/report"),o=e("style-search");t.exports=function(e){e.root.walkAtRules(/^media$/i,t=>{const r=t.params;o({source:r,target:":"},o=>{!function(t,r,o){e.locationChecker({source:t,index:r,err:t=>i({message:t,node:o,index:r+n(o),result:e.result,ruleName:e.checkedRuleName})})}(r,o.startIndex,t)})})}},{"../utils/atRuleParamIndex":518,"../utils/report":587,"style-search":326}],444:[function(e,t,r){"use strict";const n=e("../utils/atRuleParamIndex"),i=e("../utils/report"),o=e("style-search");t.exports=function(e){e.root.walkAtRules(/^media$/i,t=>{const r=t.params;o({source:r,target:","},o=>{!function(t,r,o){e.locationChecker({source:t,index:r,err:t=>i({message:t,node:o,index:r+n(o),result:e.result,ruleName:e.checkedRuleName})})}(r,o.startIndex,t)})})}},{"../utils/atRuleParamIndex":518,"../utils/report":587,"style-search":326}],445:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/findAtRuleContext"),o=e("../../utils/isCustomPropertySet"),s=e("../../reference/keywordSets"),a=e("../../utils/nodeContextLookup"),u=e("../../utils/parseSelector"),l=e("../../utils/report"),c=e("postcss-resolve-nested-selector"),f=e("../../utils/ruleMessages"),p=e("specificity"),d=e("../../utils/validateOptions"),h="no-descending-specificity",m=f(h,{rejected:(e,t)=>`Expected selector "${e}" to come before selector "${t}"`}),g=function(e){return(t,r)=>{if(!d(r,h,{actual:e}))return;const f=a();t.walkRules(e=>{if(o(e))return;const t=f.getContext(e,i(e));e.selectors.forEach(i=>{const o=i.trim();if(""===o)return;const a=e.selector.indexOf(o);c(i,e).forEach(i=>{u(i,r,e,i=>(function(e,t,i,o){const a=e.toString(),u=function(e){return n.last(e.nodes[0].split(e=>"combinator"===e.type)).filter(e=>"pseudo"!==e.type||s.pseudoElements.has(e.value.replace(/:/g,""))).join("").toString()}(e),c=p.calculate(a)[0].specificityArray,f={selector:a,specificity:c};if(!o.has(u))return void o.set(u,[f]);const d=o.get(u);d.forEach(e=>{-1===p.compare(c,e.specificity)&&l({ruleName:h,result:r,node:t,message:m.rejected(a,e.selector),index:i})}),d.push(f)})(i,e,a,t))})})})}};g.ruleName=h,g.messages=m,t.exports=g},{"../../reference/keywordSets":342,"../../utils/findAtRuleContext":529,"../../utils/isCustomPropertySet":556,"../../utils/nodeContextLookup":582,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-resolve-nested-selector":210,specificity:322}],446:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/findAtRuleContext"),o=e("../../utils/isKeyframeRule"),s=e("../../utils/nodeContextLookup"),a=e("normalize-selector"),u=e("../../utils/report"),l=e("postcss-resolve-nested-selector"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p="no-duplicate-selectors",d=c(p,{rejected:(e,t)=>`Unexpected duplicate selector "${e}", first used at line ${t}`}),h=function(e){return(t,r)=>{if(!f(r,p,{actual:e}))return;const c=s();t.walkRules(e=>{if(o(e))return;const t=c.getContext(e,i(e)),s=e.selectors.reduce((t,r)=>n.union(t,l(r,e)),[]),f=s.map(a),h=e.source.start.line,m=f.slice().sort().join(",");if(t.has(m)){const n=s.join(",")!==e.selectors.join(",")?s.join(", "):e.selector,i=t.get(m);return u({result:r,ruleName:p,node:e,message:d.rejected(n,i)})}t.set(m,h),e.selectors.forEach((t,i)=>{n.includes(f.slice(0,i),a(t))&&u({result:r,ruleName:p,node:e,message:d.rejected(t,h)})})})}};h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/findAtRuleContext":529,"../../utils/isKeyframeRule":559,"../../utils/nodeContextLookup":582,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"normalize-selector":138,"postcss-resolve-nested-selector":210}],447:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s="no-empty-source",a=i(s,{rejected:"Unexpected empty source"}),u=function(e){return(t,r)=>{o(r,s,{actual:e})&&/^\s*$/.test(t.toString())&&n({message:a.rejected,node:t,result:r,ruleName:s})}};u.ruleName=s,u.messages=a,t.exports=u},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],448:[function(e,t,r){"use strict";const n=e("../../utils/isOnlyWhitespace"),i=e("../../utils/optionsMatches"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("style-search"),u=e("../../utils/validateOptions"),l="no-eol-whitespace",c=s(l,{rejected:"Unexpected whitespace at end of line"}),f=new Set([" ","\t"]),p=function(e,t){return(r,s)=>{if(!u(s,l,{actual:e},{optional:!0,actual:t,possible:{ignore:["empty-lines"]}}))return;const p=r.toString();a({source:p,target:["\n","\r"],comments:"check"},e=>{if(f.has(p[e.startIndex-1])){if(i(t,"ignore","empty-lines")){const t=p.substring(e.startIndex+1,p.lastIndexOf("\n",e.startIndex-1));if(n(t))return}o({message:c.rejected,node:r,index:e.startIndex-1,result:s,ruleName:l})}})}};p.ruleName=l,p.messages=c,t.exports=p},{"../../utils/isOnlyWhitespace":562,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"style-search":326}],449:[function(e,t,r){"use strict";const n=e("../../utils/isCustomPropertySet"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("style-search"),u=e("../../utils/validateOptions"),l="no-extra-semicolons",c=s(l,{rejected:"Unexpected extra semicolon"});function f(e){const t=e.root().source.input.css,r=e.source.start.column,n=e.source.start.line;let i=1,o=1,s=0;for(let e=0;e{if(!u(r,l,{actual:e}))return;const s=t.raws.after;function p(e){o({message:c.rejected,node:t,index:e,result:r,ruleName:l})}s&&0!==s.trim().length&&a({source:s,target:";"},e=>{p(t.toString().length-s.length+e.startIndex)}),t.walk(e=>{if("rule"===e.type&&!n(e)&&!i(e))return;let t=e.raws.before;if(t&&0!==t.trim().length){let r=0;const i=e.next();"comment"===e.type&&i&&(n(i)&&e.parent.index(i)>0||"comment"===i.type)&&(r=1);const o=e.prev();n(e)&&e.parent.index(e)>0&&o&&"comment"===o.type&&(t=o.toString()+t,r=0),a({source:t,target:";"},(n,i)=>{i!==r&&p(f(e)-t.length+n.startIndex)})}const r=e.raws.after;if(r&&0!==r.trim().length){if(e.last&&"rule"===e.last.type&&!n(e.last)&&!i(e.last))return;a({source:r,target:";"},t=>{p(f(e)+e.toString().length-1-r.length+t.startIndex)})}const o=e.raws.ownSemicolon;if(o){let t=0;n(e)&&(t=1),a({source:o,target:";"},(r,n)=>{if(n===t)return;p(f(e)+e.toString().length-o.length+r.startIndex)})}})}};p.ruleName=l,p.messages=c,t.exports=p},{"../../utils/isCustomPropertySet":556,"../../utils/isStandardSyntaxRule":571,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"style-search":326}],450:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s="no-invalid-double-slash-comments",a=i(s,{rejected:"Unexpected double-slash CSS comment"}),u=function(e){return(t,r)=>{o(r,s,{actual:e})&&(t.walkDecls(e=>{0===e.prop.indexOf("//")&&n({message:a.rejected,node:e,result:r,ruleName:s})}),t.walkRules(e=>{e.selectors.forEach(t=>{0===t.indexOf("//")&&n({message:a.rejected,node:e,result:r,ruleName:s})})}))}};u.ruleName=s,u.messages=a,t.exports=u},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],451:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("../../utils/validateOptions"),s="no-missing-end-of-source-newline",a=i(s,{rejected:"Unexpected missing end-of-source newline"}),u=function(e){return(t,r)=>{if(!o(r,s,{actual:e}))return;const i=t.source.input.css;""!==i&&"\n"!==i.slice(-1)&&n({message:a.rejected,node:t,index:i.length-1,result:r,ruleName:s})}};u.ruleName=s,u.messages=a,t.exports=u},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],452:[function(e,t,r){"use strict";const n=e("../../utils/declarationValueIndex"),i=e("../../utils/findAnimationName"),o=e("../../reference/keywordSets"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="no-unknown-animations",c=a(l,{rejected:e=>`Unexpected unknown animation name "${e}"`}),f=function(e){return(t,r)=>{if(!u(r,l,{actual:e}))return;const a=new Set;t.walkAtRules(/(-(moz|webkit)-)?keyframes/i,e=>{a.add(e.params)}),t.walkDecls(e=>{if("animation"===e.prop.toLowerCase()||"animation-name"===e.prop.toLowerCase()){const t=i(e.value);if(0===t.length)return;t.forEach(t=>{o.animationNameKeywords.has(t.value.toLowerCase())||a.has(t.value)||s({result:r,ruleName:l,message:c.rejected(t.value),node:e,index:n(e)+t.sourceIndex})})}})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../reference/keywordSets":342,"../../utils/declarationValueIndex":527,"../../utils/findAnimationName":528,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],453:[function(e,t,r){"use strict";const n=e("../../utils/atRuleParamIndex"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u=e("postcss-value-parser"),l="number-leading-zero",c=s(l,{expected:"Expected a leading zero",rejected:"Unexpected leading zero"}),f=function(e){return(t,r)=>{function s(t,r,n){-1!==r.indexOf(".")&&u(r).walk(r=>{if("function"===r.type&&"url"===r.value.toLowerCase())return!1;if("word"===r.type){if("always"===e){const e=/(?:\D|^)(\.\d+)/.exec(r.value);if(null===e)return;const i=e[0].length-e[1].length;f(c.expected,t,n(t)+r.sourceIndex+e.index+i)}if("never"===e){const e=/(?:\D|^)(0+\.\d+)/.exec(r.value);if(null===e)return;const i=e[0].length-e[1].length;f(c.rejected,t,n(t)+r.sourceIndex+e.index+i)}}})}function f(e,t,n){o({result:r,ruleName:l,message:e,node:t,index:n})}a(r,l,{actual:e,possible:["always","never"]})&&(t.walkAtRules(e=>{"import"!==e.name.toLowerCase()&&s(e,e.params,n)}),t.walkDecls(e=>s(e,e.value,i)))}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/atRuleParamIndex":518,"../../utils/declarationValueIndex":527,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-value-parser":239}],454:[function(e,t,r){"use strict";const n=e("../../utils/atRuleParamIndex"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u=e("lodash"),l=e("postcss-value-parser"),c="number-max-precision",f=s(c,{expected:(e,t)=>`Expected "${e}" to be "${e.toFixed(t)}"`}),p=function(e){return(t,r)=>{function s(t,n,i){-1!==n.indexOf(".")&&l(n).walk(n=>{if("function"===n.type&&"url"===n.value.toLowerCase())return!1;if("word"!==n.type)return;const s=/\d*\.(\d+)/.exec(n.value);null!==s&&(s[1].length<=e||o({result:r,ruleName:c,node:t,index:i(t)+n.sourceIndex+s.index,message:f.expected(parseFloat(s[0]),e)}))})}a(r,c,{actual:e,possible:[u.isNumber]})&&(t.walkAtRules(e=>{"import"!==e.name.toLowerCase()&&s(e,e.params,n)}),t.walkDecls(e=>s(e,e.value,i)))}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/atRuleParamIndex":518,"../../utils/declarationValueIndex":527,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-value-parser":239}],455:[function(e,t,r){"use strict";const n=e("../../utils/atRuleParamIndex"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u=e("postcss-value-parser"),l="number-no-trailing-zeros",c=s(l,{rejected:"Unexpected trailing zero(s)"}),f=function(e){return(t,r)=>{function s(e,t,n){-1!==t.indexOf(".")&&u(t).walk(t=>{if("function"===t.type&&"url"===t.value.toLowerCase())return!1;if("word"!==t.type)return;const i=/(\.\d*)0+(?:\D|$)/.exec(t.value);null!==i&&o({message:c.rejected,node:e,index:n(e)+t.sourceIndex+i.index+i[1].length,result:r,ruleName:l})})}a(r,l,{actual:e})&&(t.walkAtRules(e=>{"import"!==e.name.toLowerCase()&&s(e,e.params,n)}),t.walkDecls(e=>s(e,e.value,i)))}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/atRuleParamIndex":518,"../../utils/declarationValueIndex":527,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-value-parser":239}],456:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isCustomProperty"),o=e("../../utils/isStandardSyntaxProperty"),s=e("../../utils/matchesStringOrRegExp"),a=e("postcss"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="property-blacklist",p=l(f,{rejected:e=>`Unexpected property "${e}"`}),d=function(e){return(t,r)=>{c(r,f,{actual:e,possible:[n.isString]})&&t.walkDecls(t=>{const n=t.prop;o(n)&&(i(n)||s(a.vendor.unprefixed(n),e)&&u({message:p.rejected(n),node:t,result:r,ruleName:f}))})}};d.primaryOptionArray=!0,d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/isCustomProperty":555,"../../utils/isStandardSyntaxProperty":570,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],457:[function(e,t,r){"use strict";const n=e("../../utils/isCustomProperty"),i=e("../../utils/isStandardSyntaxProperty"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u="property-case",l=s(u,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),c=function(e){return(t,r)=>{a(r,u,{actual:e,possible:["lower","upper"]})&&t.walkDecls(t=>{const s=t.prop;if(!i(s))return;if(n(s))return;const a="lower"===e?s.toLowerCase():s.toUpperCase();s!==a&&o({message:l.expected(s,a),node:t,ruleName:u,result:r})})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/isCustomProperty":555,"../../utils/isStandardSyntaxProperty":570,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],458:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isCustomProperty"),o=e("../../utils/isStandardSyntaxDeclaration"),s=e("../../utils/isStandardSyntaxProperty"),a=e("../../utils/optionsMatches"),u=e("postcss"),l=e("known-css-properties").all,c=e("../../utils/report"),f=e("../../utils/ruleMessages"),p=e("../../utils/validateOptions"),d="property-no-unknown",h=f(d,{rejected:e=>`Unexpected unknown property "${e}"`}),m=function(e,t){return(r,f)=>{if(!p(f,d,{actual:e},{actual:t,possible:{ignoreProperties:[n.isString],checkPrefixed:n.isBoolean},optional:!0}))return;const m=n.get(t,"checkPrefixed");r.walkDecls(e=>{const r=e.prop;s(r)&&o(e)&&(i(r)||!m&&u.vendor.prefix(r)||a(t,"ignoreProperties",r)||-1===l.indexOf(r.toLowerCase())&&c({message:h.rejected(r),node:e,result:f,ruleName:d}))})}};m.ruleName=d,m.messages=h,t.exports=m},{"../../utils/isCustomProperty":555,"../../utils/isStandardSyntaxDeclaration":567,"../../utils/isStandardSyntaxProperty":570,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"known-css-properties":124,lodash:125,postcss:256}],459:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isCustomProperty"),o=e("../../utils/isStandardSyntaxProperty"),s=e("../../utils/matchesStringOrRegExp"),a=e("postcss"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="property-whitelist",p=l(f,{rejected:e=>`Unexpected property "${e}"`}),d=function(e){return(t,r)=>{c(r,f,{actual:e,possible:[n.isString]})&&t.walkDecls(t=>{const n=t.prop;o(n)&&(i(n)||s(a.vendor.unprefixed(n),e)||u({message:p.rejected(n),node:t,result:r,ruleName:f}))})}};d.primaryOptionArray=!0,d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/isCustomProperty":555,"../../utils/isStandardSyntaxProperty":570,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],460:[function(e,t,r){"use strict";const n=e("../../utils/addEmptyLineBefore"),i=e("../../utils/hasEmptyLine"),o=e("../../utils/isSingleLineString"),s=e("../../utils/isStandardSyntaxRule"),a=e("../../utils/optionsMatches"),u=e("../../utils/removeEmptyLinesBefore"),l=e("../../utils/report"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p="rule-empty-line-before",d=c(p,{expected:"Expected empty line before rule",rejected:"Unexpected empty line before rule"}),h=function(e,t,r){return(c,h)=>{f(h,p,{actual:e,possible:["always","never","always-multi-line","never-multi-line"]},{actual:t,possible:{ignore:["after-comment","inside-block"],except:["after-rule","after-single-line-comment","first-nested","inside-block-and-after-rule"]},optional:!0})&&c.walkRules(f=>{if(!s(f))return;if(f===c.first)return;let m=-1!==e.indexOf("always");if(a(t,"ignore","after-comment")&&f.prev()&&"comment"===f.prev().type)return;if(a(t,"ignore","inside-block")&&f.parent!==c)return;if(-1!==e.indexOf("multi-line")&&o(f.toString()))return;if(a(t,"except","first-nested")&&f===f.parent.first&&(m=!m),a(t,"except","after-rule")&&f.prev()&&"rule"===f.prev().type&&(m=!m),a(t,"except","inside-block-and-after-rule")&&f.prev()&&"rule"===f.prev().type&&f.parent!==c&&(m=!m),a(t,"except","after-single-line-comment")&&f.prev()&&"comment"===f.prev().type&&o(f.prev().toString())&&(m=!m),m===i(f.raws.before))return;if(r.fix)return void(m?n(f,r.newline):u(f,r.newline));const g=m?d.expected:d.rejected;l({message:g,node:f,result:h,ruleName:p})})}};h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/addEmptyLineBefore":517,"../../utils/hasEmptyLine":541,"../../utils/isSingleLineString":565,"../../utils/isStandardSyntaxRule":571,"../../utils/optionsMatches":583,"../../utils/removeEmptyLinesBefore":586,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],461:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/parseSelector"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("style-search"),u=e("../../utils/validateOptions"),l="selector-attribute-brackets-space-inside",c=s(l,{expectedOpening:'Expected single space after "["',rejectedOpening:'Unexpected whitespace after "["',expectedClosing:'Expected single space before "]"',rejectedClosing:'Unexpected whitespace before "]"'}),f=function(e){return(t,r)=>{u(r,l,{actual:e,possible:["always","never"]})&&t.walkRules(t=>{function s(e,n){o({message:e,index:n,result:r,ruleName:l,node:t})}n(t)&&-1!==t.selector.indexOf("[")&&i(t.selector,r,t,t=>{t.walkAttributes(t=>{const r=t.toString();a({source:r,target:"["},n=>{const i=" "===r[n.startIndex+1],o=t.sourceIndex+n.startIndex+1;i&&"never"===e&&s(c.rejectedOpening,o),i||"always"!==e||s(c.expectedOpening,o)}),a({source:r,target:"]"},n=>{const i=" "===r[n.startIndex-1],o=t.sourceIndex+n.startIndex-1;i&&"never"===e&&s(c.rejectedClosing,o),i||"always"!==e||s(c.expectedClosing,o)})})})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/isStandardSyntaxRule":571,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"style-search":326}],462:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/parseSelector"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="selector-attribute-operator-blacklist",c=a(l,{rejected:e=>`Unexpected operator "${e}"`}),f=function(e){const t=[].concat(e);return(e,r)=>{u(r,l,{actual:t,possible:[n.isString]})&&e.walkRules(e=>{i(e)&&-1!==e.selector.indexOf("[")&&-1!==e.selector.indexOf("=")&&o(e.selector,r,e,n=>{n.walkAttributes(n=>{const i=n.operator;!i||i&&-1===t.indexOf(i)||s({message:c.rejected(i),node:e,index:n.attribute.length+1,result:r,ruleName:l})})})})}};f.primaryOptionArray=!0,f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/isStandardSyntaxRule":571,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],463:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../selectorAttributeOperatorSpaceChecker"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="selector-attribute-operator-space-after",u=n(a,{expectedAfter:e=>`Expected single space after "${e}"`,rejectedAfter:e=>`Unexpected whitespace after "${e}"`}),l=function(e){return(t,r)=>{const n=s("space",e,u);o(r,a,{actual:e,possible:["always","never"]})&&i({root:t,result:r,locationChecker:n.after,checkedRuleName:a,checkBeforeOperator:!1})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../selectorAttributeOperatorSpaceChecker":497}],464:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../selectorAttributeOperatorSpaceChecker"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="selector-attribute-operator-space-before",u=n(a,{expectedBefore:e=>`Expected single space before "${e}"`,rejectedBefore:e=>`Unexpected whitespace before "${e}"`}),l=function(e){const t=s("space",e,u);return(r,n)=>{o(n,a,{actual:e,possible:["always","never"]})&&i({root:r,result:n,locationChecker:t.before,checkedRuleName:a,checkBeforeOperator:!0})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../selectorAttributeOperatorSpaceChecker":497}],465:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/parseSelector"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="selector-attribute-operator-whitelist",c=a(l,{rejected:e=>`Unexpected operator "${e}"`}),f=function(e){const t=[].concat(e);return(e,r)=>{u(r,l,{actual:t,possible:[n.isString]})&&e.walkRules(e=>{i(e)&&-1!==e.selector.indexOf("[")&&-1!==e.selector.indexOf("=")&&o(e.selector,r,e,n=>{n.walkAttributes(n=>{const i=n.operator;!i||i&&-1!==t.indexOf(i)||s({message:c.rejected(i),node:e,index:n.attribute.length+1,result:r,ruleName:l})})})})}};f.primaryOptionArray=!0,f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/isStandardSyntaxRule":571,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],466:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/parseSelector"),o=e("../../utils/report"),s=e("../../utils/ruleMessages"),a=e("../../utils/validateOptions"),u="selector-attribute-quotes",l=s(u,{expected:e=>`Expected quotes around "${e}"`,rejected:e=>`Unexpected quotes around "${e}"`}),c=function(e){return(t,r)=>{a(r,u,{actual:e,possible:["always","never"]})&&t.walkRules(t=>{function s(e,n){o({message:e,index:n,result:r,ruleName:u,node:t})}n(t)&&-1!==t.selector.indexOf("[")&&-1!==t.selector.indexOf("=")&&i(t.selector,r,t,t=>{t.walkAttributes(t=>{if(!t.operator)return;const r=t.toString();t.quoted||"always"!==e||s(l.expected(t.raws.unquoted),t.sourceIndex+r.indexOf(t.value)),t.quoted&&"never"===e&&s(l.rejected(t.raws.unquoted),t.sourceIndex+r.indexOf(t.value))})})})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/isStandardSyntaxRule":571,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],467:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isKeyframeSelector"),o=e("../../utils/isStandardSyntaxRule"),s=e("../../utils/isStandardSyntaxSelector"),a=e("../../utils/parseSelector"),u=e("../../utils/report"),l=e("postcss-resolve-nested-selector"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p="selector-class-pattern",d=c(p,{expected:e=>`Expected class selector ".${e}" to match specified pattern`}),h=function(e,t){return(r,c)=>{if(!f(c,p,{actual:e,possible:[n.isRegExp,n.isString]},{actual:t,possible:{resolveNestedSelectors:n.isBoolean},optional:!0}))return;const h=n.get(t,"resolveNestedSelectors"),g=n.isString(e)?new RegExp(e):e;function y(e,t){e.walkClasses(e=>{const r=e.value,n=e.sourceIndex;g.test(r)||u({result:c,ruleName:p,message:d.expected(r),node:t,index:n})})}r.walkRules(e=>{const t=e.selector,r=e.selectors;o(e)&&s(t)&&(r.some(e=>i(e))||(h&&function(e){for(let t=0,r=e.length;t{s(t)&&a(t,c,e,t=>y(t,e))}):a(t,c,e,t=>y(t,e))))})}};function m(e){return/[\s+>~]/.test(e)}h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/isKeyframeSelector":560,"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-resolve-nested-selector":210}],468:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../selectorCombinatorSpaceChecker"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="selector-combinator-space-after",u=n(a,{expectedAfter:e=>`Expected single space after "${e}"`,rejectedAfter:e=>`Unexpected whitespace after "${e}"`}),l=function(e){const t=s("space",e,u);return(r,n)=>{o(n,a,{actual:e,possible:["always","never"]})&&i({root:r,result:n,locationChecker:t.after,locationType:"after",checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../selectorCombinatorSpaceChecker":498}],469:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../selectorCombinatorSpaceChecker"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="selector-combinator-space-before",u=n(a,{expectedBefore:e=>`Expected single space before "${e}"`,rejectedBefore:e=>`Unexpected whitespace before "${e}"`}),l=function(e){const t=s("space",e,u);return(r,n)=>{o(n,a,{actual:e,possible:["always","never"]})&&i({root:r,result:n,locationChecker:t.before,locationType:"before",checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../selectorCombinatorSpaceChecker":498}],470:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/parseSelector"),o=e("../../reference/punctuationSets"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="selector-descendant-combinator-no-non-space",c=a(l,{rejected:e=>`Unexpected "${e}"`}),f=function(e){return(t,r)=>{u(r,l,{actual:e})&&t.walkRules(e=>{if(!n(e))return;const t=e.selector;i(t,r,e,t=>{t.walkCombinators(t=>{const n=t.value;o.nonSpaceCombinators.has(n)||" "!==n&&s({result:r,ruleName:l,message:c.rejected(n),node:e,index:t.sourceIndex})})})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../reference/punctuationSets":345,"../../utils/isStandardSyntaxRule":571,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],471:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/isStandardSyntaxSelector"),s=e("../../utils/parseSelector"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="selector-id-pattern",f=u(c,{expected:e=>`Expected id selector "#${e}" to match specified pattern`}),p=function(e){return(t,r)=>{if(!l(r,c,{actual:e,possible:[n.isRegExp,n.isString]}))return;const u=n.isString(e)?new RegExp(e):e;t.walkRules(e=>{if(!i(e))return;const t=e.selector;o(t)&&s(t,r,e,t=>{t.walk(t=>{if("id"!==t.type)return;const n=t.value,i=t.sourceIndex;u.test(n)||a({result:r,ruleName:c,message:f.expected(n),node:e,index:i})})})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],472:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("style-search"),a=e("../../utils/validateOptions"),u=e("../../utils/whitespaceChecker"),l="selector-list-comma-newline-after",c=o(l,{expectedAfter:()=>'Expected newline after ","',expectedAfterMultiLine:()=>'Expected newline after "," in a multi-line list',rejectedAfterMultiLine:()=>'Unexpected whitespace after "," in a multi-line list'}),f=function(e){const t=u("newline",e,c);return(r,o)=>{a(o,l,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&r.walkRules(e=>{if(!n(e))return;const r=e.raws.selector?e.raws.selector.raw:e.selector;s({source:r,target:",",functionArguments:"skip"},n=>{const s=r.substr(n.endIndex,3);if(" //"===s)return;const a=" /*"===s?r.indexOf("*/",n.endIndex)+1:n.startIndex;t.afterOneOnly({source:r,index:a,err:t=>i({message:t,node:e,index:n.startIndex,result:o,ruleName:l})})})})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/isStandardSyntaxRule":571,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"style-search":326}],473:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../selectorListCommaWhitespaceChecker"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="selector-list-comma-newline-before",u=n(a,{expectedBefore:()=>'Expected newline before ","',expectedBeforeMultiLine:()=>'Expected newline before "," in a multi-line list',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "," in a multi-line list'}),l=function(e){const t=s("newline",e,u);return(r,n)=>{o(n,a,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&i({root:r,result:n,locationChecker:t.beforeAllowingIndentation,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../selectorListCommaWhitespaceChecker":499}],474:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../selectorListCommaWhitespaceChecker"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="selector-list-comma-space-after",u=n(a,{expectedAfter:()=>'Expected single space after ","',rejectedAfter:()=>'Unexpected whitespace after ","',expectedAfterSingleLine:()=>'Expected single space after "," in a single-line list',rejectedAfterSingleLine:()=>'Unexpected whitespace after "," in a single-line list'}),l=function(e){const t=s("space",e,u);return(r,n)=>{o(n,a,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&i({root:r,result:n,locationChecker:t.after,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../selectorListCommaWhitespaceChecker":499}],475:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../selectorListCommaWhitespaceChecker"),o=e("../../utils/validateOptions"),s=e("../../utils/whitespaceChecker"),a="selector-list-comma-space-before",u=n(a,{expectedBefore:()=>'Expected single space before ","',rejectedBefore:()=>'Unexpected whitespace before ","',expectedBeforeSingleLine:()=>'Expected single space before "," in a single-line list',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "," in a single-line list'}),l=function(e){const t=s("space",e,u);return(r,n)=>{o(n,a,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&i({root:r,result:n,locationChecker:t.before,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../selectorListCommaWhitespaceChecker":499}],476:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/isStandardSyntaxSelector"),s=e("../../utils/optionsMatches"),a=e("../../utils/parseSelector"),u=e("../../utils/report"),l=e("postcss-resolve-nested-selector"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p="selector-max-attribute",d=c(p,{expected:(e,t)=>`Expected "${e}" to have no more than ${t} attribute ${1===t?"selector":"selectors"}`});function h(e,t){return(r,c)=>{f(c,p,{actual:e,possible:[function(e){return"number"==typeof e&&e>=0}]},{actual:t,possible:{ignoreAttributes:[n.isString]},optional:!0})&&r.walkRules(r=>{i(r)&&o(r.selector)&&(r.nodes.some(e=>-1!==["rule","atrule"].indexOf(e.type))||r.selectors.forEach(n=>{l(n,r).forEach(n=>{a(n,c,r,n=>(function r(n,i){const o=n.reduce((e,n)=>("selector"!==n.type&&":not"!==n.value||r(n,i),"attribute"!==n.type?e:s(t,"ignoreAttributes",n.attribute)?e:e+1),0);"root"!==n.type&&"pseudo"!==n.type&&o>e&&u({ruleName:p,result:c,node:i,message:d.expected(n,e),word:n})})(n,r))})}))})}}h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/optionsMatches":583,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-resolve-nested-selector":210}],477:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/isStandardSyntaxSelector"),o=e("../../utils/parseSelector"),s=e("../../utils/report"),a=e("postcss-resolve-nested-selector"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="selector-max-class",f=u(c,{expected:(e,t)=>`Expected "${e}" to have no more than ${t} ${1===t?"class":"classes"}`});function p(e){return(t,r)=>{l(r,c,{actual:e,possible:[function(e){return"number"==typeof e&&e>=0}]})&&t.walkRules(t=>{n(t)&&i(t.selector)&&(t.nodes.some(e=>-1!==["rule","atrule"].indexOf(e.type))||t.selectors.forEach(n=>{a(n,t).forEach(n=>{o(n,r,t,n=>(function t(n,i){const o=n.reduce((e,r)=>("selector"!==r.type&&":not"!==r.value||t(r,i),e+("class"===r.type?1:0)),0);"root"!==n.type&&"pseudo"!==n.type&&o>e&&s({ruleName:c,result:r,node:i,message:f.expected(n,e),word:n})})(n,t))})}))})}}p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-resolve-nested-selector":210}],478:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/isStandardSyntaxSelector"),o=e("../../utils/parseSelector"),s=e("../../utils/report"),a=e("postcss-resolve-nested-selector"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="selector-max-combinators",f=u(c,{expected:(e,t)=>`Expected "${e}" to have no more than ${t} ${1===t?"combinator":"combinators"}`});function p(e){return(t,r)=>{l(r,c,{actual:e,possible:[function(e){return"number"==typeof e&&e>=0}]})&&t.walkRules(t=>{n(t)&&i(t.selector)&&(t.nodes.some(e=>-1!==["rule","atrule"].indexOf(e.type))||t.selectors.forEach(n=>{a(n,t).forEach(n=>{o(n,r,t,n=>(function t(n,i){const o=n.reduce((e,r)=>("selector"===r.type&&t(r,i),e+("combinator"===r.type?1:0)),0);"root"!==n.type&&"pseudo"!==n.type&&o>e&&s({ruleName:c,result:r,node:i,message:f.expected(n,e),word:n})})(n,t))})}))})}}p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-resolve-nested-selector":210}],479:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/isStandardSyntaxSelector"),o=e("../../utils/parseSelector"),s=e("../../utils/report"),a=e("postcss-resolve-nested-selector"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="selector-max-compound-selectors",f=u(c,{expected:(e,t)=>`Expected "${e}" to have no more than ${t} compound ${1===t?"selector":"selectors"}`}),p=function(e){return(t,r)=>{l(r,c,{actual:e,possible:[function(e){return"number"==typeof e&&e>0}]})&&t.walkRules(t=>{n(t)&&i(t.selector)&&t.selectors.forEach(n=>{a(n,t).forEach(n=>{o(n,r,t,n=>(function t(n,i){let o=1;n.each(e=>{"selector"!==e.type&&":not"!==e.value||t(e,i),"combinator"===e.type&&o++}),"root"!==n.type&&"pseudo"!==n.type&&o>e&&s({ruleName:c,result:r,node:i,message:f.expected(n,e),word:n})})(n,t))})})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-resolve-nested-selector":210}],480:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("style-search"),a=e("../../utils/validateOptions"),u="selector-max-empty-lines",l=o(u,{expected:e=>`Expected no more than ${e} empty ${1===e?"line":"lines"}`}),c=function(e){const t=e+1;return(r,o)=>{a(o,u,{actual:e,possible:n.isNumber})&&r.walkRules(r=>{const a=r.raws.selector?r.raws.selector.raw:r.selector,c=n.repeat("\n",t),f=n.repeat("\r\n",t);s({source:a,target:"\n"},n=>{if(a.substr(n.startIndex+1,t)===c||a.substr(n.startIndex+1,2*t)===f){let t=n.startIndex;"\r"===a[t-1]&&(t-=1),i({message:l.expected(e),node:r,index:t,result:o,ruleName:u})}})})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"style-search":326}],481:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/isStandardSyntaxSelector"),o=e("../../utils/parseSelector"),s=e("../../utils/report"),a=e("postcss-resolve-nested-selector"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="selector-max-id",f=u(c,{expected:(e,t)=>`Expected "${e}" to have no more than ${t} id ${1===t?"selector":"selectors"}`});function p(e){return(t,r)=>{l(r,c,{actual:e,possible:[function(e){return"number"==typeof e&&e>=0}]})&&t.walkRules(t=>{n(t)&&i(t.selector)&&(t.nodes.some(e=>-1!==["rule","atrule"].indexOf(e.type))||t.selectors.forEach(n=>{a(n,t).forEach(n=>{o(n,r,t,n=>(function t(n,i){const o=n.reduce((e,r)=>("selector"!==r.type&&":not"!==r.value||t(r,i),e+("id"===r.type?1:0)),0);"root"!==n.type&&"pseudo"!==n.type&&o>e&&s({ruleName:c,result:r,node:i,message:f.expected(n,e),word:n})})(n,t))})}))})}}p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-resolve-nested-selector":210}],482:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/isStandardSyntaxSelector"),o=e("../../utils/report"),s=e("postcss-resolve-nested-selector"),a=e("../../utils/ruleMessages"),u=e("specificity"),l=e("../../utils/validateOptions"),c="selector-max-specificity",f=a(c,{expected:(e,t)=>`Expected "${e}" to have a specificity no more than "${t}"`}),p=function(e){return(t,r)=>{if(!l(r,c,{actual:e,possible:[function(e){return new RegExp("^\\d+,\\d+,\\d+$").test(e)}]}))return;const a=("0,"+e).split(",").map(parseFloat);t.walkRules(t=>{n(t)&&i(t.selector)&&t.selectors.forEach(n=>{s(n,t).forEach(s=>{if(-1===n.indexOf(":not(")&&-1===n.indexOf(":matches("))try{if(!i(s))return;1===u.compare(s,a)&&o({ruleName:c,result:r,node:t,message:f.expected(s,e),word:n})}catch(e){r.warn("Cannot parse selector",{node:t,stylelintType:"parseError"})}})})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-resolve-nested-selector":210,specificity:322}],483:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isKeyframeSelector"),o=e("../../utils/isOnlyWhitespace"),s=e("../../utils/isStandardSyntaxRule"),a=e("../../utils/isStandardSyntaxSelector"),u=e("../../utils/optionsMatches"),l=e("../../utils/parseSelector"),c=e("../../utils/report"),f=e("postcss-resolve-nested-selector"),p=e("../../utils/ruleMessages"),d=e("../../utils/validateOptions"),h="selector-max-type",m=p(h,{expected:(e,t)=>`Expected "${e}" to have no more than ${t} type ${1===t?"selector":"selectors"}`});function g(e,t){return(r,o)=>{if(!d(o,h,{actual:e,possible:e=>"number"==typeof e&&e>=0},{actual:t,possible:{ignore:["descendant","child","compounded"],ignoreTypes:[n.isString]},optional:!0}))return;const p=u(t,"ignore","descendant"),g=u(t,"ignore","child"),w=u(t,"ignore","compounded");function x(r,n){const i=r.reduce((e,r)=>("selector"!==r.type&&":not"!==r.value||x(r,n),u(t,"ignoreTypes",r.value)?e:p&&function(e){const t=e.parent.nodes.indexOf(e);return e.parent.nodes.slice(0,t).some(v)}(r)?e:g&&function(e){const t=e.parent.nodes.indexOf(e);return e.parent.nodes.slice(0,t).some(b)}(r)?e:w&&function(e){if(e.prev()&&!y(e.prev()))return!0;if(e.next()&&!y(e.next()))return!0;return!1}(r)?e:e+("tag"===r.type?1:0)),0);"root"!==r.type&&"pseudo"!==r.type&&i>e&&c({ruleName:h,result:o,node:n,message:m.expected(r,e),word:r})}r.walkRules(e=>{const t=e.selector,r=e.selectors;s(e)&&a(t)&&(r.some(e=>i(e))||e.nodes.some(e=>-1!==["rule","atrule"].indexOf(e.type))||e.selectors.forEach(t=>{f(t,e).forEach(t=>{a(t)&&l(t,o,e,t=>x(t,e))})}))})}}function y(e){return!!e&&"combinator"===n.get(e,"type")}function v(e){return!!e&&(y(e)&&o(e.value))}function b(e){return!!e&&(y(e)&&e.value.includes(">"))}g.ruleName=h,g.messages=m,t.exports=g},{"../../utils/isKeyframeSelector":560,"../../utils/isOnlyWhitespace":562,"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/optionsMatches":583,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-resolve-nested-selector":210}],484:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/isStandardSyntaxSelector"),o=e("../../utils/parseSelector"),s=e("../../utils/report"),a=e("postcss-resolve-nested-selector"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="selector-max-universal",f=u(c,{expected:(e,t)=>`Expected "${e}" to have no more than ${t} universal ${1===t?"selector":"selectors"}`});function p(e){return(t,r)=>{l(r,c,{actual:e,possible:[function(e){return"number"==typeof e&&e>=0}]})&&t.walkRules(t=>{n(t)&&i(t.selector)&&(t.nodes.some(e=>-1!==["rule","atrule"].indexOf(e.type))||t.selectors.forEach(n=>{a(n,t).forEach(n=>{o(n,r,t,n=>(function t(n,i){const o=n.reduce((e,r)=>("selector"!==r.type&&":not"!==r.value||t(r,i),e+("universal"===r.type?1:0)),0);"root"!==n.type&&"pseudo"!==n.type&&o>e&&s({ruleName:c,result:r,node:i,message:f.expected(n,e),word:n})})(n,t))})}))})}}p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-resolve-nested-selector":210}],485:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/isStandardSyntaxSelector"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l="selector-nested-pattern",c=a(l,{expected:e=>`Expected nested selector "${e}" to match specified pattern`}),f=function(e){return(t,r)=>{if(!u(r,l,{actual:e,possible:[n.isRegExp,n.isString]}))return;const a=n.isString(e)?new RegExp(e):e;t.walkRules(e=>{if("rule"!==e.parent.type)return;if(!i(e))return;const t=e.selector;o(t)&&(a.test(t)||s({result:r,ruleName:l,message:c.expected(t),node:e}))})}};f.ruleName=l,f.messages=c,t.exports=f},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125}],486:[function(e,t,r){"use strict";const n=e("../../utils/isKeyframeRule"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/isStandardSyntaxSelector"),s=e("../../utils/optionsMatches"),a=e("../../utils/parseSelector"),u=e("../../utils/report"),l=e("postcss-resolve-nested-selector"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p="selector-no-qualifying-type",d=c(p,{rejected:"Unexpected qualifying type selector"}),h=["#",".","["];const m=function(e,t){return(r,c)=>{f(c,p,{actual:e,possible:[!0,!1]},{actual:t,possible:{ignore:["attribute","class","id"]},optional:!0})&&r.walkRules(e=>{function r(e){e.walkTags(e=>{if(1===e.parent.nodes.length)return;const r=function(e){const t=[];let r=e;for(;(r=r.next())&&"combinator"!==r.type;)"id"!==r.type&&"class"!==r.type&&"attribute"!==r.type||t.push(r);return t}(e),n=e.sourceIndex;r.forEach(e=>{"id"!==e.type||s(t,"ignore","id")||f(n),"class"!==e.type||s(t,"ignore","class")||f(n),"attribute"!==e.type||s(t,"ignore","attribute")||f(n)})})}function f(t){u({ruleName:p,result:c,node:e,message:d.rejected,index:t})}i(e)&&(n(e)||o(e.selector)&&function(e){return h.some(t=>-1!==e.indexOf(t))}(e.selector)&&l(e.selector,e).forEach(t=>{o(t)&&a(t,c,e,r)}))})}};m.ruleName=p,m.messages=d,t.exports=m},{"../../utils/isKeyframeRule":559,"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/optionsMatches":583,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-resolve-nested-selector":210}],487:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/isStandardSyntaxSelector"),s=e("../../utils/matchesStringOrRegExp"),a=e("../../utils/parseSelector"),u=e("postcss"),l=e("../../utils/report"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p="selector-pseudo-class-blacklist",d=c(p,{rejected:e=>`Unexpected pseudo-class "${e}"`}),h=function(e){return(t,r)=>{f(r,p,{actual:e,possible:[n.isString]})&&t.walkRules(t=>{if(!i(t))return;const n=t.selector;o(n)&&-1!==n.indexOf(":")&&a(n,r,t,n=>{n.walkPseudos(n=>{const i=n.value;if("::"===i.slice(0,2))return;const o=i.slice(1);s(u.vendor.unprefixed(o),e)&&l({index:n.sourceIndex,message:d.rejected(o),node:t,result:r,ruleName:p})})})})}};h.primaryOptionArray=!0,h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/matchesStringOrRegExp":580,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],488:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/isStandardSyntaxSelector"),o=e("../../reference/keywordSets"),s=e("../../utils/parseSelector"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="selector-pseudo-class-case",f=u(c,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),p=function(e){return(t,r)=>{l(r,c,{actual:e,possible:["lower","upper"]})&&t.walkRules(t=>{if(!n(t))return;const u=t.selector;-1!==u.indexOf(":")&&s(u,r,t,n=>{n.walkPseudos(n=>{const s=n.value;if(!i(s))return;if(-1!==s.indexOf("::")||o.levelOneAndTwoPseudoElements.has(s.toLowerCase().slice(1)))return;const u="lower"===e?s.toLowerCase():s.toUpperCase();s!==u&&a({message:f.expected(s,u),node:t,index:n.sourceIndex,ruleName:c,result:r})})})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../reference/keywordSets":342,"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],489:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/isCustomSelector"),s=e("../../utils/isStandardSyntaxAtRule"),a=e("../../utils/isStandardSyntaxRule"),u=e("../../utils/isStandardSyntaxSelector"),l=e("../../reference/keywordSets"),c=e("../../utils/optionsMatches"),f=e("../../utils/parseSelector"),p=e("postcss"),d=e("../../utils/report"),h=e("../../utils/ruleMessages"),m=e("../../utils/validateOptions"),g="selector-pseudo-class-no-unknown",y=h(g,{rejected:e=>`Unexpected unknown pseudo-class selector "${e}"`}),v=function(e,t){return(r,h)=>{m(h,g,{actual:e},{actual:t,possible:{ignorePseudoClasses:[n.isString]},optional:!0})&&r.walk(e=>{let r=null;if("rule"===e.type){if(!a(e))return;r=e.selector}else if("atrule"===e.type&&"page"===e.name&&e.params){if(!s(e))return;r=e.params}r&&-1!==r.indexOf(":")&&function(e,r,n){f(e,r,n,e=>{e.walkPseudos(e=>{const s=e.value;if(!u(s))return;if(o(s))return;if("::"===s.slice(0,2))return;if(c(t,"ignorePseudoClasses",e.value.slice(1)))return;let a=null;const f=s.slice(1).toLowerCase();if("atrule"===n.type&&"page"===n.name){if(l.atRulePagePseudoClasses.has(f))return;a=i(n)+e.sourceIndex}else{if(p.vendor.prefix(f)||l.pseudoClasses.has(f)||l.pseudoElements.has(f))return;if(e.prev()){const t=p.vendor.unprefixed(e.prev().value.toLowerCase().slice(2));if(l.webkitProprietaryPseudoElements.has(t)&&l.webkitProprietaryPseudoClasses.has(f))return}a=e.sourceIndex}d({message:y.rejected(s),node:n,index:a,ruleName:g,result:r})})})}(r,h,e)})}};v.ruleName=g,v.messages=y,t.exports=v},{"../../reference/keywordSets":342,"../../utils/atRuleParamIndex":518,"../../utils/isCustomSelector":557,"../../utils/isStandardSyntaxAtRule":566,"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/optionsMatches":583,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],490:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/parseSelector"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("style-search"),l=e("../../utils/validateOptions"),c="selector-pseudo-class-parentheses-space-inside",f=a(c,{expectedOpening:'Expected single space after "("',rejectedOpening:'Unexpected whitespace after "("',expectedClosing:'Expected single space before ")"',rejectedClosing:'Unexpected whitespace before ")"'}),p=function(e){return(t,r)=>{l(r,c,{actual:e,possible:["always","never"]})&&t.walkRules(t=>{function a(e,n){s({message:e,index:n,result:r,ruleName:c,node:t})}i(t)&&-1!==t.selector.indexOf("(")&&o(t.selector,r,t,t=>{t.walkPseudos(t=>{if("pseudo"===n.get(t,"parent.parent.type"))return;const r=t.toString();u({source:r,target:"("},n=>{const i=" "===r[n.startIndex+1],o=t.sourceIndex+n.startIndex+1;i&&"never"===e&&a(f.rejectedOpening,o),i||"always"!==e||a(f.expectedOpening,o)}),u({source:r,target:")"},n=>{const i=" "===r[n.startIndex-1],o=t.sourceIndex+n.startIndex-1;i&&"never"===e&&a(f.rejectedClosing,o),i||"always"!==e||a(f.expectedClosing,o)})})})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/isStandardSyntaxRule":571,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"style-search":326}],491:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/isStandardSyntaxSelector"),s=e("../../utils/matchesStringOrRegExp"),a=e("../../utils/parseSelector"),u=e("postcss"),l=e("../../utils/report"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p="selector-pseudo-class-whitelist",d=c(p,{rejected:e=>`Unexpected pseudo-class "${e}"`}),h=function(e){return(t,r)=>{f(r,p,{actual:e,possible:[n.isString]})&&t.walkRules(t=>{if(!i(t))return;const n=t.selector;o(n)&&-1!==n.indexOf(":")&&a(n,r,t,n=>{n.walkPseudos(n=>{const i=n.value;if("::"===i.slice(0,2))return;const o=i.slice(1);s(u.vendor.unprefixed(o),e)||l({index:n.sourceIndex,message:d.rejected(o),node:t,result:r,ruleName:p})})})})}};h.primaryOptionArray=!0,h.ruleName=p,h.messages=d,t.exports=h},{"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/matchesStringOrRegExp":580,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],492:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxRule"),i=e("../../utils/isStandardSyntaxSelector"),o=e("../../reference/keywordSets"),s=e("../../utils/parseSelector"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c="selector-pseudo-element-case",f=u(c,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),p=function(e){return(t,r)=>{l(r,c,{actual:e,possible:["lower","upper"]})&&t.walkRules(t=>{if(!n(t))return;const u=t.selector;-1!==u.indexOf(":")&&s(u,r,t,n=>{n.walkPseudos(n=>{const s=n.value;if(!i(s))return;if(-1===s.indexOf("::")&&!o.levelOneAndTwoPseudoElements.has(s.toLowerCase().slice(1)))return;const u="lower"===e?s.toLowerCase():s.toUpperCase();s!==u&&a({message:f.expected(s,u),node:t,index:n.sourceIndex,ruleName:c,result:r})})})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../reference/keywordSets":342,"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],493:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../reference/keywordSets"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("style-search"),l=e("../../utils/validateOptions"),c="selector-pseudo-element-colon-notation",f=a(c,{expected:e=>`Expected ${e} colon pseudo-element notation`}),p=function(e){return(t,r)=>{l(r,c,{actual:e,possible:["single","double"]})&&t.walkRules(t=>{if(!i(t))return;const a=t.selector;if(-1===a.indexOf(":"))return;const l=n.toArray(o.levelOneAndTwoPseudoElements).map(e=>`:${e}`);u({source:a.toLowerCase(),target:l},n=>{const i=":"===a[n.startIndex-1];("single"!==e||i)&&("double"===e&&i||s({message:f.expected(e),node:t,index:n.startIndex,result:r,ruleName:c}))})})}};p.ruleName=c,p.messages=f,t.exports=p},{"../../reference/keywordSets":342,"../../utils/isStandardSyntaxRule":571,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"style-search":326}],494:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/isStandardSyntaxSelector"),s=e("../../reference/keywordSets"),a=e("../../utils/optionsMatches"),u=e("../../utils/parseSelector"),l=e("postcss"),c=e("../../utils/report"),f=e("../../utils/ruleMessages"),p=e("../../utils/validateOptions"),d="selector-pseudo-element-no-unknown",h=f(d,{rejected:e=>`Unexpected unknown pseudo-element selector "${e}"`}),m=function(e,t){return(r,f)=>{p(f,d,{actual:e},{actual:t,possible:{ignorePseudoElements:[n.isString]},optional:!0})&&r.walkRules(e=>{if(!i(e))return;const r=e.selector;-1!==r.indexOf(":")&&u(r,f,e,r=>{r.walkPseudos(r=>{const n=r.value;if(!o(n))return;if("::"!==n.slice(0,2))return;if(a(t,"ignorePseudoElements",r.value.slice(2)))return;const i=n.slice(2);l.vendor.prefix(i)||s.pseudoElements.has(i.toLowerCase())||c({message:h.rejected(n),node:e,index:r.sourceIndex,ruleName:d,result:f})})})})}};m.ruleName=d,m.messages=h,t.exports=m},{"../../reference/keywordSets":342,"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/optionsMatches":583,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256}],495:[function(e,t,r){"use strict";const n=e("../../utils/isKeyframeSelector"),i=e("../../utils/isStandardSyntaxRule"),o=e("../../utils/isStandardSyntaxSelector"),s=e("../../utils/isStandardSyntaxTypeSelector"),a=e("../../utils/parseSelector"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateOptions"),f="selector-type-case",p=l(f,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),d=function(e){return(t,r)=>{c(r,f,{actual:e,possible:["lower","upper"]})&&t.walkRules(t=>{const l=t.selector,c=t.selectors;i(t)&&o(l)&&(c.some(e=>n(e))||a(l,r,t,n=>{n.walkTags(n=>{if(!s(n))return;const i=n.sourceIndex,o=n.value,a="lower"===e?o.toLowerCase():o.toUpperCase();o!==a&&u({message:p.expected(o,a),node:t,index:i,ruleName:f,result:r})})}))})}};d.ruleName=f,d.messages=p,t.exports=d},{"../../utils/isKeyframeSelector":560,"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/isStandardSyntaxTypeSelector":573,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590}],496:[function(e,t,r){"use strict";const n=e("lodash"),i=e("html-tags"),o=e("../../utils/isCustomElement"),s=e("../../utils/isKeyframeSelector"),a=e("../../utils/isStandardSyntaxRule"),u=e("../../utils/isStandardSyntaxSelector"),l=e("../../utils/isStandardSyntaxTypeSelector"),c=e("../../reference/keywordSets"),f=e("mathml-tag-names"),p=e("../../utils/optionsMatches"),d=e("../../utils/parseSelector"),h=e("../../utils/report"),m=e("../../utils/ruleMessages"),g=e("svg-tags"),y=e("../../utils/validateOptions"),v="selector-type-no-unknown",b=m(v,{rejected:e=>`Unexpected unknown type selector "${e}"`}),w=function(e,t){return(r,m)=>{y(m,v,{actual:e},{actual:t,possible:{ignore:["custom-elements","default-namespace"],ignoreNamespaces:[n.isString],ignoreTypes:[n.isString]},optional:!0})&&r.walkRules(e=>{const r=e.selector,n=e.selectors;a(e)&&u(r)&&(n.some(e=>s(e))||d(r,m,e,r=>{r.walkTags(r=>{if(!l(r))return;if(p(t,"ignore","custom-elements")&&o(r.value))return;if(p(t,"ignore","default-namespace")&&!r.hasOwnProperty("namespace"))return;if(p(t,"ignoreNamespaces",r.namespace))return;if(p(t,"ignoreTypes",r.value))return;const n=r.value,s=n.toLowerCase();-1!==i.indexOf(s)||-1!==g.indexOf(s)||c.nonStandardHtmlTags.has(s)||-1!==f.indexOf(s)||h({message:b.rejected(n),node:e,index:r.sourceIndex,ruleName:v,result:m})})}))})}};w.ruleName=v,w.messages=b,t.exports=w},{"../../reference/keywordSets":342,"../../utils/isCustomElement":553,"../../utils/isKeyframeSelector":560,"../../utils/isStandardSyntaxRule":571,"../../utils/isStandardSyntaxSelector":572,"../../utils/isStandardSyntaxTypeSelector":573,"../../utils/optionsMatches":583,"../../utils/parseSelector":584,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"html-tags":66,lodash:125,"mathml-tag-names":127,"svg-tags":602}],497:[function(e,t,r){"use strict";const n=e("../utils/isStandardSyntaxRule"),i=e("../utils/parseSelector"),o=e("../utils/report"),s=e("style-search");t.exports=function(e){e.root.walkRules(t=>{n(t)&&-1!==t.selector.indexOf("[")&&-1!==t.selector.indexOf("=")&&i(t.selector,e.result,t,r=>{r.walkAttributes(r=>{const n=r.operator;if(!n)return;const i=r.toString();s({source:i,target:n},s=>{const a=e.checkBeforeOperator?s.startIndex:s.endIndex-1;!function(t,r,n,i,s){e.locationChecker({source:t,index:r,err:t=>o({message:t.replace(e.checkBeforeOperator?s[0]:s[s.length-1],s),node:n,index:i+r,result:e.result,ruleName:e.checkedRuleName})})}(i,a,t,r.sourceIndex,n)})})})})}},{"../utils/isStandardSyntaxRule":571,"../utils/parseSelector":584,"../utils/report":587,"style-search":326}],498:[function(e,t,r){"use strict";const n=e("../utils/isStandardSyntaxRule"),i=e("../utils/parseSelector"),o=e("../utils/report");t.exports=function(e){e.root.walkRules(t=>{n(t)&&t.selectors.forEach(r=>{i(r,e.result,t,n=>{n.walkCombinators(n=>{if(/\s/.test(n.value))return;const i=n.parent&&n.parent.parent;if(i&&"pseudo"===i.type)return;const s=n.sourceIndex,a=n.value.length>1&&"before"===e.locationType?s:s+n.value.length-1;!function(t,r,n,i,s){e.locationChecker({source:t,index:n,errTarget:r,err:t=>o({message:t,node:i,index:s,result:e.result,ruleName:e.checkedRuleName})})}(r,n.value,a,t,s)})})})})}},{"../utils/isStandardSyntaxRule":571,"../utils/parseSelector":584,"../utils/report":587}],499:[function(e,t,r){"use strict";const n=e("../utils/isStandardSyntaxRule"),i=e("../utils/report"),o=e("style-search");t.exports=function(e){e.root.walkRules(t=>{if(!n(t))return;const r=t.selector;o({source:r,target:",",functionArguments:"skip"},n=>{!function(t,r,n){e.locationChecker({source:t,index:r,err:t=>i({message:t,node:n,index:r,result:e.result,ruleName:e.checkedRuleName})})}(r,n.startIndex,t)})})}},{"../utils/isStandardSyntaxRule":571,"../utils/report":587,"style-search":326}],500:[function(e,t,r){"use strict";const n=e("../../utils/isStandardSyntaxDeclaration"),i=e("../../utils/isStandardSyntaxProperty"),o=e("postcss"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l=e("postcss-value-parser"),c="shorthand-property-no-redundant-values",f=a(c,{rejected:(e,t)=>`Unexpected longhand value '${e}' instead of '${t}'`}),p=new Set(["margin","padding","border-color","border-radius","border-style","border-width","grid-gap"]),d=["+","-","*","/","(",")","$","@","--","var("];const h=function(e){return(t,r)=>{u(r,c,{actual:e})&&t.walkDecls(e=>{if(!n(e)||!i(e.prop))return;const t=e.prop,a=e.value,u=o.vendor.unprefixed(t.toLowerCase());if(function(e){return d.some(t=>-1!==e.indexOf(t))}(a)||!p.has(u))return;const h=[];if(l(a).walk(e=>{"word"===e.type&&h.push(l.stringify(e))}),h.length<=1||h.length>4)return;const m=function(e,t){const r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=e.toLowerCase(),o=t.toLowerCase(),s=r&&r.toLowerCase(),a=n&&n.toLowerCase();return function(e,t,r,n){return e===t&&(e===r&&(r===n||!n)||!r&&!n)}(i,o,s,a)?[e]:function(e,t,r,n){return e===r&&t===n||e===r&&!n&&e!==t}(i,o,s,a)?[e,t]:function(e,t,r,n){return t===n}(0,o,0,a)?[e,t,r]:[e,t,r,n]}.apply(void 0,h).filter(e=>e).join(" "),g=h.join(" ");m.toLowerCase()!==g.toLowerCase()&&s({message:f.rejected(a,m),node:e,result:r,ruleName:c})})}};h.ruleName=c,h.messages=f,t.exports=h},{"../../utils/isStandardSyntaxDeclaration":567,"../../utils/isStandardSyntaxProperty":570,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,postcss:256,"postcss-value-parser":239}],501:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("style-search"),s=e("../../utils/validateOptions"),a="string-no-newline",u=i(a,{rejected:"Unexpected newline in string"}),l=function(e){return(t,r)=>{if(!s(r,a,{actual:e}))return;const i=t.toString();o({source:i,target:"\n",strings:"only"},e=>{const o=i[e.startIndex-1];let s=e.startIndex;"\\"!==o&&("\r"===o&&(s-=1),n({message:u.rejected,node:t,index:s,result:r,ruleName:a}))})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"style-search":326}],502:[function(e,t,r){"use strict";const n=e("../../utils/report"),i=e("../../utils/ruleMessages"),o=e("style-search"),s=e("../../utils/validateOptions"),a="string-quotes",u=i(a,{expected:e=>`Expected ${e} quotes`}),l=function(e){const t="single"===e?'"':"'";return(r,i)=>{if(!s(i,a,{actual:e,possible:["single","double"]}))return;const l=r.toString();o({source:l,target:t},t=>{n({message:u.expected(e),node:r,index:t.startIndex,result:i,ruleName:a})})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"style-search":326}],503:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/declarationValueIndex"),o=e("../../reference/keywordSets"),s=e("postcss"),a=e("../../utils/report"),u=e("../../utils/ruleMessages"),l=e("../../utils/validateOptions"),c=e("postcss-value-parser"),f="time-min-milliseconds",p=u(f,{expected:e=>`Expected a minimum of ${e} milliseconds`}),d=function(e){return(t,r)=>{function u(t){const r=c.unit(t);return!r||(r.number<=0||!("ms"===r.unit.toLowerCase()&&r.number{const t=s.vendor.unprefixed(e.prop.toLowerCase());if(o.longhandTimeProperties.has(t)&&!u(e.value)&&d(e),o.shorthandTimeProperties.has(t)){const t=s.list.space(e.value);for(const r of t)u(r)||d(e,e.value.indexOf(r))}})}};d.ruleName=f,d.messages=p,t.exports=d},{"../../reference/keywordSets":342,"../../utils/declarationValueIndex":527,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,postcss:256,"postcss-value-parser":239}],504:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/declarationValueIndex"),s=e("../../utils/getUnitFromValueNode"),a=e("../../utils/optionsMatches"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateObjectWithStringArrayProps"),f=e("../../utils/validateOptions"),p=e("postcss-value-parser"),d="unit-blacklist",h=l(d,{rejected:e=>`Unexpected unit "${e}"`}),m=function(e,t){const r=[].concat(e);return(e,l)=>{function m(e,n,i){p(n).walk(function(n){if("function"===n.type&&"url"===n.value.toLowerCase())return!1;const o=s(n);!o||o&&-1===r.indexOf(o.toLowerCase())||t&&a(t.ignoreProperties,o.toLowerCase(),e.prop)||u({index:i(e)+n.sourceIndex,message:h.rejected(o),node:e,result:l,ruleName:d})})}f(l,d,{actual:r,possible:[n.isString]},{optional:!0,actual:t,possible:{ignoreProperties:c}})&&(e.walkAtRules(/^media$/i,e=>m(e,e.params,i)),e.walkDecls(e=>m(e,e.value,o)))}};m.primaryOptionArray=!0,m.ruleName=d,m.messages=h,t.exports=m},{"../../utils/atRuleParamIndex":518,"../../utils/declarationValueIndex":527,"../../utils/getUnitFromValueNode":538,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateObjectWithStringArrayProps":589,"../../utils/validateOptions":590,lodash:125,"postcss-value-parser":239}],505:[function(e,t,r){"use strict";const n=e("../../utils/atRuleParamIndex"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/getUnitFromValueNode"),s=e("../../utils/report"),a=e("../../utils/ruleMessages"),u=e("../../utils/validateOptions"),l=e("postcss-value-parser"),c="unit-case",f=a(c,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),p=function(e){return(t,r)=>{function a(t,n,i){l(n).walk(n=>{if("function"===n.type&&"url"===n.value.toLowerCase())return!1;const a=o(n);if(!a)return;const u="lower"===e?a.toLowerCase():a.toUpperCase();a!==u&&s({index:i(t)+n.sourceIndex,message:f.expected(a,u),node:t,result:r,ruleName:c})})}u(r,c,{actual:e,possible:["lower","upper"]})&&(t.walkAtRules(/^media$/i,e=>a(e,e.params,n)),t.walkDecls(e=>a(e,e.value,i)))}};p.ruleName=c,p.messages=f,t.exports=p},{"../../utils/atRuleParamIndex":518,"../../utils/declarationValueIndex":527,"../../utils/getUnitFromValueNode":538,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"postcss-value-parser":239}],506:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/declarationValueIndex"),s=e("../../utils/getUnitFromValueNode"),a=e("../../reference/keywordSets"),u=e("../../utils/optionsMatches"),l=e("../../utils/report"),c=e("../../utils/ruleMessages"),f=e("../../utils/validateOptions"),p=e("postcss-value-parser"),d="unit-no-unknown",h=c(d,{rejected:e=>`Unexpected unknown unit "${e}"`}),m=function(e,t){return(r,c)=>{function m(e,r,n){p(r).walk(function(r){if("function"===r.type&&"url"===r.value.toLowerCase())return!1;const i=s(r);i&&(u(t,"ignoreUnits",i)||a.units.has(i.toLowerCase())||l({index:n(e)+r.sourceIndex,message:h.rejected(i),node:e,result:c,ruleName:d}))})}f(c,d,{actual:e},{actual:t,possible:{ignoreUnits:[n.isString]},optional:!0})&&(r.walkAtRules(/^media$/i,e=>m(e,e.params,i)),r.walkDecls(e=>m(e,e.value,o)))}};m.ruleName=d,m.messages=h,t.exports=m},{"../../reference/keywordSets":342,"../../utils/atRuleParamIndex":518,"../../utils/declarationValueIndex":527,"../../utils/getUnitFromValueNode":538,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-value-parser":239}],507:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/atRuleParamIndex"),o=e("../../utils/declarationValueIndex"),s=e("../../utils/getUnitFromValueNode"),a=e("../../utils/optionsMatches"),u=e("../../utils/report"),l=e("../../utils/ruleMessages"),c=e("../../utils/validateObjectWithStringArrayProps"),f=e("../../utils/validateOptions"),p=e("postcss-value-parser"),d="unit-whitelist",h=l(d,{rejected:e=>`Unexpected unit "${e}"`}),m=function(e,t){const r=[].concat(e);return(e,l)=>{function m(e,n,i){p(n).walk(function(n){if("function"===n.type&&"url"===n.value.toLowerCase())return!1;const o=s(n);!o||o&&-1!==r.indexOf(o.toLowerCase())||t&&a(t.ignoreProperties,o.toLowerCase(),e.prop)||u({index:i(e)+n.sourceIndex,message:h.rejected(o),node:e,result:l,ruleName:d})})}f(l,d,{actual:r,possible:[n.isString]},{optional:!0,actual:t,possible:{ignoreProperties:c}})&&(e.walkAtRules(/^media$/i,e=>m(e,e.params,i)),e.walkDecls(e=>m(e,e.value,o)))}};m.primaryOptionArray=!0,m.ruleName=d,m.messages=h,t.exports=m},{"../../utils/atRuleParamIndex":518,"../../utils/declarationValueIndex":527,"../../utils/getUnitFromValueNode":538,"../../utils/optionsMatches":583,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateObjectWithStringArrayProps":589,"../../utils/validateOptions":590,lodash:125,"postcss-value-parser":239}],508:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/declarationValueIndex"),o=e("../../utils/getUnitFromValueNode"),s=e("../../utils/isCounterIncrementCustomIdentValue"),a=e("../../utils/isCounterResetCustomIdentValue"),u=e("../../utils/isStandardSyntaxValue"),l=e("../../reference/keywordSets"),c=e("../../utils/matchesStringOrRegExp"),f=e("../../utils/report"),p=e("../../utils/ruleMessages"),d=e("../../utils/validateOptions"),h=e("postcss-value-parser"),m="value-keyword-case",g=p(m,{expected:(e,t)=>`Expected "${e}" to be "${t}"`}),y=new Set(["+","-","/","*","%"]),v=new Map;l.camelCaseKeywords.forEach(e=>{v.set(e.toLowerCase(),e)});const b=function(e,t){return(r,p)=>{d(p,m,{actual:e,possible:["lower","upper"]},{actual:t,possible:{ignoreKeywords:[n.isString]},optional:!0})&&r.walkDecls(r=>{const n=r.prop,d=r.value;h(d).walk(h=>{const b=h.value.toLowerCase();if(l.systemColors.has(b))return;if("function"===h.type&&("url"===b||"var"===b||"counter"===b||"counters"===b||"attr"===b))return!1;const w=h.value;if("word"!==h.type||!u(h.value)||-1!==d.indexOf("#")||y.has(w)||o(h))return;if("animation"===n&&!l.animationShorthandKeywords.has(b)&&!l.animationNameKeywords.has(b))return;if("animation-name"===n&&!l.animationNameKeywords.has(b))return;if("font"===n&&!l.fontShorthandKeywords.has(b)&&!l.fontFamilyKeywords.has(b))return;if("font-family"===n&&!l.fontFamilyKeywords.has(b))return;if("counter-increment"===n&&s(b))return;if("counter-reset"===n&&a(b))return;if("grid-row"===n&&!l.gridRowKeywords.has(b))return;if("grid-column"===n&&!l.gridColumnKeywords.has(b))return;if("grid-area"===n&&!l.gridAreaKeywords.has(b))return;if("list-style"===n&&!l.listStyleShorthandKeywords.has(b)&&!l.listStyleTypeKeywords.has(b))return;if("list-style-type"===n&&!l.listStyleTypeKeywords.has(b))return;const x=t&&t.ignoreKeywords||[];if(x.length>0&&c(w,x))return;const k=w.toLocaleLowerCase();let _=null;w!==(_="lower"===e&&v.has(k)?v.get(k):"lower"===e?w.toLowerCase():w.toUpperCase())&&f({message:g.expected(w,_),node:r,index:i(r)+h.sourceIndex,result:p,ruleName:m})})})}};b.ruleName=m,b.messages=g,t.exports=b},{"../../reference/keywordSets":342,"../../utils/declarationValueIndex":527,"../../utils/getUnitFromValueNode":538,"../../utils/isCounterIncrementCustomIdentValue":551,"../../utils/isCounterResetCustomIdentValue":552,"../../utils/isStandardSyntaxValue":575,"../../utils/matchesStringOrRegExp":580,"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"postcss-value-parser":239}],509:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../../utils/validateOptions"),o=e("../valueListCommaWhitespaceChecker"),s=e("../../utils/whitespaceChecker"),a="value-list-comma-newline-after",u=n(a,{expectedAfter:()=>'Expected newline after ","',expectedAfterMultiLine:()=>'Expected newline after "," in a multi-line list',rejectedAfterMultiLine:()=>'Unexpected whitespace after "," in a multi-line list'}),l=function(e){const t=s("newline",e,u);return(r,n)=>{i(n,a,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&o({root:r,result:n,locationChecker:t.afterOneOnly,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../valueListCommaWhitespaceChecker":514}],510:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../../utils/validateOptions"),o=e("../valueListCommaWhitespaceChecker"),s=e("../../utils/whitespaceChecker"),a="value-list-comma-newline-before",u=n(a,{expectedBefore:()=>'Expected newline before ","',expectedBeforeMultiLine:()=>'Expected newline before "," in a multi-line list',rejectedBeforeMultiLine:()=>'Unexpected whitespace before "," in a multi-line list'}),l=function(e){const t=s("newline",e,u);return(r,n)=>{i(n,a,{actual:e,possible:["always","always-multi-line","never-multi-line"]})&&o({root:r,result:n,locationChecker:t.beforeAllowingIndentation,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../valueListCommaWhitespaceChecker":514}],511:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../../utils/validateOptions"),o=e("../valueListCommaWhitespaceChecker"),s=e("../../utils/whitespaceChecker"),a="value-list-comma-space-after",u=n(a,{expectedAfter:()=>'Expected single space after ","',rejectedAfter:()=>'Unexpected whitespace after ","',expectedAfterSingleLine:()=>'Expected single space after "," in a single-line list',rejectedAfterSingleLine:()=>'Unexpected whitespace after "," in a single-line list'}),l=function(e){const t=s("space",e,u);return(r,n)=>{i(n,a,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&o({root:r,result:n,locationChecker:t.after,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../valueListCommaWhitespaceChecker":514}],512:[function(e,t,r){"use strict";const n=e("../../utils/ruleMessages"),i=e("../../utils/validateOptions"),o=e("../valueListCommaWhitespaceChecker"),s=e("../../utils/whitespaceChecker"),a="value-list-comma-space-before",u=n(a,{expectedBefore:()=>'Expected single space before ","',rejectedBefore:()=>'Unexpected whitespace before ","',expectedBeforeSingleLine:()=>'Unexpected whitespace before "," in a single-line list',rejectedBeforeSingleLine:()=>'Unexpected whitespace before "," in a single-line list'}),l=function(e){const t=s("space",e,u);return(r,n)=>{i(n,a,{actual:e,possible:["always","never","always-single-line","never-single-line"]})&&o({root:r,result:n,locationChecker:t.before,checkedRuleName:a})}};l.ruleName=a,l.messages=u,t.exports=l},{"../../utils/ruleMessages":588,"../../utils/validateOptions":590,"../../utils/whitespaceChecker":591,"../valueListCommaWhitespaceChecker":514}],513:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../../utils/report"),o=e("../../utils/ruleMessages"),s=e("style-search"),a=e("../../utils/validateOptions"),u="value-list-max-empty-lines",l=o(u,{expected:e=>`Expected no more than ${e} empty ${1===e?"line":"lines"}`}),c=function(e){const t=e+1;return(r,o)=>{a(o,u,{actual:e,possible:n.isNumber})&&r.walkDecls(r=>{const a=r.value,c=n.repeat("\n",t),f=n.repeat("\r\n",t);s({source:a,target:"\n"},n=>{if(a.substr(n.startIndex+1,t)===c||a.substr(n.startIndex+1,2*t)===f){let t=n.startIndex;"\r"===a[t-1]&&(t-=1),i({message:l.expected(e),node:r,index:t,result:o,ruleName:u})}})})}};c.ruleName=u,c.messages=l,t.exports=c},{"../../utils/report":587,"../../utils/ruleMessages":588,"../../utils/validateOptions":590,lodash:125,"style-search":326}],514:[function(e,t,r){"use strict";const n=e("../utils/isStandardSyntaxDeclaration"),i=e("../utils/isStandardSyntaxProperty"),o=e("../utils/report"),s=e("style-search");t.exports=function(e){e.root.walkDecls(t=>{n(t)&&i(t.prop)&&s({source:t.toString(),target:",",functionArguments:"skip"},r=>{!function(t,r,n){e.locationChecker({source:t,index:r,err:t=>{o({message:t,node:n,index:r,result:e.result,ruleName:e.checkedRuleName})}})}(t.toString(),r.startIndex,t)})})}},{"../utils/isStandardSyntaxDeclaration":567,"../utils/isStandardSyntaxProperty":570,"../utils/report":587,"style-search":326}],515:[function(e,t,r){"use strict";const n=e("./createStylelint"),i=e("debug")("stylelint:standalone"),o=(e("./utils/FileCache"),e("./formatters")),s=(e("globby"),e("./utils/hash"),e("ignore")),a=e("./needlessDisables");function u(e){if("CssSyntaxError"===e.name)return function(e){if("CssSyntaxError"!==e.name)throw e;return{source:e.file||"",deprecations:[],invalidOptionWarnings:[],parseErrors:[],errored:!0,warnings:[{line:e.line,column:e.column,rule:e.name,severity:"error",text:e.reason+" ("+e.name+")"}]}}(e);throw e}t.exports=function(e){e.cacheLocation;const t=e.code,r=e.codeFilename,l=e.config,c=e.configBasedir,f=e.configFile,p=e.configOverrides,d=e.customSyntax,h=e.files,m=e.fix,g=e.formatter,y=e.ignoreDisables,v=e.reportNeedlessDisables,b=e.syntax;e.cache;const w=Date.now();e.ignorePath;s().add("");const x="string"==typeof t;if(!h&&!x||h&&(t||x))throw new Error("You must pass stylelint a `files` glob or a `code` string, though not both");let k;if("string"==typeof g){if(void 0===(k=o[g]))return Promise.reject(new Error("You must use a valid formatter option: 'json', 'string', 'verbose', or a function"))}else k="function"==typeof g?g:o.json;const _=n({config:l,configFile:f,configBasedir:c,configOverrides:p,ignoreDisables:y,reportNeedlessDisables:v,syntax:b,customSyntax:d,fix:m});if(!h){const e=r;return _._lintSource({code:t,codeFilename:e}).then(e=>_._createStylelintResult(e)).catch(u).then(e=>(function(e){const t={errored:e.some(e=>e.errored||e.parseErrors.length>0),output:k(e),results:e};v&&(t.needlessDisables=a(e));return i(`Linting complete in ${Date.now()-w}ms`),t})([e]))}return""}},{"./createStylelint":330,"./formatters":333,"./needlessDisables":339,"./utils/FileCache":516,"./utils/hash":546,debug:592,globby:57,ignore:68}],516:[function(e,t,r){(function(r){"use strict";const n=e("debug")("stylelint:file-cache"),i=e("file-entry-cache"),o=e("./getCacheFile"),s=e("path"),a="./.stylelintcache",u="";function l(e,t){const l=s.resolve(o(e||a,r.cwd()));n(`Cache file is created at ${l}`),this._fileCache=i.create(l),this._hashOfConfig=t||u}l.prototype.hasFileChanged=function(e){const t=this._fileCache.getFileDescriptor(e),r=t.meta||{},i=t.changed||r.hashOfConfig!==this._hashOfConfig;return i||n(`Skip linting ${e}. File hasn't changed.`),r.hashOfConfig!==this._hashOfConfig&&(r.hashOfConfig=this._hashOfConfig),i},l.prototype.reconcile=function(){this._fileCache.reconcile()},l.prototype.destroy=function(){this._fileCache.destroy()},l.prototype.removeEntry=function(e){this._fileCache.removeEntry(e)},t.exports=l}).call(this,e("_process"))},{"./getCacheFile":532,_process:282,debug:592,"file-entry-cache":39,path:148}],517:[function(e,t,r){"use strict";const n=e("lodash");t.exports=function(e,t){return/\r?\n/.test(e.raws.before)?/^\r?\n/.test(e.raws.before)?e.raws.before=t+e.raws.before:/\r?\n$/.test(e.raws.before)?e.raws.before=e.raws.before+t:e.raws.before=e.raws.before.replace(/(\r?\n)/,`${t}$1`):e.raws.before=n.repeat(t,2)+e.raws.before,e}},{lodash:125}],518:[function(e,t,r){"use strict";t.exports=function(e){let t=1+e.name.length;return e.raws.afterName&&(t+=e.raws.afterName.length),t}},{}],519:[function(e,t,r){"use strict";t.exports=function(e,t){t=t||{};let r,n,i="";if("rule"===e.type&&(r=e),"atrule"===e.type&&(n=e),!r&&!n)return i;const o=e.raws.before||"";t.noRawBefore||(i+=o),r&&(i+=r.selector),n&&(i+="@"+n.name+(n.raws.afterName||"")+n.params);const s=e.raws.between;return void 0!==s&&(i+=s),i}},{}],520:[function(e,t,r){"use strict";const n=e("./beforeBlockString"),i=e("./hasBlock"),o=e("./rawNodeString");t.exports=function(e){return!!i(e)&&o(e).slice(n(e).length)}},{"./beforeBlockString":519,"./hasBlock":539,"./rawNodeString":585}],521:[function(e,t,r){"use strict";t.exports=function(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"`";return e.replace(/\/\*.*\*\//g,t)}},{}],522:[function(e,t,r){"use strict";const n=e("lodash"),i=e("balanced-match");t.exports=function(e,t){const r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"`",o=`${t.toLowerCase()}(`,s=e.toLowerCase();if(!n.includes(s,o))return e;const a=t.length;let u=e,l=0;for(;-1!==s.indexOf(o,l);){const e=s.indexOf(o,l)+a,t=i("(",")",s.slice(e)).end+e,c=t-e-1;u=u.slice(0,e+1)+n.repeat(r,c)+u.slice(t),l=t}return u}},{"balanced-match":12,lodash:125}],523:[function(e,t,r){"use strict";t.exports=function(e){const t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";return e.replace(/[#@{}]+/g,t)}},{}],524:[function(e,t,r){"use strict";const n=e("../normalizeRuleSettings"),i=e("postcss/lib/result"),o=e("../rules");t.exports=function(e,t){if(!e)throw new Error("checkAgainstRule requires an options object with 'ruleName', 'ruleSettings', and 'root' properties");if(!t)throw new Error("checkAgainstRule requires a callback");if(!e.ruleName)throw new Error("checkAgainstRule requires a 'ruleName' option");if(!o[e.ruleName])throw new Error(`Rule '${e.ruleName}' does not exist`);if(!e.ruleSettings)throw new Error("checkAgainstRule requires a 'ruleSettings' option");if(!e.root)throw new Error("checkAgainstRule requires a 'root' option");const r=n(e.ruleSettings,e.ruleName);if(!r)return;const s=new i;o[e.ruleName](r[0],r[1],{})(e.root,s),s.warnings().forEach(t)}},{"../normalizeRuleSettings":340,"../rules":424,"postcss/lib/result":259}],525:[function(e,t,r){"use strict";t.exports=function(e){const t=new Error(e);return t.code=78,t}},{}],526:[function(e,t,r){"use strict";function n(e,t){return!!t&&(("/"!==t[0]||"/"!==t[t.length-1])&&(e.indexOf(t)>=0&&{match:e,pattern:t}))}t.exports=function(e,t){if(!Array.isArray(t))return n(e,t);for(const r of t){const t=n(e,r);if(t)return t}return!1}},{}],527:[function(e,t,r){"use strict";t.exports=function(e){return e.toString().indexOf(":")+(e.raw("between").length-e.raw("between").indexOf(":"))}},{}],528:[function(e,t,r){"use strict";const n=e("./getUnitFromValueNode"),i=e("./isStandardSyntaxValue"),o=e("./isVariable"),s=e("../reference/keywordSets"),a=e("postcss-value-parser");t.exports=function(e){const t=[],r=a(e);return 1===r.nodes.length&&s.basicKeywords.has(r.nodes[0].value.toLowerCase())?[r.nodes[0]]:(r.walk(e=>{if("function"===e.type)return!1;if("word"!==e.type)return;const r=e.value.toLowerCase();if(!i(r))return;if(o(r))return;if(s.animationShorthandKeywords.has(r))return;const a=n(e);a||""===a||t.push(e)}),t)}},{"../reference/keywordSets":342,"./getUnitFromValueNode":538,"./isStandardSyntaxValue":575,"./isVariable":578,"postcss-value-parser":239}],529:[function(e,t,r){"use strict";t.exports=function e(t){const r=t.parent;return"root"===r.type?null:"atrule"===r.type?r:e(r)}},{}],530:[function(e,t,r){"use strict";const n=e("./isNumbery"),i=e("./isStandardSyntaxValue"),o=e("./isValidFontSize"),s=e("./isVariable"),a=e("../reference/keywordSets"),u=e("postcss-value-parser"),l=new Set(["word","string","space","div"]);t.exports=function(e){const t=[],r=u(e);if(1===r.nodes.length&&a.basicKeywords.has(r.nodes[0].value.toLowerCase()))return[r.nodes[0]];let c=!1,f=null;return r.walk((e,r,u)=>{if("function"===e.type)return!1;if(!l.has(e.type))return;const p=e.value.toLowerCase();if(!i(p))return;if(s(p))return;if(a.fontShorthandKeywords.has(p)&&!a.fontFamilyKeywords.has(p))return;if(o(e.value))return;if(u[r-1]&&"/"===u[r-1].value&&u[r-2]&&o(u[r-2].value))return;if(n(p))return;if(("space"===e.type||"div"===e.type&&","!==e.value)&&0!==t.length)return c=!0,void(f=e.value);if("space"===e.type||"div"===e.type)return;const d=e;c?(!function(e,t,r){e.value=e.value+r+t.value}(t[t.length-1],e,f),c=!1,f=null):t.push(d)}),t}},{"../reference/keywordSets":342,"./isNumbery":561,"./isStandardSyntaxValue":575,"./isValidFontSize":576,"./isVariable":578,"postcss-value-parser":239}],531:[function(e,t,r){"use strict";const n=e("balanced-match"),i=e("style-search");t.exports=function(e,t,r){i({source:e,target:t,functionNames:"check"},t=>{if("("!==e[t.endIndex])return;const i=n("(",")",e.substr(t.startIndex));r(i.body,t.endIndex+1)})}},{"balanced-match":12,"style-search":326}],532:[function(e,t,r){"use strict";const n=e("fs"),i=e("./hash"),o=e("path");t.exports=function(e,t){e=o.normalize(e);const r=o.resolve(t,e),s=e[e.length-1]===o.sep;let a;try{a=n.lstatSync(r)}catch(e){a=null}return s||a&&a.isDirectory()?o.join(r,`.stylelintcache_${i(t)}`):r}},{"./hash":546,fs:17,path:148}],533:[function(e,t,r){(function(r){"use strict";const n=e("./configurationError"),i=e("resolve-from");t.exports=function(e,t){let o=i.silent(e,t);if(o||(o=i.silent(r.cwd(),t)),!o)throw n(`Could not find "${t}". Do you need a \`configBasedir\`?`);return o}}).call(this,e("_process"))},{"./configurationError":525,_process:282,"resolve-from":308}],534:[function(e,t,r){"use strict";const n=e("lodash");function i(e){return n.get(e,"source.start.line")}t.exports=function e(t){if(void 0===t)return;const r=t.next();return"comment"!==n.get(r,"type")?r:i(t)===i(r)||void 0!==r&&i(r)===i(r.next())?e(r):r}},{lodash:125}],535:[function(e,t,r){"use strict";const n=e("os");t.exports=function(){return n.EOL}},{os:142}],536:[function(e,t,r){"use strict";const n=e("lodash");function i(e){return n.get(e,"source.start.line")}t.exports=function e(t){if(void 0===t)return;const r=t.prev();return"comment"!==n.get(r,"type")?r:i(t)===i(r)||void 0!==r&&i(r)===i(r.prev())?e(r):r}},{lodash:125}],537:[function(e,t,r){"use strict";const n=e("url").parse;t.exports=function(e){const t=n(e).protocol;if(null==t)return null;const r=t.slice(0,-1),i=t.length;return"//"!==e.slice(i,i+2)&&"data"!==r?null:r}},{url:606}],538:[function(e,t,r){"use strict";const n=e("lodash"),i=e("./blurInterpolation"),o=e("./isStandardSyntaxValue"),s=e("postcss-value-parser");t.exports=function(e){if(!e||e&&!e.value)return null;const t=i(e.value,"").replace("\\0","").replace("\\9","").replace(".","");if("word"!==e.type||!o(t)||!n.isFinite(parseInt(t))||"#"===e.value[0])return null;const r=s.unit(t);return r?r.unit:null}},{"./blurInterpolation":523,"./isStandardSyntaxValue":575,lodash:125,"postcss-value-parser":239}],539:[function(e,t,r){"use strict";t.exports=function(e){return void 0!==e.nodes}},{}],540:[function(e,t,r){"use strict";t.exports=function(e){return void 0!==e.nodes&&0===e.nodes.length}},{}],541:[function(e,t,r){"use strict";t.exports=function(e){return""!==e&&void 0!==e&&/\n[\r\t ]*\n/.test(e)}},{}],542:[function(e,t,r){"use strict";const n=e("../utils/hasLessInterpolation"),i=e("../utils/hasPsvInterpolation"),o=e("../utils/hasScssInterpolation");t.exports=function(e){return!!(n(e)||o(e)||i(e))}},{"../utils/hasLessInterpolation":543,"../utils/hasPsvInterpolation":544,"../utils/hasScssInterpolation":545}],543:[function(e,t,r){"use strict";t.exports=function(e){return!!/@{.+?}/.test(e)}},{}],544:[function(e,t,r){"use strict";t.exports=function(e){return!!/\$\(.+?\)/.test(e)}},{}],545:[function(e,t,r){"use strict";t.exports=function(e){return!!/#{.+?}/.test(e)}},{}],546:[function(e,t,r){"use strict";const n=e("imurmurhash");t.exports=function(e){return n(e).result().toString(36)}},{imurmurhash:69}],547:[function(e,t,r){"use strict";const n=e("./isSharedLineComment");t.exports=function(e){const t=e.prev();return!(!t||"comment"!==t.type)&&!n(t)}},{"./isSharedLineComment":564}],548:[function(e,t,r){"use strict";const n=e("lodash"),i=e("./getPreviousNonSharedLineCommentNode"),o=e("./isCustomProperty"),s=e("./isStandardSyntaxDeclaration");t.exports=function(e){const t=i(e);return void 0!==t&&"decl"===t.type&&s(t)&&!o(n.get(t,"prop",""))}},{"./getPreviousNonSharedLineCommentNode":536,"./isCustomProperty":555,"./isStandardSyntaxDeclaration":567,lodash:125}],549:[function(e,t,r){"use strict";const n=e("./getPreviousNonSharedLineCommentNode"),i=e("./hasBlock");t.exports=function(e){if("atrule"!==e.type)return!1;const t=n(e);return void 0!==t&&("atrule"===t.type&&!i(t)&&!i(e))}},{"./getPreviousNonSharedLineCommentNode":536,"./hasBlock":539}],550:[function(e,t,r){"use strict";const n=e("lodash"),i=e("./getPreviousNonSharedLineCommentNode"),o=e("./isBlocklessAtRuleAfterBlocklessAtRule");t.exports=function(e){if(!o(e))return!1;const t=i(e);return n.get(t,"name")===e.name}},{"./getPreviousNonSharedLineCommentNode":536,"./isBlocklessAtRuleAfterBlocklessAtRule":549,lodash:125}],551:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../reference/keywordSets");t.exports=function(e){const t=e.toLowerCase();return!i.counterIncrementKeywords.has(t)&&!n.isFinite(parseInt(t))}},{"../reference/keywordSets":342,lodash:125}],552:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../reference/keywordSets");t.exports=function(e){const t=e.toLowerCase();return!i.counterResetKeywords.has(t)&&!n.isFinite(parseInt(t))}},{"../reference/keywordSets":342,lodash:125}],553:[function(e,t,r){"use strict";const n=e("html-tags"),i=e("../reference/keywordSets"),o=e("mathml-tag-names"),s=e("svg-tags");t.exports=function(e){if(!/^[a-z]/.test(e))return!1;if(-1===e.indexOf("-"))return!1;const t=e.toLowerCase();return t===e&&(-1===s.indexOf(t)&&(-1===n.indexOf(t)&&(!i.nonStandardHtmlTags.has(t)&&-1===o.indexOf(t))))}},{"../reference/keywordSets":342,"html-tags":66,"mathml-tag-names":127,"svg-tags":602}],554:[function(e,t,r){"use strict";t.exports=function(e){return"--"===e.slice(0,2)}},{}],555:[function(e,t,r){"use strict";t.exports=function(e){return"--"===e.slice(0,2)}},{}],556:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../utils/hasBlock");t.exports=function(e){const t=n.get(e,"raws.selector.raw",e.selector);return"rule"===e.type&&i(e)&&"--"===t.slice(0,2)&&":"===t.slice(-1)}},{"../utils/hasBlock":539,lodash:125}],557:[function(e,t,r){"use strict";t.exports=function(e){return":--"===e.slice(0,3)}},{}],558:[function(e,t,r){"use strict";t.exports=function(e){const t=e.parent;return void 0!==t&&"root"!==t.type&&e===t.first}},{}],559:[function(e,t,r){"use strict";t.exports=function(e){const t=e.parent;return"atrule"===t.type&&"keyframes"===t.name.toLowerCase()}},{}],560:[function(e,t,r){"use strict";const n=e("../reference/keywordSets");t.exports=function(e){return!!n.keyframeSelectorKeywords.has(e)||!!/^(?:\d+\.?\d*|\d*\.?\d+)%$/.test(e)}},{"../reference/keywordSets":342}],561:[function(e,t,r){"use strict";t.exports=function(e){return 0!==e.trim().length&&Number(e)==e}},{}],562:[function(e,t,r){"use strict";const n=e("./isWhitespace");t.exports=function(e){let t=!0;for(let r=0,i=e.length;r")}},{}],564:[function(e,t,r){"use strict";const n=e("lodash"),i=e("./getNextNonSharedLineCommentNode"),o=e("./getPreviousNonSharedLineCommentNode");function s(e,t){return n.get(e,"source.start.line")===n.get(t,"source.start.line")}t.exports=function(e){if("comment"!==e.type)return!1;if(s(e,o(e)))return!0;if(s(e,i(e)))return!0;const t=e.parent;return void 0!==t&&"root"!==t.type&&t.source.start.line===e.source.start.line}},{"./getNextNonSharedLineCommentNode":534,"./getPreviousNonSharedLineCommentNode":536,lodash:125}],565:[function(e,t,r){"use strict";t.exports=function(e){return!/[\n\r]/.test(e)}},{}],566:[function(e,t,r){"use strict";t.exports=function(e){return!(!e.nodes&&""===e.params)&&!(!e.nodes&&""===e.raws.afterName&&"("===e.params[0])}},{}],567:[function(e,t,r){"use strict";t.exports=function(e){const t=e.prop,r=e.parent;return"root"!==r.type&&("$"!==t[0]&&(("@"!==t[0]||"{"===t[1])&&(!r.selector||":"!==r.selector[r.selector.length-1]||"--"===r.selector.substring(0,2))))}},{}],568:[function(e,t,r){"use strict";t.exports=function(e){return!!e.value}},{}],569:[function(e,t,r){"use strict";t.exports=function(e){return!/#{.+?}|\$.+?/.test(e)}},{}],570:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../utils/hasInterpolation");t.exports=function(e){return"$"!==e[0]&&("@"!==e[0]&&(!n.endsWith(e,"+")&&!n.endsWith(e,"+_")&&!i(e)))}},{"../utils/hasInterpolation":542,lodash:125}],571:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../utils/isCustomPropertySet");t.exports=function(e){const t=n.get(e,"raws.selector.raw",e.selector);return!i(e)&&(!e.mixin&&(("@"!==t.slice(0,1)||":"!==t.slice(-1))&&(!e.extend&&((!e.params||!e.params[0])&&(!(n.endsWith(t,")")&&!n.includes(t,":"))&&(!/when\s+(not\s+)*\(/.test(t)&&":"!==t.slice(-1)))))))}},{"../utils/isCustomPropertySet":556,lodash:125}],572:[function(e,t,r){"use strict";const n=e("../utils/hasInterpolation");t.exports=function(e){return!n(e)&&(0!==e.indexOf("%")&&!/:extend(\(.*?\))?/.test(e))}},{"../utils/hasInterpolation":542}],573:[function(e,t,r){"use strict";const n=e("lodash"),i=e("../reference/keywordSets");t.exports=function(e){const t=e.parent.parent,r=t.type,o=t.value;if(o){const e=o.toLowerCase().replace(/:+/,"");if("pseudo"===r&&(i.aNPlusBNotationPseudoClasses.has(e)||i.linguisticPseudoClasses.has(e)))return!1}return(!e.prev()||"nesting"!==e.prev().type)&&("%"!==e.value[0]&&(!n.startsWith(e.value,"/")||!n.endsWith(e.value,"/")))}},{"../reference/keywordSets":342,lodash:125}],574:[function(e,t,r){"use strict";const n=e("../utils/hasLessInterpolation"),i=e("../utils/hasPsvInterpolation"),o=e("../utils/hasScssInterpolation");t.exports=function(e){return 0===e.length||!o(e)&&!i(e)&&("'"===e[0]&&"'"===e[e.length-1]||'"'===e[0]&&'"'===e[e.length-1]?!n(e):("@"!==e[0]||!/^@@?[\w-]+$/.test(e))&&(-1===e.indexOf("$")||!/^[$\sA-Za-z0-9+-/*_'"/]+$/.test(e)||"/"===e[e.length-1]))}},{"../utils/hasLessInterpolation":543,"../utils/hasPsvInterpolation":544,"../utils/hasScssInterpolation":545}],575:[function(e,t,r){"use strict";const n=e("../utils/hasInterpolation");t.exports=function(e){let t=e;return/^[-+*/]/.test(e[0])&&(t=t.slice(1)),"$"!==t[0]&&("@"!==t[0]&&!n(t))}},{"../utils/hasInterpolation":542}],576:[function(e,t,r){"use strict";const n=e("../reference/keywordSets"),i=e("postcss-value-parser");t.exports=function(e){if(!e)return!1;if(n.fontSizeKeywords.has(e))return!0;const t=i.unit(e);if(!t)return!1;const r=t.unit;return"%"===r||!!n.lengthUnits.has(r.toLowerCase())}},{"../reference/keywordSets":342,"postcss-value-parser":239}],577:[function(e,t,r){"use strict";t.exports=function(e){return/^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e)}},{}],578:[function(e,t,r){"use strict";t.exports=function(e){return"var("===e.toLowerCase().slice(0,4)}},{}],579:[function(e,t,r){"use strict";t.exports=function(e){return-1!==[" ","\n","\t","\r","\f"].indexOf(e)}},{}],580:[function(e,t,r){"use strict";function n(e,t){if(!Array.isArray(t))return i(e,t);for(const r of t){const t=i(e,r);if(t)return t}return!1}function i(e,t){const r=t[0],n=t[t.length-1],i=t[t.length-2],o="/"===r&&("/"===n||"/"===i&&"i"===n);if(o){return!!(o&&"i"===n?new RegExp(t.slice(1,-2),"i").test(e):new RegExp(t.slice(1,-1)).test(e))&&{match:e,pattern:t}}return e===t&&{match:e,pattern:t}}t.exports=function(e,t){if(!Array.isArray(e))return n(e,t);for(const r of e){const e=n(r,t);if(e)return e}return!1}},{}],581:[function(e,t,r){"use strict";t.exports=function e(t){return t&&t.next?"comment"===t.type?e(t.next()):t:null}},{}],582:[function(e,t,r){"use strict";function n(e,t){return e.has(t)||e.set(t,new Map),e.get(t)}t.exports=function(){const e=new Map;return{getContext(t){const r=t.source.input.from,i=n(e,r);return Array.from(arguments).slice(1).reduce((e,t)=>n(e,t),i)}}}},{}],583:[function(e,t,r){"use strict";const n=e("./matchesStringOrRegExp");t.exports=function(e,t,r){return!!(e&&e[t]&&"string"==typeof r&&n(r,e[t]))}},{"./matchesStringOrRegExp":580}],584:[function(e,t,r){"use strict";const n=e("postcss-selector-parser");t.exports=function(e,t,r,i){try{n(i).process(e)}catch(e){t.warn("Cannot parse selector",{node:r,stylelintType:"parseError"})}}},{"postcss-selector-parser":218}],585:[function(e,t,r){"use strict";t.exports=function(e){let t="";return e.raws.before&&(t+=e.raws.before),t+=e.toString()}},{}],586:[function(e,t,r){"use strict";t.exports=function(e,t){return e.raws.before=e.raws.before.replace(/(\r?\n\s*\r?\n)+/g,t),e}},{}],587:[function(e,t,r){"use strict";const n=e("lodash");t.exports=function(e){const t=e.ruleName,r=e.result,i=e.message,o=e.line,s=e.node,a=e.index,u=e.word;if(r.stylelint=r.stylelint||{},r.stylelint.quiet&&"error"!==r.stylelint.ruleSeverities[t])return;const l=o||s.positionBy({index:a}).line;if(r.stylelint.disabledRanges&&!r.stylelint.ignoreDisables){const e=r.stylelint.disabledRanges[t]||r.stylelint.disabledRanges.all;for(const r of e)if(r.start<=l&&(r.end>=l||void 0===r.end)&&(!r.rules||-1!==r.rules.indexOf(t)))return}const c=n.get(r.stylelint,["ruleSeverities",t],"ignore");r.stylelint.stylelintError||"error"!==c||(r.stylelint.stylelintError=!0);const f={severity:c,rule:t};s&&(f.node=s),a&&(f.index=a),u&&(f.word=u);const p=n.get(r.stylelint,["customMessages",t],i);r.warn(p,f)}},{lodash:125}],588:[function(e,t,r){"use strict";t.exports=function(e,t){return Object.keys(t).reduce((r,n)=>{const i=t[n];return r[n]="string"==typeof i?`${i} (${e})`:function(){return`${i.apply(null,arguments)} (${e})`},r},{})}},{}],589:[function(e,t,r){"use strict";const n=e("lodash");t.exports=function(e){return!!n.isPlainObject(e)&&Object.keys(e).every(t=>!!n.isArray(e[t])&&e[t].every(e=>n.isString(e)))}},{lodash:125}],590:[function(e,t,r){"use strict";const n=e("lodash"),i=["severity","message"];function o(e,t){const r=[].concat(e);for(let e=0,n=r.length;e{!function(e,t,r){const s=e.possible,a=e.actual,u=e.optional;if(null===a||n.isEqual(a,[null]))return;const l=void 0===s||Array.isArray(s)&&0===s.length;if(l&&!0===a)return;if(void 0===a){if(l||u)return;return void r(`Expected option value for rule "${t}"`)}if(l)return void r(`Unexpected option value "${a}" for rule "${t}"`);if(n.isFunction(s))return void(s(a)||r(`Invalid option "${JSON.stringify(a)}" for rule ${t}`));if(!n.isPlainObject(s))return void[].concat(a).forEach(e=>{o(s,e)||r(`Invalid option value "${e}" for rule "${t}"`)});if(!n.isPlainObject(a))return void r(`Invalid option value ${JSON.stringify(a)} for rule "${t}": `+"should be an object");Object.keys(a).forEach(e=>{if(-1!==i.indexOf(e))return;if(!s[e])return void r(`Invalid option name "${e}" for rule "${t}"`);const n=a[e];[].concat(n).forEach(n=>{o(s[e],n)||r(`Invalid value "${n}" for option "${e}" of rule "${t}"`)})})}(e,t,s)}),r}},{lodash:125}],591:[function(e,t,r){"use strict";const n=e("./configurationError"),i=e("./isSingleLineString"),o=e("./isWhitespace");function s(e){return null!=e}t.exports=function(e,t,r){let a;function u(e){const o=e.source,s=e.index,u=e.err,l=e.errTarget,p=e.lineCheckStr,d=void 0!==e.onlyOneChar&&e.onlyOneChar,h=void 0!==e.allowIndentation&&e.allowIndentation;switch(a={source:o,index:s,err:u,errTarget:l,onlyOneChar:d,allowIndentation:h},t){case"always":c();break;case"never":f();break;case"always-single-line":if(!i(p||o))return;c(r.expectedBeforeSingleLine);break;case"never-single-line":if(!i(p||o))return;f(r.rejectedBeforeSingleLine);break;case"always-multi-line":if(i(p||o))return;c(r.expectedBeforeMultiLine);break;case"never-multi-line":if(i(p||o))return;f(r.rejectedBeforeMultiLine);break;default:throw n(`Unknown expectation "${t}"`)}}function l(e){const o=e.source,s=e.index,u=e.err,l=e.errTarget,c=e.lineCheckStr,f=void 0!==e.onlyOneChar&&e.onlyOneChar;switch(a={source:o,index:s,err:u,errTarget:l,onlyOneChar:f},t){case"always":p();break;case"never":d();break;case"always-single-line":if(!i(c||o))return;p(r.expectedAfterSingleLine);break;case"never-single-line":if(!i(c||o))return;d(r.rejectedAfterSingleLine);break;case"always-multi-line":if(i(c||o))return;p(r.expectedAfterMultiLine);break;case"never-multi-line":if(i(c||o))return;d(r.rejectedAfterMultiLine);break;default:throw n(`Unknown expectation "${t}"`)}}function c(){const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.expectedBefore;if(a.allowIndentation)return void function(){const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.expectedBefore,n=a,i=n.source,o=n.index,s=n.err,u=function(){if("newline"===e)return"\n"}();let l=o-1;for(;i[l]!==u;){if("\t"!==i[l]&&" "!==i[l])return void s(t(a.errTarget?a.errTarget:i[o]));l--}}(t);const n=a,i=n.source,u=n.index,l=i[u-1],c=i[u-2];s(l)&&("space"!==e||" "!==l||!a.onlyOneChar&&o(c))&&a.err(t(a.errTarget?a.errTarget:i[u]))}function f(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.rejectedBefore,t=a,n=t.source,i=t.index,u=n[i-1];s(u)&&o(u)&&a.err(e(a.errTarget?a.errTarget:n[i]))}function p(){const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.expectedAfter,n=a,i=n.source,u=n.index,l=i[u+1],c=i[u+2];if(s(l)){if("newline"===e){if("\r"===l&&"\n"===c&&(a.onlyOneChar||!o(i[u+3])))return;if("\n"===l&&(a.onlyOneChar||!o(c)))return}("space"!==e||" "!==l||!a.onlyOneChar&&o(c))&&a.err(t(a.errTarget?a.errTarget:i[u]))}}function d(){const e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.rejectedAfter,t=a,n=t.source,i=t.index,u=n[i+1];s(u)&&o(u)&&a.err(e(a.errTarget?a.errTarget:n[i]))}return{before:u,beforeAllowingIndentation:function(e){u(Object.assign({},e,{allowIndentation:!0}))},after:l,afterOneOnly:function(e){l(Object.assign({},e,{onlyOneChar:!0}))}}}},{"./configurationError":525,"./isSingleLineString":565,"./isWhitespace":579}],592:[function(e,t,r){(function(n){function i(){var e;try{e=r.storage.debug}catch(e){}return!e&&void 0!==n&&"env"in n&&(e=n.env.DEBUG),e}(r=t.exports=e("./debug")).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),!t)return;var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var i=0,o=0;e[0].replace(/%[a-zA-Z%]/g,function(e){"%%"!==e&&"%c"===e&&(o=++i)}),e.splice(o,0,n)},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(e){}},r.load=i,r.useColors=function(){if("undefined"!=typeof window&&window.process&&"renderer"===window.process.type)return!0;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},r.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},r.enable(i())}).call(this,e("_process"))},{"./debug":593,_process:282}],593:[function(e,t,r){var n;function i(e){function t(){if(t.enabled){var e=t,i=+new Date,o=i-(n||i);e.diff=o,e.prev=n,e.curr=i,n=i;for(var s=new Array(arguments.length),a=0;a=i.length)break;a=i[s++]}else{if((s=i.next()).done)break;a=s.value}var u=a;t.push(u),"("===u[0]?n+=1:")"===u[0]?n-=1:"newline"===u[0]&&0===n&&(t=[],r.push(t))}return r},t.exports=r.default},{}],596:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t){var r=new n.default(e,t),u=new s.default(r);return u.tokens=(0,o.default)(r),u.parts=(0,i.default)(r,(0,a.default)(u.tokens)),u.loop(),u.root};var n=u(e("postcss/lib/input")),i=u(e("./preprocess")),o=u(e("./tokenize")),s=u(e("./parser")),a=u(e("./liner"));function u(e){return e&&e.__esModule?e:{default:e}}t.exports=r.default},{"./liner":595,"./parser":597,"./preprocess":598,"./tokenize":601,"postcss/lib/input":249}],597:[function(e,t,r){"use strict";r.__esModule=!0;var n=u(e("postcss/lib/declaration")),i=u(e("postcss/lib/comment")),o=u(e("postcss/lib/at-rule")),s=u(e("postcss/lib/rule")),a=u(e("postcss/lib/root"));function u(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.input=t,this.pos=0,this.root=new a.default,this.current=this.root,this.spaces="",this.extraIndent=!1,this.prevIndent=void 0,this.step=void 0,this.root.source={input:t,start:{line:1,column:1}}}return e.prototype.loop=function(){for(var e=void 0;this.pose.indent.length;r?r&&t.colon?this.rule(e):r&&!t.colon&&this.decl(e):this.decl(e)}}else e.end?this.root.raws.after=e.before:this.rule(e);this.pos+=1}for(var n=this.tokens.length-1;n>=0;n--)if(this.tokens[n].length>3){var i=this.tokens[n];this.root.source.end={line:i[4]||i[2],column:i[5]||i[3]};break}},e.prototype.comment=function(e){var t=e.tokens[0],r=new i.default;this.init(r,e),r.source.end={line:t[4],column:t[5]},this.commentText(r,t)},e.prototype.atrule=function(e){var t=e.tokens[0],r=e.tokens.slice(1),n=new o.default;for(n.name=t[1].slice(1),this.init(n,e),""===n.name&&this.unnamedAtrule(t);!e.end&&e.lastComma;)this.pos+=1,e=this.parts[this.pos],r.push(["space",e.before+e.indent]),r=r.concat(e.tokens);n.raws.afterName=this.firstSpaces(r),this.keepTrailingSpace(n,r),this.checkSemicolon(r),this.checkCurly(r),this.raw(n,"params",r,t)},e.prototype.decl=function(e){var t=new n.default;this.init(t,e);for(var r="",o=0,s=[],a="",u=0;ue.indent.length;)s.push(["space",c.before+c.indent]),s=s.concat(c.tokens),this.pos+=1,c=this.parts[this.pos+1];var f=s[s.length-1];if(f&&"comment"===f[0]){s.pop();var p=new i.default;this.current.push(p),p.source={input:this.input,start:{line:f[2],column:f[3]},end:{line:f[4],column:f[5]}};var d=s[s.length-1];d&&"space"===d[0]&&(s.pop(),p.raws.before=d[1]),this.commentText(p,f)}for(var h=s.length-1;h>0;h--){var m=s[h][0];if("word"===m&&"!important"===s[h][1]){t.important=!0,h>0&&"space"===s[h-1][0]?(t.raws.important=s[h-1][1]+"!important",s.splice(h-1,2)):(t.raws.important="!important",s.splice(h,1));break}if("space"!==m&&"newline"!==m&&"comment"!==m)break}t.raws.between=r+this.firstSpaces(s),this.checkSemicolon(s),this.raw(t,"value",s,o)},e.prototype.rule=function(e){var t=new s.default;this.init(t,e);for(var r=e.tokens,n=this.parts[this.pos+1];!n.end&&n.indent.length===e.indent.length;)r.push(["space",n.before+n.indent]),r=r.concat(n.tokens),this.pos+=1,n=this.parts[this.pos+1];this.keepTrailingSpace(t,r),this.checkCurly(r),this.raw(t,"selector",r)},e.prototype.indent=function(e){var t=e.indent.length,r=void 0!==this.prevIndent;if(!r&&t&&this.indentedFirstLine(e),!this.step&&t&&(this.step=t,this.root.raws.indent=e.indent),r&&this.prevIndent!==t){var n=t-this.prevIndent;if(n>0)if(n!==this.step)this.wrongIndent(this.prevIndent+this.step,t,e);else if(this.current.last.push)this.current=this.current.last;else{this.extraIndent="";for(var i=0;i=t.length)break;i=t[n++]}else{if((n=t.next()).done)break;i=n.value}var o=i;"{"===o[0]&&this.error("Unnecessary curly bracket",o[2],o[3])}},e.prototype.checkSemicolon=function(e){var t=e,r=Array.isArray(t),n=0;for(t=r?t:t[Symbol.iterator]();;){var i;if(r){if(n>=t.length)break;i=t[n++]}else{if((n=t.next()).done)break;i=n.value}var o=i;";"===o[0]&&this.error("Unnecessary semicolon",o[2],o[3])}},e.prototype.keepTrailingSpace=function(e,t){var r=t[t.length-1];r&&"space"===r[0]&&(t.pop(),e.raws.sssBetween=r[1])},e.prototype.firstSpaces=function(e){for(var t="",r=0;r=0;d--)if(r[d].length>2){p=r[d];break}p||(p=n),e.source.end={line:p[4]||p[2],column:p[5]||p[3]}},e.prototype.nextNonComment=function(e){for(var t=e,r=void 0;t0){if("space"===t[0][0]?(l=t[0][1],c=t.slice(1)):(l="",c=t),!r&&l.length&&(r=" "===l[0]?"space":"tab"),"space"===r?-1!==l.indexOf("\t")&&n(e,a,l.indexOf("\t")):"tab"===r&&-1!==l.indexOf(" ")&&n(e,a,l.indexOf(" ")),c.length){for(var p=c.length-1;p>=0;p--){var d=c[p][0];if(","===d){o=!0;break}if("space"!==d&&("comment"!==d&&"newline"!==d))break}s="comment"===c[0][0],u="at-word"===c[0][0];for(var h=0,m=0;m0?(R=U+j,P=A-O[j].length):(R=U,P=D),t.push(["string",r.slice(z,A+1),U,z-D,R,A-P]),D=P,U=R,z=A;break;case b:x.lastIndex=z+1,x.test(r),A=0===x.lastIndex?r.length-1:x.lastIndex-2,t.push(["at-word",r.slice(z,A+1),U,z-D,U,A-D]),z=A;break;case o:for(A=z,N=!0,R=U;r.charCodeAt(A+1)===o;)A+=1,N=!N;C=r.charCodeAt(A+1),N&&(C===f&&r.charCodeAt(A+2)===a?(R+=1,P=A+=2):C===f||C===a||C===l?(R+=1,P=A+=1):A+=1),t.push(["word",r.slice(z,A+1),U,z-D,U,A-D]),R!==U&&(U=R,D=P),z=A;break;default:B=r.charCodeAt(z+1),C===s&&B===y?(0===(A=r.indexOf("*/",z+2)+1)&&$("comment"),M=r.slice(z,A+1),O=M.split("\n"),(j=O.length-1)>0?(R=U+j,P=A-O[j].length):(R=U,P=D),t.push(["comment",M,U,z-D,R,A-P]),D=P,U=R,z=A):C===s&&B===s?(k.lastIndex=z+1,k.test(r),A=0===k.lastIndex?r.length-1:k.lastIndex-2,M=r.slice(z,A+1),t.push(["comment",M,U,z-D,U,A-D,"inline"]),z=A):(_.lastIndex=z+1,_.test(r),A=0===_.lastIndex?r.length-1:_.lastIndex-2,t.push(["word",r.slice(z,A+1),U,z-D,U,A-D]),z=A)}z++}return t};var n=39,i=34,o=92,s=47,a=10,u=32,l=12,c=9,f=13,p=40,d=41,h=123,m=125,g=59,y=42,v=58,b=64,w=44,x=/[ \n\t\r\f\{\(\)'"\\;/]/g,k=/[\r\f\n]/g,_=/[ \n\t\r\f\(\)\{\}:;@!'"\\,]|\/(?=\*)/g,S=/.[\\\/\("'\n]/;t.exports=r.default},{}],602:[function(e,t,r){t.exports=e("./svg-tags.json")},{"./svg-tags.json":603}],603:[function(e,t,r){t.exports=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]},{}],604:[function(e,t,r){(function(t,n){var i=e("process/browser.js").nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},u=0;function l(e,t){this._id=e,this._clearFn=t}r.setTimeout=function(){return new l(o.call(setTimeout,window,arguments),clearTimeout)},r.setInterval=function(){return new l(o.call(setInterval,window,arguments),clearInterval)},r.clearTimeout=r.clearInterval=function(e){e.close()},l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},r.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},r.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},r._unrefActive=r.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r.setImmediate="function"==typeof t?t:function(e){var t=u++,n=!(arguments.length<2)&&s.call(arguments,1);return a[t]=!0,i(function(){a[t]&&(n?e.apply(null,n):e.call(null),r.clearImmediate(t))}),t},r.clearImmediate="function"==typeof n?n:function(e){delete a[e]}}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":282,timers:604}],605:[function(e,t,r){"use strict";t.exports=function(e,t,r){return 0===e.length?e:t?(r||e.sort(t),function(e,t){for(var r=1,n=e.length,i=e[0],o=e[0],s=1;s",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(l),f=["%","/","?",";","#"].concat(c),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=e("querystring");function b(e,t,r){if(e&&i.isObject(e)&&e instanceof o)return e;var n=new o;return n.parse(e,t,r),n}o.prototype.parse=function(e,t,r){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),a=-1!==o&&o127?P+="x":P+=R[I];if(!P.match(d)){var L=M.slice(0,E),B=M.slice(E+1),T=R.match(h);T&&(L.push(T[1]),B.unshift(T[2])),B.length&&(b="/"+B.join(".")+b),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),j||(this.hostname=n.toASCII(this.hostname));var D=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+D,this.href+=this.host,j&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==b[0]&&(b="/"+b))}if(!m[k])for(E=0,N=c.length;E0)&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.shift());return r.search=e.search,r.query=e.query,i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var C=_.slice(-1)[0],A=(r.host||e.host||_.length>1)&&("."===C||".."===C)||""===C,E=0,O=_.length;O>=0;O--)"."===(C=_[O])?_.splice(O,1):".."===C?(_.splice(O,1),E++):E&&(_.splice(O,1),E--);if(!x&&!k)for(;E--;E)_.unshift("..");!x||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),A&&"/"!==_.join("/").substr(-1)&&_.push("");var j,M=""===_[0]||_[0]&&"/"===_[0].charAt(0);S&&(r.hostname=r.host=M?"":_.length?_.shift():"",(j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=j.shift(),r.host=r.hostname=j.shift()));return(x=x||r.host&&_.length)&&!M&&_.unshift(""),_.length?r.pathname=_.join("/"):(r.pathname=null,r.path=null),i.isNull(r.pathname)&&i.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},o.prototype.parseHost=function(){var e=this.host,t=a.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":607,punycode:283,querystring:286}],607:[function(e,t,r){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],608:[function(e,t,r){(function(e){function r(t){try{if(!e.localStorage)return!1}catch(e){return!1}var r=e.localStorage[t];return null!=r&&"true"===String(r).toLowerCase()}t.exports=function(e,t){if(r("noDeprecation"))return e;var n=!1;return function(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],609:[function(e,t,r){arguments[4][10][0].apply(r,arguments)},{dup:10}],610:[function(e,t,r){arguments[4][11][0].apply(r,arguments)},{"./support/isBuffer":609,_process:282,dup:11,inherits:72}],611:[function(e,t,r){t.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");Object.keys(t).forEach(function(e){n[e]=t[e]});return n;function n(){for(var e=new Array(arguments.length),r=0;r + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/vendor/stylus-lang/README.md b/vendor/stylus-lang/README.md deleted file mode 100644 index 4eac9a10..00000000 --- a/vendor/stylus-lang/README.md +++ /dev/null @@ -1 +0,0 @@ -The content of this folder belongs to [stylus preprocessor](https://github.com/stylus/stylus/). \ No newline at end of file diff --git a/vendor/stylus-lang/stylus.min.js b/vendor/stylus-lang/stylus.min.js index defb814d..77e30038 100644 --- a/vendor/stylus-lang/stylus.min.js +++ b/vendor/stylus-lang/stylus.min.js @@ -1,6194 +1,6 @@ -if (Function.prototype.name === undefined && Object.defineProperty !== undefined) { - Object.defineProperty(Function.prototype, "name", { - get: function () { - var regex = /function\s([^(]{1,})\(/, match = regex.exec(this.toString()); - return match && match.length > 1 ? match[1].trim() : "" - }, - }) -} -if (String.prototype.trimRight === undefined) { - String.prototype.trimRight = function () { - return String(this).replace(/\s+$/, "") - } -} -var stylus = function () { - function require(p) { - var path = require.resolve(p), mod = require.modules[path]; - if (!mod) throw new Error('failed to require "' + p + '"'); - if (!mod.exports) { - mod.exports = {}; - mod.call(mod.exports, mod, mod.exports, require.relative(path)) - } - return mod.exports - } - - var bifs = "called-from = ()\n\nvendors = moz webkit o ms official\n\n// stringify the given arg\n\n-string(arg)\n type(arg) + ' ' + arg\n\n// require a color\n\nrequire-color(color)\n unless color is a 'color'\n error('RGB or HSL value expected, got a ' + -string(color))\n\n// require a unit\n\nrequire-unit(n)\n unless n is a 'unit'\n error('unit expected, got a ' + -string(n))\n\n// require a string\n\nrequire-string(str)\n unless str is a 'string' or str is a 'ident'\n error('string expected, got a ' + -string(str))\n\n// Math functions\n\nabs(n) { math(n, 'abs') }\nmin(a, b) { a < b ? a : b }\nmax(a, b) { a > b ? a : b }\n\n// Trigonometrics\nPI = -math-prop('PI')\n\nradians-to-degrees(angle)\n angle * (180 / PI)\n\ndegrees-to-radians(angle)\n unit(angle * (PI / 180),'')\n\nsin(n)\n n = degrees-to-radians(n) if unit(n) == 'deg'\n round(math(n, 'sin'), 9)\n\ncos(n)\n n = degrees-to-radians(n) if unit(n) == 'deg'\n round(math(n, 'cos'), 9)\n\n// Rounding Math functions\n\nceil(n, precision = 0)\n multiplier = 10 ** precision\n math(n * multiplier, 'ceil') / multiplier\n\nfloor(n, precision = 0)\n multiplier = 10 ** precision\n math(n * multiplier, 'floor') / multiplier\n\nround(n, precision = 0)\n multiplier = 10 ** precision\n math(n * multiplier, 'round') / multiplier\n\n// return the sum of the given numbers\n\nsum(nums)\n sum = 0\n sum += n for n in nums\n\n// return the average of the given numbers\n\navg(nums)\n sum(nums) / length(nums)\n\n// return a unitless number, or pass through\n\nremove-unit(n)\n if typeof(n) is 'unit'\n unit(n, '')\n else\n n\n\n// convert a percent to a decimal, or pass through\n\npercent-to-decimal(n)\n if unit(n) is '%'\n remove-unit(n) / 100\n else\n n\n\n// check if n is an odd number\n\nodd(n)\n 1 == n % 2\n\n// check if n is an even number\n\neven(n)\n 0 == n % 2\n\n// check if color is light\n\nlight(color)\n lightness(color) >= 50%\n\n// check if color is dark\n\ndark(color)\n lightness(color) < 50%\n\n// desaturate color by amount\n\ndesaturate(color, amount)\n adjust(color, 'saturation', - amount)\n\n// saturate color by amount\n\nsaturate(color = '', amount = 100%)\n if color is a 'color'\n adjust(color, 'saturation', amount)\n else\n unquote( 'saturate(' + color + ')' )\n\n// darken by the given amount\n\ndarken(color, amount)\n adjust(color, 'lightness', - amount)\n\n// lighten by the given amount\n\nlighten(color, amount)\n adjust(color, 'lightness', amount)\n\n// decrease opacity by amount\n\nfade-out(color, amount)\n color - rgba(black, percent-to-decimal(amount))\n\n// increase opacity by amount\n\nfade-in(color, amount)\n color + rgba(black, percent-to-decimal(amount))\n\n// spin hue by a given amount\n\nspin(color, amount)\n color + unit(amount, deg)\n\n// mix two colors by a given amount\n\nmix(color1, color2, weight = 50%)\n unless weight in 0..100\n error('Weight must be between 0% and 100%')\n\n if length(color1) == 2\n weight = color1[0]\n color1 = color1[1]\n\n else if length(color2) == 2\n weight = 100 - color2[0]\n color2 = color2[1]\n\n require-color(color1)\n require-color(color2)\n\n p = unit(weight / 100, '')\n w = p * 2 - 1\n\n a = alpha(color1) - alpha(color2)\n\n w1 = (((w * a == -1) ? w : (w + a) / (1 + w * a)) + 1) / 2\n w2 = 1 - w1\n\n channels = (red(color1) red(color2)) (green(color1) green(color2)) (blue(color1) blue(color2))\n rgb = ()\n\n for pair in channels\n push(rgb, floor(pair[0] * w1 + pair[1] * w2))\n\n a1 = alpha(color1) * p\n a2 = alpha(color2) * (1 - p)\n alpha = a1 + a2\n\n rgba(rgb[0], rgb[1], rgb[2], alpha)\n\n// invert colors, leave alpha intact\n\ninvert(color = '')\n if color is a 'color'\n rgba(#fff - color, alpha(color))\n else\n unquote( 'invert(' + color + ')' )\n\n// give complement of the given color\n\ncomplement( color )\n spin( color, 180 )\n\n// give grayscale of the given color\n\ngrayscale( color = '' )\n if color is a 'color'\n desaturate( color, 100% )\n else\n unquote( 'grayscale(' + color + ')' )\n\n// mix the given color with white\n\ntint( color, percent )\n mix( white, color, percent )\n\n// mix the given color with black\n\nshade( color, percent )\n mix( black, color, percent )\n\n// return the last value in the given expr\n\nlast(expr)\n expr[length(expr) - 1]\n\n// return keys in the given pairs or object\n\nkeys(pairs)\n ret = ()\n if type(pairs) == 'object'\n for key in pairs\n push(ret, key)\n else\n for pair in pairs\n push(ret, pair[0]);\n ret\n\n// return values in the given pairs or object\n\nvalues(pairs)\n ret = ()\n if type(pairs) == 'object'\n for key, val in pairs\n push(ret, val)\n else\n for pair in pairs\n push(ret, pair[1]);\n ret\n\n// join values with the given delimiter\n\njoin(delim, vals...)\n buf = ''\n vals = vals[0] if length(vals) == 1\n for val, i in vals\n buf += i ? delim + val : val\n\n// add a CSS rule to the containing block\n\n// - This definition allows add-property to be used as a mixin\n// - It has the same effect as interpolation but allows users\n// to opt for a functional style\n\nadd-property-function = add-property\nadd-property(name, expr)\n if mixin\n {name} expr\n else\n add-property-function(name, expr)\n\nprefix-classes(prefix)\n -prefix-classes(prefix, block)\n\n// Caching mixin, use inside your functions to enable caching by extending.\n\n$stylus_mixin_cache = {}\ncache()\n $key = (current-media() or 'no-media') + '__' + called-from[0] + '__' + arguments\n if $key in $stylus_mixin_cache\n @extend {'$cache_placeholder_for_' + $stylus_mixin_cache[$key]}\n else if 'cache' in called-from\n {block}\n else\n $id = length($stylus_mixin_cache)\n\n &,\n /$cache_placeholder_for_{$id}\n $stylus_mixin_cache[$key] = $id\n {block}\n\n// Percentage function to convert a number, e.g. '.45', into a percentage, e.g. '45%'\n\npercentage(num)\n return unit(num * 100, '%')\n\n// Returns the position of a `value` within a `list`\n\nindex(list, value)\n for val, i in list\n return i if val == value\n"; - require.modules = {}; - require.resolve = function (path) { - var orig = path, reg = path + ".js", index = path + "/index.js"; - return require.modules[reg] && reg || require.modules[index] && index || orig - }; - require.register = function (path, fn) { - require.modules[path] = fn - }; - require.relative = function (parent) { - return function (p) { - if ("." != p[0]) return require(p); - var path = parent.split("/"), segs = p.split("/"); - path.pop(); - for (var i = 0; i < segs.length; i++) { - var seg = segs[i]; - if (".." == seg) path.pop(); else if ("." != seg) path.push(seg) - } - return require(path.join("/")) - } - }; - require.register("path.js", function (module, exports, require) { - var isWindows = false; - - function normalizeArray(parts, allowAboveRoot) { - var up = 0; - for (var i = parts.length - 1; i >= 0; i--) { - var last = parts[i]; - if (last == ".") {parts.splice(i, 1)} else if (last === "..") { - parts.splice(i, 1); - up++ - } else if (up) { - parts.splice(i, 1); - up-- - } - } - if (allowAboveRoot) {for (; up--; up) {parts.unshift("..")}} - return parts - } - - var splitPathRe = /^([\s\S]+\/(?!$)|\/)?((?:[\s\S]+?)?(\.[^.]*)?)$/; - exports.normalize = function (path) { - var isAbsolute = path.charAt(0) === "/", trailingSlash = path.slice(-1) === "/"; - path = normalizeArray(path.split("/").filter(function (p) { - return !!p - }), !isAbsolute).join("/"); - if (!path && !isAbsolute) {path = "."} - if (path && trailingSlash) {path += "/"} - return (isAbsolute ? "/" : "") + path - }; - exports.join = function () { - var paths = Array.prototype.slice.call(arguments, 0); - return exports.normalize(paths.filter(function (p, index) { - return p && typeof p === "string" - }).join("/")) - }; - exports.relative = function (from, to) { - from = exports.resolve(from).substr(1); - to = exports.resolve(to).substr(1); - - function trim(arr) { - var start = 0; - for (; start < arr.length; start++) {if (arr[start] !== "") break} - var end = arr.length - 1; - for (; end >= 0; end--) {if (arr[end] !== "") break} - if (start > end) return []; - return arr.slice(start, end - start + 1) - } - - var fromParts = trim(from.split("/")); - var toParts = trim(to.split("/")); - var length = Math.min(fromParts.length, toParts.length); - var samePartsLength = length; - for (var i = 0; i < length; i++) { - if (fromParts[i] !== toParts[i]) { - samePartsLength = i; - break - } - } - var outputParts = []; - for (var i = samePartsLength; i < fromParts.length; i++) {outputParts.push("..")} - outputParts = outputParts.concat(toParts.slice(samePartsLength)); - return outputParts.join("/") - }; - exports.dirname = function (path) { - var dir = splitPathRe.exec(path)[1] || ""; - if (!dir) {return "."} else if (dir.length === 1 || isWindows && dir.length <= 3 && dir.charAt(1) === ":") {return dir} else {return dir.substring(0, dir.length - 1)} - }; - exports.basename = function (path, ext) { - var f = splitPathRe.exec(path)[2] || ""; - if (ext && f.substr(-1 * ext.length) === ext) {f = f.substr(0, f.length - ext.length)} - return f - }; - exports.extname = function (path) { - return splitPathRe.exec(path)[3] || "" - } - }); - require.register("colors.js", function (module, exports, require) { - module.exports = { - aliceblue: [240, 248, 255, 1], antiquewhite: [250, 235, 215, 1], aqua: [0, 255, 255, 1], - aquamarine: [127, 255, 212, 1], azure: [240, 255, 255, 1], beige: [245, 245, 220, 1], - bisque: [255, 228, 196, 1], black: [0, 0, 0, 1], blanchedalmond: [255, 235, 205, 1], - blue: [0, 0, 255, 1], blueviolet: [138, 43, 226, 1], brown: [165, 42, 42, 1], - burlywood: [222, 184, 135, 1], cadetblue: [95, 158, 160, 1], chartreuse: [127, 255, 0, 1], - chocolate: [210, 105, 30, 1], coral: [255, 127, 80, 1], cornflowerblue: [100, 149, 237, 1], - cornsilk: [255, 248, 220, 1], crimson: [220, 20, 60, 1], cyan: [0, 255, 255, 1], - darkblue: [0, 0, 139, 1], darkcyan: [0, 139, 139, 1], darkgoldenrod: [184, 134, 11, 1], - darkgray: [169, 169, 169, 1], darkgreen: [0, 100, 0, 1], darkgrey: [169, 169, 169, 1], - darkkhaki: [189, 183, 107, 1], darkmagenta: [139, 0, 139, 1], darkolivegreen: [85, 107, 47, 1], - darkorange: [255, 140, 0, 1], darkorchid: [153, 50, 204, 1], darkred: [139, 0, 0, 1], - darksalmon: [233, 150, 122, 1], darkseagreen: [143, 188, 143, 1], darkslateblue: [72, 61, 139, 1], - darkslategray: [47, 79, 79, 1], darkslategrey: [47, 79, 79, 1], darkturquoise: [0, 206, 209, 1], - darkviolet: [148, 0, 211, 1], deeppink: [255, 20, 147, 1], deepskyblue: [0, 191, 255, 1], - dimgray: [105, 105, 105, 1], dimgrey: [105, 105, 105, 1], dodgerblue: [30, 144, 255, 1], - firebrick: [178, 34, 34, 1], floralwhite: [255, 250, 240, 1], forestgreen: [34, 139, 34, 1], - fuchsia: [255, 0, 255, 1], gainsboro: [220, 220, 220, 1], ghostwhite: [248, 248, 255, 1], - gold: [255, 215, 0, 1], goldenrod: [218, 165, 32, 1], gray: [128, 128, 128, 1], - green: [0, 128, 0, 1], greenyellow: [173, 255, 47, 1], grey: [128, 128, 128, 1], - honeydew: [240, 255, 240, 1], hotpink: [255, 105, 180, 1], indianred: [205, 92, 92, 1], - indigo: [75, 0, 130, 1], ivory: [255, 255, 240, 1], khaki: [240, 230, 140, 1], - lavender: [230, 230, 250, 1], lavenderblush: [255, 240, 245, 1], lawngreen: [124, 252, 0, 1], - lemonchiffon: [255, 250, 205, 1], lightblue: [173, 216, 230, 1], lightcoral: [240, 128, 128, 1], - lightcyan: [224, 255, 255, 1], lightgoldenrodyellow: [250, 250, 210, 1], lightgray: [211, 211, 211, 1], - lightgreen: [144, 238, 144, 1], lightgrey: [211, 211, 211, 1], lightpink: [255, 182, 193, 1], - lightsalmon: [255, 160, 122, 1], lightseagreen: [32, 178, 170, 1], lightskyblue: [135, 206, 250, 1], - lightslategray: [119, 136, 153, 1], lightslategrey: [119, 136, 153, 1], lightsteelblue: [176, 196, 222, 1], - lightyellow: [255, 255, 224, 1], lime: [0, 255, 0, 1], limegreen: [50, 205, 50, 1], - linen: [250, 240, 230, 1], magenta: [255, 0, 255, 1], maroon: [128, 0, 0, 1], - mediumaquamarine: [102, 205, 170, 1], mediumblue: [0, 0, 205, 1], mediumorchid: [186, 85, 211, 1], - mediumpurple: [147, 112, 219, 1], mediumseagreen: [60, 179, 113, 1], mediumslateblue: [123, 104, 238, 1], - mediumspringgreen: [0, 250, 154, 1], mediumturquoise: [72, 209, 204, 1], mediumvioletred: [199, 21, 133, 1], - midnightblue: [25, 25, 112, 1], mintcream: [245, 255, 250, 1], mistyrose: [255, 228, 225, 1], - moccasin: [255, 228, 181, 1], navajowhite: [255, 222, 173, 1], navy: [0, 0, 128, 1], - oldlace: [253, 245, 230, 1], olive: [128, 128, 0, 1], olivedrab: [107, 142, 35, 1], - orange: [255, 165, 0, 1], orangered: [255, 69, 0, 1], orchid: [218, 112, 214, 1], - palegoldenrod: [238, 232, 170, 1], palegreen: [152, 251, 152, 1], paleturquoise: [175, 238, 238, 1], - palevioletred: [219, 112, 147, 1], papayawhip: [255, 239, 213, 1], peachpuff: [255, 218, 185, 1], - peru: [205, 133, 63, 1], pink: [255, 192, 203, 1], plum: [221, 160, 221, 1], - powderblue: [176, 224, 230, 1], purple: [128, 0, 128, 1], red: [255, 0, 0, 1], - rosybrown: [188, 143, 143, 1], royalblue: [65, 105, 225, 1], saddlebrown: [139, 69, 19, 1], - salmon: [250, 128, 114, 1], sandybrown: [244, 164, 96, 1], seagreen: [46, 139, 87, 1], - seashell: [255, 245, 238, 1], sienna: [160, 82, 45, 1], silver: [192, 192, 192, 1], - skyblue: [135, 206, 235, 1], slateblue: [106, 90, 205, 1], slategray: [112, 128, 144, 1], - slategrey: [112, 128, 144, 1], snow: [255, 250, 250, 1], springgreen: [0, 255, 127, 1], - steelblue: [70, 130, 180, 1], tan: [210, 180, 140, 1], teal: [0, 128, 128, 1], - thistle: [216, 191, 216, 1], tomato: [255, 99, 71, 1], transparent: [0, 0, 0, 0], - turquoise: [64, 224, 208, 1], violet: [238, 130, 238, 1], wheat: [245, 222, 179, 1], - white: [255, 255, 255, 1], whitesmoke: [245, 245, 245, 1], yellow: [255, 255, 0, 1], - yellowgreen: [154, 205, 50, 1], rebeccapurple: [102, 51, 153, 1], - } - }); - require.register("errors.js", function (module, exports, require) { - exports.ParseError = ParseError; - exports.SyntaxError = SyntaxError; - SyntaxError.prototype.__proto__ = Error.prototype; - - function ParseError(msg) { - this.name = "ParseError"; - this.message = msg; - Error.captureStackTrace(this, ParseError) - } - - ParseError.prototype.__proto__ = Error.prototype; - - function SyntaxError(msg) { - this.name = "SyntaxError"; - this.message = msg; - Error.captureStackTrace(this, ParseError) - } - - SyntaxError.prototype.__proto__ = Error.prototype - }); - require.register("units.js", function (module, exports, require) { - module.exports = ["em", "ex", "ch", "rem", "vw", "vh", "vmin", "vmax", "cm", "mm", "in", "pt", "pc", "px", "deg", "grad", "rad", "turn", "s", "ms", "Hz", "kHz", "dpi", "dpcm", "dppx", "x", "%", "fr"] - }); - require.register("functions/index.js", function (module, exports, require) { - exports["add-property"] = require("./add-property"); - exports.adjust = require("./adjust"); - exports.alpha = require("./alpha"); - exports["base-convert"] = require("./base-convert"); - exports.basename = require("./basename"); - exports.blend = require("./blend"); - exports.blue = require("./blue"); - exports.clone = require("./clone"); - exports.component = require("./component"); - exports.contrast = require("./contrast"); - exports.convert = require("./convert"); - exports["current-media"] = require("./current-media"); - exports.define = require("./define"); - exports.dirname = require("./dirname"); - exports.error = require("./error"); - exports.extname = require("./extname"); - exports.green = require("./green"); - exports.hsl = require("./hsl"); - exports.hsla = require("./hsla"); - exports.hue = require("./hue"); - exports.length = require("./length"); - exports.lightness = require("./lightness"); - exports["list-separator"] = require("./list-separator"); - exports.lookup = require("./lookup"); - exports.luminosity = require("./luminosity"); - exports.match = require("./match"); - exports.math = require("./math"); - exports.merge = exports.extend = require("./merge"); - exports.operate = require("./operate"); - exports["opposite-position"] = require("./opposite-position"); - exports.p = require("./p"); - exports.pathjoin = require("./pathjoin"); - exports.pop = require("./pop"); - exports.push = exports.append = require("./push"); - exports.range = require("./range"); - exports.red = require("./red"); - exports.remove = require("./remove"); - exports.replace = require("./replace"); - exports.rgb = require("./rgb"); - exports.rgba = require("./rgba"); - exports.s = require("./s"); - exports.saturation = require("./saturation"); - exports["selector-exists"] = require("./selector-exists"); - exports.selector = require("./selector"); - exports.selectors = require("./selectors"); - exports.shift = require("./shift"); - exports.split = require("./split"); - exports.substr = require("./substr"); - exports.slice = require("./slice"); - exports.tan = require("./tan"); - exports.trace = require("./trace"); - exports.transparentify = require("./transparentify"); - exports.type = exports.typeof = exports["type-of"] = require("./type"); - exports.unit = require("./unit"); - exports.unquote = require("./unquote"); - exports.unshift = exports.prepend = require("./unshift"); - exports.warn = require("./warn"); - exports["-math-prop"] = require("./math-prop"); - exports["-prefix-classes"] = require("./prefix-classes") - }); - require.register("functions/url.js", function (module, exports, require) { - var Compiler = require("../visitor/compiler"), - events = require("../renderer").events, - nodes = require("../nodes"), - extname = require("../path").extname, - utils = require("../utils"); - var defaultMimes = { - ".gif": "image/gif", ".png": "image/png", ".jpg": "image/jpeg", ".jpeg": "image/jpeg", ".svg": "image/svg+xml", - ".webp": "image/webp", ".ttf": "application/x-font-ttf", ".eot": "application/vnd.ms-fontobject", - ".woff": "application/font-woff", ".woff2": "application/font-woff2", - }; - var encodingTypes = {BASE_64: "base64", UTF8: "charset=utf-8"}; - module.exports = function (options) { - options = options || {}; - var _paths = options.paths || []; - var sizeLimit = null != options.limit ? options.limit : 3e4; - var mimes = options.mimes || defaultMimes; - - function fn(url, enc) { - var compiler = new Compiler(url), encoding = encodingTypes.BASE_64; - compiler.isURL = true; - url = url.nodes.map(function (node) { - return compiler.visit(node) - }).join(""); - url = parse(url); - var ext = extname(url.pathname), - mime = mimes[ext], - hash = url.hash || "", - literal = new nodes.Literal('url("' + url.href + '")'), - paths = _paths.concat(this.paths), - buf, - result; - if (!mime) return literal; - if (url.protocol) return literal; - var found = utils.lookup(url.pathname, paths); - if (!found) { - events.emit("file not found", "File " + literal + " could not be found, literal url retained!"); - return literal - } - buf = fs.readFileSync(found); - if (false !== sizeLimit && buf.length > sizeLimit) return literal; - if (enc && "utf8" == enc.first.val.toLowerCase()) { - encoding = encodingTypes.UTF8; - result = buf.toString("utf8").replace(/\s+/g, " ").replace(/[{}\|\\\^~\[\]`"<>#%]/g, function (match) { - return "%" + match[0].charCodeAt(0).toString(16).toUpperCase() - }).trim() - } else {result = buf.toString(encoding) + hash} - return new nodes.Literal('url("data:' + mime + ";" + encoding + "," + result + '")') - } - - fn.raw = true; - return fn - }; - module.exports.mimes = defaultMimes - }); - require.register("functions/add-property.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - (module.exports = function addProperty(name, expr) { - utils.assertType(name, "expression", "name"); - name = utils.unwrap(name).first; - utils.assertString(name, "name"); - utils.assertType(expr, "expression", "expr"); - var prop = new nodes.Property([name], expr); - var block = this.closestBlock; - var len = block.nodes.length, - head = block.nodes.slice(0, block.index), - tail = block.nodes.slice(block.index++, len); - head.push(prop); - block.nodes = head.concat(tail); - return prop - }).raw = true - }); - require.register("functions/adjust.js", function (module, exports, require) { - var utils = require("../utils"); - module.exports = function adjust(color, prop, amount) { - utils.assertColor(color, "color"); - utils.assertString(prop, "prop"); - utils.assertType(amount, "unit", "amount"); - var hsl = color.hsla.clone(); - prop = {hue: "h", saturation: "s", lightness: "l"}[prop.string]; - if (!prop) throw new Error("invalid adjustment property"); - var val = amount.val; - if ("%" == amount.type) {val = "l" == prop && val > 0 ? (100 - hsl[prop]) * val / 100 : hsl[prop] * (val / 100)} - hsl[prop] += val; - return hsl.rgba - } - }); - require.register("functions/alpha.js", function (module, exports, require) { - var nodes = require("../nodes"), rgba = require("./rgba"); - module.exports = function alpha(color, value) { - color = color.rgba; - if (value) {return rgba(new nodes.Unit(color.r), new nodes.Unit(color.g), new nodes.Unit(color.b), value)} - return new nodes.Unit(color.a, "") - } - }); - require.register("functions/base-convert.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - (module.exports = function (num, base, width) { - utils.assertPresent(num, "number"); - utils.assertPresent(base, "base"); - num = utils.unwrap(num).nodes[0].val; - base = utils.unwrap(base).nodes[0].val; - width = width && utils.unwrap(width).nodes[0].val || 2; - var result = Number(num).toString(base); - while (result.length < width) {result = "0" + result} - return new nodes.Literal(result) - }).raw = true - }); - require.register("functions/basename.js", function (module, exports, require) { - var utils = require("../utils"), path = require("../path"); - module.exports = function basename(p, ext) { - utils.assertString(p, "path"); - return path.basename(p.val, ext && ext.val) - } - }); - require.register("functions/blend.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function blend(top, bottom) { - utils.assertColor(top); - top = top.rgba; - bottom = bottom || new nodes.RGBA(255, 255, 255, 1); - utils.assertColor(bottom); - bottom = bottom.rgba; - return new nodes.RGBA(top.r * top.a + bottom.r * (1 - top.a), top.g * top.a + bottom.g * (1 - top.a), top.b * top.a + bottom.b * (1 - top.a), top.a + bottom.a - top.a * bottom.a) - } - }); - require.register("functions/blue.js", function (module, exports, require) { - var nodes = require("../nodes"), rgba = require("./rgba"); - module.exports = function blue(color, value) { - color = color.rgba; - if (value) {return rgba(new nodes.Unit(color.r), new nodes.Unit(color.g), value, new nodes.Unit(color.a))} - return new nodes.Unit(color.b, "") - } - }); - require.register("functions/clone.js", function (module, exports, require) { - var utils = require("../utils"); - (module.exports = function clone(expr) { - utils.assertPresent(expr, "expr"); - return expr.clone() - }).raw = true - }); - require.register("functions/component.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - var componentMap = {red: "r", green: "g", blue: "b", alpha: "a", hue: "h", saturation: "s", lightness: "l"}; - var unitMap = {hue: "deg", saturation: "%", lightness: "%"}; - var typeMap = { - red: "rgba", blue: "rgba", green: "rgba", alpha: "rgba", hue: "hsla", saturation: "hsla", lightness: "hsla", - }; - module.exports = function component(color, name) { - utils.assertColor(color, "color"); - utils.assertString(name, "name"); - var name = name.string, unit = unitMap[name], type = typeMap[name], name = componentMap[name]; - if (!name) throw new Error('invalid color component "' + name + '"'); - return new nodes.Unit(color[type][name], unit) - } - }); - require.register("functions/contrast.js", function (module, exports, require) { - var utils = require("../utils"), - nodes = require("../nodes"), - blend = require("./blend"), - luminosity = require("./luminosity"); - module.exports = function contrast(top, bottom) { - if ("rgba" != top.nodeName && "hsla" != top.nodeName) {return new nodes.Literal("contrast(" + (top.isNull ? "" : top.toString()) + ")")} - var result = new nodes.Object; - top = top.rgba; - bottom = bottom || new nodes.RGBA(255, 255, 255, 1); - utils.assertColor(bottom); - bottom = bottom.rgba; - - function contrast(top, bottom) { - if (1 > top.a) {top = blend(top, bottom)} - var l1 = luminosity(bottom).val + .05, l2 = luminosity(top).val + .05, ratio = l1 / l2; - if (l2 > l1) {ratio = 1 / ratio} - return Math.round(ratio * 10) / 10 - } - - if (1 <= bottom.a) { - var resultRatio = new nodes.Unit(contrast(top, bottom)); - result.set("ratio", resultRatio); - result.set("error", new nodes.Unit(0)); - result.set("min", resultRatio); - result.set("max", resultRatio) - } else { - var onBlack = contrast(top, blend(bottom, new nodes.RGBA(0, 0, 0, 1))), - onWhite = contrast(top, blend(bottom, new nodes.RGBA(255, 255, 255, 1))), - max = Math.max(onBlack, onWhite); - - function processChannel(topChannel, bottomChannel) { - return Math.min(Math.max(0, (topChannel - bottomChannel * bottom.a) / (1 - bottom.a)), 255) - } - - var closest = new nodes.RGBA(processChannel(top.r, bottom.r), processChannel(top.g, bottom.g), processChannel(top.b, bottom.b), 1); - var min = contrast(top, blend(bottom, closest)); - result.set("ratio", new nodes.Unit(Math.round((min + max) * 50) / 100)); - result.set("error", new nodes.Unit(Math.round((max - min) * 50) / 100)); - result.set("min", new nodes.Unit(min)); - result.set("max", new nodes.Unit(max)) - } - return result - } - }); - require.register("functions/convert.js", function (module, exports, require) { - var utils = require("../utils"); - module.exports = function convert(str) { - utils.assertString(str, "str"); - return utils.parseString(str.string) - } - }); - require.register("functions/current-media.js", function (module, exports, require) { - var nodes = require("../nodes"); - module.exports = function currentMedia() { - var self = this; - return new nodes.String(lookForMedia(this.closestBlock.node) || ""); - - function lookForMedia(node) { - if ("media" == node.nodeName) { - node.val = self.visit(node.val); - return node.toString() - } else if (node.block.parent.node) {return lookForMedia(node.block.parent.node)} - } - } - }); - require.register("functions/define.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function define(name, expr, global) { - utils.assertType(name, "string", "name"); - expr = utils.unwrap(expr); - var scope = this.currentScope; - if (global && global.toBoolean().isTrue) {scope = this.global.scope} - var node = new nodes.Ident(name.val, expr); - scope.add(node); - return nodes.nil - } - }); - require.register("functions/dirname.js", function (module, exports, require) { - var utils = require("../utils"), path = require("../path"); - module.exports = function dirname(p) { - utils.assertString(p, "path"); - return path.dirname(p.val).replace(/\\/g, "/") - } - }); - require.register("functions/error.js", function (module, exports, require) { - var utils = require("../utils"); - module.exports = function error(msg) { - utils.assertType(msg, "string", "msg"); - var err = new Error(msg.val); - err.fromStylus = true; - throw err - } - }); - require.register("functions/extname.js", function (module, exports, require) { - var utils = require("../utils"), path = require("../path"); - module.exports = function extname(p) { - utils.assertString(p, "path"); - return path.extname(p.val) - } - }); - require.register("functions/green.js", function (module, exports, require) { - var nodes = require("../nodes"), rgba = require("./rgba"); - module.exports = function green(color, value) { - color = color.rgba; - if (value) {return rgba(new nodes.Unit(color.r), value, new nodes.Unit(color.b), new nodes.Unit(color.a))} - return new nodes.Unit(color.g, "") - } - }); - require.register("functions/hsl.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"), hsla = require("./hsla"); - module.exports = function hsl(hue, saturation, lightness) { - if (1 == arguments.length) { - utils.assertColor(hue, "color"); - return hue.hsla - } else {return hsla(hue, saturation, lightness, new nodes.Unit(1))} - } - }); - require.register("functions/hsla.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function hsla(hue, saturation, lightness, alpha) { - switch (arguments.length) { - case 1: - utils.assertColor(hue); - return hue.hsla; - case 2: - utils.assertColor(hue); - var color = hue.hsla; - utils.assertType(saturation, "unit", "alpha"); - var alpha = saturation.clone(); - if ("%" == alpha.type) alpha.val /= 100; - return new nodes.HSLA(color.h, color.s, color.l, alpha.val); - default: - utils.assertType(hue, "unit", "hue"); - utils.assertType(saturation, "unit", "saturation"); - utils.assertType(lightness, "unit", "lightness"); - utils.assertType(alpha, "unit", "alpha"); - var alpha = alpha.clone(); - if (alpha && "%" == alpha.type) alpha.val /= 100; - return new nodes.HSLA(hue.val, saturation.val, lightness.val, alpha.val) - } - } - }); - require.register("functions/hue.js", function (module, exports, require) { - var nodes = require("../nodes"), hsla = require("./hsla"), component = require("./component"); - module.exports = function hue(color, value) { - if (value) { - var hslaColor = color.hsla; - return hsla(value, new nodes.Unit(hslaColor.s), new nodes.Unit(hslaColor.l), new nodes.Unit(hslaColor.a)) - } - return component(color, new nodes.String("hue")) - } - }); - require.register("functions/length.js", function (module, exports, require) { - var utils = require("../utils"); - (module.exports = function length(expr) { - if (expr) { - if (expr.nodes) { - var nodes = utils.unwrap(expr).nodes; - if (1 == nodes.length && "object" == nodes[0].nodeName) {return nodes[0].length} else {return nodes.length} - } else {return 1} - } - return 0 - }).raw = true - }); - require.register("functions/lightness.js", function (module, exports, require) { - var nodes = require("../nodes"), hsla = require("./hsla"), component = require("./component"); - module.exports = function lightness(color, value) { - if (value) { - var hslaColor = color.hsla; - return hsla(new nodes.Unit(hslaColor.h), new nodes.Unit(hslaColor.s), value, new nodes.Unit(hslaColor.a)) - } - return component(color, new nodes.String("lightness")) - } - }); - require.register("functions/list-separator.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - (module.exports = function listSeparator(list) { - list = utils.unwrap(list); - return new nodes.String(list.isList ? "," : " ") - }).raw = true - }); - require.register("functions/lookup.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function lookup(name) { - utils.assertType(name, "string", "name"); - var node = this.lookup(name.val); - if (!node) return nodes.nil; - return this.visit(node) - } - }); - require.register("functions/luminosity.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function luminosity(color) { - utils.assertColor(color); - color = color.rgba; - - function processChannel(channel) { - channel = channel / 255; - return .03928 > channel ? channel / 12.92 : Math.pow((channel + .055) / 1.055, 2.4) - } - - return new nodes.Unit(.2126 * processChannel(color.r) + .7152 * processChannel(color.g) + .0722 * processChannel(color.b)) - } - }); - require.register("functions/match.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - var VALID_FLAGS = "igm"; - module.exports = function match(pattern, val, flags) { - utils.assertType(pattern, "string", "pattern"); - utils.assertString(val, "val"); - var re = new RegExp(pattern.val, validateFlags(flags) ? flags.string : ""); - return val.string.match(re) - }; - - function validateFlags(flags) { - flags = flags && flags.string; - if (flags) { - return flags.split("").every(function (flag) { - return ~VALID_FLAGS.indexOf(flag) - }) - } - return false - } - }); - require.register("functions/math-prop.js", function (module, exports, require) { - var nodes = require("../nodes"); - module.exports = function math(prop) { - return new nodes.Unit(Math[prop.string]) - } - }); - require.register("functions/math.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function math(n, fn) { - utils.assertType(n, "unit", "n"); - utils.assertString(fn, "fn"); - return new nodes.Unit(Math[fn.string](n.val), n.type) - } - }); - require.register("functions/merge.js", function (module, exports, require) { - var utils = require("../utils"); - (module.exports = function merge(dest) { - utils.assertPresent(dest, "dest"); - dest = utils.unwrap(dest).first; - utils.assertType(dest, "object", "dest"); - var last = utils.unwrap(arguments[arguments.length - 1]).first, deep = true === last.val; - for (var i = 1, len = arguments.length - deep; i < len; ++i) {utils.merge(dest.vals, utils.unwrap(arguments[i]).first.vals, deep)} - return dest - }).raw = true - }); - require.register("functions/operate.js", function (module, exports, require) { - var utils = require("../utils"); - module.exports = function operate(op, left, right) { - utils.assertType(op, "string", "op"); - utils.assertPresent(left, "left"); - utils.assertPresent(right, "right"); - return left.operate(op.val, right) - } - }); - require.register("functions/opposite-position.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - (module.exports = function oppositePosition(positions) { - var expr = []; - utils.unwrap(positions).nodes.forEach(function (pos, i) { - utils.assertString(pos, "position " + i); - pos = function () { - switch (pos.string) { - case"top": - return "bottom"; - case"bottom": - return "top"; - case"left": - return "right"; - case"right": - return "left"; - case"center": - return "center"; - default: - throw new Error("invalid position " + pos) - } - }(); - expr.push(new nodes.Literal(pos)) - }); - return expr - }).raw = true - }); - require.register("functions/p.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - (module.exports = function p() { - [].slice.call(arguments).forEach(function (expr) { - expr = utils.unwrap(expr); - if (!expr.nodes.length) return; - console.log("inspect: %s", expr.toString().replace(/^\(|\)$/g, "")) - }); - return nodes.nil - }).raw = true - }); - require.register("functions/pathjoin.js", function (module, exports, require) { - var path = require("../path"); - (module.exports = function pathjoin() { - var paths = [].slice.call(arguments).map(function (path) { - return path.first.string - }); - return path.join.apply(null, paths).replace(/\\/g, "/") - }).raw = true - }); - require.register("functions/pop.js", function (module, exports, require) { - var utils = require("../utils"); - (module.exports = function pop(expr) { - expr = utils.unwrap(expr); - return expr.nodes.pop() - }).raw = true - }); - require.register("functions/prefix-classes.js", function (module, exports, require) { - var utils = require("../utils"); - module.exports = function prefixClasses(prefix, block) { - utils.assertString(prefix, "prefix"); - utils.assertType(block, "block", "block"); - var _prefix = this.prefix; - this.options.prefix = this.prefix = prefix.string; - block = this.visit(block); - this.options.prefix = this.prefix = _prefix; - return block - } - }); - require.register("functions/push.js", function (module, exports, require) { - var utils = require("../utils"); - (module.exports = function (expr) { - expr = utils.unwrap(expr); - for (var i = 1, len = arguments.length; i < len; ++i) {expr.nodes.push(utils.unwrap(arguments[i]).clone())} - return expr.nodes.length - }).raw = true - }); - require.register("functions/range.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function range(start, stop, step) { - utils.assertType(start, "unit", "start"); - utils.assertType(stop, "unit", "stop"); - if (step) { - utils.assertType(step, "unit", "step"); - if (0 == step.val) {throw new Error('ArgumentError: "step" argument must not be zero')} - } else {step = new nodes.Unit(1)} - var list = new nodes.Expression; - for (var i = start.val; i <= stop.val; i += step.val) {list.push(new nodes.Unit(i, start.type))} - return list - } - }); - require.register("functions/red.js", function (module, exports, require) { - var nodes = require("../nodes"), rgba = require("./rgba"); - module.exports = function red(color, value) { - color = color.rgba; - if (value) {return rgba(value, new nodes.Unit(color.g), new nodes.Unit(color.b), new nodes.Unit(color.a))} - return new nodes.Unit(color.r, "") - } - }); - require.register("functions/remove.js", function (module, exports, require) { - var utils = require("../utils"); - module.exports = function remove(object, key) { - utils.assertType(object, "object", "object"); - utils.assertString(key, "key"); - delete object.vals[key.string]; - return object - } - }); - require.register("functions/replace.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function replace(pattern, replacement, val) { - utils.assertString(pattern, "pattern"); - utils.assertString(replacement, "replacement"); - utils.assertString(val, "val"); - pattern = new RegExp(pattern.string, "g"); - var res = val.string.replace(pattern, replacement.string); - return val instanceof nodes.Ident ? new nodes.Ident(res) : new nodes.String(res) - } - }); - require.register("functions/rgb.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"), rgba = require("./rgba"); - module.exports = function rgb(red, green, blue) { - switch (arguments.length) { - case 1: - utils.assertColor(red); - var color = red.rgba; - return new nodes.RGBA(color.r, color.g, color.b, 1); - default: - return rgba(red, green, blue, new nodes.Unit(1)) - } - } - }); - require.register("functions/rgba.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function rgba(red, green, blue, alpha) { - switch (arguments.length) { - case 1: - utils.assertColor(red); - return red.rgba; - case 2: - utils.assertColor(red); - var color = red.rgba; - utils.assertType(green, "unit", "alpha"); - alpha = green.clone(); - if ("%" == alpha.type) alpha.val /= 100; - return new nodes.RGBA(color.r, color.g, color.b, alpha.val); - default: - utils.assertType(red, "unit", "red"); - utils.assertType(green, "unit", "green"); - utils.assertType(blue, "unit", "blue"); - utils.assertType(alpha, "unit", "alpha"); - var r = "%" == red.type ? Math.round(red.val * 2.55) : red.val, - g = "%" == green.type ? Math.round(green.val * 2.55) : green.val, - b = "%" == blue.type ? Math.round(blue.val * 2.55) : blue.val; - alpha = alpha.clone(); - if (alpha && "%" == alpha.type) alpha.val /= 100; - return new nodes.RGBA(r, g, b, alpha.val) - } - } - }); - require.register("functions/s.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"), Compiler = require("../visitor/compiler"); - (module.exports = function s(fmt) { - fmt = utils.unwrap(fmt).nodes[0]; - utils.assertString(fmt); - var self = this, str = fmt.string, args = arguments, i = 1; - str = str.replace(/%(s|d)/g, function (_, specifier) { - var arg = args[i++] || nodes.nil; - switch (specifier) { - case"s": - return new Compiler(arg, self.options).compile(); - case"d": - arg = utils.unwrap(arg).first; - if ("unit" != arg.nodeName) throw new Error("%d requires a unit"); - return arg.val - } - }); - return new nodes.Literal(str) - }).raw = true - }); - require.register("functions/saturation.js", function (module, exports, require) { - var nodes = require("../nodes"), hsla = require("./hsla"), component = require("./component"); - module.exports = function saturation(color, value) { - if (value) { - var hslaColor = color.hsla; - return hsla(new nodes.Unit(hslaColor.h), value, new nodes.Unit(hslaColor.l), new nodes.Unit(hslaColor.a)) - } - return component(color, new nodes.String("saturation")) - } - }); - require.register("functions/selector-exists.js", function (module, exports, require) { - var utils = require("../utils"); - module.exports = function selectorExists(sel) { - utils.assertString(sel, "selector"); - if (!this.__selectorsMap__) { - var Normalizer = require("../visitor/normalizer"), - visitor = new Normalizer(this.root.clone()); - visitor.visit(visitor.root); - this.__selectorsMap__ = visitor.map - } - return sel.string in this.__selectorsMap__ - } - }); - require.register("functions/selector.js", function (module, exports, require) { - var utils = require("../utils"); - (module.exports = function selector() { - var stack = this.selectorStack, args = [].slice.call(arguments); - if (1 == args.length) { - var expr = utils.unwrap(args[0]), len = expr.nodes.length; - if (1 == len) { - utils.assertString(expr.first, "selector"); - var SelectorParser = require("../selector-parser"), - val = expr.first.string, - parsed = new SelectorParser(val).parse().val; - if (parsed == val) return val; - stack.push(parse(val)) - } else if (len > 1) { - if (expr.isList) {pushToStack(expr.nodes, stack)} else { - stack.push(parse(expr.nodes.map(function (node) { - utils.assertString(node, "selector"); - return node.string - }).join(" "))) - } - } - } else if (args.length > 1) {pushToStack(args, stack)} - return stack.length ? utils.compileSelectors(stack).join(",") : "&" - }).raw = true; - - function pushToStack(selectors, stack) { - selectors.forEach(function (sel) { - sel = sel.first; - utils.assertString(sel, "selector"); - stack.push(parse(sel.string)) - }) - } - - function parse(selector) { - var Parser = new require("../parser"), parser = new Parser(selector), nodes; - parser.state.push("selector-parts"); - nodes = parser.selector(); - nodes.forEach(function (node) { - node.val = node.segments.map(function (seg) { - return seg.toString() - }).join("") - }); - return nodes - } - }); - require.register("functions/selectors.js", function (module, exports, require) { - var nodes = require("../nodes"), Parser = require("../selector-parser"); - module.exports = function selectors() { - var stack = this.selectorStack, expr = new nodes.Expression(true); - if (stack.length) { - for (var i = 0; i < stack.length; i++) { - var group = stack[i], nested; - if (group.length > 1) { - expr.push(new nodes.String(group.map(function (selector) { - nested = new Parser(selector.val).parse().nested; - return (nested && i ? "& " : "") + selector.val - }).join(","))) - } else { - var selector = group[0].val; - nested = new Parser(selector).parse().nested; - expr.push(new nodes.String((nested && i ? "& " : "") + selector)) - } - } - } else {expr.push(new nodes.String("&"))} - return expr - } - }); - require.register("functions/shift.js", function (module, exports, require) { - var utils = require("../utils"); - (module.exports = function (expr) { - expr = utils.unwrap(expr); - return expr.nodes.shift() - }).raw = true - }); - require.register("functions/split.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function split(delim, val) { - utils.assertString(delim, "delimiter"); - utils.assertString(val, "val"); - var splitted = val.string.split(delim.string); - var expr = new nodes.Expression; - var ItemNode = val instanceof nodes.Ident ? nodes.Ident : nodes.String; - for (var i = 0, len = splitted.length; i < len; ++i) {expr.nodes.push(new ItemNode(splitted[i]))} - return expr - } - }); - require.register("functions/slice.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - (module.exports = function slice(val, start, end) { - start = start && start.nodes[0].val; - end = end && end.nodes[0].val; - val = utils.unwrap(val).nodes; - if (val.length > 1) {return utils.coerce(val.slice(start, end), true)} - var result = val[0].string.slice(start, end); - return val[0] instanceof nodes.Ident ? new nodes.Ident(result) : new nodes.String(result) - }).raw = true - }); - require.register("functions/substr.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function substr(val, start, length) { - utils.assertString(val, "val"); - utils.assertType(start, "unit", "start"); - length = length && length.val; - var res = val.string.substr(start.val, length); - return val instanceof nodes.Ident ? new nodes.Ident(res) : new nodes.String(res) - } - }); - require.register("functions/tan.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function tan(angle) { - utils.assertType(angle, "unit", "angle"); - var radians = angle.val; - if (angle.type === "deg") {radians *= Math.PI / 180} - var m = Math.pow(10, 9); - var sin = Math.round(Math.sin(radians) * m) / m, - cos = Math.round(Math.cos(radians) * m) / m, - tan = Math.round(m * sin / cos) / m; - return new nodes.Unit(tan, "") - } - }); - require.register("functions/trace.js", function (module, exports, require) { - var nodes = require("../nodes"); - module.exports = function trace() { - console.log(this.stack); - return nodes.nil - } - }); - require.register("functions/transparentify.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function transparentify(top, bottom, alpha) { - utils.assertColor(top); - top = top.rgba; - bottom = bottom || new nodes.RGBA(255, 255, 255, 1); - if (!alpha && bottom && !bottom.rgba) { - alpha = bottom; - bottom = new nodes.RGBA(255, 255, 255, 1) - } - utils.assertColor(bottom); - bottom = bottom.rgba; - var bestAlpha = ["r", "g", "b"].map(function (channel) { - return (top[channel] - bottom[channel]) / ((0 < top[channel] - bottom[channel] ? 255 : 0) - bottom[channel]) - }).sort(function (a, b) { - return a < b - })[0]; - if (alpha) { - utils.assertType(alpha, "unit", "alpha"); - if ("%" == alpha.type) {bestAlpha = alpha.val / 100} else if (!alpha.type) {bestAlpha = alpha = alpha.val} - } - bestAlpha = Math.max(Math.min(bestAlpha, 1), 0); - - function processChannel(channel) { - if (0 == bestAlpha) {return bottom[channel]} else {return bottom[channel] + (top[channel] - bottom[channel]) / bestAlpha} - } - - return new nodes.RGBA(processChannel("r"), processChannel("g"), processChannel("b"), Math.round(bestAlpha * 100) / 100) - } - }); - require.register("functions/type.js", function (module, exports, require) { - var utils = require("../utils"); - module.exports = function type(node) { - utils.assertPresent(node, "expression"); - return node.nodeName - } - }); - require.register("functions/unit.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function unit(unit, type) { - utils.assertType(unit, "unit", "unit"); - if (type) { - utils.assertString(type, "type"); - return new nodes.Unit(unit.val, type.string) - } else {return unit.type || ""} - } - }); - require.register("functions/unquote.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function unquote(string) { - utils.assertString(string, "string"); - return new nodes.Literal(string.string) - } - }); - require.register("functions/unshift.js", function (module, exports, require) { - var utils = require("../utils"); - (module.exports = function (expr) { - expr = utils.unwrap(expr); - for (var i = 1, len = arguments.length; i < len; ++i) {expr.nodes.unshift(utils.unwrap(arguments[i]))} - return expr.nodes.length - }).raw = true - }); - require.register("functions/warn.js", function (module, exports, require) { - var utils = require("../utils"), nodes = require("../nodes"); - module.exports = function warn(msg) { - utils.assertType(msg, "string", "msg"); - console.warn("Warning: %s", msg.val); - return nodes.nil - } - }); - require.register("lexer.js", function (module, exports, require) { - var Token = require("./token"), nodes = require("./nodes"), errors = require("./errors"); - exports = module.exports = Lexer; - var alias = {and: "&&", or: "||", is: "==", isnt: "!=", "is not": "!=", ":=": "?="}; - - function Lexer(str, options) { - options = options || {}; - this.stash = []; - this.indentStack = []; - this.indentRe = null; - this.lineno = 1; - this.column = 1; - - function comment(str, val, offset, s) { - var inComment = s.lastIndexOf("/*", offset) > s.lastIndexOf("*/", offset), - commentIdx = s.lastIndexOf("//", offset), - i = s.lastIndexOf("\n", offset), - double = 0, - single = 0; - if (~commentIdx && commentIdx > i) { - while (i != offset) { - if ("'" == s[i]) single ? single-- : single++; - if ('"' == s[i]) double ? double-- : double++; - if ("/" == s[i] && "/" == s[i + 1]) { - inComment = !single && !double; - break - } - ++i - } - } - return inComment ? str : val + "\r" - } - - if ("\ufeff" == str.charAt(0)) str = str.slice(1); - this.str = str.replace(/\s+$/, "\n").replace(/\r\n?/g, "\n").replace(/\\ *\n/g, "\r").replace(/([,(:](?!\/\/[^ ])) *(?:\/\/[^\n]*|\/\*.*?\*\/)?\n\s*/g, comment).replace(/\s*\n[ \t]*([,)])/g, comment) - } - - Lexer.prototype = { - inspect: function () { - var tok, tmp = this.str, buf = []; - while ("eos" != (tok = this.next()).type) {buf.push(tok.inspect())} - this.str = tmp; - return buf.concat(tok.inspect()).join("\n") - }, lookahead: function (n) { - var fetch = n - this.stash.length; - while (fetch-- > 0) this.stash.push(this.advance()); - return this.stash[--n] - }, skip: function (len) { - var chunk = len[0]; - len = chunk ? chunk.length : len; - this.str = this.str.substr(len); - if (chunk) {this.move(chunk)} else {this.column += len} - }, move: function (str) { - var lines = str.match(/\n/g), idx = str.lastIndexOf("\n"); - if (lines) this.lineno += lines.length; - this.column = ~idx ? str.length - idx : this.column + str.length - }, next: function () { - var tok = this.stashed() || this.advance(); - this.prev = tok; - return tok - }, isPartOfSelector: function () { - var tok = this.stash[this.stash.length - 1] || this.prev; - switch (tok && tok.type) { - case"color": - return 2 == tok.val.raw.length; - case".": - case"[": - return true - } - return false - }, advance: function () { - var column = this.column, - line = this.lineno, - tok = this.eos() || this.nil() || this.sep() || this.keyword() || this.urlchars() || this.comment() || this.newline() || this.escaped() || this.important() || this.literal() || this.fun() || this.anonFunc() || this.atrule() || this.brace() || this.paren() || this.color() || this.string() || this.unit() || this.namedop() || this.boolean() || this.unicode() || this.ident() || this.op() || this.eol() || this.space() || this.selector(); - tok.lineno = line; - tok.column = column; - return tok - }, peek: function () { - return this.lookahead(1) - }, stashed: function () { - return this.stash.shift() - }, eos: function () { - if (this.str.length) return; - if (this.indentStack.length) { - this.indentStack.shift(); - return new Token("outdent") - } else {return new Token("eos")} - }, urlchars: function () { - var captures; - if (!this.isURL) return; - if (captures = /^[\/:@.;?&=*!,<>#%0-9]+/.exec(this.str)) { - this.skip(captures); - return new Token("literal", new nodes.Literal(captures[0])) - } - }, sep: function () { - var captures; - if (captures = /^;[ \t]*/.exec(this.str)) { - this.skip(captures); - return new Token(";") - } - }, eol: function () { - if ("\r" == this.str[0]) { - ++this.lineno; - this.skip(1); - return this.advance() - } - }, space: function () { - var captures; - if (captures = /^([ \t]+)/.exec(this.str)) { - this.skip(captures); - return new Token("space") - } - }, escaped: function () { - var captures; - if (captures = /^\\(.)[ \t]*/.exec(this.str)) { - var c = captures[1]; - this.skip(captures); - return new Token("ident", new nodes.Literal(c)) - } - }, literal: function () { - var captures; - if (captures = /^@css[ \t]*\{/.exec(this.str)) { - this.skip(captures); - var c, braces = 1, css = "", node; - while (c = this.str[0]) { - this.str = this.str.substr(1); - switch (c) { - case"{": - ++braces; - break; - case"}": - --braces; - break; - case"\n": - case"\r": - ++this.lineno; - break - } - css += c; - if (!braces) break - } - css = css.replace(/\s*}$/, ""); - node = new nodes.Literal(css); - node.css = true; - return new Token("literal", node) - } - }, important: function () { - var captures; - if (captures = /^!important[ \t]*/.exec(this.str)) { - this.skip(captures); - return new Token("ident", new nodes.Literal("!important")) - } - }, brace: function () { - var captures; - if (captures = /^([{}])/.exec(this.str)) { - this.skip(1); - var brace = captures[1]; - return new Token(brace, brace) - } - }, paren: function () { - var captures; - if (captures = /^([()])([ \t]*)/.exec(this.str)) { - var paren = captures[1]; - this.skip(captures); - if (")" == paren) this.isURL = false; - var tok = new Token(paren, paren); - tok.space = captures[2]; - return tok - } - }, nil: function () { - var captures, tok; - if (captures = /^(null)\b[ \t]*/.exec(this.str)) { - this.skip(captures); - if (this.isPartOfSelector()) {tok = new Token("ident", new nodes.Ident(captures[0]))} else {tok = new Token("null", nodes.nil)} - return tok - } - }, keyword: function () { - var captures, tok; - if (captures = /^(return|if|else|unless|for|in)\b[ \t]*/.exec(this.str)) { - var keyword = captures[1]; - this.skip(captures); - if (this.isPartOfSelector()) {tok = new Token("ident", new nodes.Ident(captures[0]))} else {tok = new Token(keyword, keyword)} - return tok - } - }, namedop: function () { - var captures, tok; - if (captures = /^(not|and|or|is a|is defined|isnt|is not|is)(?!-)\b([ \t]*)/.exec(this.str)) { - var op = captures[1]; - this.skip(captures); - if (this.isPartOfSelector()) {tok = new Token("ident", new nodes.Ident(captures[0]))} else { - op = alias[op] || op; - tok = new Token(op, op) - } - tok.space = captures[2]; - return tok - } - }, op: function () { - var captures; - if (captures = /^([.]{1,3}|&&|\|\||[!<>=?:]=|\*\*|[-+*\/%]=?|[,=?:!~<>&\[\]])([ \t]*)/.exec(this.str)) { - var op = captures[1]; - this.skip(captures); - op = alias[op] || op; - var tok = new Token(op, op); - tok.space = captures[2]; - this.isURL = false; - return tok - } - }, anonFunc: function () { - var tok; - if ("@" == this.str[0] && "(" == this.str[1]) { - this.skip(2); - tok = new Token("function", new nodes.Ident("anonymous")); - tok.anonymous = true; - return tok - } - }, atrule: function () { - var captures; - if (captures = /^@(?:-(\w+)-)?([a-zA-Z0-9-_]+)[ \t]*/.exec(this.str)) { - this.skip(captures); - var vendor = captures[1], type = captures[2], tok; - switch (type) { - case"require": - case"import": - case"charset": - case"namespace": - case"media": - case"scope": - case"supports": - return new Token(type); - case"document": - return new Token("-moz-document"); - case"block": - return new Token("atblock"); - case"extend": - case"extends": - return new Token("extend"); - case"keyframes": - return new Token(type, vendor); - default: - return new Token("atrule", vendor ? "-" + vendor + "-" + type : type) - } - } - }, comment: function () { - if ("/" == this.str[0] && "/" == this.str[1]) { - var end = this.str.indexOf("\n"); - if (-1 == end) end = this.str.length; - this.skip(end); - return this.advance() - } - if ("/" == this.str[0] && "*" == this.str[1]) { - var end = this.str.indexOf("*/"); - if (-1 == end) end = this.str.length; - var str = this.str.substr(0, end + 2), lines = str.split(/\n|\r/).length - 1, suppress = true, inline = false; - this.lineno += lines; - this.skip(end + 2); - if ("!" == str[2]) { - str = str.replace("*!", "*"); - suppress = false - } - if (this.prev && ";" == this.prev.type) inline = true; - return new Token("comment", new nodes.Comment(str, suppress, inline)) - } - }, "boolean": function () { - var captures; - if (captures = /^(true|false)\b([ \t]*)/.exec(this.str)) { - var val = nodes.Boolean("true" == captures[1]); - this.skip(captures); - var tok = new Token("boolean", val); - tok.space = captures[2]; - return tok - } - }, unicode: function () { - var captures; - if (captures = /^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?/i.exec(this.str)) { - this.skip(captures); - return new Token("literal", new nodes.Literal(captures[0])) - } - }, fun: function () { - var captures; - if (captures = /^(-*[_a-zA-Z$][-\w\d$]*)\(([ \t]*)/.exec(this.str)) { - var name = captures[1]; - this.skip(captures); - this.isURL = "url" == name; - var tok = new Token("function", new nodes.Ident(name)); - tok.space = captures[2]; - return tok - } - }, ident: function () { - var captures; - if (captures = /^-*[_a-zA-Z$][-\w\d$]*/.exec(this.str)) { - this.skip(captures); - return new Token("ident", new nodes.Ident(captures[0])) - } - }, newline: function () { - var captures, re; - if (this.indentRe) {captures = this.indentRe.exec(this.str)} else { - re = /^\n([\t]*)[ \t]*/; - captures = re.exec(this.str); - if (captures && !captures[1].length) { - re = /^\n([ \t]*)/; - captures = re.exec(this.str) - } - if (captures && captures[1].length) this.indentRe = re - } - if (captures) { - var tok, indents = captures[1].length; - this.skip(captures); - if (this.str[0] === " " || this.str[0] === " ") {throw new errors.SyntaxError("Invalid indentation. You can use tabs or spaces to indent, but not both.")} - if ("\n" == this.str[0]) return this.advance(); - if (this.indentStack.length && indents < this.indentStack[0]) { - while (this.indentStack.length && this.indentStack[0] > indents) { - this.stash.push(new Token("outdent")); - this.indentStack.shift() - } - tok = this.stash.pop() - } else if (indents && indents != this.indentStack[0]) { - this.indentStack.unshift(indents); - tok = new Token("indent") - } else {tok = new Token("newline")} - return tok - } - }, unit: function () { - var captures; - if (captures = /^(-)?(\d+\.\d+|\d+|\.\d+)(%|[a-zA-Z]+)?[ \t]*/.exec(this.str)) { - this.skip(captures); - var n = parseFloat(captures[2]); - if ("-" == captures[1]) n = -n; - var node = new nodes.Unit(n, captures[3]); - node.raw = captures[0]; - return new Token("unit", node) - } - }, string: function () { - var captures; - if (captures = /^("[^"]*"|'[^']*')[ \t]*/.exec(this.str)) { - var str = captures[1], quote = captures[0][0]; - this.skip(captures); - str = str.slice(1, -1).replace(/\\n/g, "\n"); - return new Token("string", new nodes.String(str, quote)) - } - }, color: function () { - return this.rrggbbaa() || this.rrggbb() || this.rgba() || this.rgb() || this.nn() || this.n() - }, n: function () { - var captures; - if (captures = /^#([a-fA-F0-9]{1})[ \t]*/.exec(this.str)) { - this.skip(captures); - var n = parseInt(captures[1] + captures[1], 16), color = new nodes.RGBA(n, n, n, 1); - color.raw = captures[0]; - return new Token("color", color) - } - }, nn: function () { - var captures; - if (captures = /^#([a-fA-F0-9]{2})[ \t]*/.exec(this.str)) { - this.skip(captures); - var n = parseInt(captures[1], 16), color = new nodes.RGBA(n, n, n, 1); - color.raw = captures[0]; - return new Token("color", color) - } - }, rgb: function () { - var captures; - if (captures = /^#([a-fA-F0-9]{3})[ \t]*/.exec(this.str)) { - this.skip(captures); - var rgb = captures[1], - r = parseInt(rgb[0] + rgb[0], 16), - g = parseInt(rgb[1] + rgb[1], 16), - b = parseInt(rgb[2] + rgb[2], 16), - color = new nodes.RGBA(r, g, b, 1); - color.raw = captures[0]; - return new Token("color", color) - } - }, rgba: function () { - var captures; - if (captures = /^#([a-fA-F0-9]{4})[ \t]*/.exec(this.str)) { - this.skip(captures); - var rgb = captures[1], - r = parseInt(rgb[0] + rgb[0], 16), - g = parseInt(rgb[1] + rgb[1], 16), - b = parseInt(rgb[2] + rgb[2], 16), - a = parseInt(rgb[3] + rgb[3], 16), - color = new nodes.RGBA(r, g, b, a / 255); - color.raw = captures[0]; - return new Token("color", color) - } - }, rrggbb: function () { - var captures; - if (captures = /^#([a-fA-F0-9]{6})[ \t]*/.exec(this.str)) { - this.skip(captures); - var rgb = captures[1], - r = parseInt(rgb.substr(0, 2), 16), - g = parseInt(rgb.substr(2, 2), 16), - b = parseInt(rgb.substr(4, 2), 16), - color = new nodes.RGBA(r, g, b, 1); - color.raw = captures[0]; - return new Token("color", color) - } - }, rrggbbaa: function () { - var captures; - if (captures = /^#([a-fA-F0-9]{8})[ \t]*/.exec(this.str)) { - this.skip(captures); - var rgb = captures[1], - r = parseInt(rgb.substr(0, 2), 16), - g = parseInt(rgb.substr(2, 2), 16), - b = parseInt(rgb.substr(4, 2), 16), - a = parseInt(rgb.substr(6, 2), 16), - color = new nodes.RGBA(r, g, b, a / 255); - color.raw = captures[0]; - return new Token("color", color) - } - }, selector: function () { - var captures; - if (captures = /^\^|.*?(?=\/\/(?![^\[]*\])|[,\n{])/.exec(this.str)) { - var selector = captures[0]; - this.skip(captures); - return new Token("selector", selector) - } - }, - } - }); - require.register("nodes/arguments.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("../nodes"), utils = require("../utils"); - var Arguments = module.exports = function Arguments() { - nodes.Expression.call(this); - this.map = {} - }; - Arguments.prototype.__proto__ = nodes.Expression.prototype; - Arguments.fromExpression = function (expr) { - var args = new Arguments, len = expr.nodes.length; - args.lineno = expr.lineno; - args.column = expr.column; - args.isList = expr.isList; - for (var i = 0; i < len; ++i) {args.push(expr.nodes[i])} - return args - }; - Arguments.prototype.clone = function (parent) { - var clone = nodes.Expression.prototype.clone.call(this, parent); - clone.map = {}; - for (var key in this.map) {clone.map[key] = this.map[key].clone(parent, clone)} - clone.isList = this.isList; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Arguments.prototype.toJSON = function () { - return { - __type: "Arguments", map: this.map, isList: this.isList, preserve: this.preserve, lineno: this.lineno, - column: this.column, filename: this.filename, nodes: this.nodes, - } - } - }); - require.register("nodes/binop.js", function (module, exports, require) { - var Node = require("./node"); - var BinOp = module.exports = function BinOp(op, left, right) { - Node.call(this); - this.op = op; - this.left = left; - this.right = right - }; - BinOp.prototype.__proto__ = Node.prototype; - BinOp.prototype.clone = function (parent) { - var clone = new BinOp(this.op); - clone.left = this.left.clone(parent, clone); - clone.right = this.right && this.right.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - if (this.val) clone.val = this.val.clone(parent, clone); - return clone - }; - BinOp.prototype.toString = function () { - return this.left.toString() + " " + this.op + " " + this.right.toString() - }; - BinOp.prototype.toJSON = function () { - var json = { - __type: "BinOp", left: this.left, right: this.right, op: this.op, lineno: this.lineno, column: this.column, - filename: this.filename, - }; - if (this.val) json.val = this.val; - return json - } - }); - require.register("nodes/block.js", function (module, exports, require) { - var Node = require("./node"); - var Block = module.exports = function Block(parent, node) { - Node.call(this); - this.nodes = []; - this.parent = parent; - this.node = node; - this.scope = true - }; - Block.prototype.__proto__ = Node.prototype; - Block.prototype.__defineGetter__("hasProperties", function () { - for (var i = 0, len = this.nodes.length; i < len; ++i) {if ("property" == this.nodes[i].nodeName) {return true}} - }); - Block.prototype.__defineGetter__("hasMedia", function () { - for (var i = 0, len = this.nodes.length; i < len; ++i) { - var nodeName = this.nodes[i].nodeName; - if ("media" == nodeName) {return true} - } - return false - }); - Block.prototype.__defineGetter__("isEmpty", function () { - return !this.nodes.length - }); - Block.prototype.clone = function (parent, node) { - parent = parent || this.parent; - var clone = new Block(parent, node || this.node); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - clone.scope = this.scope; - this.nodes.forEach(function (node) { - clone.push(node.clone(clone, clone)) - }); - return clone - }; - Block.prototype.push = function (node) { - this.nodes.push(node) - }; - Block.prototype.toJSON = function () { - return { - __type: "Block", scope: this.scope, lineno: this.lineno, column: this.column, filename: this.filename, - nodes: this.nodes, - } - } - }); - require.register("nodes/boolean.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("./index"); - var Boolean = module.exports = function Boolean(val) { - Node.call(this); - if (this.nodeName) {this.val = !!val} else {return new Boolean(val)} - }; - Boolean.prototype.__proto__ = Node.prototype; - Boolean.prototype.toBoolean = function () { - return this - }; - Boolean.prototype.__defineGetter__("isTrue", function () { - return this.val - }); - Boolean.prototype.__defineGetter__("isFalse", function () { - return !this.val - }); - Boolean.prototype.negate = function () { - return new Boolean(!this.val) - }; - Boolean.prototype.inspect = function () { - return "[Boolean " + this.val + "]" - }; - Boolean.prototype.toString = function () { - return this.val ? "true" : "false" - }; - Boolean.prototype.toJSON = function () { - return {__type: "Boolean", val: this.val} - } - }); - require.register("nodes/call.js", function (module, exports, require) { - var Node = require("./node"); - var Call = module.exports = function Call(name, args) { - Node.call(this); - this.name = name; - this.args = args - }; - Call.prototype.__proto__ = Node.prototype; - Call.prototype.clone = function (parent) { - var clone = new Call(this.name); - clone.args = this.args.clone(parent, clone); - if (this.block) clone.block = this.block.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Call.prototype.toString = function () { - var args = this.args.nodes.map(function (node) { - var str = node.toString(); - return str.slice(1, str.length - 1) - }).join(", "); - return this.name + "(" + args + ")" - }; - Call.prototype.toJSON = function () { - var json = { - __type: "Call", name: this.name, args: this.args, lineno: this.lineno, column: this.column, - filename: this.filename, - }; - if (this.block) json.block = this.block; - return json - } - }); - require.register("nodes/charset.js", function (module, exports, require) { - var Node = require("./node"); - var Charset = module.exports = function Charset(val) { - Node.call(this); - this.val = val - }; - Charset.prototype.__proto__ = Node.prototype; - Charset.prototype.toString = function () { - return "@charset " + this.val - }; - Charset.prototype.toJSON = function () { - return {__type: "Charset", val: this.val, lineno: this.lineno, column: this.column, filename: this.filename} - } - }); - require.register("nodes/namespace.js", function (module, exports, require) { - var Node = require("./node"); - var Namespace = module.exports = function Namespace(val, prefix) { - Node.call(this); - this.val = val; - this.prefix = prefix - }; - Namespace.prototype.__proto__ = Node.prototype; - Namespace.prototype.toString = function () { - return "@namespace " + (this.prefix ? this.prefix + " " : "") + this.val - }; - Namespace.prototype.toJSON = function () { - return { - __type: "Namespace", val: this.val, prefix: this.prefix, lineno: this.lineno, column: this.column, - filename: this.filename, - } - } - }); - require.register("nodes/comment.js", function (module, exports, require) { - var Node = require("./node"); - var Comment = module.exports = function Comment(str, suppress, inline) { - Node.call(this); - this.str = str; - this.suppress = suppress; - this.inline = inline - }; - Comment.prototype.__proto__ = Node.prototype; - Comment.prototype.toJSON = function () { - return { - __type: "Comment", str: this.str, suppress: this.suppress, inline: this.inline, lineno: this.lineno, - column: this.column, filename: this.filename, - } - }; - Comment.prototype.toString = function () { - return this.str - } - }); - require.register("nodes/each.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("./index"); - var Each = module.exports = function Each(val, key, expr, block) { - Node.call(this); - this.val = val; - this.key = key; - this.expr = expr; - this.block = block - }; - Each.prototype.__proto__ = Node.prototype; - Each.prototype.clone = function (parent) { - var clone = new Each(this.val, this.key); - clone.expr = this.expr.clone(parent, clone); - clone.block = this.block.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Each.prototype.toJSON = function () { - return { - __type: "Each", val: this.val, key: this.key, expr: this.expr, block: this.block, lineno: this.lineno, - column: this.column, filename: this.filename, - } - } - }); - require.register("nodes/expression.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("../nodes"), utils = require("../utils"); - var Expression = module.exports = function Expression(isList) { - Node.call(this); - this.nodes = []; - this.isList = isList - }; - Expression.prototype.__defineGetter__("isEmpty", function () { - return !this.nodes.length - }); - Expression.prototype.__defineGetter__("first", function () { - return this.nodes[0] ? this.nodes[0].first : nodes.nil - }); - Expression.prototype.__defineGetter__("hash", function () { - return this.nodes.map(function (node) { - return node.hash - }).join("::") - }); - Expression.prototype.__proto__ = Node.prototype; - Expression.prototype.clone = function (parent) { - var clone = new this.constructor(this.isList); - clone.preserve = this.preserve; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - clone.nodes = this.nodes.map(function (node) { - return node.clone(parent, clone) - }); - return clone - }; - Expression.prototype.push = function (node) { - this.nodes.push(node) - }; - Expression.prototype.operate = function (op, right, val) { - switch (op) { - case"[]=": - var self = this, range = utils.unwrap(right).nodes, val = utils.unwrap(val), len, node; - range.forEach(function (unit) { - len = self.nodes.length; - if ("unit" == unit.nodeName) { - var i = unit.val < 0 ? len + unit.val : unit.val, n = i; - while (i-- > len) self.nodes[i] = nodes.nil; - self.nodes[n] = val - } else if (unit.string) { - node = self.nodes[0]; - if (node && "object" == node.nodeName) node.set(unit.string, val.clone()) - } - }); - return val; - case"[]": - var expr = new nodes.Expression, vals = utils.unwrap(this).nodes, range = utils.unwrap(right).nodes, node; - range.forEach(function (unit) { - if ("unit" == unit.nodeName) {node = vals[unit.val < 0 ? vals.length + unit.val : unit.val]} else if ("object" == vals[0].nodeName) {node = vals[0].get(unit.string)} - if (node) expr.push(node) - }); - return expr.isEmpty ? nodes.nil : utils.unwrap(expr); - case"||": - return this.toBoolean().isTrue ? this : right; - case"in": - return Node.prototype.operate.call(this, op, right); - case"!=": - return this.operate("==", right, val).negate(); - case"==": - var len = this.nodes.length, right = right.toExpression(), a, b; - if (len != right.nodes.length) return nodes.no; - for (var i = 0; i < len; ++i) { - a = this.nodes[i]; - b = right.nodes[i]; - if (a.operate(op, b).isTrue) continue; - return nodes.no - } - return nodes.yes; - break; - default: - return this.first.operate(op, right, val) - } - }; - Expression.prototype.toBoolean = function () { - if (this.nodes.length > 1) return nodes.yes; - return this.first.toBoolean() - }; - Expression.prototype.toString = function () { - return "(" + this.nodes.map(function (node) { - return node.toString() - }).join(this.isList ? ", " : " ") + ")" - }; - Expression.prototype.toJSON = function () { - return { - __type: "Expression", isList: this.isList, preserve: this.preserve, lineno: this.lineno, column: this.column, - filename: this.filename, nodes: this.nodes, - } - } - }); - require.register("nodes/function.js", function (module, exports, require) { - var Node = require("./node"); - var Function = module.exports = function Function(name, params, body) { - Node.call(this); - this.name = name; - this.params = params; - this.block = body; - if ("function" == typeof params) this.fn = params - }; - Function.prototype.__defineGetter__("arity", function () { - return this.params.length - }); - Function.prototype.__proto__ = Node.prototype; - Function.prototype.__defineGetter__("hash", function () { - return "function " + this.name - }); - Function.prototype.clone = function (parent) { - if (this.fn) {var clone = new Function(this.name, this.fn)} else { - var clone = new Function(this.name); - clone.params = this.params.clone(parent, clone); - clone.block = this.block.clone(parent, clone) - } - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Function.prototype.toString = function () { - if (this.fn) {return this.name + "(" + this.fn.toString().match(/^function *\w*\((.*?)\)/).slice(1).join(", ") + ")"} else {return this.name + "(" + this.params.nodes.join(", ") + ")"} - }; - Function.prototype.toJSON = function () { - var json = { - __type: "Function", name: this.name, lineno: this.lineno, column: this.column, filename: this.filename, - }; - if (this.fn) {json.fn = this.fn} else { - json.params = this.params; - json.block = this.block - } - return json - } - }); - require.register("nodes/group.js", function (module, exports, require) { - var Node = require("./node"); - var Group = module.exports = function Group() { - Node.call(this); - this.nodes = []; - this.extends = [] - }; - Group.prototype.__proto__ = Node.prototype; - Group.prototype.push = function (selector) { - this.nodes.push(selector) - }; - Group.prototype.__defineGetter__("block", function () { - return this.nodes[0].block - }); - Group.prototype.__defineSetter__("block", function (block) { - for (var i = 0, len = this.nodes.length; i < len; ++i) {this.nodes[i].block = block} - }); - Group.prototype.__defineGetter__("hasOnlyPlaceholders", function () { - return this.nodes.every(function (selector) { - return selector.isPlaceholder - }) - }); - Group.prototype.clone = function (parent) { - var clone = new Group; - clone.lineno = this.lineno; - clone.column = this.column; - this.nodes.forEach(function (node) { - clone.push(node.clone(parent, clone)) - }); - clone.filename = this.filename; - clone.block = this.block.clone(parent, clone); - return clone - }; - Group.prototype.toJSON = function () { - return { - __type: "Group", nodes: this.nodes, block: this.block, lineno: this.lineno, column: this.column, - filename: this.filename, - } - } - }); - require.register("nodes/hsla.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("./index"); - var HSLA = exports = module.exports = function HSLA(h, s, l, a) { - Node.call(this); - this.h = clampDegrees(h); - this.s = clampPercentage(s); - this.l = clampPercentage(l); - this.a = clampAlpha(a); - this.hsla = this - }; - HSLA.prototype.__proto__ = Node.prototype; - HSLA.prototype.toString = function () { - return "hsla(" + this.h + "," + this.s.toFixed(0) + "%," + this.l.toFixed(0) + "%," + this.a + ")" - }; - HSLA.prototype.clone = function (parent) { - var clone = new HSLA(this.h, this.s, this.l, this.a); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - HSLA.prototype.toJSON = function () { - return { - __type: "HSLA", h: this.h, s: this.s, l: this.l, a: this.a, lineno: this.lineno, column: this.column, - filename: this.filename, - } - }; - HSLA.prototype.__defineGetter__("rgba", function () { - return nodes.RGBA.fromHSLA(this) - }); - HSLA.prototype.__defineGetter__("hash", function () { - return this.rgba.toString() - }); - HSLA.prototype.add = function (h, s, l) { - return new HSLA(this.h + h, this.s + s, this.l + l, this.a) - }; - HSLA.prototype.sub = function (h, s, l) { - return this.add(-h, -s, -l) - }; - HSLA.prototype.operate = function (op, right) { - switch (op) { - case"==": - case"!=": - case"<=": - case">=": - case"<": - case">": - case"is a": - case"||": - case"&&": - return this.rgba.operate(op, right); - default: - return this.rgba.operate(op, right).hsla - } - }; - exports.fromRGBA = function (rgba) { - var r = rgba.r / 255, g = rgba.g / 255, b = rgba.b / 255, a = rgba.a; - var min = Math.min(r, g, b), max = Math.max(r, g, b), l = (max + min) / 2, d = max - min, h, s; - switch (max) { - case min: - h = 0; - break; - case r: - h = 60 * (g - b) / d; - break; - case g: - h = 60 * (b - r) / d + 120; - break; - case b: - h = 60 * (r - g) / d + 240; - break - } - if (max == min) {s = 0} else if (l < .5) {s = d / (2 * l)} else {s = d / (2 - 2 * l)} - h %= 360; - s *= 100; - l *= 100; - return new HSLA(h, s, l, a) - }; - HSLA.prototype.adjustLightness = function (percent) { - this.l = clampPercentage(this.l + this.l * (percent / 100)); - return this - }; - HSLA.prototype.adjustHue = function (deg) { - this.h = clampDegrees(this.h + deg); - return this - }; - - function clampDegrees(n) { - n = n % 360; - return n >= 0 ? n : 360 + n - } - - function clampPercentage(n) { - return Math.max(0, Math.min(n, 100)) - } - - function clampAlpha(n) { - return Math.max(0, Math.min(n, 1)) - } - }); - require.register("nodes/ident.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("./index"); - var Ident = module.exports = function Ident(name, val, mixin) { - Node.call(this); - this.name = name; - this.string = name; - this.val = val || nodes.nil; - this.mixin = !!mixin - }; - Ident.prototype.__defineGetter__("isEmpty", function () { - return undefined == this.val - }); - Ident.prototype.__defineGetter__("hash", function () { - return this.name - }); - Ident.prototype.__proto__ = Node.prototype; - Ident.prototype.clone = function (parent) { - var clone = new Ident(this.name); - clone.val = this.val.clone(parent, clone); - clone.mixin = this.mixin; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - clone.property = this.property; - clone.rest = this.rest; - return clone - }; - Ident.prototype.toJSON = function () { - return { - __type: "Ident", name: this.name, val: this.val, mixin: this.mixin, property: this.property, rest: this.rest, - lineno: this.lineno, column: this.column, filename: this.filename, - } - }; - Ident.prototype.toString = function () { - return this.name - }; - Ident.prototype.coerce = function (other) { - switch (other.nodeName) { - case"ident": - case"string": - case"literal": - return new Ident(other.string); - case"unit": - return new Ident(other.toString()); - default: - return Node.prototype.coerce.call(this, other) - } - }; - Ident.prototype.operate = function (op, right) { - var val = right.first; - switch (op) { - case"-": - if ("unit" == val.nodeName) { - var expr = new nodes.Expression; - val = val.clone(); - val.val = -val.val; - expr.push(this); - expr.push(val); - return expr - } - case"+": - return new nodes.Ident(this.string + this.coerce(val).string) - } - return Node.prototype.operate.call(this, op, right) - } - }); - require.register("nodes/if.js", function (module, exports, require) { - var Node = require("./node"); - var If = module.exports = function If(cond, negate) { - Node.call(this); - this.cond = cond; - this.elses = []; - if (negate && negate.nodeName) {this.block = negate} else {this.negate = negate} - }; - If.prototype.__proto__ = Node.prototype; - If.prototype.clone = function (parent) { - var clone = new If; - clone.cond = this.cond.clone(parent, clone); - clone.block = this.block.clone(parent, clone); - clone.elses = this.elses.map(function (node) { - return node.clone(parent, clone) - }); - clone.negate = this.negate; - clone.postfix = this.postfix; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - If.prototype.toJSON = function () { - return { - __type: "If", cond: this.cond, block: this.block, elses: this.elses, negate: this.negate, postfix: this.postfix, - lineno: this.lineno, column: this.column, filename: this.filename, - } - } - }); - require.register("nodes/import.js", function (module, exports, require) { - var Node = require("./node"); - var Import = module.exports = function Import(expr, once) { - Node.call(this); - this.path = expr; - this.once = once || false - }; - Import.prototype.__proto__ = Node.prototype; - Import.prototype.clone = function (parent) { - var clone = new Import; - clone.path = this.path.nodeName ? this.path.clone(parent, clone) : this.path; - clone.once = this.once; - clone.mtime = this.mtime; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Import.prototype.toJSON = function () { - return { - __type: "Import", path: this.path, once: this.once, mtime: this.mtime, lineno: this.lineno, - column: this.column, filename: this.filename, - } - } - }); - require.register("nodes/extend.js", function (module, exports, require) { - var Node = require("./node"); - var Extend = module.exports = function Extend(selectors) { - Node.call(this); - this.selectors = selectors - }; - Extend.prototype.__proto__ = Node.prototype; - Extend.prototype.clone = function () { - return new Extend(this.selectors) - }; - Extend.prototype.toString = function () { - return "@extend " + this.selectors.join(", ") - }; - Extend.prototype.toJSON = function () { - return { - __type: "Extend", selectors: this.selectors, lineno: this.lineno, column: this.column, filename: this.filename, - } - } - }); - require.register("nodes/index.js", function (module, exports, require) { - exports.Node = require("./node"); - exports.Root = require("./root"); - exports.Null = require("./null"); - exports.Each = require("./each"); - exports.If = require("./if"); - exports.Call = require("./call"); - exports.UnaryOp = require("./unaryop"); - exports.BinOp = require("./binop"); - exports.Ternary = require("./ternary"); - exports.Block = require("./block"); - exports.Unit = require("./unit"); - exports.String = require("./string"); - exports.HSLA = require("./hsla"); - exports.RGBA = require("./rgba"); - exports.Ident = require("./ident"); - exports.Group = require("./group"); - exports.Literal = require("./literal"); - exports.Boolean = require("./boolean"); - exports.Return = require("./return"); - exports.Media = require("./media"); - exports.QueryList = require("./query-list"); - exports.Query = require("./query"); - exports.Feature = require("./feature"); - exports.Params = require("./params"); - exports.Comment = require("./comment"); - exports.Keyframes = require("./keyframes"); - exports.Member = require("./member"); - exports.Charset = require("./charset"); - exports.Namespace = require("./namespace"); - exports.Import = require("./import"); - exports.Extend = require("./extend"); - exports.Object = require("./object"); - exports.Function = require("./function"); - exports.Property = require("./property"); - exports.Selector = require("./selector"); - exports.Expression = require("./expression"); - exports.Arguments = require("./arguments"); - exports.Atblock = require("./atblock"); - exports.Atrule = require("./atrule"); - exports.Supports = require("./supports"); - exports.yes = new exports.Boolean(true); - exports.no = new exports.Boolean(false); - exports.nil = new exports.Null - }); - require.register("nodes/keyframes.js", function (module, exports, require) { - var Atrule = require("./atrule"); - var Keyframes = module.exports = function Keyframes(segs, prefix) { - Atrule.call(this, "keyframes"); - this.segments = segs; - this.prefix = prefix || "official" - }; - Keyframes.prototype.__proto__ = Atrule.prototype; - Keyframes.prototype.clone = function (parent) { - var clone = new Keyframes; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - clone.segments = this.segments.map(function (node) { - return node.clone(parent, clone) - }); - clone.prefix = this.prefix; - clone.block = this.block.clone(parent, clone); - return clone - }; - Keyframes.prototype.toJSON = function () { - return { - __type: "Keyframes", segments: this.segments, prefix: this.prefix, block: this.block, lineno: this.lineno, - column: this.column, filename: this.filename, - } - }; - Keyframes.prototype.toString = function () { - return "@keyframes " + this.segments.join("") - } - }); - require.register("nodes/literal.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("./index"); - var Literal = module.exports = function Literal(str) { - Node.call(this); - this.val = str; - this.string = str; - this.prefixed = false - }; - Literal.prototype.__proto__ = Node.prototype; - Literal.prototype.__defineGetter__("hash", function () { - return this.val - }); - Literal.prototype.toString = function () { - return this.val - }; - Literal.prototype.coerce = function (other) { - switch (other.nodeName) { - case"ident": - case"string": - case"literal": - return new Literal(other.string); - default: - return Node.prototype.coerce.call(this, other) - } - }; - Literal.prototype.operate = function (op, right) { - var val = right.first; - switch (op) { - case"+": - return new nodes.Literal(this.string + this.coerce(val).string); - default: - return Node.prototype.operate.call(this, op, right) - } - }; - Literal.prototype.toJSON = function () { - return { - __type: "Literal", val: this.val, string: this.string, prefixed: this.prefixed, lineno: this.lineno, - column: this.column, filename: this.filename, - } - } - }); - require.register("nodes/media.js", function (module, exports, require) { - var Atrule = require("./atrule"); - var Media = module.exports = function Media(val) { - Atrule.call(this, "media"); - this.val = val - }; - Media.prototype.__proto__ = Atrule.prototype; - Media.prototype.clone = function (parent) { - var clone = new Media; - clone.val = this.val.clone(parent, clone); - clone.block = this.block.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Media.prototype.toJSON = function () { - return { - __type: "Media", val: this.val, block: this.block, lineno: this.lineno, column: this.column, - filename: this.filename, - } - }; - Media.prototype.toString = function () { - return "@media " + this.val - } - }); - require.register("nodes/query-list.js", function (module, exports, require) { - var Node = require("./node"); - var QueryList = module.exports = function QueryList() { - Node.call(this); - this.nodes = [] - }; - QueryList.prototype.__proto__ = Node.prototype; - QueryList.prototype.clone = function (parent) { - var clone = new QueryList; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - for (var i = 0; i < this.nodes.length; ++i) {clone.push(this.nodes[i].clone(parent, clone))} - return clone - }; - QueryList.prototype.push = function (node) { - this.nodes.push(node) - }; - QueryList.prototype.merge = function (other) { - var list = new QueryList, merged; - this.nodes.forEach(function (query) { - for (var i = 0, len = other.nodes.length; i < len; ++i) { - merged = query.merge(other.nodes[i]); - if (merged) list.push(merged) - } - }); - return list - }; - QueryList.prototype.toString = function () { - return "(" + this.nodes.map(function (node) { - return node.toString() - }).join(", ") + ")" - }; - QueryList.prototype.toJSON = function () { - return {__type: "QueryList", nodes: this.nodes, lineno: this.lineno, column: this.column, filename: this.filename} - } - }); - require.register("nodes/query.js", function (module, exports, require) { - var Node = require("./node"); - var Query = module.exports = function Query() { - Node.call(this); - this.nodes = []; - this.type = ""; - this.predicate = "" - }; - Query.prototype.__proto__ = Node.prototype; - Query.prototype.clone = function (parent) { - var clone = new Query; - clone.predicate = this.predicate; - clone.type = this.type; - for (var i = 0, len = this.nodes.length; i < len; ++i) {clone.push(this.nodes[i].clone(parent, clone))} - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Query.prototype.push = function (feature) { - this.nodes.push(feature) - }; - Query.prototype.__defineGetter__("resolvedType", function () { - if (this.type) {return this.type.nodeName ? this.type.string : this.type} - }); - Query.prototype.__defineGetter__("resolvedPredicate", function () { - if (this.predicate) {return this.predicate.nodeName ? this.predicate.string : this.predicate} - }); - Query.prototype.merge = function (other) { - var query = new Query, - p1 = this.resolvedPredicate, - p2 = other.resolvedPredicate, - t1 = this.resolvedType, - t2 = other.resolvedType, - type, - pred; - t1 = t1 || t2; - t2 = t2 || t1; - if ("not" == p1 ^ "not" == p2) { - if (t1 == t2) return; - type = "not" == p1 ? t2 : t1; - pred = "not" == p1 ? p2 : p1 - } else if ("not" == p1 && "not" == p2) { - if (t1 != t2) return; - type = t1; - pred = "not" - } else if (t1 != t2) {return} else { - type = t1; - pred = p1 || p2 - } - query.predicate = pred; - query.type = type; - query.nodes = this.nodes.concat(other.nodes); - return query - }; - Query.prototype.toString = function () { - var pred = this.predicate ? this.predicate + " " : "", - type = this.type || "", - len = this.nodes.length, - str = pred + type; - if (len) { - str += (type && " and ") + this.nodes.map(function (expr) { - return expr.toString() - }).join(" and ") - } - return str - }; - Query.prototype.toJSON = function () { - return { - __type: "Query", predicate: this.predicate, type: this.type, nodes: this.nodes, lineno: this.lineno, - column: this.column, filename: this.filename, - } - } - }); - require.register("nodes/feature.js", function (module, exports, require) { - var Node = require("./node"); - var Feature = module.exports = function Feature(segs) { - Node.call(this); - this.segments = segs; - this.expr = null - }; - Feature.prototype.__proto__ = Node.prototype; - Feature.prototype.clone = function (parent) { - var clone = new Feature; - clone.segments = this.segments.map(function (node) { - return node.clone(parent, clone) - }); - if (this.expr) clone.expr = this.expr.clone(parent, clone); - if (this.name) clone.name = this.name; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Feature.prototype.toString = function () { - if (this.expr) {return "(" + this.segments.join("") + ": " + this.expr.toString() + ")"} else {return this.segments.join("")} - }; - Feature.prototype.toJSON = function () { - var json = { - __type: "Feature", segments: this.segments, lineno: this.lineno, column: this.column, filename: this.filename, - }; - if (this.expr) json.expr = this.expr; - if (this.name) json.name = this.name; - return json - } - }); - require.register("nodes/node.js", function (module, exports, require) { - var Evaluator = require("../visitor/evaluator"), utils = require("../utils"), nodes = require("./index"); - - function CoercionError(msg) { - this.name = "CoercionError"; - this.message = msg; - Error.captureStackTrace(this, CoercionError) - } - - CoercionError.prototype.__proto__ = Error.prototype; - var Node = module.exports = function Node() { - this.lineno = nodes.lineno || 1; - this.column = nodes.column || 1; - this.filename = nodes.filename - }; - Node.prototype = { - constructor: Node, get first() { - return this - }, get hash() { - return this.val - }, get nodeName() { - return this.constructor.name.toLowerCase() - }, clone: function () { - return this - }, toJSON: function () { - return {lineno: this.lineno, column: this.column, filename: this.filename} - }, eval: function () { - return new Evaluator(this).evaluate() - }, toBoolean: function () { - return nodes.yes - }, toExpression: function () { - if ("expression" == this.nodeName) return this; - var expr = new nodes.Expression; - expr.push(this); - return expr - }, shouldCoerce: function (op) { - switch (op) { - case"is a": - case"in": - case"||": - case"&&": - return false; - default: - return true - } - }, operate: function (op, right) { - switch (op) { - case"is a": - if ("string" == right.first.nodeName) {return nodes.Boolean(this.nodeName == right.val)} else {throw new Error('"is a" expects a string, got ' + right.toString())} - case"==": - return nodes.Boolean(this.hash == right.hash); - case"!=": - return nodes.Boolean(this.hash != right.hash); - case">=": - return nodes.Boolean(this.hash >= right.hash); - case"<=": - return nodes.Boolean(this.hash <= right.hash); - case">": - return nodes.Boolean(this.hash > right.hash); - case"<": - return nodes.Boolean(this.hash < right.hash); - case"||": - return this.toBoolean().isTrue ? this : right; - case"in": - var vals = utils.unwrap(right).nodes, len = vals && vals.length, hash = this.hash; - if (!vals) throw new Error('"in" given invalid right-hand operand, expecting an expression'); - if (1 == len && "object" == vals[0].nodeName) {return nodes.Boolean(vals[0].has(this.hash))} - for (var i = 0; i < len; ++i) {if (hash == vals[i].hash) {return nodes.yes}} - return nodes.no; - case"&&": - var a = this.toBoolean(), b = right.toBoolean(); - return a.isTrue && b.isTrue ? right : a.isFalse ? this : right; - default: - if ("[]" == op) {var msg = "cannot perform " + this + "[" + right + "]"} else {var msg = "cannot perform" + " " + this + " " + op + " " + right} - throw new Error(msg) - } - }, coerce: function (other) { - if (other.nodeName == this.nodeName) return other; - throw new CoercionError("cannot coerce " + other + " to " + this.nodeName) - }, - } - }); - require.register("nodes/null.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("./index"); - var Null = module.exports = function Null() { - }; - Null.prototype.__proto__ = Node.prototype; - Null.prototype.inspect = Null.prototype.toString = function () { - return "null" - }; - Null.prototype.toBoolean = function () { - return nodes.no - }; - Null.prototype.__defineGetter__("isNull", function () { - return true - }); - Null.prototype.__defineGetter__("hash", function () { - return null - }); - Null.prototype.toJSON = function () { - return {__type: "Null", lineno: this.lineno, column: this.column, filename: this.filename} - } - }); - require.register("nodes/params.js", function (module, exports, require) { - var Node = require("./node"); - var Params = module.exports = function Params() { - Node.call(this); - this.nodes = [] - }; - Params.prototype.__defineGetter__("length", function () { - return this.nodes.length - }); - Params.prototype.__proto__ = Node.prototype; - Params.prototype.push = function (node) { - this.nodes.push(node) - }; - Params.prototype.clone = function (parent) { - var clone = new Params; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - this.nodes.forEach(function (node) { - clone.push(node.clone(parent, clone)) - }); - return clone - }; - Params.prototype.toJSON = function () { - return {__type: "Params", nodes: this.nodes, lineno: this.lineno, column: this.column, filename: this.filename} - } - }); - require.register("nodes/property.js", function (module, exports, require) { - var Node = require("./node"); - var Property = module.exports = function Property(segs, expr) { - Node.call(this); - this.segments = segs; - this.expr = expr - }; - Property.prototype.__proto__ = Node.prototype; - Property.prototype.clone = function (parent) { - var clone = new Property(this.segments); - clone.name = this.name; - if (this.literal) clone.literal = this.literal; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - clone.segments = this.segments.map(function (node) { - return node.clone(parent, clone) - }); - if (this.expr) clone.expr = this.expr.clone(parent, clone); - return clone - }; - Property.prototype.toJSON = function () { - var json = { - __type: "Property", segments: this.segments, name: this.name, lineno: this.lineno, column: this.column, - filename: this.filename, - }; - if (this.expr) json.expr = this.expr; - if (this.literal) json.literal = this.literal; - return json - }; - Property.prototype.toString = function () { - return "property(" + this.segments.join("") + ", " + this.expr + ")" - }; - Property.prototype.operate = function (op, right, val) { - return this.expr.operate(op, right, val) - } - }); - require.register("nodes/return.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("./index"); - var Return = module.exports = function Return(expr) { - this.expr = expr || nodes.nil - }; - Return.prototype.__proto__ = Node.prototype; - Return.prototype.clone = function (parent) { - var clone = new Return; - clone.expr = this.expr.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Return.prototype.toJSON = function () { - return {__type: "Return", expr: this.expr, lineno: this.lineno, column: this.column, filename: this.filename} - } - }); - require.register("nodes/rgba.js", function (module, exports, require) { - var Node = require("./node"), - HSLA = require("./hsla"), - functions = require("../functions"), - adjust = functions.adjust, - nodes = require("./index"); - var RGBA = exports = module.exports = function RGBA(r, g, b, a) { - Node.call(this); - this.r = clamp(r); - this.g = clamp(g); - this.b = clamp(b); - this.a = clampAlpha(a); - this.name = ""; - this.rgba = this - }; - RGBA.prototype.__proto__ = Node.prototype; - RGBA.withoutClamping = function (r, g, b, a) { - var rgba = new RGBA(0, 0, 0, 0); - rgba.r = r; - rgba.g = g; - rgba.b = b; - rgba.a = a; - return rgba - }; - RGBA.prototype.clone = function () { - var clone = new RGBA(this.r, this.g, this.b, this.a); - clone.raw = this.raw; - clone.name = this.name; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - RGBA.prototype.toJSON = function () { - return { - __type: "RGBA", r: this.r, g: this.g, b: this.b, a: this.a, raw: this.raw, name: this.name, lineno: this.lineno, - column: this.column, filename: this.filename, - } - }; - RGBA.prototype.toBoolean = function () { - return nodes.yes - }; - RGBA.prototype.__defineGetter__("hsla", function () { - return HSLA.fromRGBA(this) - }); - RGBA.prototype.__defineGetter__("hash", function () { - return this.toString() - }); - RGBA.prototype.add = function (r, g, b, a) { - return new RGBA(this.r + r, this.g + g, this.b + b, this.a + a) - }; - RGBA.prototype.sub = function (r, g, b, a) { - return new RGBA(this.r - r, this.g - g, this.b - b, a == 1 ? this.a : this.a - a) - }; - RGBA.prototype.multiply = function (n) { - return new RGBA(this.r * n, this.g * n, this.b * n, this.a) - }; - RGBA.prototype.divide = function (n) { - return new RGBA(this.r / n, this.g / n, this.b / n, this.a) - }; - RGBA.prototype.operate = function (op, right) { - if ("in" != op) right = right.first; - switch (op) { - case"is a": - if ("string" == right.nodeName && "color" == right.string) {return nodes.yes} - break; - case"+": - switch (right.nodeName) { - case"unit": - var n = right.val; - switch (right.type) { - case"%": - return adjust(this, new nodes.String("lightness"), right); - case"deg": - return this.hsla.adjustHue(n).rgba; - default: - return this.add(n, n, n, 0) - } - case"rgba": - return this.add(right.r, right.g, right.b, right.a); - case"hsla": - return this.hsla.add(right.h, right.s, right.l) - } - break; - case"-": - switch (right.nodeName) { - case"unit": - var n = right.val; - switch (right.type) { - case"%": - return adjust(this, new nodes.String("lightness"), new nodes.Unit(-n, "%")); - case"deg": - return this.hsla.adjustHue(-n).rgba; - default: - return this.sub(n, n, n, 0) - } - case"rgba": - return this.sub(right.r, right.g, right.b, right.a); - case"hsla": - return this.hsla.sub(right.h, right.s, right.l) - } - break; - case"*": - switch (right.nodeName) { - case"unit": - return this.multiply(right.val) - } - break; - case"/": - switch (right.nodeName) { - case"unit": - return this.divide(right.val) - } - break - } - return Node.prototype.operate.call(this, op, right) - }; - RGBA.prototype.toString = function () { - function pad(n) { - return n < 16 ? "0" + n.toString(16) : n.toString(16) - } - - if ("transparent" == this.name) return this.name; - if (1 == this.a) { - var r = pad(this.r), g = pad(this.g), b = pad(this.b); - if (r[0] == r[1] && g[0] == g[1] && b[0] == b[1]) {return "#" + r[0] + g[0] + b[0]} else {return "#" + r + g + b} - } else {return "rgba(" + this.r + "," + this.g + "," + this.b + "," + +this.a.toFixed(3) + ")"} - }; - exports.fromHSLA = function (hsla) { - var h = hsla.h / 360, s = hsla.s / 100, l = hsla.l / 100, a = hsla.a; - var m2 = l <= .5 ? l * (s + 1) : l + s - l * s, m1 = l * 2 - m2; - var r = hue(h + 1 / 3) * 255, g = hue(h) * 255, b = hue(h - 1 / 3) * 255; - - function hue(h) { - if (h < 0) ++h; - if (h > 1) --h; - if (h * 6 < 1) return m1 + (m2 - m1) * h * 6; - if (h * 2 < 1) return m2; - if (h * 3 < 2) return m1 + (m2 - m1) * (2 / 3 - h) * 6; - return m1 - } - - return new RGBA(r, g, b, a) - }; - - function clamp(n) { - return Math.max(0, Math.min(n.toFixed(0), 255)) - } - - function clampAlpha(n) { - return Math.max(0, Math.min(n, 1)) - } - }); - require.register("nodes/root.js", function (module, exports, require) { - var Node = require("./node"); - var Root = module.exports = function Root() { - this.nodes = [] - }; - Root.prototype.__proto__ = Node.prototype; - Root.prototype.push = function (node) { - this.nodes.push(node) - }; - Root.prototype.unshift = function (node) { - this.nodes.unshift(node) - }; - Root.prototype.clone = function () { - var clone = new Root; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - this.nodes.forEach(function (node) { - clone.push(node.clone(clone, clone)) - }); - return clone - }; - Root.prototype.toString = function () { - return "[Root]" - }; - Root.prototype.toJSON = function () { - return {__type: "Root", nodes: this.nodes, lineno: this.lineno, column: this.column, filename: this.filename} - } - }); - require.register("nodes/selector.js", function (module, exports, require) { - var Block = require("./block"), Node = require("./node"); - var Selector = module.exports = function Selector(segs) { - Node.call(this); - this.inherits = true; - this.segments = segs; - this.optional = false - }; - Selector.prototype.__proto__ = Node.prototype; - Selector.prototype.toString = function () { - return this.segments.join("") + (this.optional ? " !optional" : "") - }; - Selector.prototype.__defineGetter__("isPlaceholder", function () { - return this.val && ~this.val.substr(0, 2).indexOf("$") - }); - Selector.prototype.clone = function (parent) { - var clone = new Selector; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - clone.inherits = this.inherits; - clone.val = this.val; - clone.segments = this.segments.map(function (node) { - return node.clone(parent, clone) - }); - clone.optional = this.optional; - return clone - }; - Selector.prototype.toJSON = function () { - return { - __type: "Selector", inherits: this.inherits, segments: this.segments, optional: this.optional, val: this.val, - lineno: this.lineno, column: this.column, filename: this.filename, - } - } - }); - require.register("nodes/string.js", function (module, exports, require) { - var Node = require("./node"), - sprintf = require("../functions").s, - utils = require("../utils"), - nodes = require("./index"); - var String = module.exports = function String(val, quote) { - Node.call(this); - this.val = val; - this.string = val; - this.prefixed = false; - if (typeof quote !== "string") {this.quote = "'"} else {this.quote = quote} - }; - String.prototype.__proto__ = Node.prototype; - String.prototype.toString = function () { - return this.quote + this.val + this.quote - }; - String.prototype.clone = function () { - var clone = new String(this.val, this.quote); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - String.prototype.toJSON = function () { - return { - __type: "String", val: this.val, quote: this.quote, lineno: this.lineno, column: this.column, - filename: this.filename, - } - }; - String.prototype.toBoolean = function () { - return nodes.Boolean(this.val.length) - }; - String.prototype.coerce = function (other) { - switch (other.nodeName) { - case"string": - return other; - case"expression": - return new String(other.nodes.map(function (node) { - return this.coerce(node).val - }, this).join(" ")); - default: - return new String(other.toString()) - } - }; - String.prototype.operate = function (op, right) { - switch (op) { - case"%": - var expr = new nodes.Expression; - expr.push(this); - var args = "expression" == right.nodeName ? utils.unwrap(right).nodes : [right]; - return sprintf.apply(null, [expr].concat(args)); - case"+": - var expr = new nodes.Expression; - expr.push(new String(this.val + this.coerce(right).val)); - return expr; - default: - return Node.prototype.operate.call(this, op, right) - } - } - }); - require.register("nodes/ternary.js", function (module, exports, require) { - var Node = require("./node"); - var Ternary = module.exports = function Ternary(cond, trueExpr, falseExpr) { - Node.call(this); - this.cond = cond; - this.trueExpr = trueExpr; - this.falseExpr = falseExpr - }; - Ternary.prototype.__proto__ = Node.prototype; - Ternary.prototype.clone = function (parent) { - var clone = new Ternary; - clone.cond = this.cond.clone(parent, clone); - clone.trueExpr = this.trueExpr.clone(parent, clone); - clone.falseExpr = this.falseExpr.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Ternary.prototype.toJSON = function () { - return { - __type: "Ternary", cond: this.cond, trueExpr: this.trueExpr, falseExpr: this.falseExpr, lineno: this.lineno, - column: this.column, filename: this.filename, - } - } - }); - require.register("nodes/unaryop.js", function (module, exports, require) { - var Node = require("./node"); - var UnaryOp = module.exports = function UnaryOp(op, expr) { - Node.call(this); - this.op = op; - this.expr = expr - }; - UnaryOp.prototype.__proto__ = Node.prototype; - UnaryOp.prototype.clone = function (parent) { - var clone = new UnaryOp(this.op); - clone.expr = this.expr.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - UnaryOp.prototype.toJSON = function () { - return { - __type: "UnaryOp", op: this.op, expr: this.expr, lineno: this.lineno, column: this.column, - filename: this.filename, - } - } - }); - require.register("nodes/unit.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("./index"); - var FACTOR_TABLE = { - mm: {val: 1, label: "mm"}, cm: {val: 10, label: "mm"}, "in": {val: 25.4, label: "mm"}, - pt: {val: 25.4 / 72, label: "mm"}, ms: {val: 1, label: "ms"}, s: {val: 1e3, label: "ms"}, - Hz: {val: 1, label: "Hz"}, kHz: {val: 1e3, label: "Hz"}, - }; - var Unit = module.exports = function Unit(val, type) { - Node.call(this); - this.val = val; - this.type = type - }; - Unit.prototype.__proto__ = Node.prototype; - Unit.prototype.toBoolean = function () { - return nodes.Boolean(this.type ? true : this.val) - }; - Unit.prototype.toString = function () { - return this.val + (this.type || "") - }; - Unit.prototype.clone = function () { - var clone = new Unit(this.val, this.type); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Unit.prototype.toJSON = function () { - return { - __type: "Unit", val: this.val, type: this.type, lineno: this.lineno, column: this.column, - filename: this.filename, - } - }; - Unit.prototype.operate = function (op, right) { - var type = this.type || right.first.type; - if ("rgba" == right.nodeName || "hsla" == right.nodeName) {return right.operate(op, this)} - if (this.shouldCoerce(op)) { - right = right.first; - if ("%" != this.type && ("-" == op || "+" == op) && "%" == right.type) {right = new Unit(this.val * (right.val / 100), "%")} else {right = this.coerce(right)} - switch (op) { - case"-": - return new Unit(this.val - right.val, type); - case"+": - type = type || right.type == "%" && right.type; - return new Unit(this.val + right.val, type); - case"/": - return new Unit(this.val / right.val, type); - case"*": - return new Unit(this.val * right.val, type); - case"%": - return new Unit(this.val % right.val, type); - case"**": - return new Unit(Math.pow(this.val, right.val), type); - case"..": - case"...": - var start = this.val, end = right.val, expr = new nodes.Expression, inclusive = ".." == op; - if (start < end) {do {expr.push(new nodes.Unit(start))} while (inclusive ? ++start <= end : ++start < end)} else {do {expr.push(new nodes.Unit(start))} while (inclusive ? --start >= end : --start > end)} - return expr - } - } - return Node.prototype.operate.call(this, op, right) - }; - Unit.prototype.coerce = function (other) { - if ("unit" == other.nodeName) { - var a = this, - b = other, - factorA = FACTOR_TABLE[a.type], - factorB = FACTOR_TABLE[b.type]; - if (factorA && factorB && factorA.label == factorB.label) { - var bVal = b.val * (factorB.val / factorA.val); - return new nodes.Unit(bVal, a.type) - } else {return new nodes.Unit(b.val, a.type)} - } else if ("string" == other.nodeName) { - if ("%" == other.val) return new nodes.Unit(0, "%"); - var val = parseFloat(other.val); - if (isNaN(val)) Node.prototype.coerce.call(this, other); - return new nodes.Unit(val) - } else {return Node.prototype.coerce.call(this, other)} - } - }); - require.register("nodes/object.js", function (module, exports, require) { - var Node = require("./node"), nodes = require("./index"), nativeObj = {}.constructor; - var Object = module.exports = function Object() { - Node.call(this); - this.vals = {} - }; - Object.prototype.__proto__ = Node.prototype; - Object.prototype.set = function (key, val) { - this.vals[key] = val; - return this - }; - Object.prototype.__defineGetter__("length", function () { - return nativeObj.keys(this.vals).length - }); - Object.prototype.get = function (key) { - return this.vals[key] || nodes.nil - }; - Object.prototype.has = function (key) { - return key in this.vals - }; - Object.prototype.operate = function (op, right) { - switch (op) { - case".": - case"[]": - return this.get(right.hash); - case"==": - var vals = this.vals, a, b; - if ("object" != right.nodeName || this.length != right.length) return nodes.no; - for (var key in vals) { - a = vals[key]; - b = right.vals[key]; - if (a.operate(op, b).isFalse) return nodes.no; - } - return nodes.yes; - case"!=": - return this.operate("==", right).negate(); - default: - return Node.prototype.operate.call(this, op, right) - } - }; - Object.prototype.toBoolean = function () { - return nodes.Boolean(this.length) - }; - Object.prototype.toBlock = function () { - var str = "{", key, val; - for (key in this.vals) { - val = this.get(key); - if ("object" == val.first.nodeName) {str += key + " " + val.first.toBlock()} else { - switch (key) { - case"@charset": - str += key + " " + val.first.toString() + ";"; - break; - default: - str += key + ":" + toString(val) + ";" - } - } - } - str += "}"; - return str; - - function toString(node) { - if (node.nodes) {return node.nodes.map(toString).join(node.isList ? "," : " ")} else if ("literal" == node.nodeName && "," == node.val) {return "\\,"} - return node.toString() - } - }; - Object.prototype.clone = function (parent) { - var clone = new Object; - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - for (var key in this.vals) {clone.vals[key] = this.vals[key].clone(parent, clone)} - return clone - }; - Object.prototype.toJSON = function () { - return {__type: "Object", vals: this.vals, lineno: this.lineno, column: this.column, filename: this.filename} - }; - Object.prototype.toString = function () { - var obj = {}; - for (var prop in this.vals) {obj[prop] = this.vals[prop].toString()} - return JSON.stringify(obj) - } - }); - require.register("nodes/supports.js", function (module, exports, require) { - var Atrule = require("./atrule"); - var Supports = module.exports = function Supports(condition) { - Atrule.call(this, "supports"); - this.condition = condition - }; - Supports.prototype.__proto__ = Atrule.prototype; - Supports.prototype.clone = function (parent) { - var clone = new Supports; - clone.condition = this.condition.clone(parent, clone); - clone.block = this.block.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Supports.prototype.toJSON = function () { - return { - __type: "Supports", condition: this.condition, block: this.block, lineno: this.lineno, column: this.column, - filename: this.filename, - } - }; - Supports.prototype.toString = function () { - return "@supports " + this.condition - } - }); - require.register("nodes/member.js", function (module, exports, require) { - var Node = require("./node"); - var Member = module.exports = function Member(left, right) { - Node.call(this); - this.left = left; - this.right = right - }; - Member.prototype.__proto__ = Node.prototype; - Member.prototype.clone = function (parent) { - var clone = new Member; - clone.left = this.left.clone(parent, clone); - clone.right = this.right.clone(parent, clone); - if (this.val) clone.val = this.val.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Member.prototype.toJSON = function () { - var json = { - __type: "Member", left: this.left, right: this.right, lineno: this.lineno, column: this.column, - filename: this.filename, - }; - if (this.val) json.val = this.val; - return json - }; - Member.prototype.toString = function () { - return this.left.toString() + "." + this.right.toString() - } - }); - require.register("nodes/atblock.js", function (module, exports, require) { - var Node = require("./node"); - var Atblock = module.exports = function Atblock() { - Node.call(this) - }; - Atblock.prototype.__defineGetter__("nodes", function () { - return this.block.nodes - }); - Atblock.prototype.__proto__ = Node.prototype; - Atblock.prototype.clone = function (parent) { - var clone = new Atblock; - clone.block = this.block.clone(parent, clone); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Atblock.prototype.toString = function () { - return "@block" - }; - Atblock.prototype.toJSON = function () { - return {__type: "Atblock", block: this.block, lineno: this.lineno, column: this.column, fileno: this.fileno} - } - }); - require.register("nodes/atrule.js", function (module, exports, require) { - var Node = require("./node"); - var Atrule = module.exports = function Atrule(type) { - Node.call(this); - this.type = type - }; - Atrule.prototype.__proto__ = Node.prototype; - Atrule.prototype.__defineGetter__("hasOnlyProperties", function () { - if (!this.block) return false; - var nodes = this.block.nodes; - for (var i = 0, len = nodes.length; i < len; ++i) { - var nodeName = nodes[i].nodeName; - switch (nodes[i].nodeName) { - case"property": - case"expression": - case"comment": - continue; - default: - return false - } - } - return true - }); - Atrule.prototype.clone = function (parent) { - var clone = new Atrule(this.type); - if (this.block) clone.block = this.block.clone(parent, clone); - clone.segments = this.segments.map(function (node) { - return node.clone(parent, clone) - }); - clone.lineno = this.lineno; - clone.column = this.column; - clone.filename = this.filename; - return clone - }; - Atrule.prototype.toJSON = function () { - var json = { - __type: "Atrule", type: this.type, segments: this.segments, lineno: this.lineno, column: this.column, - filename: this.filename, - }; - if (this.block) json.block = this.block; - return json - }; - Atrule.prototype.toString = function () { - return "@" + this.type - }; - Atrule.prototype.__defineGetter__("hasOutput", function () { - return !!this.block && hasOutput(this.block) - }); - - function hasOutput(block) { - var nodes = block.nodes; - if (nodes.every(function (node) { - return "group" == node.nodeName && node.hasOnlyPlaceholders - })) { - return false; - } - return nodes.some(function (node) { - switch (node.nodeName) { - case"property": - case"literal": - case"import": - return true; - case"block": - return hasOutput(node); - default: - if (node.block) return hasOutput(node.block) - } - }) - } - }); - require.register("parser.js", function (module, exports, require) { - var Lexer = require("./lexer"), - nodes = require("./nodes"), - Token = require("./token"), - units = require("./units"), - errors = require("./errors"); - var selectorTokens = ["ident", "string", "selector", "function", "comment", "boolean", "space", "color", "unit", "for", "in", "[", "]", "(", ")", "+", "-", "*", "*=", "<", ">", "=", ":", "&", "&&", "~", "{", "}", ".", "..", "/"]; - var pseudoSelectors = ["matches", "not", "dir", "lang", "any-link", "link", "visited", "local-link", "target", "scope", "hover", "active", "focus", "drop", "current", "past", "future", "enabled", "disabled", "read-only", "read-write", "placeholder-shown", "checked", "indeterminate", "valid", "invalid", "in-range", "out-of-range", "required", "optional", "user-error", "root", "empty", "blank", "nth-child", "nth-last-child", "first-child", "last-child", "only-child", "nth-of-type", "nth-last-of-type", "first-of-type", "last-of-type", "only-of-type", "nth-match", "nth-last-match", "nth-column", "nth-last-column", "first-line", "first-letter", "before", "after", "selection"]; - var Parser = module.exports = function Parser(str, options) { - var self = this; - options = options || {}; - this.lexer = new Lexer(str, options); - this.prefix = options.prefix || ""; - this.root = options.root || new nodes.Root; - this.state = ["root"]; - this.stash = []; - this.parens = 0; - this.css = 0; - this.state.pop = function () { - self.prevState = [].pop.call(this) - } - }; - Parser.prototype = { - constructor: Parser, currentState: function () { - return this.state[this.state.length - 1] - }, previousState: function () { - return this.state[this.state.length - 2] - }, parse: function () { - var block = this.parent = this.root; - while ("eos" != this.peek().type) { - this.skipWhitespace(); - if ("eos" == this.peek().type) break; - var stmt = this.statement(); - this.accept(";"); - if (!stmt) this.error("unexpected token {peek}, not allowed at the root level"); - block.push(stmt) - } - return block - }, error: function (msg) { - var type = this.peek().type, val = undefined == this.peek().val ? "" : " " + this.peek().toString(); - if (val.trim() == type.trim()) val = ""; - throw new errors.ParseError(msg.replace("{peek}", '"' + type + val + '"')) - }, accept: function (type) { - if (type == this.peek().type) {return this.next()} - }, expect: function (type) { - if (type != this.peek().type) {this.error('expected "' + type + '", got {peek}')} - return this.next() - }, next: function () { - var tok = this.stash.length ? this.stash.pop() : this.lexer.next(), line = tok.lineno, column = tok.column || 1; - if (tok.val && tok.val.nodeName) { - tok.val.lineno = line; - tok.val.column = column - } - nodes.lineno = line; - nodes.column = column; - return tok - }, peek: function () { - return this.lexer.peek() - }, lookahead: function (n) { - return this.lexer.lookahead(n) - }, isSelectorToken: function (n) { - var la = this.lookahead(n).type; - switch (la) { - case"for": - return this.bracketed; - case"[": - this.bracketed = true; - return true; - case"]": - this.bracketed = false; - return true; - default: - return ~selectorTokens.indexOf(la) - } - }, isPseudoSelector: function (n) { - var val = this.lookahead(n).val; - return val && ~pseudoSelectors.indexOf(val.name) - }, lineContains: function (type) { - var i = 1, la; - while (la = this.lookahead(i++)) { - if (~["indent", "outdent", "newline", "eos"].indexOf(la.type)) return; - if (type == la.type) return true - } - }, selectorToken: function () { - if (this.isSelectorToken(1)) { - if ("{" == this.peek().type) { - if (!this.lineContains("}")) return; - var i = 0, la; - while (la = this.lookahead(++i)) { - if ("}" == la.type) { - if (i == 2 || i == 3 && this.lookahead(i - 1).type == "space") return; - break - } - if (":" == la.type) return - } - } - return this.next() - } - }, skip: function (tokens) { - while (~tokens.indexOf(this.peek().type)) this.next() - }, skipWhitespace: function () { - this.skip(["space", "indent", "outdent", "newline"]) - }, skipNewlines: function () { - while ("newline" == this.peek().type) this.next() - }, skipSpaces: function () { - while ("space" == this.peek().type) this.next() - }, skipSpacesAndComments: function () { - while ("space" == this.peek().type || "comment" == this.peek().type) this.next() - }, looksLikeFunctionDefinition: function (i) { - return "indent" == this.lookahead(i).type || "{" == this.lookahead(i).type - }, looksLikeSelector: function (fromProperty) { - var i = 1, brace; - if (fromProperty && ":" == this.lookahead(i + 1).type && (this.lookahead(i + 1).space || "indent" == this.lookahead(i + 2).type)) return false; - while ("ident" == this.lookahead(i).type && ("newline" == this.lookahead(i + 1).type || "," == this.lookahead(i + 1).type)) i += 2; - while (this.isSelectorToken(i) || "," == this.lookahead(i).type) { - if ("selector" == this.lookahead(i).type) return true; - if ("&" == this.lookahead(i + 1).type) return true; - if ("." == this.lookahead(i).type && "ident" == this.lookahead(i + 1).type) return true; - if ("*" == this.lookahead(i).type && "newline" == this.lookahead(i + 1).type) return true; - if (":" == this.lookahead(i).type && ":" == this.lookahead(i + 1).type) return true; - if ("color" == this.lookahead(i).type && "newline" == this.lookahead(i - 1).type) return true; - if (this.looksLikeAttributeSelector(i)) return true; - if (("=" == this.lookahead(i).type || "function" == this.lookahead(i).type) && "{" == this.lookahead(i + 1).type) return false; - if (":" == this.lookahead(i).type && !this.isPseudoSelector(i + 1) && this.lineContains(".")) return false; - if ("{" == this.lookahead(i).type) brace = true; else if ("}" == this.lookahead(i).type) brace = false; - if (brace && ":" == this.lookahead(i).type) return true; - if ("space" == this.lookahead(i).type && "{" == this.lookahead(i + 1).type) return true; - if (":" == this.lookahead(i++).type && !this.lookahead(i - 1).space && this.isPseudoSelector(i)) return true; - if ("space" == this.lookahead(i).type && "newline" == this.lookahead(i + 1).type && "{" == this.lookahead(i + 2).type) return true; - if ("," == this.lookahead(i).type && "newline" == this.lookahead(i + 1).type) return true - } - if ("," == this.lookahead(i).type && "newline" == this.lookahead(i + 1).type) return true; - if ("{" == this.lookahead(i).type && "newline" == this.lookahead(i + 1).type) return true; - if (this.css) {if (";" == this.lookahead(i).type || "}" == this.lookahead(i - 1).type) return false} - while (!~["indent", "outdent", "newline", "for", "if", ";", "}", "eos"].indexOf(this.lookahead(i).type)) ++i; - if ("indent" == this.lookahead(i).type) return true - }, looksLikeAttributeSelector: function (n) { - var type = this.lookahead(n).type; - if ("=" == type && this.bracketed) return true; - return ("ident" == type || "string" == type) && "]" == this.lookahead(n + 1).type && ("newline" == this.lookahead(n + 2).type || this.isSelectorToken(n + 2)) && !this.lineContains(":") && !this.lineContains("=") - }, looksLikeKeyframe: function () { - var i = 2, type; - switch (this.lookahead(i).type) { - case"{": - case"indent": - case",": - return true; - case"newline": - while ("unit" == this.lookahead(++i).type || "newline" == this.lookahead(i).type) ; - type = this.lookahead(i).type; - return "indent" == type || "{" == type - } - }, stateAllowsSelector: function () { - switch (this.currentState()) { - case"root": - case"atblock": - case"selector": - case"conditional": - case"function": - case"atrule": - case"for": - return true - } - }, assignAtblock: function (expr) { - try {expr.push(this.atblock(expr))} - catch (err) {this.error("invalid right-hand side operand in assignment, got {peek}")} - }, statement: function () { - var stmt = this.stmt(), state = this.prevState, block, op; - if (this.allowPostfix) { - this.allowPostfix = false; - state = "expression" - } - switch (state) { - case"assignment": - case"expression": - case"function arguments": - while (op = this.accept("if") || this.accept("unless") || this.accept("for")) { - switch (op.type) { - case"if": - case"unless": - stmt = new nodes.If(this.expression(), stmt); - stmt.postfix = true; - stmt.negate = "unless" == op.type; - this.accept(";"); - break; - case"for": - var key, val = this.id().name; - if (this.accept(",")) key = this.id().name; - this.expect("in"); - var each = new nodes.Each(val, key, this.expression()); - block = new nodes.Block(this.parent, each); - block.push(stmt); - each.block = block; - stmt = each - } - } - } - return stmt - }, stmt: function () { - var type = this.peek().type; - switch (type) { - case"keyframes": - return this.keyframes(); - case"-moz-document": - return this.mozdocument(); - case"comment": - case"selector": - case"extend": - case"literal": - case"charset": - case"namespace": - case"require": - case"extend": - case"media": - case"atrule": - case"ident": - case"scope": - case"supports": - case"unless": - return this[type](); - case"function": - return this.fun(); - case"import": - return this.atimport(); - case"if": - return this.ifstmt(); - case"for": - return this.forin(); - case"return": - return this.ret(); - case"{": - return this.property(); - default: - if (this.stateAllowsSelector()) { - switch (type) { - case"color": - case"~": - case">": - case"<": - case":": - case"&": - case"&&": - case"[": - case".": - case"/": - return this.selector(); - case"..": - if ("/" == this.lookahead(2).type) return this.selector(); - case"+": - return "function" == this.lookahead(2).type ? this.functionCall() : this.selector(); - case"*": - return this.property(); - case"unit": - if (this.looksLikeKeyframe()) return this.selector(); - case"-": - if ("{" == this.lookahead(2).type) return this.property() - } - } - var expr = this.expression(); - if (expr.isEmpty) this.error("unexpected {peek}"); - return expr - } - }, block: function (node, scope) { - var delim, stmt, next, block = this.parent = new nodes.Block(this.parent, node); - if (false === scope) block.scope = false; - this.accept("newline"); - if (this.accept("{")) { - this.css++; - delim = "}"; - this.skipWhitespace() - } else { - delim = "outdent"; - this.expect("indent") - } - while (delim != this.peek().type) { - if (this.css) { - if (this.accept("newline") || this.accept("indent")) continue; - stmt = this.statement(); - this.accept(";"); - this.skipWhitespace() - } else { - if (this.accept("newline")) continue; - next = this.lookahead(2).type; - if ("indent" == this.peek().type && ~["outdent", "newline", "comment"].indexOf(next)) { - this.skip(["indent", "outdent"]); - continue - } - if ("eos" == this.peek().type) return block; - stmt = this.statement(); - this.accept(";") - } - if (!stmt) this.error("unexpected token {peek} in block"); - block.push(stmt) - } - if (this.css) { - this.skipWhitespace(); - this.expect("}"); - this.skipSpaces(); - this.css-- - } else {this.expect("outdent")} - this.parent = block.parent; - return block - }, comment: function () { - var node = this.next().val; - this.skipSpaces(); - return node - }, forin: function () { - this.expect("for"); - var key, val = this.id().name; - if (this.accept(",")) key = this.id().name; - this.expect("in"); - this.state.push("for"); - this.cond = true; - var each = new nodes.Each(val, key, this.expression()); - this.cond = false; - each.block = this.block(each, false); - this.state.pop(); - return each - }, ret: function () { - this.expect("return"); - var expr = this.expression(); - return expr.isEmpty ? new nodes.Return : new nodes.Return(expr) - }, unless: function () { - this.expect("unless"); - this.state.push("conditional"); - this.cond = true; - var node = new nodes.If(this.expression(), true); - this.cond = false; - node.block = this.block(node, false); - this.state.pop(); - return node - }, ifstmt: function () { - this.expect("if"); - this.state.push("conditional"); - this.cond = true; - var node = new nodes.If(this.expression()), cond, block; - this.cond = false; - node.block = this.block(node, false); - this.skip(["newline", "comment"]); - while (this.accept("else")) { - if (this.accept("if")) { - this.cond = true; - cond = this.expression(); - this.cond = false; - block = this.block(node, false); - node.elses.push(new nodes.If(cond, block)) - } else { - node.elses.push(this.block(node, false)); - break - } - this.skip(["newline", "comment"]) - } - this.state.pop(); - return node - }, atblock: function (node) { - if (!node) this.expect("atblock"); - node = new nodes.Atblock; - this.state.push("atblock"); - node.block = this.block(node, false); - this.state.pop(); - return node - }, atrule: function () { - var type = this.expect("atrule").val, node = new nodes.Atrule(type), tok; - this.skipSpacesAndComments(); - node.segments = this.selectorParts(); - this.skipSpacesAndComments(); - tok = this.peek().type; - if ("indent" == tok || "{" == tok || "newline" == tok && "{" == this.lookahead(2).type) { - this.state.push("atrule"); - node.block = this.block(node); - this.state.pop() - } - return node - }, scope: function () { - this.expect("scope"); - var selector = this.selectorParts().map(function (selector) { - return selector.val - }).join(""); - this.selectorScope = selector.trim(); - return nodes.nil - }, supports: function () { - this.expect("supports"); - var node = new nodes.Supports(this.supportsCondition()); - this.state.push("atrule"); - node.block = this.block(node); - this.state.pop(); - return node - }, supportsCondition: function () { - var node = this.supportsNegation() || this.supportsOp(); - if (!node) { - this.cond = true; - node = this.expression(); - this.cond = false - } - return node - }, supportsNegation: function () { - if (this.accept("not")) { - var node = new nodes.Expression; - node.push(new nodes.Literal("not")); - node.push(this.supportsFeature()); - return node - } - }, supportsOp: function () { - var feature = this.supportsFeature(), op, expr; - if (feature) { - expr = new nodes.Expression; - expr.push(feature); - while (op = this.accept("&&") || this.accept("||")) { - expr.push(new nodes.Literal("&&" == op.val ? "and" : "or")); - expr.push(this.supportsFeature()) - } - return expr - } - }, supportsFeature: function () { - this.skipSpacesAndComments(); - if ("(" == this.peek().type) { - var la = this.lookahead(2).type; - if ("ident" == la || "{" == la) {return this.feature()} else { - this.expect("("); - var node = new nodes.Expression; - node.push(new nodes.Literal("(")); - node.push(this.supportsCondition()); - this.expect(")"); - node.push(new nodes.Literal(")")); - this.skipSpacesAndComments(); - return node - } - } - }, extend: function () { - var tok = this.expect("extend"), selectors = [], sel, node, arr; - do { - arr = this.selectorParts(); - if (!arr.length) continue; - sel = new nodes.Selector(arr); - selectors.push(sel); - if ("!" !== this.peek().type) continue; - tok = this.lookahead(2); - if ("ident" !== tok.type || "optional" !== tok.val.name) continue; - this.skip(["!", "ident"]); - sel.optional = true - } while (this.accept(",")); - node = new nodes.Extend(selectors); - node.lineno = tok.lineno; - node.column = tok.column; - return node - }, media: function () { - this.expect("media"); - this.state.push("atrule"); - var media = new nodes.Media(this.queries()); - media.block = this.block(media); - this.state.pop(); - return media - }, queries: function () { - var queries = new nodes.QueryList, skip = ["comment", "newline", "space"]; - do { - this.skip(skip); - queries.push(this.query()); - this.skip(skip) - } while (this.accept(",")); - return queries - }, query: function () { - var query = new nodes.Query, expr, pred, id; - if ("ident" == this.peek().type && ("." == this.lookahead(2).type || "[" == this.lookahead(2).type)) { - this.cond = true; - expr = this.expression(); - this.cond = false; - query.push(new nodes.Feature(expr.nodes)); - return query - } - if (pred = this.accept("ident") || this.accept("not")) { - pred = new nodes.Literal(pred.val.string || pred.val); - this.skipSpacesAndComments(); - if (id = this.accept("ident")) { - query.type = id.val; - query.predicate = pred - } else {query.type = pred} - this.skipSpacesAndComments(); - if (!this.accept("&&")) return query - } - do {query.push(this.feature())} while (this.accept("&&")); - return query - }, feature: function () { - this.skipSpacesAndComments(); - this.expect("("); - this.skipSpacesAndComments(); - var node = new nodes.Feature(this.interpolate()); - this.skipSpacesAndComments(); - this.accept(":"); - this.skipSpacesAndComments(); - this.inProperty = true; - node.expr = this.list(); - this.inProperty = false; - this.skipSpacesAndComments(); - this.expect(")"); - this.skipSpacesAndComments(); - return node - }, mozdocument: function () { - this.expect("-moz-document"); - var mozdocument = new nodes.Atrule("-moz-document"), calls = []; - do { - this.skipSpacesAndComments(); - calls.push(this.functionCall()); - this.skipSpacesAndComments() - } while (this.accept(",")); - mozdocument.segments = [new nodes.Literal(calls.join(", "))]; - this.state.push("atrule"); - mozdocument.block = this.block(mozdocument, false); - this.state.pop(); - return mozdocument - }, atimport: function () { - this.expect("import"); - this.allowPostfix = true; - return new nodes.Import(this.expression(), false) - }, require: function () { - this.expect("require"); - this.allowPostfix = true; - return new nodes.Import(this.expression(), true) - }, charset: function () { - this.expect("charset"); - var str = this.expect("string").val; - this.allowPostfix = true; - return new nodes.Charset(str) - }, namespace: function () { - var str, prefix; - this.expect("namespace"); - this.skipSpacesAndComments(); - if (prefix = this.accept("ident")) {prefix = prefix.val} - this.skipSpacesAndComments(); - str = this.accept("string") || this.url(); - this.allowPostfix = true; - return new nodes.Namespace(str, prefix) - }, keyframes: function () { - var tok = this.expect("keyframes"), keyframes; - this.skipSpacesAndComments(); - keyframes = new nodes.Keyframes(this.selectorParts(), tok.val); - this.skipSpacesAndComments(); - this.state.push("atrule"); - keyframes.block = this.block(keyframes); - this.state.pop(); - return keyframes - }, literal: function () { - return this.expect("literal").val - }, id: function () { - var tok = this.expect("ident"); - this.accept("space"); - return tok.val - }, ident: function () { - var i = 2, la = this.lookahead(i).type; - while ("space" == la) la = this.lookahead(++i).type; - switch (la) { - case"=": - case"?=": - case"-=": - case"+=": - case"*=": - case"/=": - case"%=": - return this.assignment(); - case".": - if ("space" == this.lookahead(i - 1).type) return this.selector(); - if (this._ident == this.peek()) return this.id(); - while ("=" != this.lookahead(++i).type && !~["[", ",", "newline", "indent", "eos"].indexOf(this.lookahead(i).type)) ; - if ("=" == this.lookahead(i).type) { - this._ident = this.peek(); - return this.expression() - } else if (this.looksLikeSelector() && this.stateAllowsSelector()) {return this.selector()} - case"[": - if (this._ident == this.peek()) return this.id(); - while ("]" != this.lookahead(i++).type && "selector" != this.lookahead(i).type && "eos" != this.lookahead(i).type) ; - if ("=" == this.lookahead(i).type) { - this._ident = this.peek(); - return this.expression() - } else if (this.looksLikeSelector() && this.stateAllowsSelector()) {return this.selector()} - case"-": - case"+": - case"/": - case"*": - case"%": - case"**": - case"&&": - case"||": - case">": - case"<": - case">=": - case"<=": - case"!=": - case"==": - case"?": - case"in": - case"is a": - case"is defined": - if (this._ident == this.peek()) {return this.id()} else { - this._ident = this.peek(); - switch (this.currentState()) { - case"for": - case"selector": - return this.property(); - case"root": - case"atblock": - case"atrule": - return "[" == la ? this.subscript() : this.selector(); - case"function": - case"conditional": - return this.looksLikeSelector() ? this.selector() : this.expression(); - default: - return this.operand ? this.id() : this.expression() - } - } - default: - switch (this.currentState()) { - case"root": - return this.selector(); - case"for": - case"selector": - case"function": - case"conditional": - case"atblock": - case"atrule": - return this.property(); - default: - var id = this.id(); - if ("interpolation" == this.previousState()) id.mixin = true; - return id - } - } - }, interpolate: function () { - var node, segs = [], star; - star = this.accept("*"); - if (star) segs.push(new nodes.Literal("*")); - while (true) { - if (this.accept("{")) { - this.state.push("interpolation"); - segs.push(this.expression()); - this.expect("}"); - this.state.pop() - } else if (node = this.accept("-")) {segs.push(new nodes.Literal("-"))} else if (node = this.accept("ident")) {segs.push(node.val)} else {break} - } - if (!segs.length) this.expect("ident"); - return segs - }, property: function () { - if (this.looksLikeSelector(true)) return this.selector(); - var ident = this.interpolate(), prop = new nodes.Property(ident), ret = prop; - this.accept("space"); - if (this.accept(":")) this.accept("space"); - this.state.push("property"); - this.inProperty = true; - prop.expr = this.list(); - if (prop.expr.isEmpty) ret = ident[0]; - this.inProperty = false; - this.allowPostfix = true; - this.state.pop(); - this.accept(";"); - return ret - }, selector: function () { - var arr, group = new nodes.Group, scope = this.selectorScope, isRoot = "root" == this.currentState(), selector; - do { - this.accept("newline"); - arr = this.selectorParts(); - if (isRoot && scope) arr.unshift(new nodes.Literal(scope + " ")); - if (arr.length) { - selector = new nodes.Selector(arr); - selector.lineno = arr[0].lineno; - selector.column = arr[0].column; - group.push(selector) - } - } while (this.accept(",") || this.accept("newline")); - if ("selector-parts" == this.currentState()) return group.nodes; - this.state.push("selector"); - group.block = this.block(group); - this.state.pop(); - return group - }, selectorParts: function () { - var tok, arr = []; - while (tok = this.selectorToken()) { - switch (tok.type) { - case"{": - this.skipSpaces(); - var expr = this.expression(); - this.skipSpaces(); - this.expect("}"); - arr.push(expr); - break; - case this.prefix && ".": - var literal = new nodes.Literal(tok.val + this.prefix); - literal.prefixed = true; - arr.push(literal); - break; - case"comment": - break; - case"color": - case"unit": - arr.push(new nodes.Literal(tok.val.raw)); - break; - case"space": - arr.push(new nodes.Literal(" ")); - break; - case"function": - arr.push(new nodes.Literal(tok.val.name + "(")); - break; - case"ident": - arr.push(new nodes.Literal(tok.val.name || tok.val.string)); - break; - default: - arr.push(new nodes.Literal(tok.val)); - if (tok.space) arr.push(new nodes.Literal(" ")) - } - } - return arr - }, assignment: function () { - var op, node, name = this.id().name; - if (op = this.accept("=") || this.accept("?=") || this.accept("+=") || this.accept("-=") || this.accept("*=") || this.accept("/=") || this.accept("%=")) { - this.state.push("assignment"); - var expr = this.list(); - if (expr.isEmpty) this.assignAtblock(expr); - node = new nodes.Ident(name, expr); - this.state.pop(); - switch (op.type) { - case"?=": - var defined = new nodes.BinOp("is defined", node), lookup = new nodes.Expression; - lookup.push(new nodes.Ident(name)); - node = new nodes.Ternary(defined, lookup, node); - break; - case"+=": - case"-=": - case"*=": - case"/=": - case"%=": - node.val = new nodes.BinOp(op.type[0], new nodes.Ident(name), expr); - break - } - } - return node - }, fun: function () { - var parens = 1, i = 2, tok; - out:while (tok = this.lookahead(i++)) { - switch (tok.type) { - case"function": - case"(": - ++parens; - break; - case")": - if (!--parens) break out; - break; - case"eos": - this.error('failed to find closing paren ")"') - } - } - switch (this.currentState()) { - case"expression": - return this.functionCall(); - default: - return this.looksLikeFunctionDefinition(i) ? this.functionDefinition() : this.expression() - } - }, url: function () { - this.expect("function"); - this.state.push("function arguments"); - var args = this.args(); - this.expect(")"); - this.state.pop(); - return new nodes.Call("url", args) - }, functionCall: function () { - var withBlock = this.accept("+"); - if ("url" == this.peek().val.name) return this.url(); - var name = this.expect("function").val.name; - this.state.push("function arguments"); - this.parens++; - var args = this.args(); - this.expect(")"); - this.parens--; - this.state.pop(); - var call = new nodes.Call(name, args); - if (withBlock) { - this.state.push("function"); - call.block = this.block(call); - this.state.pop() - } - return call - }, functionDefinition: function () { - var name = this.expect("function").val.name; - this.state.push("function params"); - this.skipWhitespace(); - var params = this.params(); - this.skipWhitespace(); - this.expect(")"); - this.state.pop(); - this.state.push("function"); - var fn = new nodes.Function(name, params); - fn.block = this.block(fn); - this.state.pop(); - return new nodes.Ident(name, fn) - }, params: function () { - var tok, node, params = new nodes.Params; - while (tok = this.accept("ident")) { - this.accept("space"); - params.push(node = tok.val); - if (this.accept("...")) {node.rest = true} else if (this.accept("=")) {node.val = this.expression()} - this.skipWhitespace(); - this.accept(","); - this.skipWhitespace() - } - return params - }, args: function () { - var args = new nodes.Arguments, keyword; - do { - if ("ident" == this.peek().type && ":" == this.lookahead(2).type) { - keyword = this.next().val.string; - this.expect(":"); - args.map[keyword] = this.expression() - } else {args.push(this.expression())} - } while (this.accept(",")); - return args - }, list: function () { - var node = this.expression(); - while (this.accept(",")) { - if (node.isList) {list.push(this.expression())} else { - var list = new nodes.Expression(true); - list.push(node); - list.push(this.expression()); - node = list - } - } - return node - }, expression: function () { - var node, expr = new nodes.Expression; - this.state.push("expression"); - while (node = this.negation()) { - if (!node) this.error("unexpected token {peek} in expression"); - expr.push(node) - } - this.state.pop(); - if (expr.nodes.length) { - expr.lineno = expr.nodes[0].lineno; - expr.column = expr.nodes[0].column - } - return expr - }, negation: function () { - if (this.accept("not")) {return new nodes.UnaryOp("!", this.negation())} - return this.ternary() - }, ternary: function () { - var node = this.logical(); - if (this.accept("?")) { - var trueExpr = this.expression(); - this.expect(":"); - var falseExpr = this.expression(); - node = new nodes.Ternary(node, trueExpr, falseExpr) - } - return node - }, logical: function () { - var op, node = this.typecheck(); - while (op = this.accept("&&") || this.accept("||")) {node = new nodes.BinOp(op.type, node, this.typecheck())} - return node - }, typecheck: function () { - var op, node = this.equality(); - while (op = this.accept("is a")) { - this.operand = true; - if (!node) this.error('illegal unary "' + op + '", missing left-hand operand'); - node = new nodes.BinOp(op.type, node, this.equality()); - this.operand = false - } - return node - }, equality: function () { - var op, node = this.inop(); - while (op = this.accept("==") || this.accept("!=")) { - this.operand = true; - if (!node) this.error('illegal unary "' + op + '", missing left-hand operand'); - node = new nodes.BinOp(op.type, node, this.inop()); - this.operand = false - } - return node - }, inop: function () { - var node = this.relational(); - while (this.accept("in")) { - this.operand = true; - if (!node) this.error('illegal unary "in", missing left-hand operand'); - node = new nodes.BinOp("in", node, this.relational()); - this.operand = false - } - return node - }, relational: function () { - var op, node = this.range(); - while (op = this.accept(">=") || this.accept("<=") || this.accept("<") || this.accept(">")) { - this.operand = true; - if (!node) this.error('illegal unary "' + op + '", missing left-hand operand'); - node = new nodes.BinOp(op.type, node, this.range()); - this.operand = false - } - return node - }, range: function () { - var op, node = this.additive(); - if (op = this.accept("...") || this.accept("..")) { - this.operand = true; - if (!node) this.error('illegal unary "' + op + '", missing left-hand operand'); - node = new nodes.BinOp(op.val, node, this.additive()); - this.operand = false - } - return node - }, additive: function () { - var op, node = this.multiplicative(); - while (op = this.accept("+") || this.accept("-")) { - this.operand = true; - node = new nodes.BinOp(op.type, node, this.multiplicative()); - this.operand = false - } - return node - }, multiplicative: function () { - var op, node = this.defined(); - while (op = this.accept("**") || this.accept("*") || this.accept("/") || this.accept("%")) { - this.operand = true; - if ("/" == op && this.inProperty && !this.parens) { - this.stash.push(new Token("literal", new nodes.Literal("/"))); - this.operand = false; - return node - } else { - if (!node) this.error('illegal unary "' + op + '", missing left-hand operand'); - node = new nodes.BinOp(op.type, node, this.defined()); - this.operand = false - } - } - return node - }, defined: function () { - var node = this.unary(); - if (this.accept("is defined")) { - if (!node) this.error('illegal unary "is defined", missing left-hand operand'); - node = new nodes.BinOp("is defined", node) - } - return node - }, unary: function () { - var op, node; - if (op = this.accept("!") || this.accept("~") || this.accept("+") || this.accept("-")) { - this.operand = true; - node = this.unary(); - if (!node) this.error('illegal unary "' + op + '"'); - node = new nodes.UnaryOp(op.type, node); - this.operand = false; - return node - } - return this.subscript() - }, subscript: function () { - var node = this.member(), id; - while (this.accept("[")) { - node = new nodes.BinOp("[]", node, this.expression()); - this.expect("]") - } - if (this.accept("=")) { - node.op += "="; - node.val = this.list(); - if (node.val.isEmpty) this.assignAtblock(node.val) - } - return node - }, member: function () { - var node = this.primary(); - if (node) { - while (this.accept(".")) { - var id = new nodes.Ident(this.expect("ident").val.string); - node = new nodes.Member(node, id) - } - this.skipSpaces(); - if (this.accept("=")) { - node.val = this.list(); - if (node.val.isEmpty) this.assignAtblock(node.val) - } - } - return node - }, object: function () { - var obj = new nodes.Object, id, val, comma; - this.expect("{"); - this.skipWhitespace(); - while (!this.accept("}")) { - if (this.accept("comment") || this.accept("newline")) continue; - if (!comma) this.accept(","); - id = this.accept("ident") || this.accept("string"); - if (!id) this.error('expected "ident" or "string", got {peek}'); - id = id.val.hash; - this.skipSpacesAndComments(); - this.expect(":"); - val = this.expression(); - obj.set(id, val); - comma = this.accept(","); - this.skipWhitespace() - } - return obj - }, primary: function () { - var tok; - this.skipSpaces(); - if (this.accept("(")) { - ++this.parens; - var expr = this.expression(), paren = this.expect(")"); - --this.parens; - if (this.accept("%")) expr.push(new nodes.Ident("%")); - tok = this.peek(); - if (!paren.space && "ident" == tok.type && ~units.indexOf(tok.val.string)) { - expr.push(new nodes.Ident(tok.val.string)); - this.next() - } - return expr - } - tok = this.peek(); - switch (tok.type) { - case"null": - case"unit": - case"color": - case"string": - case"literal": - case"boolean": - case"comment": - return this.next().val; - case!this.cond && "{": - return this.object(); - case"atblock": - return this.atblock(); - case"atrule": - var id = new nodes.Ident(this.next().val); - id.property = true; - return id; - case"ident": - return this.ident(); - case"function": - return tok.anonymous ? this.functionDefinition() : this.functionCall() - } - }, - } - }); - require.register("renderer.js", function (module, exports, require) { - var Parser = require("./parser"), - Evaluator = require("./visitor/evaluator"), - Normalizer = require("./visitor/normalizer"), - utils = require("./utils"), - nodes = require("./nodes"), - join = require("./path").join; - module.exports = Renderer; - - function Renderer(str, options) { - options = options || {}; - options.globals = options.globals || {}; - options.functions = options.functions || {}; - options.use = options.use || []; - options.use = Array.isArray(options.use) ? options.use : [options.use]; - options.imports = []; - options.paths = options.paths || []; - options.filename = options.filename || "stylus"; - options.Evaluator = options.Evaluator || Evaluator; - this.options = options; - this.str = str - } - - Renderer.prototype.render = function (fn) { - var parser = this.parser = new Parser(this.str, this.options); - for (var i = 0, len = this.options.use.length; i < len; i++) {this.use(this.options.use[i])} - try { - nodes.filename = this.options.filename; - var ast = parser.parse(); - this.evaluator = new this.options.Evaluator(ast, this.options); - this.nodes = nodes; - this.evaluator.renderer = this; - ast = this.evaluator.evaluate(); - var normalizer = new Normalizer(ast, this.options); - ast = normalizer.normalize(); - var compiler = this.options.sourcemap ? new (require("./visitor/sourcemapper"))(ast, this.options) : new (require("./visitor/compiler"))(ast, this.options), - css = compiler.compile(); - if (this.options.sourcemap) this.sourcemap = compiler.map.toJSON() - } - catch (err) { - var options = {}; - options.input = err.input || this.str; - options.filename = err.filename || this.options.filename; - options.lineno = err.lineno || parser.lexer.lineno; - options.column = err.column || parser.lexer.column; - if (!fn) throw utils.formatException(err, options); - return fn(utils.formatException(err, options)) - } - if (!fn) return css; - fn(null, css) - }; - Renderer.prototype.deps = function (filename) { - var opts = utils.merge({cache: false}, this.options); - if (filename) opts.filename = filename; - var DepsResolver = require("./visitor/deps-resolver"), parser = new Parser(this.str, opts); - try { - nodes.filename = opts.filename; - var ast = parser.parse(), resolver = new DepsResolver(ast, opts); - return resolver.resolve() - } - catch (err) { - var options = {}; - options.input = err.input || this.str; - options.filename = err.filename || opts.filename; - options.lineno = err.lineno || parser.lexer.lineno; - options.column = err.column || parser.lexer.column; - throw utils.formatException(err, options) - } - }; - Renderer.prototype.set = function (key, val) { - this.options[key] = val; - return this - }; - Renderer.prototype.get = function (key) { - return this.options[key] - }; - Renderer.prototype.include = function (path) { - this.options.paths.push(path); - return this - }; - Renderer.prototype.use = function (fn) { - fn.call(this, this); - return this - }; - Renderer.prototype.define = function (name, fn, raw) { - fn = utils.coerce(fn, raw); - if (fn.nodeName) { - this.options.globals[name] = fn; - return this - } - this.options.functions[name] = fn; - if (undefined != raw) fn.raw = raw; - return this - } - }); - require.register("selector-parser.js", function (module, exports, require) { - var COMBINATORS = [">", "+", "~"]; - var SelectorParser = module.exports = function SelectorParser(str, stack, parts) { - this.str = str; - this.stack = stack || []; - this.parts = parts || []; - this.pos = 0; - this.level = 2; - this.nested = true; - this.ignore = false - }; - SelectorParser.prototype.skip = function (len) { - this.str = this.str.substr(len); - this.pos += len - }; - SelectorParser.prototype.skipSpaces = function () { - while (" " == this.str[0]) this.skip(1) - }; - SelectorParser.prototype.advance = function () { - return this.root() || this.relative() || this.initial() || this.escaped() || this.parent() || this.partial() || this.char() - }; - SelectorParser.prototype.root = function () { - if (!this.pos && "/" == this.str[0] && "deep" != this.str.slice(1, 5)) { - this.nested = false; - this.skip(1) - } - }; - SelectorParser.prototype.relative = function (multi) { - if ((!this.pos || multi) && "../" == this.str.slice(0, 3)) { - this.nested = false; - this.skip(3); - while (this.relative(true)) this.level++; - if (!this.raw) { - var ret = this.stack[this.stack.length - this.level]; - if (ret) {return ret} else {this.ignore = true} - } - } - }; - SelectorParser.prototype.initial = function () { - if (!this.pos && "~" == this.str[0] && "/" == this.str[1]) { - this.nested = false; - this.skip(2); - return this.stack[0] - } - }; - SelectorParser.prototype.escaped = function () { - if ("\\" == this.str[0]) { - var char = this.str[1]; - if ("&" == char || "^" == char) { - this.skip(2); - return char - } - } - }; - SelectorParser.prototype.parent = function () { - if ("&" == this.str[0]) { - this.nested = false; - if (!this.pos && (!this.stack.length || this.raw)) { - var i = 0; - while (" " == this.str[++i]) ; - if (~COMBINATORS.indexOf(this.str[i])) { - this.skip(i + 1); - return - } - } - this.skip(1); - if (!this.raw) return this.stack[this.stack.length - 1] - } - }; - SelectorParser.prototype.partial = function () { - if ("^" == this.str[0] && "[" == this.str[1]) { - this.skip(2); - this.skipSpaces(); - var ret = this.range(); - this.skipSpaces(); - if ("]" != this.str[0]) return "^["; - this.nested = false; - this.skip(1); - if (ret) {return ret} else {this.ignore = true} - } - }; - SelectorParser.prototype.number = function () { - var i = 0, ret = ""; - if ("-" == this.str[i]) ret += this.str[i++]; - while (this.str.charCodeAt(i) >= 48 && this.str.charCodeAt(i) <= 57) ret += this.str[i++]; - if (ret) { - this.skip(i); - return Number(ret) - } - }; - SelectorParser.prototype.range = function () { - var start = this.number(), ret; - if (".." == this.str.slice(0, 2)) { - this.skip(2); - var end = this.number(), len = this.parts.length; - if (start < 0) start = len + start - 1; - if (end < 0) end = len + end - 1; - if (start > end) { - var tmp = start; - start = end; - end = tmp - } - if (end < len - 1) { - ret = this.parts.slice(start, end + 1).map(function (part) { - var selector = new SelectorParser(part, this.stack, this.parts); - selector.raw = true; - return selector.parse() - }, this).map(function (selector) { - return (selector.nested ? " " : "") + selector.val - }).join("").trim() - } - } else {ret = this.stack[start < 0 ? this.stack.length + start - 1 : start]} - if (ret) {return ret} else {this.ignore = true} - }; - SelectorParser.prototype.char = function () { - var char = this.str[0]; - this.skip(1); - return char - }; - SelectorParser.prototype.parse = function () { - var val = ""; - while (this.str.length) { - val += this.advance() || ""; - if (this.ignore) { - val = ""; - break - } - } - return {val: val.trimRight(), nested: this.nested} - } - }); - require.register("stack/index.js", function (module, exports, require) { - var Stack = module.exports = function Stack() { - Array.apply(this, arguments) - }; - Stack.prototype.__proto__ = Array.prototype; - Stack.prototype.push = function (frame) { - frame.stack = this; - frame.parent = this.currentFrame; - return [].push.apply(this, arguments) - }; - Stack.prototype.__defineGetter__("currentFrame", function () { - return this[this.length - 1] - }); - Stack.prototype.getBlockFrame = function (block) { - for (var i = 0; i < this.length; ++i) {if (block == this[i].block) {return this[i]}} - }; - Stack.prototype.lookup = function (name) { - var block = this.currentFrame.block, val, ret; - do { - var frame = this.getBlockFrame(block); - if (frame && (val = frame.lookup(name))) {return val} - } while (block = block.parent) - }; - Stack.prototype.inspect = function () { - return this.reverse().map(function (frame) { - return frame.inspect() - }).join("\n") - }; - Stack.prototype.toString = function () { - var block, node, buf = [], location, len = this.length; - while (len--) { - block = this[len].block; - if (node = block.node) { - location = "(" + node.filename + ":" + (node.lineno + 1) + ":" + node.column + ")"; - switch (node.nodeName) { - case"function": - buf.push(" at " + node.name + "() " + location); - break; - case"group": - buf.push(' at "' + node.nodes[0].val + '" ' + location); - break - } - } - } - return buf.join("\n") - } - }); - require.register("stack/frame.js", function (module, exports, require) { - var Scope = require("./scope"); - var Frame = module.exports = function Frame(block) { - this._scope = false === block.scope ? null : new Scope; - this.block = block - }; - Frame.prototype.__defineGetter__("scope", function () { - return this._scope || this.parent.scope - }); - Frame.prototype.lookup = function (name) { - return this.scope.lookup(name) - }; - Frame.prototype.inspect = function () { - return "[Frame " + (false === this.block.scope ? "scope-less" : this.scope.inspect()) + "]" - } - }); - require.register("stack/scope.js", function (module, exports, require) { - var Scope = module.exports = function Scope() { - this.locals = {} - }; - Scope.prototype.add = function (ident) { - this.locals[ident.name] = ident.val - }; - Scope.prototype.lookup = function (name) { - return this.locals[name] - }; - Scope.prototype.inspect = function () { - var keys = Object.keys(this.locals).map(function (key) { - return "@" + key - }); - return "[Scope" + (keys.length ? " " + keys.join(", ") : "") + "]" - } - }); - require.register("stylus.js", function (module, exports, require) { - var Renderer = require("./renderer"), nodes = require("./nodes"), utils = require("./utils"); - exports = module.exports = render; - exports.version = "0.54.5"; - exports.nodes = nodes; - exports.functions = require("./functions"); - exports.utils = require("./utils"); - exports.Visitor = require("./visitor"); - exports.Parser = require("./parser"); - exports.Evaluator = require("./visitor/evaluator"); - exports.Normalizer = require("./visitor/normalizer"); - exports.Compiler = require("./visitor/compiler"); - exports.render = function (str, options, fn) { - if ("function" == typeof options) fn = options, options = {}; - if (bifs) str = bifs + str; - return new Renderer(str, options).render(fn) - }; - - function render(str, options) { - if (bifs) str = bifs + str; - return new Renderer(str, options) - } - - exports.url = require("./functions/url") - }); - require.register("token.js", function (module, exports, require) { - var Token = exports = module.exports = function Token(type, val) { - this.type = type; - this.val = val - }; - Token.prototype.inspect = function () { - var val = " " + this.val; - return "[Token:" + this.lineno + ":" + this.column + " " + "" + this.type + "" + "" + (this.val ? val : "") + "" + "]" - }; - Token.prototype.toString = function () { - return (undefined === this.val ? this.type : this.val).toString() - } - }); - require.register("utils.js", function (module, exports, require) { - var nodes = require("./nodes"), join = require("./path").join, isAbsolute = require("./path").isAbsolute; - exports.absolute = isAbsolute || function (path) { - return path.substr(0, 2) == "\\\\" || "/" === path.charAt(0) || /^[a-z]:[\\\/]/i.test(path) - }; - exports.lookup = function (path, paths, ignore) { - var lookup, i = paths.length; - if (exports.absolute(path)) { - try {return path} - catch (err) {} - } - while (i--) { - try { - lookup = join(paths[i], path); - if (ignore == lookup) continue; - return lookup - } - catch (err) {} - } - }; - exports.find = function (path, paths, ignore) { - var lookup, found, i = paths.length; - if (exports.absolute(path)) {if ((found = glob.sync(path)).length) {return found}} - while (i--) { - lookup = join(paths[i], path); - if (ignore == lookup) continue; - if ((found = glob.sync(lookup)).length) {return found} - } - }; - exports.lookupIndex = function (name, paths, filename) { - var found = exports.find(join(name, "index.styl"), paths, filename); - if (!found) {found = exports.find(join(name, basename(name).replace(/\.styl/i, "") + ".styl"), paths, filename)} - if (!found && !~name.indexOf("node_modules")) {found = lookupPackage(join("node_modules", name))} - return found; - - function lookupPackage(dir) { - var pkg = exports.lookup(join(dir, "package.json"), paths, filename); - if (!pkg) {return /\.styl$/i.test(dir) ? exports.lookupIndex(dir, paths, filename) : lookupPackage(dir + ".styl")} - var main = require(relative(__dirname, pkg)).main; - if (main) {found = exports.find(join(dir, main), paths, filename)} else {found = exports.lookupIndex(dir, paths, filename)} - return found - } - }; - exports.formatException = function (err, options) { - var lineno = options.lineno, - column = options.column, - filename = options.filename, - str = options.input, - context = options.context || 8, - context = context / 2, - lines = ("\n" + str).split("\n"), - start = Math.max(lineno - context, 1), - end = Math.min(lines.length, lineno + context), - pad = end.toString().length; - var context = lines.slice(start, end).map(function (line, i) { - var curr = i + start; - return " " + Array(pad - curr.toString().length + 1).join(" ") + curr + "| " + line + (curr == lineno ? "\n" + Array(curr.toString().length + 5 + column).join("-") + "^" : "") - }).join("\n"); - err.message = filename + ":" + lineno + ":" + column + "\n" + context + "\n\n" + err.message + "\n" + (err.stylusStack ? err.stylusStack + "\n" : ""); - if (err.fromStylus) err.stack = "Error: " + err.message; - return err - }; - exports.assertType = function (node, type, param) { - exports.assertPresent(node, param); - if (node.nodeName == type) return; - var actual = node.nodeName, - msg = "expected " + (param ? '"' + param + '" to be a ' : "") + type + ", but got " + actual + ":" + node; - throw new Error("TypeError: " + msg) - }; - exports.assertString = function (node, param) { - exports.assertPresent(node, param); - switch (node.nodeName) { - case"string": - case"ident": - case"literal": - return; - default: - var actual = node.nodeName, msg = "expected string, ident or literal, but got " + actual + ":" + node; - throw new Error("TypeError: " + msg) - } - }; - exports.assertColor = function (node, param) { - exports.assertPresent(node, param); - switch (node.nodeName) { - case"rgba": - case"hsla": - return; - default: - var actual = node.nodeName, msg = "expected rgba or hsla, but got " + actual + ":" + node; - throw new Error("TypeError: " + msg) - } - }; - exports.assertPresent = function (node, name) { - if (node) return; - if (name) throw new Error('"' + name + '" argument required'); - throw new Error("argument missing") - }; - exports.unwrap = function (expr) { - if (expr.preserve) return expr; - if ("arguments" != expr.nodeName && "expression" != expr.nodeName) return expr; - if (1 != expr.nodes.length) return expr; - if ("arguments" != expr.nodes[0].nodeName && "expression" != expr.nodes[0].nodeName) return expr; - return exports.unwrap(expr.nodes[0]) - }; - exports.coerce = function (val, raw) { - switch (typeof val) { - case"function": - return val; - case"string": - return new nodes.String(val); - case"boolean": - return new nodes.Boolean(val); - case"number": - return new nodes.Unit(val); - default: - if (null == val) return nodes.nil; - if (Array.isArray(val)) return exports.coerceArray(val, raw); - if (val.nodeName) return val; - return exports.coerceObject(val, raw) - } - }; - exports.coerceArray = function (val, raw) { - var expr = new nodes.Expression; - val.forEach(function (val) { - expr.push(exports.coerce(val, raw)) - }); - return expr - }; - exports.coerceObject = function (obj, raw) { - var node = raw ? new nodes.Object : new nodes.Expression, val; - for (var key in obj) { - val = exports.coerce(obj[key], raw); - key = new nodes.Ident(key); - if (raw) {node.set(key, val)} else {node.push(exports.coerceArray([key, val]))} - } - return node - }; - exports.params = function (fn) { - return fn.toString().match(/\(([^)]*)\)/)[1].split(/ *, */) - }; - exports.merge = function (a, b, deep) { - for (var k in b) { - if (deep && a[k]) { - var nodeA = exports.unwrap(a[k]).first, nodeB = exports.unwrap(b[k]).first; - if ("object" == nodeA.nodeName && "object" == nodeB.nodeName) {a[k].first.vals = exports.merge(nodeA.vals, nodeB.vals, deep)} else {a[k] = b[k]} - } else {a[k] = b[k]} - } - return a - }; - exports.uniq = function (arr) { - var obj = {}, ret = []; - for (var i = 0, len = arr.length; i < len; ++i) { - if (arr[i] in obj) continue; - obj[arr[i]] = true; - ret.push(arr[i]) - } - return ret - }; - exports.compileSelectors = function (arr, leaveHidden) { - var selectors = [], Parser = require("./selector-parser"), indent = this.indent || "", buf = []; - - function parse(selector, buf) { - var parts = [selector.val], str = new Parser(parts[0], parents, parts).parse().val, parents = []; - if (buf.length) { - for (var i = 0, len = buf.length; i < len; ++i) { - parts.push(buf[i]); - parents.push(str); - var child = new Parser(buf[i], parents, parts).parse(); - if (child.nested) {str += " " + child.val} else {str = child.val} - } - } - return str.trim() - } - - function compile(arr, i) { - if (i) { - arr[i].forEach(function (selector) { - if (!leaveHidden && selector.isPlaceholder) return; - if (selector.inherits) { - buf.unshift(selector.val); - compile(arr, i - 1); - buf.shift() - } else {selectors.push(indent + parse(selector, buf))} - }) - } else { - arr[0].forEach(function (selector) { - if (!leaveHidden && selector.isPlaceholder) return; - var str = parse(selector, buf); - if (str) selectors.push(indent + str) - }) - } - } - - compile(arr, arr.length - 1); - return exports.uniq(selectors) - }; - exports.parseString = function (str) { - var Parser = require("./parser"), parser, ret; - try { - parser = new Parser(str); - parser.state.push("expression"); - ret = new nodes.Expression; - ret.nodes = parser.parse().nodes - } - catch (e) {ret = new nodes.Literal(str)} - return ret - } - }); - require.register("visitor/index.js", function (module, exports, require) { - var Visitor = module.exports = function Visitor(root) { - this.root = root - }; - Visitor.prototype.visit = function (node, fn) { - var method = "visit" + node.constructor.name; - if (this[method]) return this[method](node); - return node - } - }); - require.register("visitor/compiler.js", function (module, exports, require) { - var Visitor = require("./index"), utils = require("../utils"); - var Compiler = module.exports = function Compiler(root, options) { - options = options || {}; - this.compress = options.compress; - this.firebug = options.firebug; - this.linenos = options.linenos; - this.spaces = options["indent spaces"] || 2; - this.indents = 1; - Visitor.call(this, root); - this.stack = [] - }; - Compiler.prototype.__proto__ = Visitor.prototype; - Compiler.prototype.compile = function () { - return this.visit(this.root) - }; - Compiler.prototype.out = function (str, node) { - return str - }; - Compiler.prototype.__defineGetter__("indent", function () { - if (this.compress) return ""; - return new Array(this.indents).join(Array(this.spaces + 1).join(" ")) - }); - Compiler.prototype.needBrackets = function (node) { - return 1 == this.indents || "atrule" != node.nodeName || node.hasOnlyProperties - }; - Compiler.prototype.visitRoot = function (block) { - this.buf = ""; - for (var i = 0, len = block.nodes.length; i < len; ++i) { - var node = block.nodes[i]; - if (this.linenos || this.firebug) this.debugInfo(node); - var ret = this.visit(node); - if (ret) this.buf += this.out(ret + "\n", node) - } - return this.buf - }; - Compiler.prototype.visitBlock = function (block) { - var node, separator = this.compress ? "" : "\n", needBrackets; - if (block.hasProperties && !block.lacksRenderedSelectors) { - needBrackets = this.needBrackets(block.node); - if (needBrackets) { - this.buf += this.out(this.compress ? "{" : " {\n"); - ++this.indents - } - for (var i = 0, len = block.nodes.length; i < len; ++i) { - this.last = len - 1 == i; - node = block.nodes[i]; - switch (node.nodeName) { - case"null": - case"expression": - case"function": - case"group": - case"block": - case"unit": - case"media": - case"keyframes": - case"atrule": - case"supports": - continue; - case!this.compress && node.inline && "comment": - this.buf = this.buf.slice(0, -1); - this.buf += this.out(" " + this.visit(node) + "\n", node); - break; - case"property": - var ret = this.visit(node) + separator; - this.buf += this.compress ? ret : this.out(ret, node); - break; - default: - this.buf += this.out(this.visit(node) + separator, node) - } - } - if (needBrackets) { - --this.indents; - this.buf += this.out(this.indent + "}" + separator) - } - } - for (var i = 0, len = block.nodes.length; i < len; ++i) { - node = block.nodes[i]; - switch (node.nodeName) { - case"group": - case"block": - case"keyframes": - if (this.linenos || this.firebug) this.debugInfo(node); - this.visit(node); - break; - case"media": - case"import": - case"atrule": - case"supports": - this.visit(node); - break; - case"comment": - if (!node.suppress) {this.buf += this.out(this.indent + this.visit(node) + "\n", node)} - break; - case"charset": - case"literal": - case"namespace": - this.buf += this.out(this.visit(node) + "\n", node); - break - } - } - }; - Compiler.prototype.visitKeyframes = function (node) { - if (!node.frames) return; - var prefix = "official" == node.prefix ? "" : "-" + node.prefix + "-"; - this.buf += this.out("@" + prefix + "keyframes " + this.visit(node.val) + (this.compress ? "{" : " {\n"), node); - this.keyframe = true; - ++this.indents; - this.visit(node.block); - --this.indents; - this.keyframe = false; - this.buf += this.out("}" + (this.compress ? "" : "\n")) - }; - Compiler.prototype.visitMedia = function (media) { - var val = media.val; - if (!media.hasOutput || !val.nodes.length) return; - this.buf += this.out("@media ", media); - this.visit(val); - this.buf += this.out(this.compress ? "{" : " {\n"); - ++this.indents; - this.visit(media.block); - --this.indents; - this.buf += this.out("}" + (this.compress ? "" : "\n")) - }; - Compiler.prototype.visitQueryList = function (queries) { - for (var i = 0, len = queries.nodes.length; i < len; ++i) { - this.visit(queries.nodes[i]); - if (len - 1 != i) this.buf += this.out("," + (this.compress ? "" : " ")) - } - }; - Compiler.prototype.visitQuery = function (node) { - var len = node.nodes.length; - if (node.predicate) this.buf += this.out(node.predicate + " "); - if (node.type) this.buf += this.out(node.type + (len ? " and " : "")); - for (var i = 0; i < len; ++i) { - this.buf += this.out(this.visit(node.nodes[i])); - if (len - 1 != i) this.buf += this.out(" and ") - } - }; - Compiler.prototype.visitFeature = function (node) { - if (!node.expr) {return node.name} else if (node.expr.isEmpty) {return "(" + node.name + ")"} else {return "(" + node.name + ":" + (this.compress ? "" : " ") + this.visit(node.expr) + ")"} - }; - Compiler.prototype.visitImport = function (imported) { - this.buf += this.out("@import " + this.visit(imported.path) + ";\n", imported) - }; - Compiler.prototype.visitAtrule = function (atrule) { - var newline = this.compress ? "" : "\n"; - this.buf += this.out(this.indent + "@" + atrule.type, atrule); - if (atrule.val) this.buf += this.out(" " + atrule.val.trim()); - if (atrule.block) { - if (atrule.hasOnlyProperties) {this.visit(atrule.block)} else { - this.buf += this.out(this.compress ? "{" : " {\n"); - ++this.indents; - this.visit(atrule.block); - --this.indents; - this.buf += this.out(this.indent + "}" + newline) - } - } else {this.buf += this.out(";" + newline)} - }; - Compiler.prototype.visitSupports = function (node) { - if (!node.hasOutput) return; - this.buf += this.out(this.indent + "@supports ", node); - this.isCondition = true; - this.buf += this.out(this.visit(node.condition)); - this.isCondition = false; - this.buf += this.out(this.compress ? "{" : " {\n"); - ++this.indents; - this.visit(node.block); - --this.indents; - this.buf += this.out(this.indent + "}" + (this.compress ? "" : "\n")) - }, Compiler.prototype.visitComment = function (comment) { - return this.compress ? comment.suppress ? "" : comment.str : comment.str - }; - Compiler.prototype.visitFunction = function (fn) { - return fn.name - }; - Compiler.prototype.visitCharset = function (charset) { - return "@charset " + this.visit(charset.val) + ";" - }; - Compiler.prototype.visitNamespace = function (namespace) { - return "@namespace " + (namespace.prefix ? this.visit(namespace.prefix) + " " : "") + this.visit(namespace.val) + ";" - }; - Compiler.prototype.visitLiteral = function (lit) { - var val = lit.val; - if (lit.css) val = val.replace(/^ /gm, ""); - return val - }; - Compiler.prototype.visitBoolean = function (bool) { - return bool.toString() - }; - Compiler.prototype.visitRGBA = function (rgba) { - return rgba.toString() - }; - Compiler.prototype.visitHSLA = function (hsla) { - return hsla.rgba.toString() - }; - Compiler.prototype.visitUnit = function (unit) { - var type = unit.type || "", n = unit.val, float = n != (n | 0); - if (this.compress) { - if ("%" != type && "s" != type && "ms" != type && 0 == n) return "0"; - if (float && n < 1 && n > -1) {return n.toString().replace("0.", ".") + type} - } - return (float ? parseFloat(n.toFixed(15)) : n).toString() + type - }; - Compiler.prototype.visitGroup = function (group) { - var stack = this.keyframe ? [] : this.stack, comma = this.compress ? "," : ",\n"; - stack.push(group.nodes); - if (group.block.hasProperties) { - var selectors = utils.compileSelectors.call(this, stack), len = selectors.length; - if (len) { - if (this.keyframe) comma = this.compress ? "," : ", "; - for (var i = 0; i < len; ++i) { - var selector = selectors[i], last = i == len - 1; - if (this.keyframe) selector = i ? selector.trim() : selector; - this.buf += this.out(selector + (last ? "" : comma), group.nodes[i]) - } - } else {group.block.lacksRenderedSelectors = true} - } - this.visit(group.block); - stack.pop() - }; - Compiler.prototype.visitIdent = function (ident) { - return ident.name - }; - Compiler.prototype.visitString = function (string) { - return this.isURL ? string.val : string.toString() - }; - Compiler.prototype.visitNull = function (node) { - return "" - }; - Compiler.prototype.visitCall = function (call) { - this.isURL = "url" == call.name; - var args = call.args.nodes.map(function (arg) { - return this.visit(arg) - }, this).join(this.compress ? "," : ", "); - if (this.isURL) args = '"' + args + '"'; - this.isURL = false; - return call.name + "(" + args + ")" - }; - Compiler.prototype.visitExpression = function (expr) { - var buf = [], self = this, len = expr.nodes.length, nodes = expr.nodes.map(function (node) { - return self.visit(node) - }); - nodes.forEach(function (node, i) { - var last = i == len - 1; - buf.push(node); - if ("/" == nodes[i + 1] || "/" == node) return; - if (last) return; - var space = self.isURL || self.isCondition && (")" == nodes[i + 1] || "(" == node) ? "" : " "; - buf.push(expr.isList ? self.compress ? "," : ", " : space) - }); - return buf.join("") - }; - Compiler.prototype.visitArguments = Compiler.prototype.visitExpression; - Compiler.prototype.visitProperty = function (prop) { - var val = this.visit(prop.expr).trim(), name = prop.name || prop.segments.join(""), arr = []; - arr.push(this.out(this.indent), this.out(name + (this.compress ? ":" : ": "), prop), this.out(val, prop.expr), this.out(this.compress ? this.last ? "" : ";" : ";")); - return arr.join("") - }; - Compiler.prototype.debugInfo = function (node) { - var path = node.filename == "stdin" ? "stdin" : fs.realpathSync(node.filename), - line = (node.nodes && node.nodes.length ? node.nodes[0].lineno : node.lineno) || 1; - if (this.linenos) {this.buf += "\n/* " + "line " + line + " : " + path + " */\n"} - if (this.firebug) { - path = "file\\:\\/\\/" + path.replace(/([.:\/\\])/g, function (m) { - return "\\" + (m === "\\" ? "/" : m) - }); - line = "\\00003" + line; - this.buf += "\n@media -stylus-debug-info" + "{filename{font-family:" + path + "}line{font-family:" + line + "}}\n" - } - } - }); - require.register("visitor/evaluator.js", function (module, exports, require) { - var Visitor = require("./index"), - nodes = require("../nodes"), - Stack = require("../stack"), - Frame = require("../stack/frame"), - utils = require("../utils"), - bifs = require("../functions"), - dirname = require("../path").dirname, - colors = require("../colors"), - units = require("../units"); - - function cloneNode(node) { - if (node.block && node.block.node) {node.block.node = node.block.node.clone()} - if (node.nodes && node.nodes.length) {node.nodes.map(cloneNode)} - return node - } - - function importFile(node, file, literal) { - var importStack = this.importStack, Parser = require("../parser"), stat; - if (node.once) { - if (this.requireHistory[file]) return nodes.nil; - this.requireHistory[file] = true; - if (literal && !this.includeCSS) {return node} - } - if (~importStack.indexOf(file)) throw new Error("import loop has been found"); - var str = fs.readFileSync(file, "utf8"); - if (!str.trim()) return nodes.nil; - node.path = file; - node.dirname = dirname(file); - stat = fs.statSync(file); - node.mtime = stat.mtime; - this.paths.push(node.dirname); - if (this.options._imports) this.options._imports.push(node.clone()); - importStack.push(file); - nodes.filename = file; - if (literal) { - literal = new nodes.Literal(str.replace(/\r\n?/g, "\n")); - literal.lineno = literal.column = 1; - if (!this.resolveURL) return literal - } - var block = new nodes.Block, parser = new Parser(str, utils.merge({root: block}, this.options)); - try {block = parser.parse()} - catch (err) { - var line = parser.lexer.lineno, column = parser.lexer.column; - if (literal && this.includeCSS && this.resolveURL) { - this.warn("ParseError: " + file + ":" + line + ":" + column + ". This file included as-is"); - return literal - } else { - err.filename = file; - err.lineno = line; - err.column = column; - err.input = str; - throw err - } - } - block = block.clone(this.currentBlock); - block.parent = this.currentBlock; - block.scope = false; - var ret = this.visit(block); - importStack.pop(); - if (!this.resolveURL || this.resolveURL.nocheck) this.paths.pop(); - return ret - } - - var Evaluator = module.exports = function Evaluator(root, options) { - options = options || {}; - Visitor.call(this, root); - var functions = this.functions = options.functions || {}; - this.stack = new Stack; - this.imports = options.imports || []; - this.globals = options.globals || {}; - this.paths = options.paths || []; - this.prefix = options.prefix || ""; - this.filename = options.filename; - this.includeCSS = options["include css"]; - this.resolveURL = functions.url && "resolver" == functions.url.name && functions.url.options; - this.paths.push(dirname(options.filename || ".")); - this.stack.push(this.global = new Frame(root)); - this.warnings = options.warn; - this.options = options; - this.calling = []; - this.importStack = []; - this.ret = 0; - this.requireHistory = {} - }; - Evaluator.prototype.__proto__ = Visitor.prototype; - var visit = Visitor.prototype.visit; - Evaluator.prototype.visit = function (node) { - try {return visit.call(this, node)} - catch (err) { - if (err.filename) throw err; - err.lineno = node.lineno; - err.column = node.column; - err.filename = node.filename; - err.stylusStack = this.stack.toString(); - try {} - catch (err) {} - throw err - } - }; - Evaluator.prototype.setup = function () { - var root = this.root; - var imports = []; - this.populateGlobalScope(); - this.imports.forEach(function (file) { - var expr = new nodes.Expression; - expr.push(new nodes.String(file)); - imports.push(new nodes.Import(expr)) - }, this); - root.nodes = imports.concat(root.nodes) - }; - Evaluator.prototype.populateGlobalScope = function () { - var scope = this.global.scope; - Object.keys(colors).forEach(function (name) { - var color = colors[name], - rgba = new nodes.RGBA(color[0], color[1], color[2], color[3]), - node = new nodes.Ident(name, rgba); - rgba.name = name; - scope.add(node) - }); - scope.add(new nodes.Ident("embedurl", new nodes.Function("embedurl", require("../functions/url")({limit: false})))); - var globals = this.globals; - Object.keys(globals).forEach(function (name) { - var val = globals[name]; - if (!val.nodeName) val = new nodes.Literal(val); - scope.add(new nodes.Ident(name, val)) - }) - }; - Evaluator.prototype.evaluate = function () { - this.setup(); - return this.visit(this.root) - }; - Evaluator.prototype.visitGroup = function (group) { - group.nodes = group.nodes.map(function (selector) { - selector.val = this.interpolate(selector); - return selector - }, this); - group.block = this.visit(group.block); - return group - }; - Evaluator.prototype.visitReturn = function (ret) { - ret.expr = this.visit(ret.expr); - throw ret - }; - Evaluator.prototype.visitMedia = function (media) { - media.block = this.visit(media.block); - media.val = this.visit(media.val); - return media - }; - Evaluator.prototype.visitQueryList = function (queries) { - var val, query; - queries.nodes.forEach(this.visit, this); - if (1 == queries.nodes.length) { - query = queries.nodes[0]; - if (val = this.lookup(query.type)) { - val = val.first.string; - if (!val) return queries; - var Parser = require("../parser"), parser = new Parser(val, this.options); - queries = this.visit(parser.queries()) - } - } - return queries - }; - Evaluator.prototype.visitQuery = function (node) { - node.predicate = this.visit(node.predicate); - node.type = this.visit(node.type); - node.nodes.forEach(this.visit, this); - return node - }; - Evaluator.prototype.visitFeature = function (node) { - node.name = this.interpolate(node); - if (node.expr) { - this.ret++; - node.expr = this.visit(node.expr); - this.ret-- - } - return node - }; - Evaluator.prototype.visitObject = function (obj) { - for (var key in obj.vals) {obj.vals[key] = this.visit(obj.vals[key])} - return obj - }; - Evaluator.prototype.visitMember = function (node) { - var left = node.left, right = node.right, obj = this.visit(left).first; - if ("object" != obj.nodeName) {throw new Error(left.toString() + " has no property ." + right)} - if (node.val) { - this.ret++; - obj.set(right.name, this.visit(node.val)); - this.ret-- - } - return obj.get(right.name) - }; - Evaluator.prototype.visitKeyframes = function (keyframes) { - var val; - if (keyframes.fabricated) return keyframes; - keyframes.val = this.interpolate(keyframes).trim(); - if (val = this.lookup(keyframes.val)) {keyframes.val = val.first.string || val.first.name} - keyframes.block = this.visit(keyframes.block); - if ("official" != keyframes.prefix) return keyframes; - this.vendors.forEach(function (prefix) { - if ("ms" == prefix) return; - var node = keyframes.clone(); - node.val = keyframes.val; - node.prefix = prefix; - node.block = keyframes.block; - node.fabricated = true; - this.currentBlock.push(node) - }, this); - return nodes.nil - }; - Evaluator.prototype.visitFunction = function (fn) { - var local = this.stack.currentFrame.scope.lookup(fn.name); - if (local) this.warn("local " + local.nodeName + ' "' + fn.name + '" previously defined in this scope'); - var user = this.functions[fn.name]; - if (user) this.warn('user-defined function "' + fn.name + '" is already defined'); - var bif = bifs[fn.name]; - if (bif) this.warn('built-in function "' + fn.name + '" is already defined'); - return fn - }; - Evaluator.prototype.visitEach = function (each) { - this.ret++; - var expr = utils.unwrap(this.visit(each.expr)), - len = expr.nodes.length, - val = new nodes.Ident(each.val), - key = new nodes.Ident(each.key || "__index__"), - scope = this.currentScope, - block = this.currentBlock, - vals = [], - self = this, - body, - obj; - this.ret--; - each.block.scope = false; - - function visitBody(key, val) { - scope.add(val); - scope.add(key); - body = self.visit(each.block.clone()); - vals = vals.concat(body.nodes) - } - - if (1 == len && "object" == expr.nodes[0].nodeName) { - obj = expr.nodes[0]; - for (var prop in obj.vals) { - val.val = new nodes.String(prop); - key.val = obj.get(prop); - visitBody(key, val) - } - } else { - for (var i = 0; i < len; ++i) { - val.val = expr.nodes[i]; - key.val = new nodes.Unit(i); - visitBody(key, val) - } - } - this.mixin(vals, block); - return vals[vals.length - 1] || nodes.nil - }; - Evaluator.prototype.visitCall = function (call) { - var fn = this.lookup(call.name), literal, ret; - this.ignoreColors = "url" == call.name; - if (fn && "expression" == fn.nodeName) {fn = fn.nodes[0]} - if (fn && "function" != fn.nodeName) {fn = this.lookupFunction(call.name)} - if (!fn || fn.nodeName != "function") { - if ("calc" == this.unvendorize(call.name)) { - literal = call.args.nodes && call.args.nodes[0]; - if (literal) ret = new nodes.Literal(call.name + literal) - } else {ret = this.literalCall(call)} - this.ignoreColors = false; - return ret - } - this.calling.push(call.name); - if (this.calling.length > 200) {throw new RangeError("Maximum stylus call stack size exceeded")} - if ("expression" == fn.nodeName) fn = fn.first; - this.ret++; - var args = this.visit(call.args); - for (var key in args.map) {args.map[key] = this.visit(args.map[key].clone())} - this.ret--; - if (fn.fn) {ret = this.invokeBuiltin(fn.fn, args)} else if ("function" == fn.nodeName) { - if (call.block) call.block = this.visit(call.block); - ret = this.invokeFunction(fn, args, call.block) - } - this.calling.pop(); - this.ignoreColors = false; - return ret - }; - Evaluator.prototype.visitIdent = function (ident) { - var prop; - if (ident.property) { - if (prop = this.lookupProperty(ident.name)) {return this.visit(prop.expr.clone())} - return nodes.nil - } else if (ident.val.isNull) { - var val = this.lookup(ident.name); - if (val && ident.mixin) this.mixinNode(val); - return val ? this.visit(val) : ident - } else { - this.ret++; - ident.val = this.visit(ident.val); - this.ret--; - this.currentScope.add(ident); - return ident.val - } - }; - Evaluator.prototype.visitBinOp = function (binop) { - if ("is defined" == binop.op) return this.isDefined(binop.left); - this.ret++; - var op = binop.op, - left = this.visit(binop.left), - right = "||" == op || "&&" == op ? binop.right : this.visit(binop.right); - var val = binop.val ? this.visit(binop.val) : null; - this.ret--; - try {return this.visit(left.operate(op, right, val))} - catch (err) { - if ("CoercionError" == err.name) { - switch (op) { - case"==": - return nodes.no; - case"!=": - return nodes.yes - } - } - throw err - } - }; - Evaluator.prototype.visitUnaryOp = function (unary) { - var op = unary.op, node = this.visit(unary.expr); - if ("!" != op) { - node = node.first.clone(); - utils.assertType(node, "unit") - } - switch (op) { - case"-": - node.val = -node.val; - break; - case"+": - node.val = +node.val; - break; - case"~": - node.val = ~node.val; - break; - case"!": - return node.toBoolean().negate() - } - return node - }; - Evaluator.prototype.visitTernary = function (ternary) { - var ok = this.visit(ternary.cond).toBoolean(); - return ok.isTrue ? this.visit(ternary.trueExpr) : this.visit(ternary.falseExpr) - }; - Evaluator.prototype.visitExpression = function (expr) { - for (var i = 0, len = expr.nodes.length; i < len; ++i) {expr.nodes[i] = this.visit(expr.nodes[i])} - if (this.castable(expr)) expr = this.cast(expr); - return expr - }; - Evaluator.prototype.visitArguments = Evaluator.prototype.visitExpression; - Evaluator.prototype.visitProperty = function (prop) { - var name = this.interpolate(prop), - fn = this.lookup(name), - call = fn && "function" == fn.first.nodeName, - literal = ~this.calling.indexOf(name), - _prop = this.property; - if (call && !literal && !prop.literal) { - var args = nodes.Arguments.fromExpression(utils.unwrap(prop.expr.clone())); - prop.name = name; - this.property = prop; - this.ret++; - this.property.expr = this.visit(prop.expr); - this.ret--; - var ret = this.visit(new nodes.Call(name, args)); - this.property = _prop; - return ret - } else { - this.ret++; - prop.name = name; - prop.literal = true; - this.property = prop; - prop.expr = this.visit(prop.expr); - this.property = _prop; - this.ret--; - return prop - } - }; - Evaluator.prototype.visitRoot = function (block) { - if (block != this.root) { - block.constructor = nodes.Block; - return this.visit(block) - } - for (var i = 0; i < block.nodes.length; ++i) { - block.index = i; - block.nodes[i] = this.visit(block.nodes[i]) - } - return block - }; - Evaluator.prototype.visitBlock = function (block) { - this.stack.push(new Frame(block)); - for (block.index = 0; block.index < block.nodes.length; ++block.index) { - try {block.nodes[block.index] = this.visit(block.nodes[block.index])} - catch (err) { - if ("return" == err.nodeName) { - if (this.ret) { - this.stack.pop(); - throw err - } else { - block.nodes[block.index] = err; - break - } - } else {throw err} - } - } - this.stack.pop(); - return block - }; - Evaluator.prototype.visitAtblock = function (atblock) { - atblock.block = this.visit(atblock.block); - return atblock - }; - Evaluator.prototype.visitAtrule = function (atrule) { - atrule.val = this.interpolate(atrule); - if (atrule.block) atrule.block = this.visit(atrule.block); - return atrule - }; - Evaluator.prototype.visitSupports = function (node) { - var condition = node.condition, val; - this.ret++; - node.condition = this.visit(condition); - this.ret--; - val = condition.first; - if (1 == condition.nodes.length && "string" == val.nodeName) {node.condition = val.string} - node.block = this.visit(node.block); - return node - }; - Evaluator.prototype.visitIf = function (node) { - var ret, block = this.currentBlock, negate = node.negate; - this.ret++; - var ok = this.visit(node.cond).first.toBoolean(); - this.ret--; - node.block.scope = node.block.hasMedia; - if (negate) {if (ok.isFalse) {ret = this.visit(node.block)}} else { - if (ok.isTrue) {ret = this.visit(node.block)} else if (node.elses.length) { - var elses = node.elses, - len = elses.length, - cond; - for (var i = 0; i < len; ++i) { - if (elses[i].cond) { - elses[i].block.scope = elses[i].block.hasMedia; - this.ret++; - cond = this.visit(elses[i].cond).first.toBoolean(); - this.ret--; - if (cond.isTrue) { - ret = this.visit(elses[i].block); - break - } - } else { - elses[i].scope = elses[i].hasMedia; - ret = this.visit(elses[i]) - } - } - } - } - if (ret && !node.postfix && block.node && ~["group", "atrule", "media", "supports", "keyframes"].indexOf(block.node.nodeName)) { - this.mixin(ret.nodes, block); - return nodes.nil - } - return ret || nodes.nil - }; - Evaluator.prototype.visitExtend = function (extend) { - var block = this.currentBlock; - if ("group" != block.node.nodeName) block = this.closestGroup; - extend.selectors.forEach(function (selector) { - block.node.extends.push({ - selector: this.interpolate(selector.clone()).trim(), optional: selector.optional, lineno: selector.lineno, - column: selector.column, - }) - }, this); - return nodes.nil - }; - Evaluator.prototype.visitImport = function (imported) { - this.ret++; - var path = this.visit(imported.path).first, nodeName = imported.once ? "require" : "import", found, literal; - this.ret--; - if ("url" == path.name) { - if (imported.once) throw new Error("You cannot @require a url"); - return imported - } - if (!path.string) throw new Error("@" + nodeName + " string expected"); - var name = path = path.string; - if (/(?:url\s*\(\s*)?['"]?(?:#|(?:https?:)?\/\/)/i.test(path)) { - if (imported.once) throw new Error("You cannot @require a url"); - return imported - } - if (/\.css(?:"|$)/.test(path)) { - literal = true; - if (!imported.once && !this.includeCSS) {return imported} - } - if (!literal && !/\.styl$/i.test(path)) path += ".styl"; - found = utils.find(path, this.paths, this.filename); - if (!found) {found = utils.lookupIndex(name, this.paths, this.filename)} - if (!found) throw new Error("failed to locate @" + nodeName + " file " + path); - var block = new nodes.Block; - for (var i = 0, len = found.length; i < len; ++i) {block.push(importFile.call(this, imported, found[i], literal))} - return block - }; - Evaluator.prototype.invokeFunction = function (fn, args, content) { - var block = new nodes.Block(fn.block.parent); - var body = fn.block.clone(block); - var mixinBlock = this.stack.currentFrame.block; - this.stack.push(new Frame(block)); - var scope = this.currentScope; - if ("arguments" != args.nodeName) { - var expr = new nodes.Expression; - expr.push(args); - args = nodes.Arguments.fromExpression(expr) - } - scope.add(new nodes.Ident("arguments", args)); - scope.add(new nodes.Ident("mixin", this.ret ? nodes.no : new nodes.String(mixinBlock.nodeName))); - if (this.property) { - var prop = this.propertyExpression(this.property, fn.name); - scope.add(new nodes.Ident("current-property", prop)) - } else {scope.add(new nodes.Ident("current-property", nodes.nil))} - var expr = new nodes.Expression; - for (var i = this.calling.length - 1; i--;) {expr.push(new nodes.Literal(this.calling[i]))} - scope.add(new nodes.Ident("called-from", expr)); - var i = 0, len = args.nodes.length; - fn.params.nodes.forEach(function (node) { - if (node.rest) { - node.val = new nodes.Expression; - for (; i < len; ++i) node.val.push(args.nodes[i]); - node.val.preserve = true; - node.val.isList = args.isList - } else { - var arg = args.map[node.name] || args.nodes[i++]; - node = node.clone(); - if (arg) {arg.isEmpty ? args.nodes[i - 1] = this.visit(node) : node.val = arg} else {args.push(node.val)} - if (node.val.isNull) {throw new Error('argument "' + node + '" required for ' + fn)} - } - scope.add(node) - }, this); - if (content) scope.add(new nodes.Ident("block", content, true)); - return this.invoke(body, true, fn.filename) - }; - Evaluator.prototype.invokeBuiltin = function (fn, args) { - if (fn.raw) {args = args.nodes} else { - args = utils.params(fn).reduce(function (ret, param) { - var arg = args.map[param] || args.nodes.shift(); - if (arg) { - arg = utils.unwrap(arg); - var len = arg.nodes.length; - if (len > 1) {for (var i = 0; i < len; ++i) {ret.push(utils.unwrap(arg.nodes[i].first))}} else {ret.push(arg.first)} - } - return ret - }, []) - } - var body = utils.coerce(fn.apply(this, args)); - var expr = new nodes.Expression; - expr.push(body); - body = expr; - return this.invoke(body) - }; - Evaluator.prototype.invoke = function (body, stack, filename) { - var self = this, ret; - if (filename) this.paths.push(dirname(filename)); - if (this.ret) { - ret = this.eval(body.nodes); - if (stack) this.stack.pop() - } else { - body = this.visit(body); - if (stack) this.stack.pop(); - this.mixin(body.nodes, this.currentBlock); - ret = nodes.nil - } - if (filename) this.paths.pop(); - return ret - }; - Evaluator.prototype.mixin = function (nodes, block) { - if (!nodes.length) return; - var len = block.nodes.length, - head = block.nodes.slice(0, block.index), - tail = block.nodes.slice(block.index + 1, len); - this._mixin(nodes, head, block); - block.index = 0; - block.nodes = head.concat(tail) - }; - Evaluator.prototype._mixin = function (items, dest, block) { - var node, len = items.length; - for (var i = 0; i < len; ++i) { - switch ((node = items[i]).nodeName) { - case"return": - return; - case"block": - this._mixin(node.nodes, dest, block); - break; - case"media": - var parentNode = node.block.parent.node; - if (parentNode && "call" != parentNode.nodeName) {node.block.parent = block} - case"property": - var val = node.expr; - if (node.literal && "block" == val.first.name) { - val = utils.unwrap(val); - val.nodes[0] = new nodes.Literal("block") - } - default: - dest.push(node) - } - } - }; - Evaluator.prototype.mixinNode = function (node) { - node = this.visit(node.first); - switch (node.nodeName) { - case"object": - this.mixinObject(node); - return nodes.nil; - case"block": - case"atblock": - this.mixin(node.nodes, this.currentBlock); - return nodes.nil - } - }; - Evaluator.prototype.mixinObject = function (object) { - var Parser = require("../parser"), - root = this.root, - str = "$block " + object.toBlock(), - parser = new Parser(str, utils.merge({root: block}, this.options)), - block; - try {block = parser.parse()} - catch (err) { - err.filename = this.filename; - err.lineno = parser.lexer.lineno; - err.column = parser.lexer.column; - err.input = str; - throw err - } - block.parent = root; - block.scope = false; - var ret = this.visit(block), vals = ret.first.nodes; - for (var i = 0, len = vals.length; i < len; ++i) { - if (vals[i].block) { - this.mixin(vals[i].block.nodes, this.currentBlock); - break - } - } - }; - Evaluator.prototype.eval = function (vals) { - if (!vals) return nodes.nil; - var len = vals.length, node = nodes.nil; - try { - for (var i = 0; i < len; ++i) { - node = vals[i]; - switch (node.nodeName) { - case"if": - if ("block" != node.block.nodeName) { - node = this.visit(node); - break - } - case"each": - case"block": - node = this.visit(node); - if (node.nodes) node = this.eval(node.nodes); - break; - default: - node = this.visit(node) - } - } - } - catch (err) {if ("return" == err.nodeName) {return err.expr} else {throw err}} - return node - }; - Evaluator.prototype.literalCall = function (call) { - call.args = this.visit(call.args); - return call - }; - Evaluator.prototype.lookupProperty = function (name) { - var i = this.stack.length, index = this.currentBlock.index, top = i, nodes, block, len, other; - while (i--) { - block = this.stack[i].block; - if (!block.node) continue; - switch (block.node.nodeName) { - case"group": - case"function": - case"if": - case"each": - case"atrule": - case"media": - case"atblock": - case"call": - nodes = block.nodes; - if (i + 1 == top) { - while (index--) { - if (this.property == nodes[index]) continue; - other = this.interpolate(nodes[index]); - if (name == other) return nodes[index].clone() - } - } else { - len = nodes.length; - while (len--) { - if ("property" != nodes[len].nodeName || this.property == nodes[len]) continue; - other = this.interpolate(nodes[len]); - if (name == other) return nodes[len].clone() - } - } - break - } - } - return nodes.nil - }; - Evaluator.prototype.__defineGetter__("closestBlock", function () { - var i = this.stack.length, block; - while (i--) { - block = this.stack[i].block; - if (block.node) { - switch (block.node.nodeName) { - case"group": - case"keyframes": - case"atrule": - case"atblock": - case"media": - case"call": - return block - } - } - } - }); - Evaluator.prototype.__defineGetter__("closestGroup", function () { - var i = this.stack.length, block; - while (i--) { - block = this.stack[i].block; - if (block.node && "group" == block.node.nodeName) {return block} - } - }); - Evaluator.prototype.__defineGetter__("selectorStack", function () { - var block, stack = []; - for (var i = 0, len = this.stack.length; i < len; ++i) { - block = this.stack[i].block; - if (block.node && "group" == block.node.nodeName) { - block.node.nodes.forEach(function (selector) { - if (!selector.val) selector.val = this.interpolate(selector) - }, this); - stack.push(block.node.nodes) - } - } - return stack - }); - Evaluator.prototype.lookup = function (name) { - var val; - if (this.ignoreColors && name in colors) return; - if (val = this.stack.lookup(name)) {return utils.unwrap(val)} else {return this.lookupFunction(name)} - }; - Evaluator.prototype.interpolate = function (node) { - var self = this, isSelector = "selector" == node.nodeName; - - function toString(node) { - switch (node.nodeName) { - case"function": - case"ident": - return node.name; - case"literal": - case"string": - if (self.prefix && !node.prefixed && !node.val.nodeName) { - node.val = node.val.replace(/\./g, "." + self.prefix); - node.prefixed = true - } - return node.val; - case"unit": - return "%" == node.type ? node.val + "%" : node.val; - case"member": - return toString(self.visit(node)); - case"expression": - if (self.calling && ~self.calling.indexOf("selector") && self._selector) return self._selector; - self.ret++; - var ret = toString(self.visit(node).first); - self.ret--; - if (isSelector) self._selector = ret; - return ret - } - } - - if (node.segments) {return node.segments.map(toString).join("")} else {return toString(node)} - }; - Evaluator.prototype.lookupFunction = function (name) { - var fn = this.functions[name] || bifs[name]; - if (fn) return new nodes.Function(name, fn) - }; - Evaluator.prototype.isDefined = function (node) { - if ("ident" == node.nodeName) {return nodes.Boolean(this.lookup(node.name))} else {throw new Error('invalid "is defined" check on non-variable ' + node)} - }; - Evaluator.prototype.propertyExpression = function (prop, name) { - var expr = new nodes.Expression, val = prop.expr.clone(); - expr.push(new nodes.String(prop.name)); - - function replace(node) { - if ("call" == node.nodeName && name == node.name) {return new nodes.Literal("__CALL__")} - if (node.nodes) node.nodes = node.nodes.map(replace); - return node - } - - replace(val); - expr.push(val); - return expr - }; - Evaluator.prototype.cast = function (expr) { - return new nodes.Unit(expr.first.val, expr.nodes[1].name) - }; - Evaluator.prototype.castable = function (expr) { - return 2 == expr.nodes.length && "unit" == expr.first.nodeName && ~units.indexOf(expr.nodes[1].name) - }; - Evaluator.prototype.warn = function (msg) { - if (!this.warnings) return; - console.warn("Warning: " + msg) - }; - Evaluator.prototype.__defineGetter__("currentBlock", function () { - return this.stack.currentFrame.block - }); - Evaluator.prototype.__defineGetter__("vendors", function () { - return this.lookup("vendors").nodes.map(function (node) { - return node.string - }) - }); - Evaluator.prototype.unvendorize = function (prop) { - for (var i = 0, len = this.vendors.length; i < len; i++) { - if ("official" != this.vendors[i]) { - var vendor = "-" + this.vendors[i] + "-"; - if (~prop.indexOf(vendor)) return prop.replace(vendor, "") - } - } - return prop - }; - Evaluator.prototype.__defineGetter__("currentScope", function () { - return this.stack.currentFrame.scope - }); - Evaluator.prototype.__defineGetter__("currentFrame", function () { - return this.stack.currentFrame - }) - }); - require.register("visitor/normalizer.js", function (module, exports, require) { - var Visitor = require("./index"), nodes = require("../nodes/index"), utils = require("../utils"); - var Normalizer = module.exports = function Normalizer(root, options) { - options = options || {}; - Visitor.call(this, root); - this.hoist = options["hoist atrules"]; - this.stack = []; - this.map = {}; - this.imports = [] - }; - Normalizer.prototype.__proto__ = Visitor.prototype; - Normalizer.prototype.normalize = function () { - var ret = this.visit(this.root); - if (this.hoist) { - if (this.imports.length) ret.nodes = this.imports.concat(ret.nodes); - if (this.charset) ret.nodes = [this.charset].concat(ret.nodes) - } - return ret - }; - Normalizer.prototype.bubble = function (node) { - var props = [], other = [], self = this; - - function filterProps(block) { - block.nodes.forEach(function (node) { - node = self.visit(node); - switch (node.nodeName) { - case"property": - props.push(node); - break; - case"block": - filterProps(node); - break; - default: - other.push(node) - } - }) - } - - filterProps(node.block); - if (props.length) { - var selector = new nodes.Selector([new nodes.Literal("&")]); - selector.lineno = node.lineno; - selector.column = node.column; - selector.filename = node.filename; - selector.val = "&"; - var group = new nodes.Group; - group.lineno = node.lineno; - group.column = node.column; - group.filename = node.filename; - var block = new nodes.Block(node.block, group); - block.lineno = node.lineno; - block.column = node.column; - block.filename = node.filename; - props.forEach(function (prop) { - block.push(prop) - }); - group.push(selector); - group.block = block; - node.block.nodes = []; - node.block.push(group); - other.forEach(function (n) { - node.block.push(n) - }); - var group = this.closestGroup(node.block); - if (group) node.group = group.clone(); - node.bubbled = true - } - }; - Normalizer.prototype.closestGroup = function (block) { - var parent = block.parent, node; - while (parent && (node = parent.node)) { - if ("group" == node.nodeName) return node; - parent = node.block && node.block.parent - } - }; - Normalizer.prototype.visitRoot = function (block) { - var ret = new nodes.Root, node; - for (var i = 0; i < block.nodes.length; ++i) { - node = block.nodes[i]; - switch (node.nodeName) { - case"null": - case"expression": - case"function": - case"unit": - case"atblock": - continue; - default: - this.rootIndex = i; - ret.push(this.visit(node)) - } - } - return ret - }; - Normalizer.prototype.visitProperty = function (prop) { - this.visit(prop.expr); - return prop - }; - Normalizer.prototype.visitExpression = function (expr) { - expr.nodes = expr.nodes.map(function (node) { - if ("block" == node.nodeName) { - var literal = new nodes.Literal("block"); - literal.lineno = expr.lineno; - literal.column = expr.column; - return literal - } - return node - }); - return expr - }; - Normalizer.prototype.visitBlock = function (block) { - var node; - if (block.hasProperties) { - for (var i = 0, len = block.nodes.length; i < len; ++i) { - node = block.nodes[i]; - switch (node.nodeName) { - case"null": - case"expression": - case"function": - case"group": - case"unit": - case"atblock": - continue; - default: - block.nodes[i] = this.visit(node) - } - } - } - for (var i = 0, len = block.nodes.length; i < len; ++i) { - node = block.nodes[i]; - block.nodes[i] = this.visit(node) - } - return block - }; - Normalizer.prototype.visitGroup = function (group) { - var stack = this.stack, map = this.map, parts; - group.nodes.forEach(function (selector, i) { - if (!~selector.val.indexOf(",")) return; - if (~selector.val.indexOf("\\,")) { - selector.val = selector.val.replace(/\\,/g, ","); - return - } - parts = selector.val.split(","); - var root = "/" == selector.val.charAt(0), part, s; - for (var k = 0, len = parts.length; k < len; ++k) { - part = parts[k].trim(); - if (root && k > 0 && !~part.indexOf("&")) {part = "/" + part} - s = new nodes.Selector([new nodes.Literal(part)]); - s.val = part; - s.block = group.block; - group.nodes[i++] = s - } - }); - stack.push(group.nodes); - var selectors = utils.compileSelectors(stack, true); - selectors.forEach(function (selector) { - map[selector] = map[selector] || []; - map[selector].push(group) - }); - this.extend(group, selectors); - stack.pop(); - return group - }; - Normalizer.prototype.visitFunction = function () { - return nodes.nil - }; - Normalizer.prototype.visitMedia = function (media) { - var medias = [], group = this.closestGroup(media.block), parent; - - function mergeQueries(block) { - block.nodes.forEach(function (node, i) { - switch (node.nodeName) { - case"media": - node.val = media.val.merge(node.val); - medias.push(node); - block.nodes[i] = nodes.nil; - break; - case"block": - mergeQueries(node); - break; - default: - if (node.block && node.block.nodes) mergeQueries(node.block) - } - }) - } - - mergeQueries(media.block); - this.bubble(media); - if (medias.length) { - medias.forEach(function (node) { - if (group) {group.block.push(node)} else {this.root.nodes.splice(++this.rootIndex, 0, node)} - node = this.visit(node); - parent = node.block.parent; - if (node.bubbled && (!group || "group" == parent.node.nodeName)) { - node.group.block = node.block.nodes[0].block; - node.block.nodes[0] = node.group - } - }, this) - } - return media - }; - Normalizer.prototype.visitSupports = function (node) { - this.bubble(node); - return node - }; - Normalizer.prototype.visitAtrule = function (node) { - if (node.block) node.block = this.visit(node.block); - return node - }; - Normalizer.prototype.visitKeyframes = function (node) { - var frames = node.block.nodes.filter(function (frame) { - return frame.block && frame.block.hasProperties - }); - node.frames = frames.length; - return node - }; - Normalizer.prototype.visitImport = function (node) { - this.imports.push(node); - return this.hoist ? nodes.nil : node - }; - Normalizer.prototype.visitCharset = function (node) { - this.charset = node; - return this.hoist ? nodes.nil : node - }; - Normalizer.prototype.extend = function (group, selectors) { - var map = this.map, self = this, parent = this.closestGroup(group.block); - group.extends.forEach(function (extend) { - var groups = map[extend.selector]; - if (!groups) { - if (extend.optional) return; - var err = new Error('Failed to @extend "' + extend.selector + '"'); - err.lineno = extend.lineno; - err.column = extend.column; - throw err - } - selectors.forEach(function (selector) { - var node = new nodes.Selector; - node.val = selector; - node.inherits = false; - groups.forEach(function (group) { - if (!parent || parent != group) self.extend(group, selectors); - group.push(node) - }) - }) - }); - group.block = this.visit(group.block) - } - }); - return require("stylus") -}(); +if(Function.prototype.name===undefined&&Object.defineProperty!==undefined){Object.defineProperty(Function.prototype,"name",{get:function(){var regex=/function\s([^(]{1,})\(/,match=regex.exec(this.toString());return match&&match.length>1?match[1].trim():""}})}if(String.prototype.trimRight===undefined){String.prototype.trimRight=function(){return String(this).replace(/\s+$/,"")}}var stylus=function(){function require(p){var path=require.resolve(p),mod=require.modules[path];if(!mod)throw new Error('failed to require "'+p+'"');if(!mod.exports){mod.exports={};mod.call(mod.exports,mod,mod.exports,require.relative(path))}return mod.exports}var bifs="called-from = ()\n\nvendors = moz webkit o ms official\n\n// stringify the given arg\n\n-string(arg)\n type(arg) + ' ' + arg\n\n// require a color\n\nrequire-color(color)\n unless color is a 'color'\n error('RGB or HSL value expected, got a ' + -string(color))\n\n// require a unit\n\nrequire-unit(n)\n unless n is a 'unit'\n error('unit expected, got a ' + -string(n))\n\n// require a string\n\nrequire-string(str)\n unless str is a 'string' or str is a 'ident'\n error('string expected, got a ' + -string(str))\n\n// Math functions\n\nabs(n) { math(n, 'abs') }\nmin(a, b) { a < b ? a : b }\nmax(a, b) { a > b ? a : b }\n\n// Trigonometrics\nPI = -math-prop('PI')\n\nradians-to-degrees(angle)\n angle * (180 / PI)\n\ndegrees-to-radians(angle)\n unit(angle * (PI / 180),'')\n\nsin(n)\n n = degrees-to-radians(n) if unit(n) == 'deg'\n round(math(n, 'sin'), 9)\n\ncos(n)\n n = degrees-to-radians(n) if unit(n) == 'deg'\n round(math(n, 'cos'), 9)\n\n// Rounding Math functions\n\nceil(n, precision = 0)\n multiplier = 10 ** precision\n math(n * multiplier, 'ceil') / multiplier\n\nfloor(n, precision = 0)\n multiplier = 10 ** precision\n math(n * multiplier, 'floor') / multiplier\n\nround(n, precision = 0)\n multiplier = 10 ** precision\n math(n * multiplier, 'round') / multiplier\n\n// return the sum of the given numbers\n\nsum(nums)\n sum = 0\n sum += n for n in nums\n\n// return the average of the given numbers\n\navg(nums)\n sum(nums) / length(nums)\n\n// return a unitless number, or pass through\n\nremove-unit(n)\n if typeof(n) is 'unit'\n unit(n, '')\n else\n n\n\n// convert a percent to a decimal, or pass through\n\npercent-to-decimal(n)\n if unit(n) is '%'\n remove-unit(n) / 100\n else\n n\n\n// check if n is an odd number\n\nodd(n)\n 1 == n % 2\n\n// check if n is an even number\n\neven(n)\n 0 == n % 2\n\n// check if color is light\n\nlight(color)\n lightness(color) >= 50%\n\n// check if color is dark\n\ndark(color)\n lightness(color) < 50%\n\n// desaturate color by amount\n\ndesaturate(color, amount)\n adjust(color, 'saturation', - amount)\n\n// saturate color by amount\n\nsaturate(color = '', amount = 100%)\n if color is a 'color'\n adjust(color, 'saturation', amount)\n else\n unquote( 'saturate(' + color + ')' )\n\n// darken by the given amount\n\ndarken(color, amount)\n adjust(color, 'lightness', - amount)\n\n// lighten by the given amount\n\nlighten(color, amount)\n adjust(color, 'lightness', amount)\n\n// decrease opacity by amount\n\nfade-out(color, amount)\n color - rgba(black, percent-to-decimal(amount))\n\n// increase opacity by amount\n\nfade-in(color, amount)\n color + rgba(black, percent-to-decimal(amount))\n\n// spin hue by a given amount\n\nspin(color, amount)\n color + unit(amount, deg)\n\n// mix two colors by a given amount\n\nmix(color1, color2, weight = 50%)\n unless weight in 0..100\n error('Weight must be between 0% and 100%')\n\n if length(color1) == 2\n weight = color1[0]\n color1 = color1[1]\n\n else if length(color2) == 2\n weight = 100 - color2[0]\n color2 = color2[1]\n\n require-color(color1)\n require-color(color2)\n\n p = unit(weight / 100, '')\n w = p * 2 - 1\n\n a = alpha(color1) - alpha(color2)\n\n w1 = (((w * a == -1) ? w : (w + a) / (1 + w * a)) + 1) / 2\n w2 = 1 - w1\n\n channels = (red(color1) red(color2)) (green(color1) green(color2)) (blue(color1) blue(color2))\n rgb = ()\n\n for pair in channels\n push(rgb, floor(pair[0] * w1 + pair[1] * w2))\n\n a1 = alpha(color1) * p\n a2 = alpha(color2) * (1 - p)\n alpha = a1 + a2\n\n rgba(rgb[0], rgb[1], rgb[2], alpha)\n\n// invert colors, leave alpha intact\n\ninvert(color = '')\n if color is a 'color'\n rgba(#fff - color, alpha(color))\n else\n unquote( 'invert(' + color + ')' )\n\n// give complement of the given color\n\ncomplement( color )\n spin( color, 180 )\n\n// give grayscale of the given color\n\ngrayscale( color = '' )\n if color is a 'color'\n desaturate( color, 100% )\n else\n unquote( 'grayscale(' + color + ')' )\n\n// mix the given color with white\n\ntint( color, percent )\n mix( white, color, percent )\n\n// mix the given color with black\n\nshade( color, percent )\n mix( black, color, percent )\n\n// return the last value in the given expr\n\nlast(expr)\n expr[length(expr) - 1]\n\n// return keys in the given pairs or object\n\nkeys(pairs)\n ret = ()\n if type(pairs) == 'object'\n for key in pairs\n push(ret, key)\n else\n for pair in pairs\n push(ret, pair[0]);\n ret\n\n// return values in the given pairs or object\n\nvalues(pairs)\n ret = ()\n if type(pairs) == 'object'\n for key, val in pairs\n push(ret, val)\n else\n for pair in pairs\n push(ret, pair[1]);\n ret\n\n// join values with the given delimiter\n\njoin(delim, vals...)\n buf = ''\n vals = vals[0] if length(vals) == 1\n for val, i in vals\n buf += i ? delim + val : val\n\n// add a CSS rule to the containing block\n\n// - This definition allows add-property to be used as a mixin\n// - It has the same effect as interpolation but allows users\n// to opt for a functional style\n\nadd-property-function = add-property\nadd-property(name, expr)\n if mixin\n {name} expr\n else\n add-property-function(name, expr)\n\nprefix-classes(prefix)\n -prefix-classes(prefix, block)\n\n// Caching mixin, use inside your functions to enable caching by extending.\n\n$stylus_mixin_cache = {}\ncache()\n $key = (current-media() or 'no-media') + '__' + called-from[0] + '__' + arguments\n if $key in $stylus_mixin_cache\n @extend {'$cache_placeholder_for_' + $stylus_mixin_cache[$key]}\n else if 'cache' in called-from\n {block}\n else\n $id = length($stylus_mixin_cache)\n\n &,\n /$cache_placeholder_for_{$id}\n $stylus_mixin_cache[$key] = $id\n {block}\n\n// Percentage function to convert a number, e.g. '.45', into a percentage, e.g. '45%'\n\npercentage(num)\n return unit(num * 100, '%')\n\n// Returns the position of a `value` within a `list`\n\nindex(list, value)\n for val, i in list\n return i if val == value\n";require.modules={};require.resolve=function(path){var orig=path,reg=path+".js",index=path+"/index.js";return require.modules[reg]&®||require.modules[index]&&index||orig};require.register=function(path,fn){require.modules[path]=fn};require.relative=function(parent){return function(p){if("."!=p[0])return require(p);var path=parent.split("/"),segs=p.split("/");path.pop();for(var i=0;i=0;i--){var last=parts[i];if(last=="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}var splitPathRe=/^([\s\S]+\/(?!$)|\/)?((?:[\s\S]+?)?(\.[^.]*)?)$/;exports.normalize=function(path){var isAbsolute=path.charAt(0)==="/",trailingSlash=path.slice(-1)==="/";path=normalizeArray(path.split("/").filter(function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(paths.filter(function(p,index){return p&&typeof p==="string"}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;isizeLimit)return literal;if(enc&&"utf8"==enc.first.val.toLowerCase()){encoding=encodingTypes.UTF8;result=buf.toString("utf8").replace(/\s+/g," ").replace(/[{}\|\\\^~\[\]`"<>#%]/g,function(match){return"%"+match[0].charCodeAt(0).toString(16).toUpperCase()}).trim()}else{result=buf.toString(encoding)+hash}return new nodes.Literal('url("data:'+mime+";"+encoding+","+result+'")')}fn.raw=true;return fn};module.exports.mimes=defaultMimes});require.register("functions/add-property.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");(module.exports=function addProperty(name,expr){utils.assertType(name,"expression","name");name=utils.unwrap(name).first;utils.assertString(name,"name");utils.assertType(expr,"expression","expr");var prop=new nodes.Property([name],expr);var block=this.closestBlock;var len=block.nodes.length,head=block.nodes.slice(0,block.index),tail=block.nodes.slice(block.index++,len);head.push(prop);block.nodes=head.concat(tail);return prop}).raw=true});require.register("functions/adjust.js",function(module,exports,require){var utils=require("../utils");module.exports=function adjust(color,prop,amount){utils.assertColor(color,"color");utils.assertString(prop,"prop");utils.assertType(amount,"unit","amount");var hsl=color.hsla.clone();prop={hue:"h",saturation:"s",lightness:"l"}[prop.string];if(!prop)throw new Error("invalid adjustment property");var val=amount.val;if("%"==amount.type){val="l"==prop&&val>0?(100-hsl[prop])*val/100:hsl[prop]*(val/100)}hsl[prop]+=val;return hsl.rgba}});require.register("functions/alpha.js",function(module,exports,require){var nodes=require("../nodes"),rgba=require("./rgba");module.exports=function alpha(color,value){color=color.rgba;if(value){return rgba(new nodes.Unit(color.r),new nodes.Unit(color.g),new nodes.Unit(color.b),value)}return new nodes.Unit(color.a,"")}});require.register("functions/base-convert.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");(module.exports=function(num,base,width){utils.assertPresent(num,"number");utils.assertPresent(base,"base");num=utils.unwrap(num).nodes[0].val;base=utils.unwrap(base).nodes[0].val;width=width&&utils.unwrap(width).nodes[0].val||2;var result=Number(num).toString(base);while(result.lengthtop.a){top=blend(top,bottom)}var l1=luminosity(bottom).val+.05,l2=luminosity(top).val+.05,ratio=l1/l2;if(l2>l1){ratio=1/ratio}return Math.round(ratio*10)/10}if(1<=bottom.a){var resultRatio=new nodes.Unit(contrast(top,bottom));result.set("ratio",resultRatio);result.set("error",new nodes.Unit(0));result.set("min",resultRatio);result.set("max",resultRatio)}else{var onBlack=contrast(top,blend(bottom,new nodes.RGBA(0,0,0,1))),onWhite=contrast(top,blend(bottom,new nodes.RGBA(255,255,255,1))),max=Math.max(onBlack,onWhite);function processChannel(topChannel,bottomChannel){return Math.min(Math.max(0,(topChannel-bottomChannel*bottom.a)/(1-bottom.a)),255)}var closest=new nodes.RGBA(processChannel(top.r,bottom.r),processChannel(top.g,bottom.g),processChannel(top.b,bottom.b),1);var min=contrast(top,blend(bottom,closest));result.set("ratio",new nodes.Unit(Math.round((min+max)*50)/100));result.set("error",new nodes.Unit(Math.round((max-min)*50)/100));result.set("min",new nodes.Unit(min));result.set("max",new nodes.Unit(max))}return result}});require.register("functions/convert.js",function(module,exports,require){var utils=require("../utils");module.exports=function convert(str){utils.assertString(str,"str");return utils.parseString(str.string)}});require.register("functions/current-media.js",function(module,exports,require){var nodes=require("../nodes");module.exports=function currentMedia(){var self=this;return new nodes.String(lookForMedia(this.closestBlock.node)||"");function lookForMedia(node){if("media"==node.nodeName){node.val=self.visit(node.val);return node.toString()}else if(node.block.parent.node){return lookForMedia(node.block.parent.node)}}}});require.register("functions/define.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");module.exports=function define(name,expr,global){utils.assertType(name,"string","name");expr=utils.unwrap(expr);var scope=this.currentScope;if(global&&global.toBoolean().isTrue){scope=this.global.scope}var node=new nodes.Ident(name.val,expr);scope.add(node);return nodes.nil}});require.register("functions/dirname.js",function(module,exports,require){var utils=require("../utils"),path=require("../path");module.exports=function dirname(p){utils.assertString(p,"path");return path.dirname(p.val).replace(/\\/g,"/")}});require.register("functions/error.js",function(module,exports,require){var utils=require("../utils");module.exports=function error(msg){utils.assertType(msg,"string","msg");var err=new Error(msg.val);err.fromStylus=true;throw err}});require.register("functions/extname.js",function(module,exports,require){var utils=require("../utils"),path=require("../path");module.exports=function extname(p){utils.assertString(p,"path");return path.extname(p.val)}});require.register("functions/green.js",function(module,exports,require){var nodes=require("../nodes"),rgba=require("./rgba");module.exports=function green(color,value){color=color.rgba;if(value){return rgba(new nodes.Unit(color.r),value,new nodes.Unit(color.b),new nodes.Unit(color.a))}return new nodes.Unit(color.g,"")}});require.register("functions/hsl.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes"),hsla=require("./hsla");module.exports=function hsl(hue,saturation,lightness){if(1==arguments.length){utils.assertColor(hue,"color");return hue.hsla}else{return hsla(hue,saturation,lightness,new nodes.Unit(1))}}});require.register("functions/hsla.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");module.exports=function hsla(hue,saturation,lightness,alpha){switch(arguments.length){case 1:utils.assertColor(hue);return hue.hsla;case 2:utils.assertColor(hue);var color=hue.hsla;utils.assertType(saturation,"unit","alpha");var alpha=saturation.clone();if("%"==alpha.type)alpha.val/=100;return new nodes.HSLA(color.h,color.s,color.l,alpha.val);default:utils.assertType(hue,"unit","hue");utils.assertType(saturation,"unit","saturation");utils.assertType(lightness,"unit","lightness");utils.assertType(alpha,"unit","alpha");var alpha=alpha.clone();if(alpha&&"%"==alpha.type)alpha.val/=100;return new nodes.HSLA(hue.val,saturation.val,lightness.val,alpha.val)}}});require.register("functions/hue.js",function(module,exports,require){var nodes=require("../nodes"),hsla=require("./hsla"),component=require("./component");module.exports=function hue(color,value){if(value){var hslaColor=color.hsla;return hsla(value,new nodes.Unit(hslaColor.s),new nodes.Unit(hslaColor.l),new nodes.Unit(hslaColor.a))}return component(color,new nodes.String("hue"))}});require.register("functions/length.js",function(module,exports,require){var utils=require("../utils");(module.exports=function length(expr){if(expr){if(expr.nodes){var nodes=utils.unwrap(expr).nodes;if(1==nodes.length&&"object"==nodes[0].nodeName){return nodes[0].length}else{return nodes.length}}else{return 1}}return 0}).raw=true});require.register("functions/lightness.js",function(module,exports,require){var nodes=require("../nodes"),hsla=require("./hsla"),component=require("./component");module.exports=function lightness(color,value){if(value){var hslaColor=color.hsla;return hsla(new nodes.Unit(hslaColor.h),new nodes.Unit(hslaColor.s),value,new nodes.Unit(hslaColor.a))}return component(color,new nodes.String("lightness"))}});require.register("functions/list-separator.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");(module.exports=function listSeparator(list){list=utils.unwrap(list);return new nodes.String(list.isList?",":" ")}).raw=true});require.register("functions/lookup.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");module.exports=function lookup(name){utils.assertType(name,"string","name");var node=this.lookup(name.val);if(!node)return nodes.nil;return this.visit(node)}});require.register("functions/luminosity.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");module.exports=function luminosity(color){utils.assertColor(color);color=color.rgba;function processChannel(channel){channel=channel/255;return.03928>channel?channel/12.92:Math.pow((channel+.055)/1.055,2.4)}return new nodes.Unit(.2126*processChannel(color.r)+.7152*processChannel(color.g)+.0722*processChannel(color.b))}});require.register("functions/match.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");var VALID_FLAGS="igm";module.exports=function match(pattern,val,flags){utils.assertType(pattern,"string","pattern");utils.assertString(val,"val");var re=new RegExp(pattern.val,validateFlags(flags)?flags.string:"");return val.string.match(re)};function validateFlags(flags){flags=flags&&flags.string;if(flags){return flags.split("").every(function(flag){return~VALID_FLAGS.indexOf(flag)})}return false}});require.register("functions/math-prop.js",function(module,exports,require){var nodes=require("../nodes");module.exports=function math(prop){return new nodes.Unit(Math[prop.string])}});require.register("functions/math.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");module.exports=function math(n,fn){utils.assertType(n,"unit","n");utils.assertString(fn,"fn");return new nodes.Unit(Math[fn.string](n.val),n.type)}});require.register("functions/merge.js",function(module,exports,require){var utils=require("../utils");(module.exports=function merge(dest){utils.assertPresent(dest,"dest");dest=utils.unwrap(dest).first;utils.assertType(dest,"object","dest");var last=utils.unwrap(arguments[arguments.length-1]).first,deep=true===last.val;for(var i=1,len=arguments.length-deep;i1){if(expr.isList){pushToStack(expr.nodes,stack)}else{stack.push(parse(expr.nodes.map(function(node){utils.assertString(node,"selector");return node.string}).join(" ")))}}}else if(args.length>1){pushToStack(args,stack)}return stack.length?utils.compileSelectors(stack).join(","):"&"}).raw=true;function pushToStack(selectors,stack){selectors.forEach(function(sel){sel=sel.first;utils.assertString(sel,"selector");stack.push(parse(sel.string))})}function parse(selector){var Parser=new require("../parser"),parser=new Parser(selector),nodes;parser.state.push("selector-parts");nodes=parser.selector();nodes.forEach(function(node){node.val=node.segments.map(function(seg){return seg.toString()}).join("")});return nodes}});require.register("functions/selectors.js",function(module,exports,require){var nodes=require("../nodes"),Parser=require("../selector-parser");module.exports=function selectors(){var stack=this.selectorStack,expr=new nodes.Expression(true);if(stack.length){for(var i=0;i1){expr.push(new nodes.String(group.map(function(selector){nested=new Parser(selector.val).parse().nested;return(nested&&i?"& ":"")+selector.val}).join(",")))}else{var selector=group[0].val;nested=new Parser(selector).parse().nested;expr.push(new nodes.String((nested&&i?"& ":"")+selector))}}}else{expr.push(new nodes.String("&"))}return expr}});require.register("functions/shift.js",function(module,exports,require){var utils=require("../utils");(module.exports=function(expr){expr=utils.unwrap(expr);return expr.nodes.shift()}).raw=true});require.register("functions/split.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");module.exports=function split(delim,val){utils.assertString(delim,"delimiter");utils.assertString(val,"val");var splitted=val.string.split(delim.string);var expr=new nodes.Expression;var ItemNode=val instanceof nodes.Ident?nodes.Ident:nodes.String;for(var i=0,len=splitted.length;i1){return utils.coerce(val.slice(start,end),true)}var result=val[0].string.slice(start,end);return val[0]instanceof nodes.Ident?new nodes.Ident(result):new nodes.String(result)}).raw=true});require.register("functions/substr.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");module.exports=function substr(val,start,length){utils.assertString(val,"val");utils.assertType(start,"unit","start");length=length&&length.val;var res=val.string.substr(start.val,length);return val instanceof nodes.Ident?new nodes.Ident(res):new nodes.String(res)}});require.register("functions/tan.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");module.exports=function tan(angle){utils.assertType(angle,"unit","angle");var radians=angle.val;if(angle.type==="deg"){radians*=Math.PI/180}var m=Math.pow(10,9);var sin=Math.round(Math.sin(radians)*m)/m,cos=Math.round(Math.cos(radians)*m)/m,tan=Math.round(m*sin/cos)/m;return new nodes.Unit(tan,"")}});require.register("functions/trace.js",function(module,exports,require){var nodes=require("../nodes");module.exports=function trace(){console.log(this.stack);return nodes.nil}});require.register("functions/transparentify.js",function(module,exports,require){var utils=require("../utils"),nodes=require("../nodes");module.exports=function transparentify(top,bottom,alpha){utils.assertColor(top);top=top.rgba;bottom=bottom||new nodes.RGBA(255,255,255,1);if(!alpha&&bottom&&!bottom.rgba){alpha=bottom;bottom=new nodes.RGBA(255,255,255,1)}utils.assertColor(bottom);bottom=bottom.rgba;var bestAlpha=["r","g","b"].map(function(channel){return(top[channel]-bottom[channel])/((0s.lastIndexOf("*/",offset),commentIdx=s.lastIndexOf("//",offset),i=s.lastIndexOf("\n",offset),double=0,single=0;if(~commentIdx&&commentIdx>i){while(i!=offset){if("'"==s[i])single?single--:single++;if('"'==s[i])double?double--:double++;if("/"==s[i]&&"/"==s[i+1]){inComment=!single&&!double;break}++i}}return inComment?str:val+"\r"}if("\ufeff"==str.charAt(0))str=str.slice(1);this.str=str.replace(/\s+$/,"\n").replace(/\r\n?/g,"\n").replace(/\\ *\n/g,"\r").replace(/([,(:](?!\/\/[^ ])) *(?:\/\/[^\n]*|\/\*.*?\*\/)?\n\s*/g,comment).replace(/\s*\n[ \t]*([,)])/g,comment)}Lexer.prototype={inspect:function(){var tok,tmp=this.str,buf=[];while("eos"!=(tok=this.next()).type){buf.push(tok.inspect())}this.str=tmp;return buf.concat(tok.inspect()).join("\n")},lookahead:function(n){var fetch=n-this.stash.length;while(fetch-- >0)this.stash.push(this.advance());return this.stash[--n]},skip:function(len){var chunk=len[0];len=chunk?chunk.length:len;this.str=this.str.substr(len);if(chunk){this.move(chunk)}else{this.column+=len}},move:function(str){var lines=str.match(/\n/g),idx=str.lastIndexOf("\n");if(lines)this.lineno+=lines.length;this.column=~idx?str.length-idx:this.column+str.length},next:function(){var tok=this.stashed()||this.advance();this.prev=tok;return tok},isPartOfSelector:function(){var tok=this.stash[this.stash.length-1]||this.prev;switch(tok&&tok.type){case"color":return 2==tok.val.raw.length;case".":case"[":return true}return false},advance:function(){var column=this.column,line=this.lineno,tok=this.eos()||this.nil()||this.sep()||this.keyword()||this.urlchars()||this.comment()||this.newline()||this.escaped()||this.important()||this.literal()||this.fun()||this.anonFunc()||this.atrule()||this.brace()||this.paren()||this.color()||this.string()||this.unit()||this.namedop()||this.boolean()||this.unicode()||this.ident()||this.op()||this.eol()||this.space()||this.selector();tok.lineno=line;tok.column=column;return tok},peek:function(){return this.lookahead(1)},stashed:function(){return this.stash.shift()},eos:function(){if(this.str.length)return;if(this.indentStack.length){this.indentStack.shift();return new Token("outdent")}else{return new Token("eos")}},urlchars:function(){var captures;if(!this.isURL)return;if(captures=/^[\/:@.;?&=*!,<>#%0-9]+/.exec(this.str)){this.skip(captures);return new Token("literal",new nodes.Literal(captures[0]))}},sep:function(){var captures;if(captures=/^;[ \t]*/.exec(this.str)){this.skip(captures);return new Token(";")}},eol:function(){if("\r"==this.str[0]){++this.lineno;this.skip(1);return this.advance()}},space:function(){var captures;if(captures=/^([ \t]+)/.exec(this.str)){this.skip(captures);return new Token("space")}},escaped:function(){var captures;if(captures=/^\\(.)[ \t]*/.exec(this.str)){var c=captures[1];this.skip(captures);return new Token("ident",new nodes.Literal(c))}},literal:function(){var captures;if(captures=/^@css[ \t]*\{/.exec(this.str)){this.skip(captures);var c,braces=1,css="",node;while(c=this.str[0]){this.str=this.str.substr(1);switch(c){case"{":++braces;break;case"}":--braces;break;case"\n":case"\r":++this.lineno;break}css+=c;if(!braces)break}css=css.replace(/\s*}$/,"");node=new nodes.Literal(css);node.css=true;return new Token("literal",node)}},important:function(){var captures;if(captures=/^!important[ \t]*/.exec(this.str)){this.skip(captures);return new Token("ident",new nodes.Literal("!important"))}},brace:function(){var captures;if(captures=/^([{}])/.exec(this.str)){this.skip(1);var brace=captures[1];return new Token(brace,brace)}},paren:function(){var captures;if(captures=/^([()])([ \t]*)/.exec(this.str)){var paren=captures[1];this.skip(captures);if(")"==paren)this.isURL=false;var tok=new Token(paren,paren);tok.space=captures[2];return tok}},nil:function(){var captures,tok;if(captures=/^(null)\b[ \t]*/.exec(this.str)){this.skip(captures);if(this.isPartOfSelector()){tok=new Token("ident",new nodes.Ident(captures[0]))}else{tok=new Token("null",nodes.nil)}return tok}},keyword:function(){var captures,tok;if(captures=/^(return|if|else|unless|for|in)\b[ \t]*/.exec(this.str)){var keyword=captures[1];this.skip(captures);if(this.isPartOfSelector()){tok=new Token("ident",new nodes.Ident(captures[0]))}else{tok=new Token(keyword,keyword)}return tok}},namedop:function(){var captures,tok;if(captures=/^(not|and|or|is a|is defined|isnt|is not|is)(?!-)\b([ \t]*)/.exec(this.str)){var op=captures[1];this.skip(captures);if(this.isPartOfSelector()){tok=new Token("ident",new nodes.Ident(captures[0]))}else{op=alias[op]||op;tok=new Token(op,op)}tok.space=captures[2];return tok}},op:function(){var captures;if(captures=/^([.]{1,3}|&&|\|\||[!<>=?:]=|\*\*|[-+*\/%]=?|[,=?:!~<>&\[\]])([ \t]*)/.exec(this.str)){var op=captures[1];this.skip(captures);op=alias[op]||op;var tok=new Token(op,op);tok.space=captures[2];this.isURL=false;return tok}},anonFunc:function(){var tok;if("@"==this.str[0]&&"("==this.str[1]){this.skip(2);tok=new Token("function",new nodes.Ident("anonymous"));tok.anonymous=true;return tok}},atrule:function(){var captures;if(captures=/^@(?:-(\w+)-)?([a-zA-Z0-9-_]+)[ \t]*/.exec(this.str)){this.skip(captures);var vendor=captures[1],type=captures[2],tok;switch(type){case"require":case"import":case"charset":case"namespace":case"media":case"scope":case"supports":return new Token(type);case"document":return new Token("-moz-document");case"block":return new Token("atblock");case"extend":case"extends":return new Token("extend");case"keyframes":return new Token(type,vendor);default:return new Token("atrule",vendor?"-"+vendor+"-"+type:type)}}},comment:function(){if("/"==this.str[0]&&"/"==this.str[1]){var end=this.str.indexOf("\n");if(-1==end)end=this.str.length;this.skip(end);return this.advance()}if("/"==this.str[0]&&"*"==this.str[1]){var end=this.str.indexOf("*/");if(-1==end)end=this.str.length;var str=this.str.substr(0,end+2),lines=str.split(/\n|\r/).length-1,suppress=true,inline=false;this.lineno+=lines;this.skip(end+2);if("!"==str[2]){str=str.replace("*!","*");suppress=false}if(this.prev&&";"==this.prev.type)inline=true;return new Token("comment",new nodes.Comment(str,suppress,inline))}},"boolean":function(){var captures;if(captures=/^(true|false)\b([ \t]*)/.exec(this.str)){var val=nodes.Boolean("true"==captures[1]);this.skip(captures);var tok=new Token("boolean",val);tok.space=captures[2];return tok}},unicode:function(){var captures;if(captures=/^u\+[0-9a-f?]{1,6}(?:-[0-9a-f]{1,6})?/i.exec(this.str)){this.skip(captures);return new Token("literal",new nodes.Literal(captures[0]))}},fun:function(){var captures;if(captures=/^(-*[_a-zA-Z$][-\w\d$]*)\(([ \t]*)/.exec(this.str)){var name=captures[1];this.skip(captures);this.isURL="url"==name;var tok=new Token("function",new nodes.Ident(name));tok.space=captures[2];return tok}},ident:function(){var captures;if(captures=/^-*[_a-zA-Z$][-\w\d$]*/.exec(this.str)){this.skip(captures);return new Token("ident",new nodes.Ident(captures[0]))}},newline:function(){var captures,re;if(this.indentRe){captures=this.indentRe.exec(this.str)}else{re=/^\n([\t]*)[ \t]*/;captures=re.exec(this.str);if(captures&&!captures[1].length){re=/^\n([ \t]*)/;captures=re.exec(this.str)}if(captures&&captures[1].length)this.indentRe=re}if(captures){var tok,indents=captures[1].length;this.skip(captures);if(this.str[0]===" "||this.str[0]===" "){throw new errors.SyntaxError("Invalid indentation. You can use tabs or spaces to indent, but not both.")}if("\n"==this.str[0])return this.advance();if(this.indentStack.length&&indentsindents){this.stash.push(new Token("outdent"));this.indentStack.shift()}tok=this.stash.pop()}else if(indents&&indents!=this.indentStack[0]){this.indentStack.unshift(indents);tok=new Token("indent")}else{tok=new Token("newline")}return tok}},unit:function(){var captures;if(captures=/^(-)?(\d+\.\d+|\d+|\.\d+)(%|[a-zA-Z]+)?[ \t]*/.exec(this.str)){this.skip(captures);var n=parseFloat(captures[2]);if("-"==captures[1])n=-n;var node=new nodes.Unit(n,captures[3]);node.raw=captures[0];return new Token("unit",node)}},string:function(){var captures;if(captures=/^("[^"]*"|'[^']*')[ \t]*/.exec(this.str)){var str=captures[1],quote=captures[0][0];this.skip(captures);str=str.slice(1,-1).replace(/\\n/g,"\n");return new Token("string",new nodes.String(str,quote))}},color:function(){return this.rrggbbaa()||this.rrggbb()||this.rgba()||this.rgb()||this.nn()||this.n()},n:function(){var captures;if(captures=/^#([a-fA-F0-9]{1})[ \t]*/.exec(this.str)){this.skip(captures);var n=parseInt(captures[1]+captures[1],16),color=new nodes.RGBA(n,n,n,1);color.raw=captures[0];return new Token("color",color)}},nn:function(){var captures;if(captures=/^#([a-fA-F0-9]{2})[ \t]*/.exec(this.str)){this.skip(captures);var n=parseInt(captures[1],16),color=new nodes.RGBA(n,n,n,1);color.raw=captures[0];return new Token("color",color)}},rgb:function(){var captures;if(captures=/^#([a-fA-F0-9]{3})[ \t]*/.exec(this.str)){this.skip(captures);var rgb=captures[1],r=parseInt(rgb[0]+rgb[0],16),g=parseInt(rgb[1]+rgb[1],16),b=parseInt(rgb[2]+rgb[2],16),color=new nodes.RGBA(r,g,b,1);color.raw=captures[0];return new Token("color",color)}},rgba:function(){var captures;if(captures=/^#([a-fA-F0-9]{4})[ \t]*/.exec(this.str)){this.skip(captures);var rgb=captures[1],r=parseInt(rgb[0]+rgb[0],16),g=parseInt(rgb[1]+rgb[1],16),b=parseInt(rgb[2]+rgb[2],16),a=parseInt(rgb[3]+rgb[3],16),color=new nodes.RGBA(r,g,b,a/255);color.raw=captures[0];return new Token("color",color)}},rrggbb:function(){var captures;if(captures=/^#([a-fA-F0-9]{6})[ \t]*/.exec(this.str)){this.skip(captures);var rgb=captures[1],r=parseInt(rgb.substr(0,2),16),g=parseInt(rgb.substr(2,2),16),b=parseInt(rgb.substr(4,2),16),color=new nodes.RGBA(r,g,b,1);color.raw=captures[0];return new Token("color",color)}},rrggbbaa:function(){var captures;if(captures=/^#([a-fA-F0-9]{8})[ \t]*/.exec(this.str)){this.skip(captures);var rgb=captures[1],r=parseInt(rgb.substr(0,2),16),g=parseInt(rgb.substr(2,2),16),b=parseInt(rgb.substr(4,2),16),a=parseInt(rgb.substr(6,2),16),color=new nodes.RGBA(r,g,b,a/255);color.raw=captures[0];return new Token("color",color)}},selector:function(){var captures;if(captures=/^\^|.*?(?=\/\/(?![^\[]*\])|[,\n{])/.exec(this.str)){var selector=captures[0];this.skip(captures);return new Token("selector",selector)}}}});require.register("nodes/arguments.js",function(module,exports,require){var Node=require("./node"),nodes=require("../nodes"),utils=require("../utils");var Arguments=module.exports=function Arguments(){nodes.Expression.call(this);this.map={}};Arguments.prototype.__proto__=nodes.Expression.prototype;Arguments.fromExpression=function(expr){var args=new Arguments,len=expr.nodes.length;args.lineno=expr.lineno;args.column=expr.column;args.isList=expr.isList;for(var i=0;ilen)self.nodes[i]=nodes.nil;self.nodes[n]=val}else if(unit.string){node=self.nodes[0];if(node&&"object"==node.nodeName)node.set(unit.string,val.clone())}});return val;case"[]":var expr=new nodes.Expression,vals=utils.unwrap(this).nodes,range=utils.unwrap(right).nodes,node;range.forEach(function(unit){if("unit"==unit.nodeName){node=vals[unit.val<0?vals.length+unit.val:unit.val]}else if("object"==vals[0].nodeName){node=vals[0].get(unit.string)}if(node)expr.push(node)});return expr.isEmpty?nodes.nil:utils.unwrap(expr);case"||":return this.toBoolean().isTrue?this:right;case"in":return Node.prototype.operate.call(this,op,right);case"!=":return this.operate("==",right,val).negate();case"==":var len=this.nodes.length,right=right.toExpression(),a,b;if(len!=right.nodes.length)return nodes.no;for(var i=0;i1)return nodes.yes;return this.first.toBoolean()};Expression.prototype.toString=function(){return"("+this.nodes.map(function(node){return node.toString()}).join(this.isList?", ":" ")+")"};Expression.prototype.toJSON=function(){return{__type:"Expression",isList:this.isList,preserve:this.preserve,lineno:this.lineno,column:this.column,filename:this.filename,nodes:this.nodes}}});require.register("nodes/function.js",function(module,exports,require){var Node=require("./node");var Function=module.exports=function Function(name,params,body){Node.call(this);this.name=name;this.params=params;this.block=body;if("function"==typeof params)this.fn=params};Function.prototype.__defineGetter__("arity",function(){return this.params.length});Function.prototype.__proto__=Node.prototype;Function.prototype.__defineGetter__("hash",function(){return"function "+this.name});Function.prototype.clone=function(parent){ +if(this.fn){var clone=new Function(this.name,this.fn)}else{var clone=new Function(this.name);clone.params=this.params.clone(parent,clone);clone.block=this.block.clone(parent,clone)}clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};Function.prototype.toString=function(){if(this.fn){return this.name+"("+this.fn.toString().match(/^function *\w*\((.*?)\)/).slice(1).join(", ")+")"}else{return this.name+"("+this.params.nodes.join(", ")+")"}};Function.prototype.toJSON=function(){var json={__type:"Function",name:this.name,lineno:this.lineno,column:this.column,filename:this.filename};if(this.fn){json.fn=this.fn}else{json.params=this.params;json.block=this.block}return json}});require.register("nodes/group.js",function(module,exports,require){var Node=require("./node");var Group=module.exports=function Group(){Node.call(this);this.nodes=[];this.extends=[]};Group.prototype.__proto__=Node.prototype;Group.prototype.push=function(selector){this.nodes.push(selector)};Group.prototype.__defineGetter__("block",function(){return this.nodes[0].block});Group.prototype.__defineSetter__("block",function(block){for(var i=0,len=this.nodes.length;i=":case"<":case">":case"is a":case"||":case"&&":return this.rgba.operate(op,right);default:return this.rgba.operate(op,right).hsla}};exports.fromRGBA=function(rgba){var r=rgba.r/255,g=rgba.g/255,b=rgba.b/255,a=rgba.a;var min=Math.min(r,g,b),max=Math.max(r,g,b),l=(max+min)/2,d=max-min,h,s;switch(max){case min:h=0;break;case r:h=60*(g-b)/d;break;case g:h=60*(b-r)/d+120;break;case b:h=60*(r-g)/d+240;break}if(max==min){s=0}else if(l<.5){s=d/(2*l)}else{s=d/(2-2*l)}h%=360;s*=100;l*=100;return new HSLA(h,s,l,a)};HSLA.prototype.adjustLightness=function(percent){this.l=clampPercentage(this.l+this.l*(percent/100));return this};HSLA.prototype.adjustHue=function(deg){this.h=clampDegrees(this.h+deg);return this};function clampDegrees(n){n=n%360;return n>=0?n:360+n}function clampPercentage(n){return Math.max(0,Math.min(n,100))}function clampAlpha(n){return Math.max(0,Math.min(n,1))}});require.register("nodes/ident.js",function(module,exports,require){var Node=require("./node"),nodes=require("./index");var Ident=module.exports=function Ident(name,val,mixin){Node.call(this);this.name=name;this.string=name;this.val=val||nodes.nil;this.mixin=!!mixin};Ident.prototype.__defineGetter__("isEmpty",function(){return undefined==this.val});Ident.prototype.__defineGetter__("hash",function(){return this.name});Ident.prototype.__proto__=Node.prototype;Ident.prototype.clone=function(parent){var clone=new Ident(this.name);clone.val=this.val.clone(parent,clone);clone.mixin=this.mixin;clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;clone.property=this.property;clone.rest=this.rest;return clone};Ident.prototype.toJSON=function(){return{__type:"Ident",name:this.name,val:this.val,mixin:this.mixin,property:this.property,rest:this.rest,lineno:this.lineno,column:this.column,filename:this.filename}};Ident.prototype.toString=function(){return this.name};Ident.prototype.coerce=function(other){switch(other.nodeName){case"ident":case"string":case"literal":return new Ident(other.string);case"unit":return new Ident(other.toString());default:return Node.prototype.coerce.call(this,other)}};Ident.prototype.operate=function(op,right){var val=right.first;switch(op){case"-":if("unit"==val.nodeName){var expr=new nodes.Expression;val=val.clone();val.val=-val.val;expr.push(this);expr.push(val);return expr}case"+":return new nodes.Ident(this.string+this.coerce(val).string)}return Node.prototype.operate.call(this,op,right)}});require.register("nodes/if.js",function(module,exports,require){var Node=require("./node");var If=module.exports=function If(cond,negate){Node.call(this);this.cond=cond;this.elses=[];if(negate&&negate.nodeName){this.block=negate}else{this.negate=negate}};If.prototype.__proto__=Node.prototype;If.prototype.clone=function(parent){var clone=new If;clone.cond=this.cond.clone(parent,clone);clone.block=this.block.clone(parent,clone);clone.elses=this.elses.map(function(node){return node.clone(parent,clone)});clone.negate=this.negate;clone.postfix=this.postfix;clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};If.prototype.toJSON=function(){return{__type:"If",cond:this.cond,block:this.block,elses:this.elses,negate:this.negate,postfix:this.postfix,lineno:this.lineno,column:this.column,filename:this.filename}}});require.register("nodes/import.js",function(module,exports,require){var Node=require("./node");var Import=module.exports=function Import(expr,once){Node.call(this);this.path=expr;this.once=once||false};Import.prototype.__proto__=Node.prototype;Import.prototype.clone=function(parent){var clone=new Import;clone.path=this.path.nodeName?this.path.clone(parent,clone):this.path;clone.once=this.once;clone.mtime=this.mtime;clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};Import.prototype.toJSON=function(){return{__type:"Import",path:this.path,once:this.once,mtime:this.mtime,lineno:this.lineno,column:this.column,filename:this.filename}}});require.register("nodes/extend.js",function(module,exports,require){var Node=require("./node");var Extend=module.exports=function Extend(selectors){Node.call(this);this.selectors=selectors};Extend.prototype.__proto__=Node.prototype;Extend.prototype.clone=function(){return new Extend(this.selectors)};Extend.prototype.toString=function(){return"@extend "+this.selectors.join(", ")};Extend.prototype.toJSON=function(){return{__type:"Extend",selectors:this.selectors,lineno:this.lineno,column:this.column,filename:this.filename}}});require.register("nodes/index.js",function(module,exports,require){exports.Node=require("./node");exports.Root=require("./root");exports.Null=require("./null");exports.Each=require("./each");exports.If=require("./if");exports.Call=require("./call");exports.UnaryOp=require("./unaryop");exports.BinOp=require("./binop");exports.Ternary=require("./ternary");exports.Block=require("./block");exports.Unit=require("./unit");exports.String=require("./string");exports.HSLA=require("./hsla");exports.RGBA=require("./rgba");exports.Ident=require("./ident");exports.Group=require("./group");exports.Literal=require("./literal");exports.Boolean=require("./boolean");exports.Return=require("./return");exports.Media=require("./media");exports.QueryList=require("./query-list");exports.Query=require("./query");exports.Feature=require("./feature");exports.Params=require("./params");exports.Comment=require("./comment");exports.Keyframes=require("./keyframes");exports.Member=require("./member");exports.Charset=require("./charset");exports.Namespace=require("./namespace");exports.Import=require("./import");exports.Extend=require("./extend");exports.Object=require("./object");exports.Function=require("./function");exports.Property=require("./property");exports.Selector=require("./selector");exports.Expression=require("./expression");exports.Arguments=require("./arguments");exports.Atblock=require("./atblock");exports.Atrule=require("./atrule");exports.Supports=require("./supports");exports.yes=new exports.Boolean(true);exports.no=new exports.Boolean(false);exports.nil=new exports.Null});require.register("nodes/keyframes.js",function(module,exports,require){var Atrule=require("./atrule");var Keyframes=module.exports=function Keyframes(segs,prefix){Atrule.call(this,"keyframes");this.segments=segs;this.prefix=prefix||"official"};Keyframes.prototype.__proto__=Atrule.prototype;Keyframes.prototype.clone=function(parent){var clone=new Keyframes;clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;clone.segments=this.segments.map(function(node){return node.clone(parent,clone)});clone.prefix=this.prefix;clone.block=this.block.clone(parent,clone);return clone};Keyframes.prototype.toJSON=function(){return{__type:"Keyframes",segments:this.segments,prefix:this.prefix,block:this.block,lineno:this.lineno,column:this.column,filename:this.filename}};Keyframes.prototype.toString=function(){return"@keyframes "+this.segments.join("")}});require.register("nodes/literal.js",function(module,exports,require){var Node=require("./node"),nodes=require("./index");var Literal=module.exports=function Literal(str){Node.call(this);this.val=str;this.string=str;this.prefixed=false};Literal.prototype.__proto__=Node.prototype;Literal.prototype.__defineGetter__("hash",function(){return this.val});Literal.prototype.toString=function(){return this.val};Literal.prototype.coerce=function(other){switch(other.nodeName){case"ident":case"string":case"literal":return new Literal(other.string);default:return Node.prototype.coerce.call(this,other)}};Literal.prototype.operate=function(op,right){var val=right.first;switch(op){case"+":return new nodes.Literal(this.string+this.coerce(val).string);default:return Node.prototype.operate.call(this,op,right)}};Literal.prototype.toJSON=function(){return{__type:"Literal",val:this.val,string:this.string,prefixed:this.prefixed,lineno:this.lineno,column:this.column,filename:this.filename}}});require.register("nodes/media.js",function(module,exports,require){var Atrule=require("./atrule");var Media=module.exports=function Media(val){Atrule.call(this,"media");this.val=val};Media.prototype.__proto__=Atrule.prototype;Media.prototype.clone=function(parent){var clone=new Media;clone.val=this.val.clone(parent,clone);clone.block=this.block.clone(parent,clone);clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};Media.prototype.toJSON=function(){return{__type:"Media",val:this.val,block:this.block,lineno:this.lineno,column:this.column,filename:this.filename}};Media.prototype.toString=function(){return"@media "+this.val}});require.register("nodes/query-list.js",function(module,exports,require){var Node=require("./node");var QueryList=module.exports=function QueryList(){Node.call(this);this.nodes=[]};QueryList.prototype.__proto__=Node.prototype;QueryList.prototype.clone=function(parent){var clone=new QueryList;clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;for(var i=0;i=":return nodes.Boolean(this.hash>=right.hash);case"<=":return nodes.Boolean(this.hash<=right.hash);case">":return nodes.Boolean(this.hash>right.hash);case"<":return nodes.Boolean(this.hash1)--h;if(h*6<1)return m1+(m2-m1)*h*6;if(h*2<1)return m2;if(h*3<2)return m1+(m2-m1)*(2/3-h)*6;return m1}return new RGBA(r,g,b,a)};function clamp(n){return Math.max(0,Math.min(n.toFixed(0),255))}function clampAlpha(n){return Math.max(0,Math.min(n,1))}});require.register("nodes/root.js",function(module,exports,require){var Node=require("./node");var Root=module.exports=function Root(){this.nodes=[]};Root.prototype.__proto__=Node.prototype;Root.prototype.push=function(node){this.nodes.push(node)};Root.prototype.unshift=function(node){this.nodes.unshift(node)};Root.prototype.clone=function(){var clone=new Root;clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;this.nodes.forEach(function(node){clone.push(node.clone(clone,clone))});return clone};Root.prototype.toString=function(){return"[Root]"};Root.prototype.toJSON=function(){return{__type:"Root",nodes:this.nodes,lineno:this.lineno,column:this.column,filename:this.filename}}});require.register("nodes/selector.js",function(module,exports,require){var Block=require("./block"),Node=require("./node");var Selector=module.exports=function Selector(segs){Node.call(this);this.inherits=true;this.segments=segs;this.optional=false};Selector.prototype.__proto__=Node.prototype;Selector.prototype.toString=function(){return this.segments.join("")+(this.optional?" !optional":"")};Selector.prototype.__defineGetter__("isPlaceholder",function(){return this.val&&~this.val.substr(0,2).indexOf("$")});Selector.prototype.clone=function(parent){var clone=new Selector;clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;clone.inherits=this.inherits;clone.val=this.val;clone.segments=this.segments.map(function(node){return node.clone(parent,clone)});clone.optional=this.optional;return clone};Selector.prototype.toJSON=function(){return{__type:"Selector",inherits:this.inherits,segments:this.segments,optional:this.optional,val:this.val,lineno:this.lineno,column:this.column,filename:this.filename}}});require.register("nodes/string.js",function(module,exports,require){var Node=require("./node"),sprintf=require("../functions").s,utils=require("../utils"),nodes=require("./index");var String=module.exports=function String(val,quote){Node.call(this);this.val=val;this.string=val;this.prefixed=false;if(typeof quote!=="string"){this.quote="'"}else{this.quote=quote}};String.prototype.__proto__=Node.prototype;String.prototype.toString=function(){return this.quote+this.val+this.quote};String.prototype.clone=function(){var clone=new String(this.val,this.quote);clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};String.prototype.toJSON=function(){return{__type:"String",val:this.val,quote:this.quote,lineno:this.lineno,column:this.column,filename:this.filename}};String.prototype.toBoolean=function(){return nodes.Boolean(this.val.length)};String.prototype.coerce=function(other){switch(other.nodeName){case"string":return other;case"expression":return new String(other.nodes.map(function(node){return this.coerce(node).val},this).join(" "));default:return new String(other.toString())}};String.prototype.operate=function(op,right){switch(op){case"%":var expr=new nodes.Expression;expr.push(this);var args="expression"==right.nodeName?utils.unwrap(right).nodes:[right];return sprintf.apply(null,[expr].concat(args));case"+":var expr=new nodes.Expression;expr.push(new String(this.val+this.coerce(right).val));return expr;default:return Node.prototype.operate.call(this,op,right)}}});require.register("nodes/ternary.js",function(module,exports,require){var Node=require("./node");var Ternary=module.exports=function Ternary(cond,trueExpr,falseExpr){Node.call(this);this.cond=cond;this.trueExpr=trueExpr;this.falseExpr=falseExpr};Ternary.prototype.__proto__=Node.prototype;Ternary.prototype.clone=function(parent){var clone=new Ternary;clone.cond=this.cond.clone(parent,clone);clone.trueExpr=this.trueExpr.clone(parent,clone);clone.falseExpr=this.falseExpr.clone(parent,clone);clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};Ternary.prototype.toJSON=function(){return{__type:"Ternary",cond:this.cond,trueExpr:this.trueExpr,falseExpr:this.falseExpr,lineno:this.lineno,column:this.column,filename:this.filename}}});require.register("nodes/unaryop.js",function(module,exports,require){var Node=require("./node");var UnaryOp=module.exports=function UnaryOp(op,expr){Node.call(this);this.op=op;this.expr=expr};UnaryOp.prototype.__proto__=Node.prototype;UnaryOp.prototype.clone=function(parent){var clone=new UnaryOp(this.op);clone.expr=this.expr.clone(parent,clone);clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};UnaryOp.prototype.toJSON=function(){return{__type:"UnaryOp",op:this.op,expr:this.expr,lineno:this.lineno,column:this.column,filename:this.filename}}});require.register("nodes/unit.js",function(module,exports,require){var Node=require("./node"),nodes=require("./index");var FACTOR_TABLE={mm:{val:1,label:"mm"},cm:{val:10,label:"mm"},"in":{val:25.4,label:"mm"},pt:{val:25.4/72,label:"mm"},ms:{val:1,label:"ms"},s:{val:1e3,label:"ms"},Hz:{val:1,label:"Hz"},kHz:{val:1e3,label:"Hz"}};var Unit=module.exports=function Unit(val,type){Node.call(this);this.val=val;this.type=type};Unit.prototype.__proto__=Node.prototype;Unit.prototype.toBoolean=function(){return nodes.Boolean(this.type?true:this.val)};Unit.prototype.toString=function(){return this.val+(this.type||"")};Unit.prototype.clone=function(){var clone=new Unit(this.val,this.type);clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};Unit.prototype.toJSON=function(){return{__type:"Unit",val:this.val,type:this.type,lineno:this.lineno,column:this.column,filename:this.filename}};Unit.prototype.operate=function(op,right){var type=this.type||right.first.type;if("rgba"==right.nodeName||"hsla"==right.nodeName){return right.operate(op,this)}if(this.shouldCoerce(op)){right=right.first;if("%"!=this.type&&("-"==op||"+"==op)&&"%"==right.type){right=new Unit(this.val*(right.val/100),"%")}else{right=this.coerce(right)}switch(op){case"-":return new Unit(this.val-right.val,type);case"+":type=type||right.type=="%"&&right.type;return new Unit(this.val+right.val,type);case"/":return new Unit(this.val/right.val,type);case"*":return new Unit(this.val*right.val,type);case"%":return new Unit(this.val%right.val,type);case"**":return new Unit(Math.pow(this.val,right.val),type);case"..":case"...":var start=this.val,end=right.val,expr=new nodes.Expression,inclusive=".."==op;if(start=end:--start>end)}return expr}}return Node.prototype.operate.call(this,op,right)};Unit.prototype.coerce=function(other){if("unit"==other.nodeName){var a=this,b=other,factorA=FACTOR_TABLE[a.type],factorB=FACTOR_TABLE[b.type];if(factorA&&factorB&&factorA.label==factorB.label){var bVal=b.val*(factorB.val/factorA.val);return new nodes.Unit(bVal,a.type)}else{return new nodes.Unit(b.val,a.type)}}else if("string"==other.nodeName){if("%"==other.val)return new nodes.Unit(0,"%");var val=parseFloat(other.val);if(isNaN(val))Node.prototype.coerce.call(this,other);return new nodes.Unit(val)}else{return Node.prototype.coerce.call(this,other)}}});require.register("nodes/object.js",function(module,exports,require){var Node=require("./node"),nodes=require("./index"),nativeObj={}.constructor;var Object=module.exports=function Object(){Node.call(this);this.vals={}};Object.prototype.__proto__=Node.prototype;Object.prototype.set=function(key,val){this.vals[key]=val;return this};Object.prototype.__defineGetter__("length",function(){return nativeObj.keys(this.vals).length});Object.prototype.get=function(key){return this.vals[key]||nodes.nil};Object.prototype.has=function(key){return key in this.vals};Object.prototype.operate=function(op,right){switch(op){case".":case"[]":return this.get(right.hash);case"==":var vals=this.vals,a,b;if("object"!=right.nodeName||this.length!=right.length)return nodes.no;for(var key in vals){a=vals[key];b=right.vals[key];if(a.operate(op,b).isFalse)return nodes.no; +}return nodes.yes;case"!=":return this.operate("==",right).negate();default:return Node.prototype.operate.call(this,op,right)}};Object.prototype.toBoolean=function(){return nodes.Boolean(this.length)};Object.prototype.toBlock=function(){var str="{",key,val;for(key in this.vals){val=this.get(key);if("object"==val.first.nodeName){str+=key+" "+val.first.toBlock()}else{switch(key){case"@charset":str+=key+" "+val.first.toString()+";";break;default:str+=key+":"+toString(val)+";"}}}str+="}";return str;function toString(node){if(node.nodes){return node.nodes.map(toString).join(node.isList?",":" ")}else if("literal"==node.nodeName&&","==node.val){return"\\,"}return node.toString()}};Object.prototype.clone=function(parent){var clone=new Object;clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;for(var key in this.vals){clone.vals[key]=this.vals[key].clone(parent,clone)}return clone};Object.prototype.toJSON=function(){return{__type:"Object",vals:this.vals,lineno:this.lineno,column:this.column,filename:this.filename}};Object.prototype.toString=function(){var obj={};for(var prop in this.vals){obj[prop]=this.vals[prop].toString()}return JSON.stringify(obj)}});require.register("nodes/supports.js",function(module,exports,require){var Atrule=require("./atrule");var Supports=module.exports=function Supports(condition){Atrule.call(this,"supports");this.condition=condition};Supports.prototype.__proto__=Atrule.prototype;Supports.prototype.clone=function(parent){var clone=new Supports;clone.condition=this.condition.clone(parent,clone);clone.block=this.block.clone(parent,clone);clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};Supports.prototype.toJSON=function(){return{__type:"Supports",condition:this.condition,block:this.block,lineno:this.lineno,column:this.column,filename:this.filename}};Supports.prototype.toString=function(){return"@supports "+this.condition}});require.register("nodes/member.js",function(module,exports,require){var Node=require("./node");var Member=module.exports=function Member(left,right){Node.call(this);this.left=left;this.right=right};Member.prototype.__proto__=Node.prototype;Member.prototype.clone=function(parent){var clone=new Member;clone.left=this.left.clone(parent,clone);clone.right=this.right.clone(parent,clone);if(this.val)clone.val=this.val.clone(parent,clone);clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};Member.prototype.toJSON=function(){var json={__type:"Member",left:this.left,right:this.right,lineno:this.lineno,column:this.column,filename:this.filename};if(this.val)json.val=this.val;return json};Member.prototype.toString=function(){return this.left.toString()+"."+this.right.toString()}});require.register("nodes/atblock.js",function(module,exports,require){var Node=require("./node");var Atblock=module.exports=function Atblock(){Node.call(this)};Atblock.prototype.__defineGetter__("nodes",function(){return this.block.nodes});Atblock.prototype.__proto__=Node.prototype;Atblock.prototype.clone=function(parent){var clone=new Atblock;clone.block=this.block.clone(parent,clone);clone.lineno=this.lineno;clone.column=this.column;clone.filename=this.filename;return clone};Atblock.prototype.toString=function(){return"@block"};Atblock.prototype.toJSON=function(){return{__type:"Atblock",block:this.block,lineno:this.lineno,column:this.column,fileno:this.fileno}}});require.register("nodes/atrule.js",function(module,exports,require){var Node=require("./node");var Atrule=module.exports=function Atrule(type){Node.call(this);this.type=type};Atrule.prototype.__proto__=Node.prototype;Atrule.prototype.__defineGetter__("hasOnlyProperties",function(){if(!this.block)return false;var nodes=this.block.nodes;for(var i=0,len=nodes.length;i","=",":","&","&&","~","{","}",".","..","/"];var pseudoSelectors=["matches","not","dir","lang","any-link","link","visited","local-link","target","scope","hover","active","focus","drop","current","past","future","enabled","disabled","read-only","read-write","placeholder-shown","checked","indeterminate","valid","invalid","in-range","out-of-range","required","optional","user-error","root","empty","blank","nth-child","nth-last-child","first-child","last-child","only-child","nth-of-type","nth-last-of-type","first-of-type","last-of-type","only-of-type","nth-match","nth-last-match","nth-column","nth-last-column","first-line","first-letter","before","after","selection"];var Parser=module.exports=function Parser(str,options){var self=this;options=options||{};this.lexer=new Lexer(str,options);this.prefix=options.prefix||"";this.root=options.root||new nodes.Root;this.state=["root"];this.stash=[];this.parens=0;this.css=0;this.state.pop=function(){self.prevState=[].pop.call(this)}};Parser.prototype={constructor:Parser,currentState:function(){return this.state[this.state.length-1]},previousState:function(){return this.state[this.state.length-2]},parse:function(){var block=this.parent=this.root;while("eos"!=this.peek().type){this.skipWhitespace();if("eos"==this.peek().type)break;var stmt=this.statement();this.accept(";");if(!stmt)this.error("unexpected token {peek}, not allowed at the root level");block.push(stmt)}return block},error:function(msg){var type=this.peek().type,val=undefined==this.peek().val?"":" "+this.peek().toString();if(val.trim()==type.trim())val="";throw new errors.ParseError(msg.replace("{peek}",'"'+type+val+'"'))},accept:function(type){if(type==this.peek().type){return this.next()}},expect:function(type){if(type!=this.peek().type){this.error('expected "'+type+'", got {peek}')}return this.next()},next:function(){var tok=this.stash.length?this.stash.pop():this.lexer.next(),line=tok.lineno,column=tok.column||1;if(tok.val&&tok.val.nodeName){tok.val.lineno=line;tok.val.column=column}nodes.lineno=line;nodes.column=column;return tok},peek:function(){return this.lexer.peek()},lookahead:function(n){return this.lexer.lookahead(n)},isSelectorToken:function(n){var la=this.lookahead(n).type;switch(la){case"for":return this.bracketed;case"[":this.bracketed=true;return true;case"]":this.bracketed=false;return true;default:return~selectorTokens.indexOf(la)}},isPseudoSelector:function(n){var val=this.lookahead(n).val;return val&&~pseudoSelectors.indexOf(val.name)},lineContains:function(type){var i=1,la;while(la=this.lookahead(i++)){if(~["indent","outdent","newline","eos"].indexOf(la.type))return;if(type==la.type)return true}},selectorToken:function(){if(this.isSelectorToken(1)){if("{"==this.peek().type){if(!this.lineContains("}"))return;var i=0,la;while(la=this.lookahead(++i)){if("}"==la.type){if(i==2||i==3&&this.lookahead(i-1).type=="space")return;break}if(":"==la.type)return}}return this.next()}},skip:function(tokens){while(~tokens.indexOf(this.peek().type))this.next()},skipWhitespace:function(){this.skip(["space","indent","outdent","newline"])},skipNewlines:function(){while("newline"==this.peek().type)this.next()},skipSpaces:function(){while("space"==this.peek().type)this.next()},skipSpacesAndComments:function(){while("space"==this.peek().type||"comment"==this.peek().type)this.next()},looksLikeFunctionDefinition:function(i){return"indent"==this.lookahead(i).type||"{"==this.lookahead(i).type},looksLikeSelector:function(fromProperty){var i=1,brace;if(fromProperty&&":"==this.lookahead(i+1).type&&(this.lookahead(i+1).space||"indent"==this.lookahead(i+2).type))return false;while("ident"==this.lookahead(i).type&&("newline"==this.lookahead(i+1).type||","==this.lookahead(i+1).type))i+=2;while(this.isSelectorToken(i)||","==this.lookahead(i).type){if("selector"==this.lookahead(i).type)return true;if("&"==this.lookahead(i+1).type)return true;if("."==this.lookahead(i).type&&"ident"==this.lookahead(i+1).type)return true;if("*"==this.lookahead(i).type&&"newline"==this.lookahead(i+1).type)return true;if(":"==this.lookahead(i).type&&":"==this.lookahead(i+1).type)return true;if("color"==this.lookahead(i).type&&"newline"==this.lookahead(i-1).type)return true;if(this.looksLikeAttributeSelector(i))return true;if(("="==this.lookahead(i).type||"function"==this.lookahead(i).type)&&"{"==this.lookahead(i+1).type)return false;if(":"==this.lookahead(i).type&&!this.isPseudoSelector(i+1)&&this.lineContains("."))return false;if("{"==this.lookahead(i).type)brace=true;else if("}"==this.lookahead(i).type)brace=false;if(brace&&":"==this.lookahead(i).type)return true;if("space"==this.lookahead(i).type&&"{"==this.lookahead(i+1).type)return true;if(":"==this.lookahead(i++).type&&!this.lookahead(i-1).space&&this.isPseudoSelector(i))return true;if("space"==this.lookahead(i).type&&"newline"==this.lookahead(i+1).type&&"{"==this.lookahead(i+2).type)return true;if(","==this.lookahead(i).type&&"newline"==this.lookahead(i+1).type)return true}if(","==this.lookahead(i).type&&"newline"==this.lookahead(i+1).type)return true;if("{"==this.lookahead(i).type&&"newline"==this.lookahead(i+1).type)return true;if(this.css){if(";"==this.lookahead(i).type||"}"==this.lookahead(i-1).type)return false}while(!~["indent","outdent","newline","for","if",";","}","eos"].indexOf(this.lookahead(i).type))++i;if("indent"==this.lookahead(i).type)return true},looksLikeAttributeSelector:function(n){var type=this.lookahead(n).type;if("="==type&&this.bracketed)return true;return("ident"==type||"string"==type)&&"]"==this.lookahead(n+1).type&&("newline"==this.lookahead(n+2).type||this.isSelectorToken(n+2))&&!this.lineContains(":")&&!this.lineContains("=")},looksLikeKeyframe:function(){var i=2,type;switch(this.lookahead(i).type){case"{":case"indent":case",":return true;case"newline":while("unit"==this.lookahead(++i).type||"newline"==this.lookahead(i).type);type=this.lookahead(i).type;return"indent"==type||"{"==type}},stateAllowsSelector:function(){switch(this.currentState()){case"root":case"atblock":case"selector":case"conditional":case"function":case"atrule":case"for":return true}},assignAtblock:function(expr){try{expr.push(this.atblock(expr))}catch(err){this.error("invalid right-hand side operand in assignment, got {peek}")}},statement:function(){var stmt=this.stmt(),state=this.prevState,block,op;if(this.allowPostfix){this.allowPostfix=false;state="expression"}switch(state){case"assignment":case"expression":case"function arguments":while(op=this.accept("if")||this.accept("unless")||this.accept("for")){switch(op.type){case"if":case"unless":stmt=new nodes.If(this.expression(),stmt);stmt.postfix=true;stmt.negate="unless"==op.type;this.accept(";");break;case"for":var key,val=this.id().name;if(this.accept(","))key=this.id().name;this.expect("in");var each=new nodes.Each(val,key,this.expression());block=new nodes.Block(this.parent,each);block.push(stmt);each.block=block;stmt=each}}}return stmt},stmt:function(){var type=this.peek().type;switch(type){case"keyframes":return this.keyframes();case"-moz-document":return this.mozdocument();case"comment":case"selector":case"extend":case"literal":case"charset":case"namespace":case"require":case"extend":case"media":case"atrule":case"ident":case"scope":case"supports":case"unless":return this[type]();case"function":return this.fun();case"import":return this.atimport();case"if":return this.ifstmt();case"for":return this.forin();case"return":return this.ret();case"{":return this.property();default:if(this.stateAllowsSelector()){switch(type){case"color":case"~":case">":case"<":case":":case"&":case"&&":case"[":case".":case"/":return this.selector();case"..":if("/"==this.lookahead(2).type)return this.selector();case"+":return"function"==this.lookahead(2).type?this.functionCall():this.selector();case"*":return this.property();case"unit":if(this.looksLikeKeyframe())return this.selector();case"-":if("{"==this.lookahead(2).type)return this.property()}}var expr=this.expression();if(expr.isEmpty)this.error("unexpected {peek}");return expr}},block:function(node,scope){var delim,stmt,next,block=this.parent=new nodes.Block(this.parent,node);if(false===scope)block.scope=false;this.accept("newline");if(this.accept("{")){this.css++;delim="}";this.skipWhitespace()}else{delim="outdent";this.expect("indent")}while(delim!=this.peek().type){if(this.css){if(this.accept("newline")||this.accept("indent"))continue;stmt=this.statement();this.accept(";");this.skipWhitespace()}else{if(this.accept("newline"))continue;next=this.lookahead(2).type;if("indent"==this.peek().type&&~["outdent","newline","comment"].indexOf(next)){this.skip(["indent","outdent"]);continue}if("eos"==this.peek().type)return block;stmt=this.statement();this.accept(";")}if(!stmt)this.error("unexpected token {peek} in block");block.push(stmt)}if(this.css){this.skipWhitespace();this.expect("}");this.skipSpaces();this.css--}else{this.expect("outdent")}this.parent=block.parent;return block},comment:function(){var node=this.next().val;this.skipSpaces();return node},forin:function(){this.expect("for");var key,val=this.id().name;if(this.accept(","))key=this.id().name;this.expect("in");this.state.push("for");this.cond=true;var each=new nodes.Each(val,key,this.expression());this.cond=false;each.block=this.block(each,false);this.state.pop();return each},ret:function(){this.expect("return");var expr=this.expression();return expr.isEmpty?new nodes.Return:new nodes.Return(expr)},unless:function(){this.expect("unless");this.state.push("conditional");this.cond=true;var node=new nodes.If(this.expression(),true);this.cond=false;node.block=this.block(node,false);this.state.pop();return node},ifstmt:function(){this.expect("if");this.state.push("conditional");this.cond=true;var node=new nodes.If(this.expression()),cond,block;this.cond=false;node.block=this.block(node,false);this.skip(["newline","comment"]);while(this.accept("else")){if(this.accept("if")){this.cond=true;cond=this.expression();this.cond=false;block=this.block(node,false);node.elses.push(new nodes.If(cond,block))}else{node.elses.push(this.block(node,false));break}this.skip(["newline","comment"])}this.state.pop();return node},atblock:function(node){if(!node)this.expect("atblock");node=new nodes.Atblock;this.state.push("atblock");node.block=this.block(node,false);this.state.pop();return node},atrule:function(){var type=this.expect("atrule").val,node=new nodes.Atrule(type),tok;this.skipSpacesAndComments();node.segments=this.selectorParts();this.skipSpacesAndComments();tok=this.peek().type;if("indent"==tok||"{"==tok||"newline"==tok&&"{"==this.lookahead(2).type){this.state.push("atrule");node.block=this.block(node);this.state.pop()}return node},scope:function(){this.expect("scope");var selector=this.selectorParts().map(function(selector){return selector.val}).join("");this.selectorScope=selector.trim();return nodes.nil},supports:function(){this.expect("supports");var node=new nodes.Supports(this.supportsCondition());this.state.push("atrule");node.block=this.block(node);this.state.pop();return node},supportsCondition:function(){var node=this.supportsNegation()||this.supportsOp();if(!node){this.cond=true;node=this.expression();this.cond=false}return node},supportsNegation:function(){if(this.accept("not")){var node=new nodes.Expression;node.push(new nodes.Literal("not"));node.push(this.supportsFeature());return node}},supportsOp:function(){var feature=this.supportsFeature(),op,expr;if(feature){expr=new nodes.Expression;expr.push(feature);while(op=this.accept("&&")||this.accept("||")){expr.push(new nodes.Literal("&&"==op.val?"and":"or"));expr.push(this.supportsFeature())}return expr}},supportsFeature:function(){this.skipSpacesAndComments();if("("==this.peek().type){var la=this.lookahead(2).type;if("ident"==la||"{"==la){return this.feature()}else{this.expect("(");var node=new nodes.Expression;node.push(new nodes.Literal("("));node.push(this.supportsCondition());this.expect(")");node.push(new nodes.Literal(")"));this.skipSpacesAndComments();return node}}},extend:function(){var tok=this.expect("extend"),selectors=[],sel,node,arr;do{arr=this.selectorParts();if(!arr.length)continue;sel=new nodes.Selector(arr);selectors.push(sel);if("!"!==this.peek().type)continue;tok=this.lookahead(2);if("ident"!==tok.type||"optional"!==tok.val.name)continue;this.skip(["!","ident"]);sel.optional=true}while(this.accept(","));node=new nodes.Extend(selectors);node.lineno=tok.lineno;node.column=tok.column;return node},media:function(){this.expect("media");this.state.push("atrule");var media=new nodes.Media(this.queries());media.block=this.block(media);this.state.pop();return media},queries:function(){var queries=new nodes.QueryList,skip=["comment","newline","space"];do{this.skip(skip);queries.push(this.query());this.skip(skip)}while(this.accept(","));return queries},query:function(){var query=new nodes.Query,expr,pred,id;if("ident"==this.peek().type&&("."==this.lookahead(2).type||"["==this.lookahead(2).type)){this.cond=true;expr=this.expression();this.cond=false;query.push(new nodes.Feature(expr.nodes));return query}if(pred=this.accept("ident")||this.accept("not")){pred=new nodes.Literal(pred.val.string||pred.val);this.skipSpacesAndComments();if(id=this.accept("ident")){query.type=id.val;query.predicate=pred}else{query.type=pred}this.skipSpacesAndComments();if(!this.accept("&&"))return query}do{query.push(this.feature())}while(this.accept("&&"));return query},feature:function(){this.skipSpacesAndComments();this.expect("(");this.skipSpacesAndComments();var node=new nodes.Feature(this.interpolate());this.skipSpacesAndComments();this.accept(":");this.skipSpacesAndComments();this.inProperty=true;node.expr=this.list();this.inProperty=false;this.skipSpacesAndComments();this.expect(")");this.skipSpacesAndComments();return node},mozdocument:function(){this.expect("-moz-document");var mozdocument=new nodes.Atrule("-moz-document"),calls=[];do{this.skipSpacesAndComments();calls.push(this.functionCall());this.skipSpacesAndComments()}while(this.accept(","));mozdocument.segments=[new nodes.Literal(calls.join(", "))];this.state.push("atrule");mozdocument.block=this.block(mozdocument,false);this.state.pop();return mozdocument},atimport:function(){this.expect("import");this.allowPostfix=true;return new nodes.Import(this.expression(),false)},require:function(){this.expect("require");this.allowPostfix=true;return new nodes.Import(this.expression(),true)},charset:function(){this.expect("charset");var str=this.expect("string").val;this.allowPostfix=true;return new nodes.Charset(str)},namespace:function(){var str,prefix;this.expect("namespace");this.skipSpacesAndComments();if(prefix=this.accept("ident")){prefix=prefix.val}this.skipSpacesAndComments();str=this.accept("string")||this.url();this.allowPostfix=true;return new nodes.Namespace(str,prefix)},keyframes:function(){var tok=this.expect("keyframes"),keyframes;this.skipSpacesAndComments();keyframes=new nodes.Keyframes(this.selectorParts(),tok.val);this.skipSpacesAndComments();this.state.push("atrule");keyframes.block=this.block(keyframes);this.state.pop();return keyframes},literal:function(){return this.expect("literal").val},id:function(){var tok=this.expect("ident");this.accept("space");return tok.val},ident:function(){var i=2,la=this.lookahead(i).type;while("space"==la)la=this.lookahead(++i).type;switch(la){case"=":case"?=":case"-=":case"+=":case"*=":case"/=":case"%=":return this.assignment();case".":if("space"==this.lookahead(i-1).type)return this.selector();if(this._ident==this.peek())return this.id();while("="!=this.lookahead(++i).type&&!~["[",",","newline","indent","eos"].indexOf(this.lookahead(i).type));if("="==this.lookahead(i).type){this._ident=this.peek();return this.expression()}else if(this.looksLikeSelector()&&this.stateAllowsSelector()){return this.selector()}case"[":if(this._ident==this.peek())return this.id();while("]"!=this.lookahead(i++).type&&"selector"!=this.lookahead(i).type&&"eos"!=this.lookahead(i).type);if("="==this.lookahead(i).type){this._ident=this.peek();return this.expression()}else if(this.looksLikeSelector()&&this.stateAllowsSelector()){return this.selector()}case"-":case"+":case"/":case"*":case"%":case"**":case"&&":case"||":case">":case"<":case">=":case"<=":case"!=":case"==":case"?":case"in":case"is a":case"is defined":if(this._ident==this.peek()){return this.id()}else{this._ident=this.peek();switch(this.currentState()){case"for":case"selector":return this.property();case"root":case"atblock":case"atrule":return"["==la?this.subscript():this.selector();case"function":case"conditional":return this.looksLikeSelector()?this.selector():this.expression();default:return this.operand?this.id():this.expression()}}default:switch(this.currentState()){case"root":return this.selector();case"for":case"selector":case"function":case"conditional":case"atblock":case"atrule":return this.property();default:var id=this.id();if("interpolation"==this.previousState())id.mixin=true;return id}}},interpolate:function(){var node,segs=[],star;star=this.accept("*");if(star)segs.push(new nodes.Literal("*"));while(true){if(this.accept("{")){this.state.push("interpolation");segs.push(this.expression());this.expect("}");this.state.pop()}else if(node=this.accept("-")){segs.push(new nodes.Literal("-"))}else if(node=this.accept("ident")){segs.push(node.val)}else{break}}if(!segs.length)this.expect("ident");return segs},property:function(){if(this.looksLikeSelector(true))return this.selector();var ident=this.interpolate(),prop=new nodes.Property(ident),ret=prop;this.accept("space");if(this.accept(":"))this.accept("space");this.state.push("property");this.inProperty=true;prop.expr=this.list();if(prop.expr.isEmpty)ret=ident[0];this.inProperty=false;this.allowPostfix=true;this.state.pop();this.accept(";");return ret},selector:function(){var arr,group=new nodes.Group,scope=this.selectorScope,isRoot="root"==this.currentState(),selector;do{this.accept("newline");arr=this.selectorParts();if(isRoot&&scope)arr.unshift(new nodes.Literal(scope+" "));if(arr.length){selector=new nodes.Selector(arr);selector.lineno=arr[0].lineno;selector.column=arr[0].column;group.push(selector)}}while(this.accept(",")||this.accept("newline"));if("selector-parts"==this.currentState())return group.nodes;this.state.push("selector");group.block=this.block(group);this.state.pop();return group},selectorParts:function(){var tok,arr=[];while(tok=this.selectorToken()){switch(tok.type){case"{":this.skipSpaces();var expr=this.expression();this.skipSpaces();this.expect("}");arr.push(expr);break;case this.prefix&&".":var literal=new nodes.Literal(tok.val+this.prefix);literal.prefixed=true;arr.push(literal);break;case"comment":break;case"color":case"unit":arr.push(new nodes.Literal(tok.val.raw));break;case"space":arr.push(new nodes.Literal(" "));break;case"function":arr.push(new nodes.Literal(tok.val.name+"("));break;case"ident":arr.push(new nodes.Literal(tok.val.name||tok.val.string));break;default:arr.push(new nodes.Literal(tok.val));if(tok.space)arr.push(new nodes.Literal(" "))}}return arr},assignment:function(){var op,node,name=this.id().name;if(op=this.accept("=")||this.accept("?=")||this.accept("+=")||this.accept("-=")||this.accept("*=")||this.accept("/=")||this.accept("%=")){this.state.push("assignment");var expr=this.list();if(expr.isEmpty)this.assignAtblock(expr);node=new nodes.Ident(name,expr);this.state.pop();switch(op.type){case"?=":var defined=new nodes.BinOp("is defined",node),lookup=new nodes.Expression;lookup.push(new nodes.Ident(name));node=new nodes.Ternary(defined,lookup,node);break;case"+=":case"-=":case"*=":case"/=":case"%=":node.val=new nodes.BinOp(op.type[0],new nodes.Ident(name),expr);break}}return node},fun:function(){var parens=1,i=2,tok;out:while(tok=this.lookahead(i++)){switch(tok.type){case"function":case"(":++parens;break;case")":if(!--parens)break out;break;case"eos":this.error('failed to find closing paren ")"')}}switch(this.currentState()){case"expression":return this.functionCall();default:return this.looksLikeFunctionDefinition(i)?this.functionDefinition():this.expression()}},url:function(){this.expect("function");this.state.push("function arguments");var args=this.args();this.expect(")");this.state.pop();return new nodes.Call("url",args)},functionCall:function(){var withBlock=this.accept("+");if("url"==this.peek().val.name)return this.url();var name=this.expect("function").val.name;this.state.push("function arguments");this.parens++;var args=this.args();this.expect(")");this.parens--;this.state.pop();var call=new nodes.Call(name,args);if(withBlock){this.state.push("function");call.block=this.block(call);this.state.pop()}return call},functionDefinition:function(){var name=this.expect("function").val.name;this.state.push("function params");this.skipWhitespace();var params=this.params();this.skipWhitespace();this.expect(")");this.state.pop();this.state.push("function");var fn=new nodes.Function(name,params);fn.block=this.block(fn);this.state.pop();return new nodes.Ident(name,fn)},params:function(){var tok,node,params=new nodes.Params;while(tok=this.accept("ident")){this.accept("space");params.push(node=tok.val);if(this.accept("...")){node.rest=true}else if(this.accept("=")){node.val=this.expression()}this.skipWhitespace();this.accept(",");this.skipWhitespace()}return params},args:function(){var args=new nodes.Arguments,keyword;do{if("ident"==this.peek().type&&":"==this.lookahead(2).type){keyword=this.next().val.string;this.expect(":");args.map[keyword]=this.expression()}else{args.push(this.expression())}}while(this.accept(","));return args},list:function(){var node=this.expression();while(this.accept(",")){if(node.isList){list.push(this.expression())}else{var list=new nodes.Expression(true);list.push(node);list.push(this.expression());node=list}}return node},expression:function(){var node,expr=new nodes.Expression;this.state.push("expression");while(node=this.negation()){if(!node)this.error("unexpected token {peek} in expression");expr.push(node)}this.state.pop();if(expr.nodes.length){expr.lineno=expr.nodes[0].lineno;expr.column=expr.nodes[0].column}return expr},negation:function(){if(this.accept("not")){return new nodes.UnaryOp("!",this.negation())}return this.ternary()},ternary:function(){var node=this.logical();if(this.accept("?")){var trueExpr=this.expression();this.expect(":");var falseExpr=this.expression();node=new nodes.Ternary(node,trueExpr,falseExpr)}return node},logical:function(){var op,node=this.typecheck();while(op=this.accept("&&")||this.accept("||")){node=new nodes.BinOp(op.type,node,this.typecheck())}return node},typecheck:function(){var op,node=this.equality();while(op=this.accept("is a")){this.operand=true;if(!node)this.error('illegal unary "'+op+'", missing left-hand operand');node=new nodes.BinOp(op.type,node,this.equality());this.operand=false}return node},equality:function(){var op,node=this.inop();while(op=this.accept("==")||this.accept("!=")){this.operand=true;if(!node)this.error('illegal unary "'+op+'", missing left-hand operand');node=new nodes.BinOp(op.type,node,this.inop());this.operand=false}return node},inop:function(){var node=this.relational();while(this.accept("in")){this.operand=true;if(!node)this.error('illegal unary "in", missing left-hand operand');node=new nodes.BinOp("in",node,this.relational());this.operand=false}return node},relational:function(){var op,node=this.range();while(op=this.accept(">=")||this.accept("<=")||this.accept("<")||this.accept(">")){this.operand=true;if(!node)this.error('illegal unary "'+op+'", missing left-hand operand');node=new nodes.BinOp(op.type,node,this.range());this.operand=false}return node},range:function(){var op,node=this.additive();if(op=this.accept("...")||this.accept("..")){this.operand=true;if(!node)this.error('illegal unary "'+op+'", missing left-hand operand');node=new nodes.BinOp(op.val,node,this.additive());this.operand=false}return node},additive:function(){var op,node=this.multiplicative();while(op=this.accept("+")||this.accept("-")){this.operand=true;node=new nodes.BinOp(op.type,node,this.multiplicative());this.operand=false}return node},multiplicative:function(){var op,node=this.defined();while(op=this.accept("**")||this.accept("*")||this.accept("/")||this.accept("%")){this.operand=true;if("/"==op&&this.inProperty&&!this.parens){this.stash.push(new Token("literal",new nodes.Literal("/")));this.operand=false;return node}else{if(!node)this.error('illegal unary "'+op+'", missing left-hand operand');node=new nodes.BinOp(op.type,node,this.defined());this.operand=false}}return node},defined:function(){var node=this.unary();if(this.accept("is defined")){if(!node)this.error('illegal unary "is defined", missing left-hand operand');node=new nodes.BinOp("is defined",node)}return node},unary:function(){var op,node;if(op=this.accept("!")||this.accept("~")||this.accept("+")||this.accept("-")){this.operand=true;node=this.unary();if(!node)this.error('illegal unary "'+op+'"');node=new nodes.UnaryOp(op.type,node);this.operand=false;return node}return this.subscript()},subscript:function(){var node=this.member(),id;while(this.accept("[")){node=new nodes.BinOp("[]",node,this.expression());this.expect("]")}if(this.accept("=")){node.op+="=";node.val=this.list();if(node.val.isEmpty)this.assignAtblock(node.val)}return node},member:function(){var node=this.primary();if(node){while(this.accept(".")){var id=new nodes.Ident(this.expect("ident").val.string);node=new nodes.Member(node,id)}this.skipSpaces();if(this.accept("=")){node.val=this.list();if(node.val.isEmpty)this.assignAtblock(node.val)}}return node},object:function(){var obj=new nodes.Object,id,val,comma;this.expect("{");this.skipWhitespace();while(!this.accept("}")){if(this.accept("comment")||this.accept("newline"))continue;if(!comma)this.accept(",");id=this.accept("ident")||this.accept("string");if(!id)this.error('expected "ident" or "string", got {peek}');id=id.val.hash;this.skipSpacesAndComments();this.expect(":");val=this.expression();obj.set(id,val);comma=this.accept(",");this.skipWhitespace()}return obj},primary:function(){var tok;this.skipSpaces();if(this.accept("(")){++this.parens;var expr=this.expression(),paren=this.expect(")");--this.parens;if(this.accept("%"))expr.push(new nodes.Ident("%"));tok=this.peek();if(!paren.space&&"ident"==tok.type&&~units.indexOf(tok.val.string)){expr.push(new nodes.Ident(tok.val.string));this.next()}return expr}tok=this.peek();switch(tok.type){case"null":case"unit":case"color":case"string":case"literal":case"boolean":case"comment":return this.next().val;case!this.cond&&"{":return this.object();case"atblock":return this.atblock();case"atrule":var id=new nodes.Ident(this.next().val);id.property=true; +return id;case"ident":return this.ident();case"function":return tok.anonymous?this.functionDefinition():this.functionCall()}}}});require.register("renderer.js",function(module,exports,require){var Parser=require("./parser"),Evaluator=require("./visitor/evaluator"),Normalizer=require("./visitor/normalizer"),utils=require("./utils"),nodes=require("./nodes"),join=require("./path").join;module.exports=Renderer;function Renderer(str,options){options=options||{};options.globals=options.globals||{};options.functions=options.functions||{};options.use=options.use||[];options.use=Array.isArray(options.use)?options.use:[options.use];options.imports=[];options.paths=options.paths||[];options.filename=options.filename||"stylus";options.Evaluator=options.Evaluator||Evaluator;this.options=options;this.str=str}Renderer.prototype.render=function(fn){var parser=this.parser=new Parser(this.str,this.options);for(var i=0,len=this.options.use.length;i","+","~"];var SelectorParser=module.exports=function SelectorParser(str,stack,parts){this.str=str;this.stack=stack||[];this.parts=parts||[];this.pos=0;this.level=2;this.nested=true;this.ignore=false};SelectorParser.prototype.skip=function(len){this.str=this.str.substr(len);this.pos+=len};SelectorParser.prototype.skipSpaces=function(){while(" "==this.str[0])this.skip(1)};SelectorParser.prototype.advance=function(){return this.root()||this.relative()||this.initial()||this.escaped()||this.parent()||this.partial()||this.char()};SelectorParser.prototype.root=function(){if(!this.pos&&"/"==this.str[0]&&"deep"!=this.str.slice(1,5)){this.nested=false;this.skip(1)}};SelectorParser.prototype.relative=function(multi){if((!this.pos||multi)&&"../"==this.str.slice(0,3)){this.nested=false;this.skip(3);while(this.relative(true))this.level++;if(!this.raw){var ret=this.stack[this.stack.length-this.level];if(ret){return ret}else{this.ignore=true}}}};SelectorParser.prototype.initial=function(){if(!this.pos&&"~"==this.str[0]&&"/"==this.str[1]){this.nested=false;this.skip(2);return this.stack[0]}};SelectorParser.prototype.escaped=function(){if("\\"==this.str[0]){var char=this.str[1];if("&"==char||"^"==char){this.skip(2);return char}}};SelectorParser.prototype.parent=function(){if("&"==this.str[0]){this.nested=false;if(!this.pos&&(!this.stack.length||this.raw)){var i=0;while(" "==this.str[++i]);if(~COMBINATORS.indexOf(this.str[i])){this.skip(i+1);return}}this.skip(1);if(!this.raw)return this.stack[this.stack.length-1]}};SelectorParser.prototype.partial=function(){if("^"==this.str[0]&&"["==this.str[1]){this.skip(2);this.skipSpaces();var ret=this.range();this.skipSpaces();if("]"!=this.str[0])return"^[";this.nested=false;this.skip(1);if(ret){return ret}else{this.ignore=true}}};SelectorParser.prototype.number=function(){var i=0,ret="";if("-"==this.str[i])ret+=this.str[i++];while(this.str.charCodeAt(i)>=48&&this.str.charCodeAt(i)<=57)ret+=this.str[i++];if(ret){this.skip(i);return Number(ret)}};SelectorParser.prototype.range=function(){var start=this.number(),ret;if(".."==this.str.slice(0,2)){this.skip(2);var end=this.number(),len=this.parts.length;if(start<0)start=len+start-1;if(end<0)end=len+end-1;if(start>end){var tmp=start;start=end;end=tmp}if(end-1){return n.toString().replace("0.",".")+type}}return(float?parseFloat(n.toFixed(15)):n).toString()+type};Compiler.prototype.visitGroup=function(group){var stack=this.keyframe?[]:this.stack,comma=this.compress?",":",\n";stack.push(group.nodes);if(group.block.hasProperties){var selectors=utils.compileSelectors.call(this,stack),len=selectors.length;if(len){if(this.keyframe)comma=this.compress?",":", ";for(var i=0;i200){throw new RangeError("Maximum stylus call stack size exceeded")}if("expression"==fn.nodeName)fn=fn.first;this.ret++;var args=this.visit(call.args);for(var key in args.map){args.map[key]=this.visit(args.map[key].clone())}this.ret--;if(fn.fn){ret=this.invokeBuiltin(fn.fn,args)}else if("function"==fn.nodeName){if(call.block)call.block=this.visit(call.block);ret=this.invokeFunction(fn,args,call.block)}this.calling.pop();this.ignoreColors=false;return ret};Evaluator.prototype.visitIdent=function(ident){var prop;if(ident.property){if(prop=this.lookupProperty(ident.name)){return this.visit(prop.expr.clone())}return nodes.nil}else if(ident.val.isNull){var val=this.lookup(ident.name);if(val&&ident.mixin)this.mixinNode(val);return val?this.visit(val):ident}else{this.ret++;ident.val=this.visit(ident.val);this.ret--;this.currentScope.add(ident);return ident.val}};Evaluator.prototype.visitBinOp=function(binop){if("is defined"==binop.op)return this.isDefined(binop.left); +this.ret++;var op=binop.op,left=this.visit(binop.left),right="||"==op||"&&"==op?binop.right:this.visit(binop.right);var val=binop.val?this.visit(binop.val):null;this.ret--;try{return this.visit(left.operate(op,right,val))}catch(err){if("CoercionError"==err.name){switch(op){case"==":return nodes.no;case"!=":return nodes.yes}}throw err}};Evaluator.prototype.visitUnaryOp=function(unary){var op=unary.op,node=this.visit(unary.expr);if("!"!=op){node=node.first.clone();utils.assertType(node,"unit")}switch(op){case"-":node.val=-node.val;break;case"+":node.val=+node.val;break;case"~":node.val=~node.val;break;case"!":return node.toBoolean().negate()}return node};Evaluator.prototype.visitTernary=function(ternary){var ok=this.visit(ternary.cond).toBoolean();return ok.isTrue?this.visit(ternary.trueExpr):this.visit(ternary.falseExpr)};Evaluator.prototype.visitExpression=function(expr){for(var i=0,len=expr.nodes.length;i1){for(var i=0;i0&&!~part.indexOf("&")){part="/"+part}s=new nodes.Selector([new nodes.Literal(part)]);s.val=part;s.block=group.block;group.nodes[i++]=s}});stack.push(group.nodes);var selectors=utils.compileSelectors(stack,true);selectors.forEach(function(selector){map[selector]=map[selector]||[];map[selector].push(group)});this.extend(group,selectors);stack.pop();return group};Normalizer.prototype.visitFunction=function(){return nodes.nil};Normalizer.prototype.visitMedia=function(media){var medias=[],group=this.closestGroup(media.block),parent;function mergeQueries(block){block.nodes.forEach(function(node,i){switch(node.nodeName){case"media":node.val=media.val.merge(node.val);medias.push(node);block.nodes[i]=nodes.nil;break;case"block":mergeQueries(node);break;default:if(node.block&&node.block.nodes)mergeQueries(node.block)}})}mergeQueries(media.block);this.bubble(media);if(medias.length){medias.forEach(function(node){if(group){group.block.push(node)}else{this.root.nodes.splice(++this.rootIndex,0,node)}node=this.visit(node);parent=node.block.parent;if(node.bubbled&&(!group||"group"==parent.node.nodeName)){node.group.block=node.block.nodes[0].block;node.block.nodes[0]=node.group}},this)}return media};Normalizer.prototype.visitSupports=function(node){this.bubble(node);return node};Normalizer.prototype.visitAtrule=function(node){if(node.block)node.block=this.visit(node.block);return node};Normalizer.prototype.visitKeyframes=function(node){var frames=node.block.nodes.filter(function(frame){return frame.block&&frame.block.hasProperties});node.frames=frames.length;return node};Normalizer.prototype.visitImport=function(node){this.imports.push(node);return this.hoist?nodes.nil:node};Normalizer.prototype.visitCharset=function(node){this.charset=node;return this.hoist?nodes.nil:node};Normalizer.prototype.extend=function(group,selectors){var map=this.map,self=this,parent=this.closestGroup(group.block);group.extends.forEach(function(extend){var groups=map[extend.selector];if(!groups){if(extend.optional)return;var err=new Error('Failed to @extend "'+extend.selector+'"');err.lineno=extend.lineno;err.column=extend.column;throw err}selectors.forEach(function(selector){var node=new nodes.Selector;node.val=selector;node.inherits=false;groups.forEach(function(group){if(!parent||parent!=group)self.extend(group,selectors);group.push(node)})})});group.block=this.visit(group.block)}});return require("stylus")}();