From 62ee2f0a39f10be75322dc0f77d1346e9731ffbf Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Fri, 8 Jun 2018 10:31:12 -0700 Subject: [PATCH] 2.2.2 --- dist/aphrodite.js | 230 ++++++++------------------------------ dist/aphrodite.umd.js | 230 ++++++++------------------------------ dist/aphrodite.umd.min.js | 2 +- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 93 insertions(+), 373 deletions(-) diff --git a/dist/aphrodite.js b/dist/aphrodite.js index da0c290..f60e936 100644 --- a/dist/aphrodite.js +++ b/dist/aphrodite.js @@ -381,13 +381,6 @@ function makeRequestCallFromTimer(callback) { // its existence. rawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer; -var browserRaw$1 = /*#__PURE__*/Object.freeze({ - default: browserRaw, - __moduleExports: browserRaw -}); - -var rawAsap$1 = ( browserRaw$1 && browserRaw ) || browserRaw$1; - // rawAsap provides everything we need except exception management. // RawTasks are recycled to reduce GC churn. @@ -395,7 +388,7 @@ var freeTasks = []; // We queue errors to ensure they are thrown in right order (FIFO). // Array-as-queue is good enough here, since we are just dealing with exceptions. var pendingErrors = []; -var requestErrorThrow = rawAsap$1.makeRequestCallFromTimer(throwFirstError); +var requestErrorThrow = browserRaw.makeRequestCallFromTimer(throwFirstError); function throwFirstError() { if (pendingErrors.length) { @@ -420,7 +413,7 @@ function asap(task) { rawTask = new RawTask(); } rawTask.task = task; - rawAsap$1(rawTask); + browserRaw(rawTask); } // We wrap tasks with recyclable task objects. A task object implements @@ -586,14 +579,7 @@ function capitalizeString(str) { module.exports = exports["default"]; }); -var capitalizeString = unwrapExports(capitalizeString_1); - -var capitalizeString$1 = /*#__PURE__*/Object.freeze({ - default: capitalizeString, - __moduleExports: capitalizeString_1 -}); - -var _capitalizeString = ( capitalizeString$1 && capitalizeString ) || capitalizeString$1; +unwrapExports(capitalizeString_1); var prefixProperty_1 = createCommonjsModule(function (module, exports) { @@ -604,7 +590,7 @@ exports.default = prefixProperty; -var _capitalizeString2 = _interopRequireDefault(_capitalizeString); +var _capitalizeString2 = _interopRequireDefault(capitalizeString_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -630,12 +616,7 @@ function prefixProperty(prefixProperties, property, style) { module.exports = exports["default"]; }); -var prefixProperty = unwrapExports(prefixProperty_1); - -var prefixProperty$1 = /*#__PURE__*/Object.freeze({ - default: prefixProperty, - __moduleExports: prefixProperty_1 -}); +unwrapExports(prefixProperty_1); var prefixValue_1 = createCommonjsModule(function (module, exports) { @@ -657,12 +638,7 @@ function prefixValue(plugins, property, value, style, metaData) { module.exports = exports["default"]; }); -var prefixValue = unwrapExports(prefixValue_1); - -var prefixValue$1 = /*#__PURE__*/Object.freeze({ - default: prefixValue, - __moduleExports: prefixValue_1 -}); +unwrapExports(prefixValue_1); var addNewValuesOnly_1 = createCommonjsModule(function (module, exports) { @@ -688,12 +664,7 @@ function addNewValuesOnly(list, values) { module.exports = exports["default"]; }); -var addNewValuesOnly = unwrapExports(addNewValuesOnly_1); - -var addNewValuesOnly$1 = /*#__PURE__*/Object.freeze({ - default: addNewValuesOnly, - __moduleExports: addNewValuesOnly_1 -}); +unwrapExports(addNewValuesOnly_1); var isObject_1 = createCommonjsModule(function (module, exports) { @@ -707,20 +678,7 @@ function isObject(value) { module.exports = exports["default"]; }); -var isObject = unwrapExports(isObject_1); - -var isObject$1 = /*#__PURE__*/Object.freeze({ - default: isObject, - __moduleExports: isObject_1 -}); - -var _prefixProperty = ( prefixProperty$1 && prefixProperty ) || prefixProperty$1; - -var _prefixValue = ( prefixValue$1 && prefixValue ) || prefixValue$1; - -var _addNewValuesOnly = ( addNewValuesOnly$1 && addNewValuesOnly ) || addNewValuesOnly$1; - -var _isObject = ( isObject$1 && isObject ) || isObject$1; +unwrapExports(isObject_1); var createPrefixer_1 = createCommonjsModule(function (module, exports) { @@ -731,19 +689,19 @@ exports.default = createPrefixer; -var _prefixProperty2 = _interopRequireDefault(_prefixProperty); +var _prefixProperty2 = _interopRequireDefault(prefixProperty_1); -var _prefixValue2 = _interopRequireDefault(_prefixValue); +var _prefixValue2 = _interopRequireDefault(prefixValue_1); -var _addNewValuesOnly2 = _interopRequireDefault(_addNewValuesOnly); +var _addNewValuesOnly2 = _interopRequireDefault(addNewValuesOnly_1); -var _isObject2 = _interopRequireDefault(_isObject); +var _isObject2 = _interopRequireDefault(isObject_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -809,14 +767,7 @@ function isPrefixedValue(value) { module.exports = exports['default']; }); -var isPrefixedValue = unwrapExports(isPrefixedValue_1); - -var isPrefixedValue$1 = /*#__PURE__*/Object.freeze({ - default: isPrefixedValue, - __moduleExports: isPrefixedValue_1 -}); - -var _isPrefixedValue = ( isPrefixedValue$1 && isPrefixedValue ) || isPrefixedValue$1; +unwrapExports(isPrefixedValue_1); var calc_1 = createCommonjsModule(function (module, exports) { @@ -827,7 +778,7 @@ exports.default = calc; -var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); +var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -842,12 +793,7 @@ function calc(property, value) { module.exports = exports["default"]; }); -var calc = unwrapExports(calc_1); - -var calc$1 = /*#__PURE__*/Object.freeze({ - default: calc, - __moduleExports: calc_1 -}); +unwrapExports(calc_1); var crossFade_1 = createCommonjsModule(function (module, exports) { @@ -858,7 +804,7 @@ exports.default = crossFade; -var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); +var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -874,12 +820,7 @@ function crossFade(property, value) { module.exports = exports["default"]; }); -var crossFade = unwrapExports(crossFade_1); - -var crossFade$1 = /*#__PURE__*/Object.freeze({ - default: crossFade, - __moduleExports: crossFade_1 -}); +unwrapExports(crossFade_1); var cursor_1 = createCommonjsModule(function (module, exports) { @@ -906,12 +847,7 @@ function cursor(property, value) { module.exports = exports["default"]; }); -var cursor = unwrapExports(cursor_1); - -var cursor$1 = /*#__PURE__*/Object.freeze({ - default: cursor, - __moduleExports: cursor_1 -}); +unwrapExports(cursor_1); var filter_1 = createCommonjsModule(function (module, exports) { @@ -922,7 +858,7 @@ exports.default = filter; -var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); +var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -938,12 +874,7 @@ function filter(property, value) { module.exports = exports["default"]; }); -var filter = unwrapExports(filter_1); - -var filter$1 = /*#__PURE__*/Object.freeze({ - default: filter, - __moduleExports: filter_1 -}); +unwrapExports(filter_1); var flex_1 = createCommonjsModule(function (module, exports) { @@ -964,12 +895,7 @@ function flex(property, value) { module.exports = exports["default"]; }); -var flex = unwrapExports(flex_1); - -var flex$1 = /*#__PURE__*/Object.freeze({ - default: flex, - __moduleExports: flex_1 -}); +unwrapExports(flex_1); var flexboxIE_1 = createCommonjsModule(function (module, exports) { @@ -1002,12 +928,7 @@ function flexboxIE(property, value, style) { module.exports = exports["default"]; }); -var flexboxIE = unwrapExports(flexboxIE_1); - -var flexboxIE$1 = /*#__PURE__*/Object.freeze({ - default: flexboxIE, - __moduleExports: flexboxIE_1 -}); +unwrapExports(flexboxIE_1); var flexboxOld_1 = createCommonjsModule(function (module, exports) { @@ -1050,12 +971,7 @@ function flexboxOld(property, value, style) { module.exports = exports["default"]; }); -var flexboxOld = unwrapExports(flexboxOld_1); - -var flexboxOld$1 = /*#__PURE__*/Object.freeze({ - default: flexboxOld, - __moduleExports: flexboxOld_1 -}); +unwrapExports(flexboxOld_1); var gradient_1 = createCommonjsModule(function (module, exports) { @@ -1066,7 +982,7 @@ exports.default = gradient; -var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); +var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -1084,12 +1000,7 @@ function gradient(property, value) { module.exports = exports["default"]; }); -var gradient = unwrapExports(gradient_1); - -var gradient$1 = /*#__PURE__*/Object.freeze({ - default: gradient, - __moduleExports: gradient_1 -}); +unwrapExports(gradient_1); var imageSet_1 = createCommonjsModule(function (module, exports) { @@ -1100,7 +1011,7 @@ exports.default = imageSet; -var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); +var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -1116,12 +1027,7 @@ function imageSet(property, value) { module.exports = exports["default"]; }); -var imageSet = unwrapExports(imageSet_1); - -var imageSet$1 = /*#__PURE__*/Object.freeze({ - default: imageSet, - __moduleExports: imageSet_1 -}); +unwrapExports(imageSet_1); var position_1 = createCommonjsModule(function (module, exports) { @@ -1137,12 +1043,7 @@ function position(property, value) { module.exports = exports["default"]; }); -var position = unwrapExports(position_1); - -var position$1 = /*#__PURE__*/Object.freeze({ - default: position, - __moduleExports: position_1 -}); +unwrapExports(position_1); var sizing_1 = createCommonjsModule(function (module, exports) { @@ -1179,12 +1080,7 @@ function sizing(property, value) { module.exports = exports["default"]; }); -var sizing = unwrapExports(sizing_1); - -var sizing$1 = /*#__PURE__*/Object.freeze({ - default: sizing, - __moduleExports: sizing_1 -}); +unwrapExports(sizing_1); var uppercasePattern = /[A-Z]/g; var msPattern = /^ms-/; @@ -1201,13 +1097,6 @@ function hyphenateStyleName(string) { var hyphenateStyleName_1 = hyphenateStyleName; -var hyphenateStyleName$1 = /*#__PURE__*/Object.freeze({ - default: hyphenateStyleName_1, - __moduleExports: hyphenateStyleName_1 -}); - -var _hyphenateStyleName = ( hyphenateStyleName$1 && hyphenateStyleName_1 ) || hyphenateStyleName$1; - var hyphenateProperty_1 = createCommonjsModule(function (module, exports) { Object.defineProperty(exports, "__esModule", { @@ -1217,7 +1106,7 @@ exports.default = hyphenateProperty; -var _hyphenateStyleName2 = _interopRequireDefault(_hyphenateStyleName); +var _hyphenateStyleName2 = _interopRequireDefault(hyphenateStyleName_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -1227,14 +1116,7 @@ function hyphenateProperty(property) { module.exports = exports['default']; }); -var hyphenateProperty = unwrapExports(hyphenateProperty_1); - -var hyphenateProperty$1 = /*#__PURE__*/Object.freeze({ - default: hyphenateProperty, - __moduleExports: hyphenateProperty_1 -}); - -var _hyphenateProperty = ( hyphenateProperty$1 && hyphenateProperty ) || hyphenateProperty$1; +unwrapExports(hyphenateProperty_1); var transition_1 = createCommonjsModule(function (module, exports) { @@ -1245,15 +1127,15 @@ exports.default = transition; -var _hyphenateProperty2 = _interopRequireDefault(_hyphenateProperty); +var _hyphenateProperty2 = _interopRequireDefault(hyphenateProperty_1); -var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); +var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); -var _capitalizeString2 = _interopRequireDefault(_capitalizeString); +var _capitalizeString2 = _interopRequireDefault(capitalizeString_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -1331,36 +1213,7 @@ function transition(property, value, style, propertyPrefixMap) { module.exports = exports["default"]; }); -var transition = unwrapExports(transition_1); - -var transition$1 = /*#__PURE__*/Object.freeze({ - default: transition, - __moduleExports: transition_1 -}); - -var calc$2 = ( calc$1 && calc ) || calc$1; - -var crossFade$2 = ( crossFade$1 && crossFade ) || crossFade$1; - -var cursor$2 = ( cursor$1 && cursor ) || cursor$1; - -var filter$2 = ( filter$1 && filter ) || filter$1; - -var flex$2 = ( flex$1 && flex ) || flex$1; - -var flexboxIE$2 = ( flexboxIE$1 && flexboxIE ) || flexboxIE$1; - -var flexboxOld$2 = ( flexboxOld$1 && flexboxOld ) || flexboxOld$1; - -var gradient$2 = ( gradient$1 && gradient ) || gradient$1; - -var imageSet$2 = ( imageSet$1 && imageSet ) || imageSet$1; - -var position$2 = ( position$1 && position ) || position$1; - -var sizing$2 = ( sizing$1 && sizing ) || sizing$1; - -var transition$2 = ( transition$1 && transition ) || transition$1; +unwrapExports(transition_1); var w = ["Webkit"]; var m = ["Moz"]; @@ -1370,7 +1223,7 @@ var wms = ["Webkit", "ms"]; var wmms = ["Webkit", "Moz", "ms"]; var staticPrefixData = { - plugins: [calc$2, crossFade$2, cursor$2, filter$2, flex$2, flexboxIE$2, flexboxOld$2, gradient$2, imageSet$2, position$2, sizing$2, transition$2], + plugins: [calc_1, crossFade_1, cursor_1, filter_1, flex_1, flexboxIE_1, flexboxOld_1, gradient_1, imageSet_1, position_1, sizing_1, transition_1], prefixMap: { "transform": wms, "transformOrigin": wms, "transformOriginX": wms, "transformOriginY": wms, "backfaceVisibility": w, "perspective": w, "perspectiveOrigin": w, "transformStyle": w, "transformOriginZ": w, "animation": w, "animationDelay": w, "animationDirection": w, "animationFillMode": w, "animationDuration": w, "animationIterationCount": w, "animationName": w, "animationPlayState": w, "animationTimingFunction": w, "appearance": wm, "userSelect": wmms, "fontKerning": w, "textEmphasisPosition": w, "textEmphasis": w, "textEmphasisStyle": w, "textEmphasisColor": w, "boxDecorationBreak": w, "clipPath": w, "maskImage": w, "maskMode": w, "maskRepeat": w, "maskPosition": w, "maskClip": w, "maskOrigin": w, "maskSize": w, "maskComposite": w, "mask": w, "maskBorderSource": w, "maskBorderMode": w, "maskBorderSlice": w, "maskBorderWidth": w, "maskBorderOutset": w, "maskBorderRepeat": w, "maskBorder": w, "maskType": w, "textDecorationStyle": wm, "textDecorationSkip": wm, "textDecorationLine": wm, "textDecorationColor": wm, "filter": w, "fontFeatureSettings": wm, "breakAfter": wmms, "breakBefore": wmms, "breakInside": wmms, "columnCount": wm, "columnFill": wm, "columnGap": wm, "columnRule": wm, "columnRuleColor": wm, "columnRuleStyle": wm, "columnRuleWidth": wm, "columns": wm, "columnSpan": wm, "columnWidth": wm, "writingMode": wms, "flex": wms, "flexBasis": w, "flexDirection": wms, "flexGrow": w, "flexFlow": wms, "flexShrink": w, "flexWrap": wms, "alignContent": w, "alignItems": w, "alignSelf": w, "justifyContent": w, "order": w, "transitionDelay": w, "transitionDuration": w, "transitionProperty": w, "transitionTimingFunction": w, "backdropFilter": w, "scrollSnapType": wms, "scrollSnapPointsX": wms, "scrollSnapPointsY": wms, "scrollSnapDestination": wms, "scrollSnapCoordinate": wms, "shapeImageThreshold": w, "shapeImageMargin": w, "shapeImageOutside": w, "hyphens": wmms, "flowInto": wms, "flowFrom": wms, "regionFragment": wms, "boxSizing": m, "textAlignLast": m, "tabSize": m, "wrapFlow": ms, "wrapThrough": ms, "wrapMargin": ms, "touchAction": ms, "gridTemplateColumns": ms, "gridTemplateRows": ms, "gridTemplateAreas": ms, "gridTemplate": ms, "gridAutoColumns": ms, "gridAutoRows": ms, "gridAutoFlow": ms, "grid": ms, "gridRowStart": ms, "gridColumnStart": ms, "gridRowEnd": ms, "gridRow": ms, "gridColumn": ms, "gridColumnEnd": ms, "gridColumnGap": ms, "gridRowGap": ms, "gridArea": ms, "gridGap": ms, "textSizeAdjust": wms, "borderImage": w, "borderImageOutset": w, "borderImageRepeat": w, "borderImageSlice": w, "borderImageSource": w, "borderImageWidth": w } }; @@ -1760,6 +1613,7 @@ var injectStyleTag = function injectStyleTag(cssRules /* : string[] */) { } } + // $FlowFixMe var sheet = styleTag.styleSheet || styleTag.sheet /* : any */; if (sheet.insertRule) { @@ -1787,7 +1641,13 @@ var stringHandlers = { fontFamily: function () { function fontFamily(val) { if (Array.isArray(val)) { - return val.map(fontFamily).join(","); + var nameMap = {}; + + val.forEach(function (v) { + nameMap[fontFamily(v)] = true; + }); + + return Object.keys(nameMap).join(","); } else if ((typeof val === 'undefined' ? 'undefined' : _typeof$1(val)) === "object") { injectStyleOnce(val.src, "@font-face", [val], false); return '"' + String(val.fontFamily) + '"'; @@ -1948,7 +1808,7 @@ var flushToStyleTag = function flushToStyleTag() { } }; -var getRenderedClassNames = function getRenderedClassNames() { +var getRenderedClassNames = function getRenderedClassNames() /* : string[] */{ return Object.keys(alreadyInjected); }; diff --git a/dist/aphrodite.umd.js b/dist/aphrodite.umd.js index b9bfc02..45a6636 100644 --- a/dist/aphrodite.umd.js +++ b/dist/aphrodite.umd.js @@ -383,13 +383,6 @@ // its existence. rawAsap.makeRequestCallFromTimer = makeRequestCallFromTimer; - var browserRaw$1 = /*#__PURE__*/Object.freeze({ - default: browserRaw, - __moduleExports: browserRaw - }); - - var rawAsap$1 = ( browserRaw$1 && browserRaw ) || browserRaw$1; - // rawAsap provides everything we need except exception management. // RawTasks are recycled to reduce GC churn. @@ -397,7 +390,7 @@ // We queue errors to ensure they are thrown in right order (FIFO). // Array-as-queue is good enough here, since we are just dealing with exceptions. var pendingErrors = []; - var requestErrorThrow = rawAsap$1.makeRequestCallFromTimer(throwFirstError); + var requestErrorThrow = browserRaw.makeRequestCallFromTimer(throwFirstError); function throwFirstError() { if (pendingErrors.length) { @@ -422,7 +415,7 @@ rawTask = new RawTask(); } rawTask.task = task; - rawAsap$1(rawTask); + browserRaw(rawTask); } // We wrap tasks with recyclable task objects. A task object implements @@ -588,14 +581,7 @@ module.exports = exports["default"]; }); - var capitalizeString = unwrapExports(capitalizeString_1); - - var capitalizeString$1 = /*#__PURE__*/Object.freeze({ - default: capitalizeString, - __moduleExports: capitalizeString_1 - }); - - var _capitalizeString = ( capitalizeString$1 && capitalizeString ) || capitalizeString$1; + unwrapExports(capitalizeString_1); var prefixProperty_1 = createCommonjsModule(function (module, exports) { @@ -606,7 +592,7 @@ - var _capitalizeString2 = _interopRequireDefault(_capitalizeString); + var _capitalizeString2 = _interopRequireDefault(capitalizeString_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -632,12 +618,7 @@ module.exports = exports["default"]; }); - var prefixProperty = unwrapExports(prefixProperty_1); - - var prefixProperty$1 = /*#__PURE__*/Object.freeze({ - default: prefixProperty, - __moduleExports: prefixProperty_1 - }); + unwrapExports(prefixProperty_1); var prefixValue_1 = createCommonjsModule(function (module, exports) { @@ -659,12 +640,7 @@ module.exports = exports["default"]; }); - var prefixValue = unwrapExports(prefixValue_1); - - var prefixValue$1 = /*#__PURE__*/Object.freeze({ - default: prefixValue, - __moduleExports: prefixValue_1 - }); + unwrapExports(prefixValue_1); var addNewValuesOnly_1 = createCommonjsModule(function (module, exports) { @@ -690,12 +666,7 @@ module.exports = exports["default"]; }); - var addNewValuesOnly = unwrapExports(addNewValuesOnly_1); - - var addNewValuesOnly$1 = /*#__PURE__*/Object.freeze({ - default: addNewValuesOnly, - __moduleExports: addNewValuesOnly_1 - }); + unwrapExports(addNewValuesOnly_1); var isObject_1 = createCommonjsModule(function (module, exports) { @@ -709,20 +680,7 @@ module.exports = exports["default"]; }); - var isObject = unwrapExports(isObject_1); - - var isObject$1 = /*#__PURE__*/Object.freeze({ - default: isObject, - __moduleExports: isObject_1 - }); - - var _prefixProperty = ( prefixProperty$1 && prefixProperty ) || prefixProperty$1; - - var _prefixValue = ( prefixValue$1 && prefixValue ) || prefixValue$1; - - var _addNewValuesOnly = ( addNewValuesOnly$1 && addNewValuesOnly ) || addNewValuesOnly$1; - - var _isObject = ( isObject$1 && isObject ) || isObject$1; + unwrapExports(isObject_1); var createPrefixer_1 = createCommonjsModule(function (module, exports) { @@ -733,19 +691,19 @@ - var _prefixProperty2 = _interopRequireDefault(_prefixProperty); + var _prefixProperty2 = _interopRequireDefault(prefixProperty_1); - var _prefixValue2 = _interopRequireDefault(_prefixValue); + var _prefixValue2 = _interopRequireDefault(prefixValue_1); - var _addNewValuesOnly2 = _interopRequireDefault(_addNewValuesOnly); + var _addNewValuesOnly2 = _interopRequireDefault(addNewValuesOnly_1); - var _isObject2 = _interopRequireDefault(_isObject); + var _isObject2 = _interopRequireDefault(isObject_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -811,14 +769,7 @@ module.exports = exports['default']; }); - var isPrefixedValue = unwrapExports(isPrefixedValue_1); - - var isPrefixedValue$1 = /*#__PURE__*/Object.freeze({ - default: isPrefixedValue, - __moduleExports: isPrefixedValue_1 - }); - - var _isPrefixedValue = ( isPrefixedValue$1 && isPrefixedValue ) || isPrefixedValue$1; + unwrapExports(isPrefixedValue_1); var calc_1 = createCommonjsModule(function (module, exports) { @@ -829,7 +780,7 @@ - var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); + var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -844,12 +795,7 @@ module.exports = exports["default"]; }); - var calc = unwrapExports(calc_1); - - var calc$1 = /*#__PURE__*/Object.freeze({ - default: calc, - __moduleExports: calc_1 - }); + unwrapExports(calc_1); var crossFade_1 = createCommonjsModule(function (module, exports) { @@ -860,7 +806,7 @@ - var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); + var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -876,12 +822,7 @@ module.exports = exports["default"]; }); - var crossFade = unwrapExports(crossFade_1); - - var crossFade$1 = /*#__PURE__*/Object.freeze({ - default: crossFade, - __moduleExports: crossFade_1 - }); + unwrapExports(crossFade_1); var cursor_1 = createCommonjsModule(function (module, exports) { @@ -908,12 +849,7 @@ module.exports = exports["default"]; }); - var cursor = unwrapExports(cursor_1); - - var cursor$1 = /*#__PURE__*/Object.freeze({ - default: cursor, - __moduleExports: cursor_1 - }); + unwrapExports(cursor_1); var filter_1 = createCommonjsModule(function (module, exports) { @@ -924,7 +860,7 @@ - var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); + var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -940,12 +876,7 @@ module.exports = exports["default"]; }); - var filter = unwrapExports(filter_1); - - var filter$1 = /*#__PURE__*/Object.freeze({ - default: filter, - __moduleExports: filter_1 - }); + unwrapExports(filter_1); var flex_1 = createCommonjsModule(function (module, exports) { @@ -966,12 +897,7 @@ module.exports = exports["default"]; }); - var flex = unwrapExports(flex_1); - - var flex$1 = /*#__PURE__*/Object.freeze({ - default: flex, - __moduleExports: flex_1 - }); + unwrapExports(flex_1); var flexboxIE_1 = createCommonjsModule(function (module, exports) { @@ -1004,12 +930,7 @@ module.exports = exports["default"]; }); - var flexboxIE = unwrapExports(flexboxIE_1); - - var flexboxIE$1 = /*#__PURE__*/Object.freeze({ - default: flexboxIE, - __moduleExports: flexboxIE_1 - }); + unwrapExports(flexboxIE_1); var flexboxOld_1 = createCommonjsModule(function (module, exports) { @@ -1052,12 +973,7 @@ module.exports = exports["default"]; }); - var flexboxOld = unwrapExports(flexboxOld_1); - - var flexboxOld$1 = /*#__PURE__*/Object.freeze({ - default: flexboxOld, - __moduleExports: flexboxOld_1 - }); + unwrapExports(flexboxOld_1); var gradient_1 = createCommonjsModule(function (module, exports) { @@ -1068,7 +984,7 @@ - var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); + var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -1086,12 +1002,7 @@ module.exports = exports["default"]; }); - var gradient = unwrapExports(gradient_1); - - var gradient$1 = /*#__PURE__*/Object.freeze({ - default: gradient, - __moduleExports: gradient_1 - }); + unwrapExports(gradient_1); var imageSet_1 = createCommonjsModule(function (module, exports) { @@ -1102,7 +1013,7 @@ - var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); + var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -1118,12 +1029,7 @@ module.exports = exports["default"]; }); - var imageSet = unwrapExports(imageSet_1); - - var imageSet$1 = /*#__PURE__*/Object.freeze({ - default: imageSet, - __moduleExports: imageSet_1 - }); + unwrapExports(imageSet_1); var position_1 = createCommonjsModule(function (module, exports) { @@ -1139,12 +1045,7 @@ module.exports = exports["default"]; }); - var position = unwrapExports(position_1); - - var position$1 = /*#__PURE__*/Object.freeze({ - default: position, - __moduleExports: position_1 - }); + unwrapExports(position_1); var sizing_1 = createCommonjsModule(function (module, exports) { @@ -1181,12 +1082,7 @@ module.exports = exports["default"]; }); - var sizing = unwrapExports(sizing_1); - - var sizing$1 = /*#__PURE__*/Object.freeze({ - default: sizing, - __moduleExports: sizing_1 - }); + unwrapExports(sizing_1); var uppercasePattern = /[A-Z]/g; var msPattern = /^ms-/; @@ -1203,13 +1099,6 @@ var hyphenateStyleName_1 = hyphenateStyleName; - var hyphenateStyleName$1 = /*#__PURE__*/Object.freeze({ - default: hyphenateStyleName_1, - __moduleExports: hyphenateStyleName_1 - }); - - var _hyphenateStyleName = ( hyphenateStyleName$1 && hyphenateStyleName_1 ) || hyphenateStyleName$1; - var hyphenateProperty_1 = createCommonjsModule(function (module, exports) { Object.defineProperty(exports, "__esModule", { @@ -1219,7 +1108,7 @@ - var _hyphenateStyleName2 = _interopRequireDefault(_hyphenateStyleName); + var _hyphenateStyleName2 = _interopRequireDefault(hyphenateStyleName_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -1229,14 +1118,7 @@ module.exports = exports['default']; }); - var hyphenateProperty = unwrapExports(hyphenateProperty_1); - - var hyphenateProperty$1 = /*#__PURE__*/Object.freeze({ - default: hyphenateProperty, - __moduleExports: hyphenateProperty_1 - }); - - var _hyphenateProperty = ( hyphenateProperty$1 && hyphenateProperty ) || hyphenateProperty$1; + unwrapExports(hyphenateProperty_1); var transition_1 = createCommonjsModule(function (module, exports) { @@ -1247,15 +1129,15 @@ - var _hyphenateProperty2 = _interopRequireDefault(_hyphenateProperty); + var _hyphenateProperty2 = _interopRequireDefault(hyphenateProperty_1); - var _isPrefixedValue2 = _interopRequireDefault(_isPrefixedValue); + var _isPrefixedValue2 = _interopRequireDefault(isPrefixedValue_1); - var _capitalizeString2 = _interopRequireDefault(_capitalizeString); + var _capitalizeString2 = _interopRequireDefault(capitalizeString_1); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } @@ -1333,36 +1215,7 @@ module.exports = exports["default"]; }); - var transition = unwrapExports(transition_1); - - var transition$1 = /*#__PURE__*/Object.freeze({ - default: transition, - __moduleExports: transition_1 - }); - - var calc$2 = ( calc$1 && calc ) || calc$1; - - var crossFade$2 = ( crossFade$1 && crossFade ) || crossFade$1; - - var cursor$2 = ( cursor$1 && cursor ) || cursor$1; - - var filter$2 = ( filter$1 && filter ) || filter$1; - - var flex$2 = ( flex$1 && flex ) || flex$1; - - var flexboxIE$2 = ( flexboxIE$1 && flexboxIE ) || flexboxIE$1; - - var flexboxOld$2 = ( flexboxOld$1 && flexboxOld ) || flexboxOld$1; - - var gradient$2 = ( gradient$1 && gradient ) || gradient$1; - - var imageSet$2 = ( imageSet$1 && imageSet ) || imageSet$1; - - var position$2 = ( position$1 && position ) || position$1; - - var sizing$2 = ( sizing$1 && sizing ) || sizing$1; - - var transition$2 = ( transition$1 && transition ) || transition$1; + unwrapExports(transition_1); var w = ["Webkit"]; var m = ["Moz"]; @@ -1372,7 +1225,7 @@ var wmms = ["Webkit", "Moz", "ms"]; var staticPrefixData = { - plugins: [calc$2, crossFade$2, cursor$2, filter$2, flex$2, flexboxIE$2, flexboxOld$2, gradient$2, imageSet$2, position$2, sizing$2, transition$2], + plugins: [calc_1, crossFade_1, cursor_1, filter_1, flex_1, flexboxIE_1, flexboxOld_1, gradient_1, imageSet_1, position_1, sizing_1, transition_1], prefixMap: { "transform": wms, "transformOrigin": wms, "transformOriginX": wms, "transformOriginY": wms, "backfaceVisibility": w, "perspective": w, "perspectiveOrigin": w, "transformStyle": w, "transformOriginZ": w, "animation": w, "animationDelay": w, "animationDirection": w, "animationFillMode": w, "animationDuration": w, "animationIterationCount": w, "animationName": w, "animationPlayState": w, "animationTimingFunction": w, "appearance": wm, "userSelect": wmms, "fontKerning": w, "textEmphasisPosition": w, "textEmphasis": w, "textEmphasisStyle": w, "textEmphasisColor": w, "boxDecorationBreak": w, "clipPath": w, "maskImage": w, "maskMode": w, "maskRepeat": w, "maskPosition": w, "maskClip": w, "maskOrigin": w, "maskSize": w, "maskComposite": w, "mask": w, "maskBorderSource": w, "maskBorderMode": w, "maskBorderSlice": w, "maskBorderWidth": w, "maskBorderOutset": w, "maskBorderRepeat": w, "maskBorder": w, "maskType": w, "textDecorationStyle": wm, "textDecorationSkip": wm, "textDecorationLine": wm, "textDecorationColor": wm, "filter": w, "fontFeatureSettings": wm, "breakAfter": wmms, "breakBefore": wmms, "breakInside": wmms, "columnCount": wm, "columnFill": wm, "columnGap": wm, "columnRule": wm, "columnRuleColor": wm, "columnRuleStyle": wm, "columnRuleWidth": wm, "columns": wm, "columnSpan": wm, "columnWidth": wm, "writingMode": wms, "flex": wms, "flexBasis": w, "flexDirection": wms, "flexGrow": w, "flexFlow": wms, "flexShrink": w, "flexWrap": wms, "alignContent": w, "alignItems": w, "alignSelf": w, "justifyContent": w, "order": w, "transitionDelay": w, "transitionDuration": w, "transitionProperty": w, "transitionTimingFunction": w, "backdropFilter": w, "scrollSnapType": wms, "scrollSnapPointsX": wms, "scrollSnapPointsY": wms, "scrollSnapDestination": wms, "scrollSnapCoordinate": wms, "shapeImageThreshold": w, "shapeImageMargin": w, "shapeImageOutside": w, "hyphens": wmms, "flowInto": wms, "flowFrom": wms, "regionFragment": wms, "boxSizing": m, "textAlignLast": m, "tabSize": m, "wrapFlow": ms, "wrapThrough": ms, "wrapMargin": ms, "touchAction": ms, "gridTemplateColumns": ms, "gridTemplateRows": ms, "gridTemplateAreas": ms, "gridTemplate": ms, "gridAutoColumns": ms, "gridAutoRows": ms, "gridAutoFlow": ms, "grid": ms, "gridRowStart": ms, "gridColumnStart": ms, "gridRowEnd": ms, "gridRow": ms, "gridColumn": ms, "gridColumnEnd": ms, "gridColumnGap": ms, "gridRowGap": ms, "gridArea": ms, "gridGap": ms, "textSizeAdjust": wms, "borderImage": w, "borderImageOutset": w, "borderImageRepeat": w, "borderImageSlice": w, "borderImageSource": w, "borderImageWidth": w } }; @@ -1762,6 +1615,7 @@ } } + // $FlowFixMe var sheet = styleTag.styleSheet || styleTag.sheet /* : any */; if (sheet.insertRule) { @@ -1789,7 +1643,13 @@ fontFamily: function () { function fontFamily(val) { if (Array.isArray(val)) { - return val.map(fontFamily).join(","); + var nameMap = {}; + + val.forEach(function (v) { + nameMap[fontFamily(v)] = true; + }); + + return Object.keys(nameMap).join(","); } else if ((typeof val === 'undefined' ? 'undefined' : _typeof$1(val)) === "object") { injectStyleOnce(val.src, "@font-face", [val], false); return '"' + String(val.fontFamily) + '"'; @@ -1950,7 +1810,7 @@ } }; - var getRenderedClassNames = function getRenderedClassNames() { + var getRenderedClassNames = function getRenderedClassNames() /* : string[] */{ return Object.keys(alreadyInjected); }; diff --git a/dist/aphrodite.umd.min.js b/dist/aphrodite.umd.min.js index ae48f91..1500948 100644 --- a/dist/aphrodite.umd.min.js +++ b/dist/aphrodite.umd.min.js @@ -1,2 +1,2 @@ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.aphrodite={})}(this,function(e){"use strict";var t=function(e){for(var t=5381,r=e.length;r;)t=33*t^e.charCodeAt(--r);return t>>>0},r=/([A-Z])/g,n=function(e){return"-"+String(e.toLowerCase())},o={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};var i=["Webkit","ms","Moz","O"];Object.keys(o).forEach(function(e){i.forEach(function(t){o[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(t,e)]=o[e]})});var a=function(e,t){return"number"==typeof t?o[e]?""+t:t+"px":""+t},u=function(e,t){return s(a(e,t))},l=function(e,r){return t(e).toString(36)},f=function(e){return l(JSON.stringify(e))},s=function(e){return"!"===e[e.length-10]&&" !important"===e.slice(-11)?e:String(e)+" !important"},c="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e,t){return e(t={exports:{}},t.exports),t.exports}var m=y;function y(e){g.length||h(),g[g.length]=e}var h,g=[],b=0,v=1024;function x(){for(;bv){for(var t=0,r=g.length-b;t0&&(u[l]=s)}else{var m=(0,n.default)(a,l,f,u,t);m&&(u[l]=m),u=(0,r.default)(t,l,u)}}return u}};var r=a(te),n=a(re),o=a(ne),i=a(oe);function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default})),ae=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"string"==typeof e&&r.test(e)};var r=/-webkit-|-moz-|-ms-/;e.exports=t.default}),ue=d(ae),le=Object.freeze({default:ue,__moduleExports:ae}),fe=le&&ue||le,se=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&t.indexOf("calc(")>-1)return o.map(function(e){return t.replace(/calc\(/g,e+"calc(")})};var r,n=(r=fe)&&r.__esModule?r:{default:r};var o=["-webkit-","-moz-",""];e.exports=t.default}),ce=d(se),de=Object.freeze({default:ce,__moduleExports:se}),pe=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&t.indexOf("cross-fade(")>-1)return o.map(function(e){return t.replace(/cross-fade\(/g,e+"cross-fade(")})};var r,n=(r=fe)&&r.__esModule?r:{default:r};var o=["-webkit-",""];e.exports=t.default}),me=d(pe),ye=Object.freeze({default:me,__moduleExports:pe}),he=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("cursor"===e&&n.hasOwnProperty(t))return r.map(function(e){return e+t})};var r=["-webkit-","-moz-",""],n={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};e.exports=t.default}),ge=d(he),be=Object.freeze({default:ge,__moduleExports:he}),ve=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&t.indexOf("filter(")>-1)return o.map(function(e){return t.replace(/filter\(/g,e+"filter(")})};var r,n=(r=fe)&&r.__esModule?r:{default:r};var o=["-webkit-",""];e.exports=t.default}),xe=d(ve),Oe=Object.freeze({default:xe,__moduleExports:ve}),_e=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("display"===e&&r.hasOwnProperty(t))return r[t]};var r={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};e.exports=t.default}),ke=d(_e),Se=Object.freeze({default:ke,__moduleExports:_e}),je=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){n.hasOwnProperty(e)&&(o[n[e]]=r[t]||t)};var r={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},n={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"};e.exports=t.default}),we=d(je),Me=Object.freeze({default:we,__moduleExports:je}),Pe=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,o){"flexDirection"===e&&"string"==typeof t&&(t.indexOf("column")>-1?o.WebkitBoxOrient="vertical":o.WebkitBoxOrient="horizontal",t.indexOf("reverse")>-1?o.WebkitBoxDirection="reverse":o.WebkitBoxDirection="normal");n.hasOwnProperty(e)&&(o[n[e]]=r[t]||t)};var r={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},n={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines"};e.exports=t.default}),ze=d(Pe),Ae=Object.freeze({default:ze,__moduleExports:Pe}),Ee=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&i.test(t))return o.map(function(e){return e+t})};var r,n=(r=fe)&&r.__esModule?r:{default:r};var o=["-webkit-","-moz-",""],i=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/;e.exports=t.default}),Ce=d(Ee),Te=Object.freeze({default:Ce,__moduleExports:Ee}),We=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("string"==typeof t&&!(0,n.default)(t)&&t.indexOf("image-set(")>-1)return o.map(function(e){return t.replace(/image-set\(/g,e+"image-set(")})};var r,n=(r=fe)&&r.__esModule?r:{default:r};var o=["-webkit-",""];e.exports=t.default}),Fe=d(We),Ie=Object.freeze({default:Fe,__moduleExports:We}),Re=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("position"===e&&"sticky"===t)return["-webkit-sticky","sticky"]},e.exports=t.default}),Be=d(Re),De=Object.freeze({default:Be,__moduleExports:Re}),Ne=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(n.hasOwnProperty(e)&&o.hasOwnProperty(t))return r.map(function(e){return e+t})};var r=["-webkit-","-moz-",""],n={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},o={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};e.exports=t.default}),Ge=d(Ne),Le=Object.freeze({default:Ge,__moduleExports:Ne}),He=/[A-Z]/g,Ue=/^ms-/,qe={};var Ze=function(e){return e in qe?qe[e]:qe[e]=e.replace(He,"-$&").toLowerCase().replace(Ue,"-ms-")},Je=Object.freeze({default:Ze,__moduleExports:Ze}),Ke=Je&&Ze||Je,Xe=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,n.default)(e)};var r,n=(r=Ke)&&r.__esModule?r:{default:r};e.exports=t.default}),Ye=d(Xe),Ve=Object.freeze({default:Ye,__moduleExports:Xe}),$e=Ve&&Ye||Ve,Qe=p(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i,l){if("string"==typeof t&&a.hasOwnProperty(e)){var f=function(e,t){if((0,n.default)(e))return e;for(var o=e.split(/,(?![^()]*(?:\([^()]*\))?\))/g),i=0,a=o.length;i-1&&"order"!==c)for(var d=t[s],p=0,m=d.length;p-1)return s;var c=f.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(e){return!/-webkit-|-ms-/.test(e)}).join(",");return e.indexOf("Moz")>-1?c:(i["Webkit"+(0,o.default)(e)]=s,i["Moz"+(0,o.default)(e)]=c,f)}};var r=i($e),n=i(fe),o=i(L);function i(e){return e&&e.__esModule?e:{default:e}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},u={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};e.exports=t.default}),et=d(Qe),tt=Object.freeze({default:et,__moduleExports:Qe}),rt=["Webkit"],nt=["Moz"],ot=["ms"],it=["Webkit","Moz"],at=["Webkit","ms"],ut=["Webkit","Moz","ms"];var lt=ie({plugins:[de&&ce||de,ye&&me||ye,be&&ge||be,Oe&&xe||Oe,Se&&ke||Se,Me&&we||Me,Ae&&ze||Ae,Te&&Ce||Te,Ie&&Fe||Ie,De&&Be||De,Le&&Ge||Le,tt&&et||tt],prefixMap:{transform:at,transformOrigin:at,transformOriginX:at,transformOriginY:at,backfaceVisibility:rt,perspective:rt,perspectiveOrigin:rt,transformStyle:rt,transformOriginZ:rt,animation:rt,animationDelay:rt,animationDirection:rt,animationFillMode:rt,animationDuration:rt,animationIterationCount:rt,animationName:rt,animationPlayState:rt,animationTimingFunction:rt,appearance:it,userSelect:ut,fontKerning:rt,textEmphasisPosition:rt,textEmphasis:rt,textEmphasisStyle:rt,textEmphasisColor:rt,boxDecorationBreak:rt,clipPath:rt,maskImage:rt,maskMode:rt,maskRepeat:rt,maskPosition:rt,maskClip:rt,maskOrigin:rt,maskSize:rt,maskComposite:rt,mask:rt,maskBorderSource:rt,maskBorderMode:rt,maskBorderSlice:rt,maskBorderWidth:rt,maskBorderOutset:rt,maskBorderRepeat:rt,maskBorder:rt,maskType:rt,textDecorationStyle:it,textDecorationSkip:it,textDecorationLine:it,textDecorationColor:it,filter:rt,fontFeatureSettings:it,breakAfter:ut,breakBefore:ut,breakInside:ut,columnCount:it,columnFill:it,columnGap:it,columnRule:it,columnRuleColor:it,columnRuleStyle:it,columnRuleWidth:it,columns:it,columnSpan:it,columnWidth:it,writingMode:at,flex:at,flexBasis:rt,flexDirection:at,flexGrow:rt,flexFlow:at,flexShrink:rt,flexWrap:at,alignContent:rt,alignItems:rt,alignSelf:rt,justifyContent:rt,order:rt,transitionDelay:rt,transitionDuration:rt,transitionProperty:rt,transitionTimingFunction:rt,backdropFilter:rt,scrollSnapType:at,scrollSnapPointsX:at,scrollSnapPointsY:at,scrollSnapDestination:at,scrollSnapCoordinate:at,shapeImageThreshold:rt,shapeImageMargin:rt,shapeImageOutside:rt,hyphens:ut,flowInto:at,flowFrom:at,regionFragment:at,boxSizing:nt,textAlignLast:nt,tabSize:nt,wrapFlow:ot,wrapThrough:ot,wrapMargin:ot,touchAction:ot,gridTemplateColumns:ot,gridTemplateRows:ot,gridTemplateAreas:ot,gridTemplate:ot,gridAutoColumns:ot,gridAutoRows:ot,gridAutoFlow:ot,grid:ot,gridRowStart:ot,gridColumnStart:ot,gridRowEnd:ot,gridRow:ot,gridColumn:ot,gridColumnEnd:ot,gridColumnGap:ot,gridRowGap:ot,gridArea:ot,gridGap:ot,textSizeAdjust:at,borderImage:rt,borderImageOutset:rt,borderImageRepeat:rt,borderImageSlice:rt,borderImageSource:rt,borderImageWidth:rt}}),ft=[function(){return function(e,t,r){return":"!==e[0]?null:r(t+e)}}(),function(){return function(e,t,r){if("@"!==e[0])return null;var n=r(t);return[String(e)+"{"+String(n.join(""))+"}"]}}()],st=function e(t,r,n,o,i){for(var a=new B,u=0;u4&&void 0!==arguments[4]?arguments[4]:[];if(!gt[e]){var i=st(t,r,o,ht,n);xt(e,i)}},_t=function(){bt=[],gt={},vt=!1,yt=null},kt=function(){if(vt)throw new Error("Cannot buffer while already buffering");vt=!0},St=function(){vt=!1;var e=bt;return bt=[],e},jt=function(){return St().join("")},wt=function(){var e=St();e.length>0&&function(e){if(null==yt&&null==(yt=document.querySelector("style[data-aphrodite]"))){var t=document.head||document.getElementsByTagName("head")[0];(yt=document.createElement("style")).type="text/css",yt.setAttribute("data-aphrodite",""),t.appendChild(yt)}var r=yt.styleSheet||yt.sheet;if(r.insertRule){var n=r.cssRules.length;e.forEach(function(e){try{r.insertRule(e,n),n+=1}catch(e){}})}else yt.innerText=(yt.innerText||"")+e.join("")}(e)},Mt=function(){return Object.keys(gt)},Pt=function(e){e.forEach(function(e){gt[e]=!0})},zt=function(e,t,r){var n=[],o=[],i=function e(t,r,n,o){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];Pt(e)}}()},Tt="undefined"!=typeof window?null:{renderStatic:function(){return function(e){return _t(),kt(),{html:e(),css:{content:jt(),renderedClassNames:Mt()}}}}()},Wt=null;var Ft=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft;return{StyleSheet:Object.assign({},Ct,{extend:function(n){var o=n.map(function(e){return e.selectorHandler}).filter(function(e){return e});return e(t,r.concat(o))}}),StyleSheetServer:Tt,StyleSheetTestUtils:Wt,minify:function(e){Et=e?l:At},css:function(){for(var e=arguments.length,n=Array(e),o=0;o>>0},i=/([A-Z])/g,o=function(e){return"-"+String(e.toLowerCase())},a={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};var t=["Webkit","ms","Moz","O"];Object.keys(a).forEach(function(n){t.forEach(function(e){var t,r;a[(t=e,r=n,t+r.charAt(0).toUpperCase()+r.substring(1))]=a[n]})});var g=function(e,t){return"number"==typeof t?a[e]?""+t:t+"px":""+t},v=function(e,t){return n(g(e,t))},l=function(e,t){return r(e).toString(36)},n=function(e){return"!"===e[e.length-10]&&" !important"===e.slice(-11)?e:String(e)+" !important"},u="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e,t){return e(t={exports:{}},t.exports),t.exports}var c=d;function d(e){m.length||p(),m[m.length]=e}var p,m=[],y=0;function h(){for(;y