pretty-lights
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -28,2 +28,4 @@ "use strict"; | ||
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e2) { throw _e2; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e3) { didErr = true; err = _e3; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } | ||
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } | ||
@@ -35,18 +37,22 @@ | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); } | ||
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } | ||
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } | ||
function _iterableToArrayLimit(arr, i) { if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) { return; } var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _iterableToArrayLimit(arr, i) { if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return; var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } | ||
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; } | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } | ||
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } | ||
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
// export type BabelPath = any; | ||
@@ -278,8 +284,7 @@ function hashArray(arr) { | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
var _iterator = _createForOfIteratorHelper(path.node.body), | ||
_step; | ||
try { | ||
for (var _iterator = path.node.body[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
for (_iterator.s(); !(_step = _iterator.n()).done;) { | ||
var node = _step.value; | ||
@@ -293,14 +298,5 @@ | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
_iterator.e(err); | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator["return"] != null) { | ||
_iterator["return"](); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
_iterator.f(); | ||
} | ||
@@ -321,8 +317,7 @@ | ||
var _iteratorNormalCompletion2 = true; | ||
var _didIteratorError2 = false; | ||
var _iteratorError2 = undefined; | ||
var _iterator2 = _createForOfIteratorHelper(p.get('specifiers')), | ||
_step2; | ||
try { | ||
for (var _iterator2 = p.get('specifiers')[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { | ||
var specifier = _step2.value; | ||
@@ -351,14 +346,5 @@ var local = specifier.node.local.name; | ||
} catch (err) { | ||
_didIteratorError2 = true; | ||
_iteratorError2 = err; | ||
_iterator2.e(err); | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) { | ||
_iterator2["return"](); | ||
} | ||
} finally { | ||
if (_didIteratorError2) { | ||
throw _iteratorError2; | ||
} | ||
} | ||
_iterator2.f(); | ||
} | ||
@@ -382,3 +368,3 @@ } | ||
local = _ref2.local; | ||
return _objectSpread({}, acc, _defineProperty({}, imported === 'default' ? 'styled' : imported, local)); | ||
return _objectSpread(_objectSpread({}, acc), {}, _defineProperty({}, imported === 'default' ? 'styled' : imported, local)); | ||
}, defaultImportedNames); | ||
@@ -385,0 +371,0 @@ state.importedNames = importedNames; |
@@ -27,4 +27,10 @@ "use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _createForOfIteratorHelper(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
function getNodes(node) { | ||
@@ -35,8 +41,7 @@ var nodes = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : []; | ||
// eslint-disable-next-line no-restricted-syntax | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
var _iterator = _createForOfIteratorHelper(node), | ||
_step; | ||
try { | ||
for (var _iterator = node[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
for (_iterator.s(); !(_step = _iterator.n()).done;) { | ||
var child = _step.value; | ||
@@ -46,14 +51,5 @@ getNodes(child, nodes); | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
_iterator.e(err); | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator["return"] != null) { | ||
_iterator["return"](); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
} | ||
_iterator.f(); | ||
} | ||
@@ -66,8 +62,7 @@ | ||
// eslint-disable-next-line no-restricted-syntax | ||
var _iteratorNormalCompletion2 = true; | ||
var _didIteratorError2 = false; | ||
var _iteratorError2 = undefined; | ||
var _iterator2 = _createForOfIteratorHelper(node.children), | ||
_step2; | ||
try { | ||
for (var _iterator2 = node.children[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { | ||
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) { | ||
var _child = _step2.value; | ||
@@ -77,14 +72,5 @@ getNodes(_child, nodes); | ||
} catch (err) { | ||
_didIteratorError2 = true; | ||
_iteratorError2 = err; | ||
_iterator2.e(err); | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion2 && _iterator2["return"] != null) { | ||
_iterator2["return"](); | ||
} | ||
} finally { | ||
if (_didIteratorError2) { | ||
throw _iteratorError2; | ||
} | ||
} | ||
_iterator2.f(); | ||
} | ||
@@ -91,0 +77,0 @@ } |
"use strict"; | ||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
@@ -5,0 +5,0 @@ Object.defineProperty(exports, "__esModule", { |
@@ -16,18 +16,16 @@ "use strict"; | ||
var classNameReplacer = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : defaultClassNameReplacer; | ||
return function () { | ||
var index = 0; | ||
var keyPattern = new RegExp("^(".concat(keys.join('|'), ")-")); | ||
return classNames.reduce(function (acc, className) { | ||
if (keyPattern.test(className) || componentSelectorClassNamePattern.test(className)) { | ||
var escapedRegex = new RegExp(className.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'), 'g'); | ||
var returnVal = acc.replace(escapedRegex, classNameReplacer(className, index)); | ||
index += 1; | ||
return returnVal; | ||
} | ||
var index = 0; | ||
var keyPattern = new RegExp("^(".concat(keys.join('|'), ")-")); | ||
return classNames.reduce(function (acc, className) { | ||
if (keyPattern.test(className) || componentSelectorClassNamePattern.test(className)) { | ||
var escapedRegex = new RegExp(className.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&'), 'g'); | ||
var returnVal = acc.replace(escapedRegex, classNameReplacer(className, index)); | ||
index += 1; | ||
return returnVal; | ||
} | ||
return acc; | ||
}, "".concat(styles).concat(styles ? '\n\n' : '').concat(code)); | ||
}(); | ||
return acc; | ||
}, "".concat(styles).concat(styles ? '\n\n' : '').concat(code)); | ||
}; | ||
exports.replaceClassNames = replaceClassNames; |
@@ -16,10 +16,14 @@ "use strict"; | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread(); } | ||
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance"); } | ||
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } | ||
function _iterableToArray(iter) { if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter); } | ||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } } | ||
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); } | ||
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); } | ||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; } | ||
function flatMap(arr, iteratee) { | ||
@@ -26,0 +30,0 @@ var _ref; |
@@ -1,2 +0,2 @@ | ||
function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("@emotion/stylis")),r=e(require("@emotion/hash")),n=e(require("@emotion/unitless")),o=e(require("@emotion/memoize")),a=e(require("@emotion/is-prop-valid")),i=e(require("@emotion/weak-memoize")),s=e(require("hoist-non-react-statics")),c=require("react"),u=e(c);function l(e){return(l="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})(e)}function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var v=function(){function e(t){!function(t,r){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.isSpeedy=void 0===t.speedy?"production"===process.env.NODE_ENV:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var t;return(t=[{key:"insert",value:function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t=function(e){var t=document.createElement("style");return t.setAttribute("data-lights",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);this.container.insertBefore(t,0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling),this.tags.push(t)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t+=1)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);n.insertRule(e,o?0:n.cssRules.length)}catch(t){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'.concat(e,'"'),t)}}else r.appendChild(document.createTextNode(e));this.ctr+=1}},{key:"flush",value:function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0}}])&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}(),y="".concat("/*|*/","}"),m={current:null};function g(e){e&&m.current.insert("".concat(e,"}"))}var b,_=function(e,t,r,n,o,a,i,s,c,u){switch(e){default:break;case 1:switch(t.charCodeAt(0)){default:break;case 64:return m.current.insert("".concat(t,";")),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return m.current.insert(r[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split(y).forEach(g)}},E=function(e,t){if(1===e&&108===t.charCodeAt(0)&&98===t.charCodeAt(2))return""},w="undefined"!=typeof document,N=/\/\*\|\*\//g,O={},x=w?void 0:i(function(){var e=i(function(){return{}}),t={},r={};return function(n){return void 0===n||!0===n?t:!1===n?r:e(n)}}),k="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",S="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",j=/[A-Z]|^ms/g,A=/_EMO_([^_]+?)_([^]*?)_EMO_/g,C=function(e){return 45===e.charCodeAt(1)},P=function(e){return null!=e&&"boolean"!=typeof e},D=o(function(e){return C(e)?e:e.replace(j,"-$&").toLowerCase()}),T=function(e,t){switch(e){default:break;case"animation":case"animationName":if("string"==typeof t)return t.replace(A,function(e,t,r){return b={name:t,styles:r,next:b},t})}return 1===n[e]||C(e)||"number"!=typeof t||0===t?t:"".concat(t,"px")};if("production"!==process.env.NODE_ENV){var V=/(attr|calc|counters?|url)\(/,q=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],R=T,I=/^-ms-/,L=/-(.)/g,G={};T=function(e,t){"content"===e&&("string"!=typeof t||-1===q.indexOf(t)&&!V.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`"));var r=R(e,t);return""===r||C(e)||-1===e.indexOf("-")||void 0!==G[e]||(G[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean ".concat(e.replace(I,"ms-").replace(L,function(e,t){return t.toUpperCase()}),"?"))),r}}function Y(e,t,r,n){if(null==r)return"";if(void 0!==r.__lights_styles){var o=r.toString();if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with pretty-lights/babel.");return o}switch(l(r)){case"boolean":return"";case"object":if(1===r.anim)return b={name:r.name,styles:r.styles,next:b},r.name;if(void 0!==r.styles){var a=r.next;if(void 0!==a)for(;void 0!==a;)b={name:a.name,styles:a.styles,next:b},a=a.next;var i="".concat(r.styles,";");return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(i+=r.map),i}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o+=1)n+=Y(e,t,r[o],!1);else for(var a in r){var i=r[a];if("object"!==l(i))null!=t&&void 0!==t[i]?n+="".concat(a,"{").concat(t[i],"}"):P(i)&&(n+="".concat(D(a),":").concat(T(a,i),";"));else{if("NO_COMPONENT_SELECTOR"===a&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with pretty-lights/babel.");if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=Y(e,t,i,!1);switch(a){case"animation":case"animationName":n+="".concat(D(a),":").concat(s,";");break;default:"production"!==process.env.NODE_ENV&&"undefined"===a&&console.error(S),n+="".concat(a,"{").concat(s,"}")}}else for(var c=0;c<i.length;c+=1)P(i[c])&&(n+="".concat(D(a),":").concat(T(a,i[c]),";"))}}return n}(e,t,r);case"function":if(void 0!==e){var s=b,c=r(e);return b=s,Y(e,t,c,n)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var u=[],f=r.replace(A,function(e,t,r){var n="animation".concat(u.length);return u.push("const ".concat(n," = keyframes`").concat(r.replace(/^@keyframes animation-\w+/,""),"`")),"${".concat(n,"}")});u.length&&console.error("".concat("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n").concat([].concat(u,["`".concat(f,"`")]).join("\n"),"\n\nYou should wrap it with `css` like this:\n\ncss`").concat(f,"`"))}}if(null==t)return r;var p=t[r];return!1===n&&void 0!==p?p:r}var M,F=/label:\s*([^\s;\n{]+)\s*;/g;function z(e,t,n){if(1===e.length&&"object"===l(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,a="";b=void 0;var i,s=e[0];null==s||void 0===s.raw?(o=!1,a+=Y(n,t,s,!1)):("production"!==process.env.NODE_ENV&&void 0===s[0]&&console.error(k),a+=s[0]);for(var c=1;c<e.length;c+=1)a+=Y(n,t,e[c],46===a.charCodeAt(a.length-1)),o&&("production"!==process.env.NODE_ENV&&void 0===s[c]&&console.error(k),a+=s[c]);"production"!==process.env.NODE_ENV&&(a=a.replace(M,function(e){return i=e,""})),F.lastIndex=0;for(var u,f="";null!==(u=F.exec(a));)f+="-".concat(u[1]);return{name:r(a)+f,styles:a,map:i,next:b}}"production"!==process.env.NODE_ENV&&(M=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var U="undefined"!=typeof document;function $(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]):r&&(n+="".concat(r," "))}),n}var H=function(e,t){var r="".concat(e.key,"-").concat(t.name);if(void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var n="",o=t;do{var a=e.insert(".".concat(r),o,e.sheet,!0);U||void 0===a||(n+=a),o=o.next}while(void 0!==o);if(!U&&0!==n.length)return n}};function B(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function J(e,t,r){var n=[],o=$(e,n,r);return n.length<2?r:o+t(n)}var W=u.createContext({}),Z=a,K=function(e){return"theme"!==e&&"innerRef"!==e},Q=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Z:K},X=i(function(e){return i(function(t){return function(e,t){if("function"==typeof t){var r=t(e);if("production"!==process.env.NODE_ENV&&(null==r||"object"!==l(r)||Array.isArray(r)))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return r}if("production"!==process.env.NODE_ENV&&(null==t||"object"!==l(t)||Array.isArray(t)))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return h({},e,{},t)}(e,t)})});function ee(e,t,r){var n,o=t.theme&&t.theme[e];return"function"==typeof(n="function"==typeof o?o(r):r[o]?r[o]:r.none)?n(t):n}function te(e,t){return function(r){return ee(e,r,t)}}te.variants=function(e,t,r){return function(n){var o=n[t]&&r[n[t]];return o&&ee(e,n,o)}};var re=function(e,r){if(void 0!==e.__SECRET_LIGHTS__)return e.__SECRET_LIGHTS__;var n=function(e){void 0===e&&(e={});var r,n,o=e.key||"css";if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(o))throw new Error('Pretty Lights key must only contain lower case alphabetical characters and - but "'.concat(o,'" was passed'));void 0!==e.prefix&&(n={prefix:e.prefix});var a,i,s=new t(n),c={};if(w){a=e.container||document.head;var u="data-lights-".concat(o),l=document.querySelectorAll("style[".concat(u,"]"));Array.prototype.forEach.call(l,function(e){(e.getAttribute(u)||"").split(" ").forEach(function(e){c[e]=!0}),e.parentNode!==a&&a.appendChild(e)})}if(w)s.use(e.stylisPlugins)(_),i=function(e,t,n,o){if(m.current=n,"production"!==process.env.NODE_ENV&&void 0!==t.map){var a=t.map;m.current={insert:function(e){n.insert(e+a)}}}if(void 0===r.inserted[t.name]){var i=s(e,t.styles);o&&(r.inserted[t.name]=i.replace(N,""))}};else{s.use(E);var f=O;(e.stylisPlugins||void 0!==e.prefix)&&(s.use(e.stylisPlugins),f=x(e.stylisPlugins||O)(e.prefix)),i=function(e,t,n,o){if(void 0===r.inserted[t.name]){var a=function(e,t){var r=t.name;return void 0===f[r]&&(f[r]=s(e,t.styles)),f[r]}(e,t);if(!o)return a;r.inserted[t.name]=a}}}if("production"!==process.env.NODE_ENV){var p=/\/\*/g,d=/\*\//g;s.use(function(e,t){switch(e){default:break;case-1:for(;p.test(t);){if(d.lastIndex=p.lastIndex,!d.test(t))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');p.lastIndex=d.lastIndex}p.lastIndex=0}})}return r={key:o,sheet:new v({key:o,container:a,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:c,registered:{},insert:i}}(void 0);n.sheet.speedy=function(e){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=e},n.compat=!0;var o=function(){for(var e=arguments,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=e[o];var a=z(r,n.registered),i="".concat(n.key,"-").concat(a.name);return H(n,a),i},a={css:o,cx:function(){for(var e=arguments,t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=e[a];return J(n.registered,o,function e(t){for(var r="",n=0;n<t.length;n+=1){var o=t[n];if(null!=o){var a=void 0;switch(l(o)){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var i in a="",o)o[i]&&i&&(a&&(a+=" "),a+=i);break;default:a=o}a&&(r&&(r+=" "),r+=a)}}return r}(r))},injectGlobal:function(){for(var e=arguments,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=e[o];var a=z(r,n.registered);B(n,a)},keyframes:function(){for(var e=arguments,t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=e[o];var a=z(r,n.registered),i="animation-".concat(a.name);return B(n,{name:a.name,styles:"@keyframes ".concat(i,"{").concat(a.styles,"}")}),i},hydrate:function(e){e.forEach(function(e){n.inserted[e]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:$,merge:J.bind(null,n.registered,o)};return e.__SECRET_LIGHTS__=a,a}("undefined"!=typeof global?global:{}),ne=function(e){return function t(r,n){if("production"!==process.env.NODE_ENV&&void 0===r)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,a,i;void 0!==n&&(o=n.label,i=n.target,a=r.__lights_forwardProp&&n.shouldForwardProp?function(e){return r.__lights_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var s=r.__lights_real===r,u=s&&r.__lights_base||r;"function"!=typeof a&&s&&(a=r.__lights_forwardProp);var l=a||Q(u),f=!l("as");return function(){var p=arguments,d=s&&void 0!==r.__lights_styles?r.__lights_styles.slice(0):[];void 0!==o&&d.push("label:".concat(o,";"));for(var v=arguments.length,y=new Array(v),m=0;m<v;m++)y[m]=p[m];if(null==y[0]||void 0===y[0].raw)d.push.apply(d,y);else{"production"!==process.env.NODE_ENV&&void 0===y[0][0]&&console.error(k),d.push(y[0][0]);for(var g=y.length,b=1;b<g;b+=1)"production"!==process.env.NODE_ENV&&void 0===y[0][b]&&console.error(k),d.push(y[b],y[0][b])}var _=function(t){return c.createElement(W.Consumer,null,function(r){var n=f&&t.as||u,o="",s=[],p=t;if(null==t.theme){for(var h in p={},t)p[h]=t[h];p.theme=r}"string"==typeof t.className?o=$(e.cache.registered,s,t.className):null!=t.className&&(o="".concat(t.className," "));var v=z(d.concat(s),e.cache.registered,p);H(e.cache,v),o+="".concat(e.cache.key,"-").concat(v.name),void 0!==i&&(o+=" ".concat(i));var y=f&&void 0===a?Q(n):l,m={};for(var g in t)f&&"as"===g||y(g)&&(m[g]=t[g]);return m.className=o,m.ref=t.innerRef,c.createElement(n,m)})};return _.displayName=void 0!==o?o:"Styled(".concat("string"==typeof u?u:u.displayName||u.name||"Component",")"),void 0!==r.defaultProps&&(_.defaultProps=r.defaultProps),_.__lights_styles=d,_.__lights_base=u,_.__lights_real=_,_.__lights_forwardProp=a,Object.defineProperty(_,"toString",{value:function(){return void 0===i&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":".".concat(i)}}),_.withComponent=function(e,r){return t(e,void 0!==r?h({},n||{},{},r):n).apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(o=d)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}());var o},_}}}(re).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","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","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){ne[e]=ne(e)});var oe=re.hydrate,ae=re.cx,ie=re.merge,se=re.getRegisteredStyles,ce=re.injectGlobal,ue=re.keyframes,le=re.css,fe=re.sheet,pe=re.cache;exports.flush=re.flush,exports.hydrate=oe,exports.cx=ae,exports.merge=ie,exports.getRegisteredStyles=se,exports.injectGlobal=ce,exports.keyframes=ue,exports.css=le,exports.sheet=fe,exports.cache=pe,exports.ThemeContext=W,exports.ThemeProvider=function(e){return c.createElement(W.Consumer,null,function(t){return e.theme!==t&&(t=X(t)(e.theme)),c.createElement(W.Provider,{value:t},e.children)})},exports.useTheme=function(){return u.useContext(W)},exports.withTheme=function(e){var t=e.displayName||e.name||"Component",r=c.forwardRef(function(t,r){return c.createElement(W.Consumer,null,function(n){return c.createElement(e,p({theme:n,ref:r},t))})});return r.displayName="WithTheme(".concat(t,")"),s(r,e)},exports.themeFn=te,exports.styled=ne; | ||
function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var t=e(require("@emotion/stylis")),r=e(require("@emotion/weak-memoize")),n=e(require("@emotion/hash")),o=e(require("@emotion/unitless")),s=e(require("@emotion/memoize")),i=require("react"),a=e(i),c=e(require("@emotion/is-prop-valid")),l=e(require("hoist-non-react-statics")),u=function(){function e(e){this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t=function(e){var t=document.createElement("style");return t.setAttribute("data-lights",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);this.container.insertBefore(t,0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling),this.tags.push(t)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t+=1)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);n.insertRule(e,o?0:n.cssRules.length)}catch(t){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+e+'"',t)}}else r.appendChild(document.createTextNode(e));this.ctr+=1},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),p={current:null};function d(e){e&&p.current.insert(e+"}")}var h,f=function(e,t,r,n,o,s,i,a,c,l){switch(e){default:break;case 1:switch(t.charCodeAt(0)){default:break;case 64:return p.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===a)return t+"/*|*/";break;case 3:switch(a){case 102:case 112:return p.current.insert(r[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(d)}},v=function(e,t){if(1===e&&108===t.charCodeAt(0)&&98===t.charCodeAt(2))return""},m="undefined"!=typeof document,y=/\/\*\|\*\//g,g={},_=m?void 0:r(function(){var e=r(function(){return{}}),t={},n={};return function(r){return void 0===r||!0===r?t:!1===r?n:e(r)}}),b="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",E=/[A-Z]|^ms/g,N=/_EMO_([^_]+?)_([^]*?)_EMO_/g,w=function(e){return 45===e.charCodeAt(1)},x=function(e){return null!=e&&"boolean"!=typeof e},k=s(function(e){return w(e)?e:e.replace(E,"-$&").toLowerCase()}),O=function(e,t){switch(e){default:break;case"animation":case"animationName":if("string"==typeof t)return t.replace(N,function(e,t,r){return h={name:t,styles:r,next:h},t})}return 1===o[e]||w(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var C=/(attr|calc|counters?|url)\(/,S=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],A=O,P=/^-ms-/,D=/-(.)/g,j={};O=function(e,t){"content"===e&&("string"!=typeof t||-1===S.indexOf(t)&&!C.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=A(e,t);return""===r||w(e)||-1===e.indexOf("-")||void 0!==j[e]||(j[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(P,"ms-").replace(D,function(e,t){return t.toUpperCase()})+"?")),r}}function T(e,t,r,n){if(null==r)return"";if(void 0!==r.__lights_styles){var o=r.toString();if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with pretty-lights/babel.");return o}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return h={name:r.name,styles:r.styles,next:h},r.name;if(void 0!==r.styles){var s=r.next;if(void 0!==s)for(;void 0!==s;)h={name:s.name,styles:s.styles,next:h},s=s.next;var i=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(i+=r.map),i}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o+=1)n+=T(e,t,r[o],!1);else for(var s in r){var i=r[s];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=s+"{"+t[i]+"}":x(i)&&(n+=k(s)+":"+O(s,i)+";");else{if("NO_COMPONENT_SELECTOR"===s&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with pretty-lights/babel.");if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var a=T(e,t,i,!1);switch(s){case"animation":case"animationName":n+=k(s)+":"+a+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===s&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),n+=s+"{"+a+"}"}}else for(var c=0;c<i.length;c+=1)x(i[c])&&(n+=k(s)+":"+O(s,i[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var a=h,c=r(e);return h=a,T(e,t,c,n)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],u=r.replace(N,function(e,t,r){var n="animation"+l.length;return l.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+u+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+u+"`")}}if(null==t)return r;var p=t[r];return!1===n&&void 0!==p?p:r}var V,q=/label:\s*([^\s;\n{]+)\s*;/g;function R(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,s="";h=void 0;var i,a=e[0];null==a||void 0===a.raw?(o=!1,s+=T(r,t,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(b),s+=a[0]);for(var c=1;c<e.length;c+=1)s+=T(r,t,e[c],46===s.charCodeAt(s.length-1)),o&&("production"!==process.env.NODE_ENV&&void 0===a[c]&&console.error(b),s+=a[c]);"production"!==process.env.NODE_ENV&&(s=s.replace(V,function(e){return i=e,""})),q.lastIndex=0;for(var l,u="";null!==(l=q.exec(s));)u+="-"+l[1];return{name:n(s)+u,styles:s,map:i,next:h}}"production"!==process.env.NODE_ENV&&(V=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var z="undefined"!=typeof document;function I(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]):r&&(n+=r+" ")}),n}var G=function(e,t){var r=e.key+"-"+t.name;if(void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var n="",o=t;do{var s=e.insert("."+r,o,e.sheet,!0);z||void 0===s||(n+=s),o=o.next}while(void 0!==o);if(!z&&0!==n.length)return n}};function L(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function Y(e,t,r){var n=[],o=I(e,n,r);return n.length<2?r:o+t(n)}var M=function e(t){for(var r="",n=0;n<t.length;n+=1){var o=t[n];if(null!=o){var s=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))s=e(o);else for(var i in s="",o)o[i]&&i&&(s&&(s+=" "),s+=i);break;default:s=o}s&&(r&&(r+=" "),r+=s)}}return r};function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var F=a.createContext({}),$="undefined"!=typeof document,H=c,W=function(e){return"theme"!==e&&"innerRef"!==e},B=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?H:W},J=r(function(e){return r(function(t){return function(e,t){if("function"==typeof t){var r=t(e);if("production"!==process.env.NODE_ENV&&(null==r||"object"!=typeof r||Array.isArray(r)))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return r}if("production"!==process.env.NODE_ENV&&(null==t||"object"!=typeof t||Array.isArray(t)))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return U({},e,t)}(e,t)})});function Z(e,t,r){var n,o=t.theme&&t.theme[e];return"function"==typeof(n="function"==typeof o?o(r):r[o]?r[o]:r.none)?n(t):n}function K(e,t){return function(r){return Z(e,r,t)}}K.variants=function(e,t,r){return function(n){var o=n[t]&&r[n[t]];return o&&Z(e,n,o)}};var Q=function(e,r){if(void 0!==e.__SECRET_LIGHTS__)return e.__SECRET_LIGHTS__;var n=function(e){void 0===e&&(e={});var r,n,o=e.key||"css";if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(o))throw new Error('Pretty Lights key must only contain lower case alphabetical characters and - but "'+o+'" was passed');void 0!==e.prefix&&(n={prefix:e.prefix});var s,i,a=new t(n),c={};if(m){s=e.container||document.head;var l="data-lights-"+o,d=document.querySelectorAll("style["+l+"]");Array.prototype.forEach.call(d,function(e){(e.getAttribute(l)||"").split(" ").forEach(function(e){c[e]=!0}),e.parentNode!==s&&s.appendChild(e)})}if(m)a.use(e.stylisPlugins)(f),i=function(e,t,n,o){if(p.current=n,"production"!==process.env.NODE_ENV&&void 0!==t.map){var s=t.map;p.current={insert:function(e){n.insert(e+s)}}}if(void 0===r.inserted[t.name]){var i=a(e,t.styles);o&&(r.inserted[t.name]=i.replace(y,""))}};else{a.use(v);var h=g;(e.stylisPlugins||void 0!==e.prefix)&&(a.use(e.stylisPlugins),h=_(e.stylisPlugins||g)(e.prefix)),i=function(e,t,n,o){if(void 0===r.inserted[t.name]){var s=function(e,t){var r=t.name;return void 0===h[r]&&(h[r]=a(e,t.styles)),h[r]}(e,t);if(!o)return s;r.inserted[t.name]=s}}}if("production"!==process.env.NODE_ENV){var b=/\/\*/g,E=/\*\//g;a.use(function(e,t){switch(e){default:break;case-1:for(;b.test(t);){if(E.lastIndex=b.lastIndex,!E.test(t))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');b.lastIndex=E.lastIndex}b.lastIndex=0}})}return r={key:o,sheet:new u({key:o,container:s,nonce:e.nonce,speedy:e.speedy}),nonce:e.nonce,inserted:c,registered:{},insert:i}}(void 0);n.sheet.speedy=function(e){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=e},n.compat=!0;var o=function(){var e=R([].slice.call(arguments),n.registered),t=n.key+"-"+e.name;return G(n,e),t},s={css:o,cx:function(){return Y(n.registered,o,M([].slice.call(arguments)))},injectGlobal:function(){var e=R([].slice.call(arguments),n.registered);L(n,e)},keyframes:function(){var e=R([].slice.call(arguments),n.registered),t="animation-"+e.name;return L(n,{name:e.name,styles:"@keyframes "+t+"{"+e.styles+"}"}),t},hydrate:function(e){e.forEach(function(e){n.inserted[e]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:I,merge:Y.bind(null,n.registered,o)};return e.__SECRET_LIGHTS__=s,s}("undefined"!=typeof global?global:{}),X=function(e){var t=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.componentDidMount=function(){this.sheet=new u({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},o.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},o.insertStyles=function(){void 0!==this.props.serialized.next&&G(this.props.cache,this.props.serialized.next),this.sheet.tags.length&&(this.sheet.before=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling,this.sheet.flush()),this.props.cache.insert("",this.props.serialized,this.sheet,!1)},o.componentWillUnmount=function(){this.sheet.flush()},o.render=function(){if(!$){for(var e=this.props.serialized,t=e.name,r=e.styles,n=e.next;void 0!==n;)t+=" "+n.name,r+=n.styles,n=n.next;this.props.cache.insert("",{name:t,styles:r},this.sheet,!0)}return null},n}(i.Component);return function(r){var n=r.styles;if("function"==typeof n)return i.createElement(F.Consumer,null,function(r){var o=R([n(r)],e.cache.registered);return i.createElement(t,{serialized:o,cache:e.cache})});var o=R([n],e.cache.registered);return i.createElement(t,{serialized:o,cache:e.cache})}}(Q),ee=function(e){return function t(r,n){if("production"!==process.env.NODE_ENV&&void 0===r)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,s,a;void 0!==n&&(o=n.label,a=n.target,s=r.__lights_forwardProp&&n.shouldForwardProp?function(e){return r.__lights_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var c=r.__lights_real===r,l=c&&r.__lights_base||r;"function"!=typeof s&&c&&(s=r.__lights_forwardProp);var u=s||B(l),p=!u("as");return function(){var d=[].slice.call(arguments),h=c&&void 0!==r.__lights_styles?r.__lights_styles.slice(0):[];if(void 0!==o&&h.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error(b),h.push(d[0][0]);for(var f=d.length,v=1;v<f;v+=1)"production"!==process.env.NODE_ENV&&void 0===d[0][v]&&console.error(b),h.push(d[v],d[0][v])}var m=function(t){return i.createElement(F.Consumer,null,function(r){var n=p&&t.as||l,o="",c=[],d=t;if(null==t.theme){for(var f in d={},t)d[f]=t[f];d.theme=r}"string"==typeof t.className?o=I(e.cache.registered,c,t.className):null!=t.className&&(o=t.className+" ");var v=R(h.concat(c),e.cache.registered,d);G(e.cache,v),o+=e.cache.key+"-"+v.name,void 0!==a&&(o+=" "+a);var m=p&&void 0===s?B(n):u,y={};for(var g in t)p&&"as"===g||m(g)&&(y[g]=t[g]);return y.className=o,y.ref=t.innerRef,i.createElement(n,y)})};return m.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",void 0!==r.defaultProps&&(m.defaultProps=r.defaultProps),m.__lights_styles=h,m.__lights_base=l,m.__lights_real=m,m.__lights_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),m.withComponent=function(e,r){return t(e,void 0!==r?U({},n||{},r):n).apply(void 0,h)},m}}}(Q).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","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","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){ee[e]=ee(e)});var te=Q.flush,re=Q.hydrate,ne=Q.cx,oe=Q.merge,se=Q.getRegisteredStyles,ie=Q.injectGlobal,ae=Q.keyframes,ce=Q.css,le=Q.sheet,ue=Q.cache;exports.Global=X,exports.ThemeContext=F,exports.ThemeProvider=function(e){return i.createElement(F.Consumer,null,function(t){return e.theme!==t&&(t=J(t)(e.theme)),i.createElement(F.Provider,{value:t},e.children)})},exports.cache=ue,exports.css=ce,exports.cx=ne,exports.flush=te,exports.getRegisteredStyles=se,exports.hydrate=re,exports.injectGlobal=ie,exports.keyframes=ae,exports.merge=oe,exports.sheet=le,exports.styled=ee,exports.themeFn=K,exports.useTheme=function(){return a.useContext(F)},exports.withTheme=function(e){var t=e.displayName||e.name||"Component",r=i.forwardRef(function(t,r){return i.createElement(F.Consumer,null,function(n){return i.createElement(e,U({theme:n,ref:r},t))})});return r.displayName="WithTheme("+t+")",l(r,e)}; | ||
//# sourceMappingURL=pretty-lights.js.map |
@@ -1,2 +0,2 @@ | ||
import e from"@emotion/stylis";import t from"@emotion/hash";import n from"@emotion/unitless";import r from"@emotion/memoize";import o from"@emotion/is-prop-valid";import i from"@emotion/weak-memoize";import a from"hoist-non-react-statics";import s,{createElement as c,forwardRef as u}from"react";function l(e){return(l="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})(e)}function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach(function(t){f(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var v=function(){function e(t){!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.isSpeedy=void 0===t.speedy?"production"===process.env.NODE_ENV:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.before=null}var t;return(t=[{key:"insert",value:function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t=function(e){var t=document.createElement("style");return t.setAttribute("data-lights",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);this.container.insertBefore(t,0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling),this.tags.push(t)}var n=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t+=1)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);r.insertRule(e,o?0:r.cssRules.length)}catch(t){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'.concat(e,'"'),t)}}else n.appendChild(document.createTextNode(e));this.ctr+=1}},{key:"flush",value:function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0}}])&&function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}(),m="".concat("/*|*/","}"),y={current:null};function g(e){e&&y.current.insert("".concat(e,"}"))}var b,_=function(e,t,n,r,o,i,a,s,c,u){switch(e){default:break;case 1:switch(t.charCodeAt(0)){default:break;case 64:return y.current.insert("".concat(t,";")),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===s)return t+"/*|*/";break;case 3:switch(s){case 102:case 112:return y.current.insert(n[0]+t),"";default:return t+(0===u?"/*|*/":"")}case-2:t.split(m).forEach(g)}},E=function(e,t){if(1===e&&108===t.charCodeAt(0)&&98===t.charCodeAt(2))return""},w="undefined"!=typeof document,N=/\/\*\|\*\//g,O={},k=w?void 0:i(function(){var e=i(function(){return{}}),t={},n={};return function(r){return void 0===r||!0===r?t:!1===r?n:e(r)}}),S="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",A="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",j=/[A-Z]|^ms/g,C=/_EMO_([^_]+?)_([^]*?)_EMO_/g,P=function(e){return 45===e.charCodeAt(1)},x=function(e){return null!=e&&"boolean"!=typeof e},D=r(function(e){return P(e)?e:e.replace(j,"-$&").toLowerCase()}),V=function(e,t){switch(e){default:break;case"animation":case"animationName":if("string"==typeof t)return t.replace(C,function(e,t,n){return b={name:t,styles:n,next:b},t})}return 1===n[e]||P(e)||"number"!=typeof t||0===t?t:"".concat(t,"px")};if("production"!==process.env.NODE_ENV){var T=/(attr|calc|counters?|url)\(/,R=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],I=V,q=/^-ms-/,L=/-(.)/g,Y={};V=function(e,t){"content"===e&&("string"!=typeof t||-1===R.indexOf(t)&&!T.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"".concat(t,"\"'`"));var n=I(e,t);return""===n||P(e)||-1===e.indexOf("-")||void 0!==Y[e]||(Y[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean ".concat(e.replace(q,"ms-").replace(L,function(e,t){return t.toUpperCase()}),"?"))),n}}function G(e,t,n,r){if(null==n)return"";if(void 0!==n.__lights_styles){var o=n.toString();if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with pretty-lights/babel.");return o}switch(l(n)){case"boolean":return"";case"object":if(1===n.anim)return b={name:n.name,styles:n.styles,next:b},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)b={name:i.name,styles:i.styles,next:b},i=i.next;var a="".concat(n.styles,";");return"production"!==process.env.NODE_ENV&&void 0!==n.map&&(a+=n.map),a}return function(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o+=1)r+=G(e,t,n[o],!1);else for(var i in n){var a=n[i];if("object"!==l(a))null!=t&&void 0!==t[a]?r+="".concat(i,"{").concat(t[a],"}"):x(a)&&(r+="".concat(D(i),":").concat(V(i,a),";"));else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with pretty-lights/babel.");if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=G(e,t,a,!1);switch(i){case"animation":case"animationName":r+="".concat(D(i),":").concat(s,";");break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error(A),r+="".concat(i,"{").concat(s,"}")}}else for(var c=0;c<a.length;c+=1)x(a[c])&&(r+="".concat(D(i),":").concat(V(i,a[c]),";"))}}return r}(e,t,n);case"function":if(void 0!==e){var s=b,c=n(e);return b=s,G(e,t,c,r)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var u=[],f=n.replace(C,function(e,t,n){var r="animation".concat(u.length);return u.push("const ".concat(r," = keyframes`").concat(n.replace(/^@keyframes animation-\w+/,""),"`")),"${".concat(r,"}")});u.length&&console.error("".concat("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n").concat([].concat(u,["`".concat(f,"`")]).join("\n"),"\n\nYou should wrap it with `css` like this:\n\ncss`").concat(f,"`"))}}if(null==t)return n;var p=t[n];return!1===r&&void 0!==p?p:n}var M,F=/label:\s*([^\s;\n{]+)\s*;/g;function z(e,n,r){if(1===e.length&&"object"===l(e[0])&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";b=void 0;var a,s=e[0];null==s||void 0===s.raw?(o=!1,i+=G(r,n,s,!1)):("production"!==process.env.NODE_ENV&&void 0===s[0]&&console.error(S),i+=s[0]);for(var c=1;c<e.length;c+=1)i+=G(r,n,e[c],46===i.charCodeAt(i.length-1)),o&&("production"!==process.env.NODE_ENV&&void 0===s[c]&&console.error(S),i+=s[c]);"production"!==process.env.NODE_ENV&&(i=i.replace(M,function(e){return a=e,""})),F.lastIndex=0;for(var u,f="";null!==(u=F.exec(i));)f+="-".concat(u[1]);return{name:t(i)+f,styles:i,map:a,next:b}}"production"!==process.env.NODE_ENV&&(M=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var U="undefined"!=typeof document;function $(e,t,n){var r="";return n.split(" ").forEach(function(n){void 0!==e[n]?t.push(e[n]):n&&(r+="".concat(n," "))}),r}var H=function(e,t){var n="".concat(e.key,"-").concat(t.name);if(void 0===e.registered[n]&&(e.registered[n]=t.styles),void 0===e.inserted[t.name]){var r="",o=t;do{var i=e.insert(".".concat(n),o,e.sheet,!0);U||void 0===i||(r+=i),o=o.next}while(void 0!==o);if(!U&&0!==r.length)return r}};function B(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function J(e,t,n){var r=[],o=$(e,r,n);return r.length<2?n:o+t(r)}var W=s.createContext({}),Z=o,K=function(e){return"theme"!==e&&"innerRef"!==e},Q=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Z:K},X=i(function(e){return i(function(t){return function(e,t){if("function"==typeof t){var n=t(e);if("production"!==process.env.NODE_ENV&&(null==n||"object"!==l(n)||Array.isArray(n)))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return n}if("production"!==process.env.NODE_ENV&&(null==t||"object"!==l(t)||Array.isArray(t)))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return h({},e,{},t)}(e,t)})}),ee=function(e){return c(W.Consumer,null,function(t){return e.theme!==t&&(t=X(t)(e.theme)),c(W.Provider,{value:t},e.children)})};function te(e){var t=e.displayName||e.name||"Component",n=u(function(t,n){return c(W.Consumer,null,function(r){return c(e,p({theme:r,ref:n},t))})});return n.displayName="WithTheme(".concat(t,")"),a(n,e)}function ne(){return s.useContext(W)}function re(e,t,n){var r,o=t.theme&&t.theme[e];return"function"==typeof(r="function"==typeof o?o(n):n[o]?n[o]:n.none)?r(t):r}function oe(e,t){return function(n){return re(e,n,t)}}oe.variants=function(e,t,n){return function(r){var o=r[t]&&n[r[t]];return o&&re(e,r,o)}};var ie=function(t,n){if(void 0!==t.__SECRET_LIGHTS__)return t.__SECRET_LIGHTS__;var r=function(t){void 0===t&&(t={});var n,r,o=t.key||"css";if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(o))throw new Error('Pretty Lights key must only contain lower case alphabetical characters and - but "'.concat(o,'" was passed'));void 0!==t.prefix&&(r={prefix:t.prefix});var i,a,s=new e(r),c={};if(w){i=t.container||document.head;var u="data-lights-".concat(o),l=document.querySelectorAll("style[".concat(u,"]"));Array.prototype.forEach.call(l,function(e){(e.getAttribute(u)||"").split(" ").forEach(function(e){c[e]=!0}),e.parentNode!==i&&i.appendChild(e)})}if(w)s.use(t.stylisPlugins)(_),a=function(e,t,r,o){if(y.current=r,"production"!==process.env.NODE_ENV&&void 0!==t.map){var i=t.map;y.current={insert:function(e){r.insert(e+i)}}}if(void 0===n.inserted[t.name]){var a=s(e,t.styles);o&&(n.inserted[t.name]=a.replace(N,""))}};else{s.use(E);var f=O;(t.stylisPlugins||void 0!==t.prefix)&&(s.use(t.stylisPlugins),f=k(t.stylisPlugins||O)(t.prefix)),a=function(e,t,r,o){if(void 0===n.inserted[t.name]){var i=function(e,t){var n=t.name;return void 0===f[n]&&(f[n]=s(e,t.styles)),f[n]}(e,t);if(!o)return i;n.inserted[t.name]=i}}}if("production"!==process.env.NODE_ENV){var p=/\/\*/g,d=/\*\//g;s.use(function(e,t){switch(e){default:break;case-1:for(;p.test(t);){if(d.lastIndex=p.lastIndex,!d.test(t))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');p.lastIndex=d.lastIndex}p.lastIndex=0}})}return n={key:o,sheet:new v({key:o,container:i,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:c,registered:{},insert:a}}(void 0);r.sheet.speedy=function(e){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=e},r.compat=!0;var o=function(){for(var e=arguments,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=e[o];var i=z(n,r.registered),a="".concat(r.key,"-").concat(i.name);return H(r,i),a},i={css:o,cx:function(){for(var e=arguments,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=e[i];return J(r.registered,o,function e(t){for(var n="",r=0;r<t.length;r+=1){var o=t[r];if(null!=o){var i=void 0;switch(l(o)){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(n&&(n+=" "),n+=i)}}return n}(n))},injectGlobal:function(){for(var e=arguments,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=e[o];var i=z(n,r.registered);B(r,i)},keyframes:function(){for(var e=arguments,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=e[o];var i=z(n,r.registered),a="animation-".concat(i.name);return B(r,{name:i.name,styles:"@keyframes ".concat(a,"{").concat(i.styles,"}")}),a},hydrate:function(e){e.forEach(function(e){r.inserted[e]=!0})},flush:function(){r.registered={},r.inserted={},r.sheet.flush()},sheet:r.sheet,cache:r,getRegisteredStyles:$,merge:J.bind(null,r.registered,o)};return t.__SECRET_LIGHTS__=i,i}("undefined"!=typeof global?global:{}),ae=function(e){return function t(n,r){if("production"!==process.env.NODE_ENV&&void 0===n)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,i,a;void 0!==r&&(o=r.label,a=r.target,i=n.__lights_forwardProp&&r.shouldForwardProp?function(e){return n.__lights_forwardProp(e)&&r.shouldForwardProp(e)}:r.shouldForwardProp);var s=n.__lights_real===n,u=s&&n.__lights_base||n;"function"!=typeof i&&s&&(i=n.__lights_forwardProp);var l=i||Q(u),f=!l("as");return function(){var p=arguments,d=s&&void 0!==n.__lights_styles?n.__lights_styles.slice(0):[];void 0!==o&&d.push("label:".concat(o,";"));for(var v=arguments.length,m=new Array(v),y=0;y<v;y++)m[y]=p[y];if(null==m[0]||void 0===m[0].raw)d.push.apply(d,m);else{"production"!==process.env.NODE_ENV&&void 0===m[0][0]&&console.error(S),d.push(m[0][0]);for(var g=m.length,b=1;b<g;b+=1)"production"!==process.env.NODE_ENV&&void 0===m[0][b]&&console.error(S),d.push(m[b],m[0][b])}var _=function(t){return c(W.Consumer,null,function(n){var r=f&&t.as||u,o="",s=[],p=t;if(null==t.theme){for(var h in p={},t)p[h]=t[h];p.theme=n}"string"==typeof t.className?o=$(e.cache.registered,s,t.className):null!=t.className&&(o="".concat(t.className," "));var v=z(d.concat(s),e.cache.registered,p);H(e.cache,v),o+="".concat(e.cache.key,"-").concat(v.name),void 0!==a&&(o+=" ".concat(a));var m=f&&void 0===i?Q(r):l,y={};for(var g in t)f&&"as"===g||m(g)&&(y[g]=t[g]);return y.className=o,y.ref=t.innerRef,c(r,y)})};return _.displayName=void 0!==o?o:"Styled(".concat("string"==typeof u?u:u.displayName||u.name||"Component",")"),void 0!==n.defaultProps&&(_.defaultProps=n.defaultProps),_.__lights_styles=d,_.__lights_base=u,_.__lights_real=_,_.__lights_forwardProp=i,Object.defineProperty(_,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":".".concat(a)}}),_.withComponent=function(e,n){return t(e,void 0!==n?h({},r||{},{},n):r).apply(void 0,function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(o=d)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}());var o},_}}}(ie).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","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","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){ae[e]=ae(e)});var se=ie.flush,ce=ie.hydrate,ue=ie.cx,le=ie.merge,fe=ie.getRegisteredStyles,pe=ie.injectGlobal,de=ie.keyframes,he=ie.css,ve=ie.sheet,me=ie.cache;export{se as flush,ce as hydrate,ue as cx,le as merge,fe as getRegisteredStyles,pe as injectGlobal,de as keyframes,he as css,ve as sheet,me as cache,W as ThemeContext,ee as ThemeProvider,ne as useTheme,te as withTheme,oe as themeFn,ae as styled}; | ||
import e from"@emotion/stylis";import t from"@emotion/weak-memoize";import r from"@emotion/hash";import n from"@emotion/unitless";import o from"@emotion/memoize";import i,{createElement as s,Component as a,forwardRef as c}from"react";import l from"@emotion/is-prop-valid";import u from"hoist-non-react-statics";var p=function(){function e(e){this.isSpeedy=void 0===e.speedy?"production"===process.env.NODE_ENV:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.before=null}var t=e.prototype;return t.insert=function(e){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t=function(e){var t=document.createElement("style");return t.setAttribute("data-lights",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t}(this);this.container.insertBefore(t,0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling),this.tags.push(t)}var r=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t+=1)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(r);try{var o=105===e.charCodeAt(1)&&64===e.charCodeAt(0);n.insertRule(e,o?0:n.cssRules.length)}catch(t){"production"!==process.env.NODE_ENV&&console.warn('There was a problem inserting the following rule: "'+e+'"',t)}}else r.appendChild(document.createTextNode(e));this.ctr+=1},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}(),d={current:null};function h(e){e&&d.current.insert(e+"}")}var f,m=function(e,t,r,n,o,i,s,a,c,l){switch(e){default:break;case 1:switch(t.charCodeAt(0)){default:break;case 64:return d.current.insert(t+";"),"";case 108:if(98===t.charCodeAt(2))return""}break;case 2:if(0===a)return t+"/*|*/";break;case 3:switch(a){case 102:case 112:return d.current.insert(r[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(h)}},v=function(e,t){if(1===e&&108===t.charCodeAt(0)&&98===t.charCodeAt(2))return""},y="undefined"!=typeof document,g=/\/\*\|\*\//g,_={},b=y?void 0:t(function(){var e=t(function(){return{}}),r={},n={};return function(t){return void 0===t||!0===t?r:!1===t?n:e(t)}}),E="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",N=/[A-Z]|^ms/g,w=/_EMO_([^_]+?)_([^]*?)_EMO_/g,k=function(e){return 45===e.charCodeAt(1)},O=function(e){return null!=e&&"boolean"!=typeof e},x=o(function(e){return k(e)?e:e.replace(N,"-$&").toLowerCase()}),S=function(e,t){switch(e){default:break;case"animation":case"animationName":if("string"==typeof t)return t.replace(w,function(e,t,r){return f={name:t,styles:r,next:f},t})}return 1===n[e]||k(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var C=/(attr|calc|counters?|url)\(/,A=["normal","none","counter","open-quote","close-quote","no-open-quote","no-close-quote","initial","inherit","unset"],D=S,P=/^-ms-/,V=/-(.)/g,j={};S=function(e,t){"content"===e&&("string"!=typeof t||-1===A.indexOf(t)&&!C.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0)))&&console.error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var r=D(e,t);return""===r||k(e)||-1===e.indexOf("-")||void 0!==j[e]||(j[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(P,"ms-").replace(V,function(e,t){return t.toUpperCase()})+"?")),r}}function T(e,t,r,n){if(null==r)return"";if(void 0!==r.__lights_styles){var o=r.toString();if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with pretty-lights/babel.");return o}switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return f={name:r.name,styles:r.styles,next:f},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)f={name:i.name,styles:i.styles,next:f},i=i.next;var s=r.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==r.map&&(s+=r.map),s}return function(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o+=1)n+=T(e,t,r[o],!1);else for(var i in r){var s=r[i];if("object"!=typeof s)null!=t&&void 0!==t[s]?n+=i+"{"+t[s]+"}":O(s)&&(n+=x(i)+":"+S(i,s)+";");else{if("NO_COMPONENT_SELECTOR"===i&&"production"!==process.env.NODE_ENV)throw new Error("Component selectors can only be used in conjunction with pretty-lights/babel.");if(!Array.isArray(s)||"string"!=typeof s[0]||null!=t&&void 0!==t[s[0]]){var a=T(e,t,s,!1);switch(i){case"animation":case"animationName":n+=x(i)+":"+a+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===i&&console.error("You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key)."),n+=i+"{"+a+"}"}}else for(var c=0;c<s.length;c+=1)O(s[c])&&(n+=x(i)+":"+S(i,s[c])+";")}}return n}(e,t,r);case"function":if(void 0!==e){var a=f,c=r(e);return f=a,T(e,t,c,n)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var l=[],u=r.replace(w,function(e,t,r){var n="animation"+l.length;return l.push("const "+n+" = keyframes`"+r.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"});l.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(l,["`"+u+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+u+"`")}}if(null==t)return r;var p=t[r];return!1===n&&void 0!==p?p:r}var R,z=/label:\s*([^\s;\n{]+)\s*;/g;function q(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var o=!0,i="";f=void 0;var s,a=e[0];null==a||void 0===a.raw?(o=!1,i+=T(n,t,a,!1)):("production"!==process.env.NODE_ENV&&void 0===a[0]&&console.error(E),i+=a[0]);for(var c=1;c<e.length;c+=1)i+=T(n,t,e[c],46===i.charCodeAt(i.length-1)),o&&("production"!==process.env.NODE_ENV&&void 0===a[c]&&console.error(E),i+=a[c]);"production"!==process.env.NODE_ENV&&(i=i.replace(R,function(e){return s=e,""})),z.lastIndex=0;for(var l,u="";null!==(l=z.exec(i));)u+="-"+l[1];return{name:r(i)+u,styles:i,map:s,next:f}}"production"!==process.env.NODE_ENV&&(R=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//);var I="undefined"!=typeof document;function L(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]):r&&(n+=r+" ")}),n}var Y=function(e,t){var r=e.key+"-"+t.name;if(void 0===e.registered[r]&&(e.registered[r]=t.styles),void 0===e.inserted[t.name]){var n="",o=t;do{var i=e.insert("."+r,o,e.sheet,!0);I||void 0===i||(n+=i),o=o.next}while(void 0!==o);if(!I&&0!==n.length)return n}};function G(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function M(e,t,r){var n=[],o=L(e,n,r);return n.length<2?r:o+t(n)}var U=function e(t){for(var r="",n=0;n<t.length;n+=1){var o=t[n];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var s in i="",o)o[s]&&s&&(i&&(i+=" "),i+=s);break;default:i=o}i&&(r&&(r+=" "),r+=i)}}return r};function F(){return(F=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var $=i.createContext({}),H="undefined"!=typeof document,W=l,B=function(e){return"theme"!==e&&"innerRef"!==e},J=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?W:B},Z=t(function(e){return t(function(t){return function(e,t){if("function"==typeof t){var r=t(e);if("production"!==process.env.NODE_ENV&&(null==r||"object"!=typeof r||Array.isArray(r)))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return r}if("production"!==process.env.NODE_ENV&&(null==t||"object"!=typeof t||Array.isArray(t)))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return F({},e,t)}(e,t)})}),K=function(e){return s($.Consumer,null,function(t){return e.theme!==t&&(t=Z(t)(e.theme)),s($.Provider,{value:t},e.children)})};function Q(e){var t=e.displayName||e.name||"Component",r=c(function(t,r){return s($.Consumer,null,function(n){return s(e,F({theme:n,ref:r},t))})});return r.displayName="WithTheme("+t+")",u(r,e)}function X(){return i.useContext($)}function ee(e,t,r){var n,o=t.theme&&t.theme[e];return"function"==typeof(n="function"==typeof o?o(r):r[o]?r[o]:r.none)?n(t):n}function te(e,t){return function(r){return ee(e,r,t)}}te.variants=function(e,t,r){return function(n){var o=n[t]&&r[n[t]];return o&&ee(e,n,o)}};var re=function(t,r){if(void 0!==t.__SECRET_LIGHTS__)return t.__SECRET_LIGHTS__;var n=function(t){void 0===t&&(t={});var r,n,o=t.key||"css";if("production"!==process.env.NODE_ENV&&/[^a-z-]/.test(o))throw new Error('Pretty Lights key must only contain lower case alphabetical characters and - but "'+o+'" was passed');void 0!==t.prefix&&(n={prefix:t.prefix});var i,s,a=new e(n),c={};if(y){i=t.container||document.head;var l="data-lights-"+o,u=document.querySelectorAll("style["+l+"]");Array.prototype.forEach.call(u,function(e){(e.getAttribute(l)||"").split(" ").forEach(function(e){c[e]=!0}),e.parentNode!==i&&i.appendChild(e)})}if(y)a.use(t.stylisPlugins)(m),s=function(e,t,n,o){if(d.current=n,"production"!==process.env.NODE_ENV&&void 0!==t.map){var i=t.map;d.current={insert:function(e){n.insert(e+i)}}}if(void 0===r.inserted[t.name]){var s=a(e,t.styles);o&&(r.inserted[t.name]=s.replace(g,""))}};else{a.use(v);var h=_;(t.stylisPlugins||void 0!==t.prefix)&&(a.use(t.stylisPlugins),h=b(t.stylisPlugins||_)(t.prefix)),s=function(e,t,n,o){if(void 0===r.inserted[t.name]){var i=function(e,t){var r=t.name;return void 0===h[r]&&(h[r]=a(e,t.styles)),h[r]}(e,t);if(!o)return i;r.inserted[t.name]=i}}}if("production"!==process.env.NODE_ENV){var f=/\/\*/g,E=/\*\//g;a.use(function(e,t){switch(e){default:break;case-1:for(;f.test(t);){if(E.lastIndex=f.lastIndex,!E.test(t))throw new Error('Your styles have an unterminated comment ("/*" without corresponding "*/").');f.lastIndex=E.lastIndex}f.lastIndex=0}})}return r={key:o,sheet:new p({key:o,container:i,nonce:t.nonce,speedy:t.speedy}),nonce:t.nonce,inserted:c,registered:{},insert:s}}(void 0);n.sheet.speedy=function(e){if("production"!==process.env.NODE_ENV&&0!==this.ctr)throw new Error("speedy must be changed before any rules are inserted");this.isSpeedy=e},n.compat=!0;var o=function(){var e=q([].slice.call(arguments),n.registered),t=n.key+"-"+e.name;return Y(n,e),t},i={css:o,cx:function(){return M(n.registered,o,U([].slice.call(arguments)))},injectGlobal:function(){var e=q([].slice.call(arguments),n.registered);G(n,e)},keyframes:function(){var e=q([].slice.call(arguments),n.registered),t="animation-"+e.name;return G(n,{name:e.name,styles:"@keyframes "+t+"{"+e.styles+"}"}),t},hydrate:function(e){e.forEach(function(e){n.inserted[e]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:L,merge:M.bind(null,n.registered,o)};return t.__SECRET_LIGHTS__=i,i}("undefined"!=typeof global?global:{}),ne=function(e){var t=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.componentDidMount=function(){this.sheet=new p({key:this.props.cache.key+"-global",nonce:this.props.cache.sheet.nonce,container:this.props.cache.sheet.container});var e=document.querySelector("style[data-emotion-"+this.props.cache.key+'="'+this.props.serialized.name+'"]');null!==e&&this.sheet.tags.push(e),this.props.cache.sheet.tags.length&&(this.sheet.before=this.props.cache.sheet.tags[0]),this.insertStyles()},o.componentDidUpdate=function(e){e.serialized.name!==this.props.serialized.name&&this.insertStyles()},o.insertStyles=function(){void 0!==this.props.serialized.next&&Y(this.props.cache,this.props.serialized.next),this.sheet.tags.length&&(this.sheet.before=this.sheet.tags[this.sheet.tags.length-1].nextElementSibling,this.sheet.flush()),this.props.cache.insert("",this.props.serialized,this.sheet,!1)},o.componentWillUnmount=function(){this.sheet.flush()},o.render=function(){if(!H){for(var e=this.props.serialized,t=e.name,r=e.styles,n=e.next;void 0!==n;)t+=" "+n.name,r+=n.styles,n=n.next;this.props.cache.insert("",{name:t,styles:r},this.sheet,!0)}return null},n}(a);return function(r){var n=r.styles;if("function"==typeof n)return s($.Consumer,null,function(r){var o=q([n(r)],e.cache.registered);return s(t,{serialized:o,cache:e.cache})});var o=q([n],e.cache.registered);return s(t,{serialized:o,cache:e.cache})}}(re),oe=function(e){return function t(r,n){if("production"!==process.env.NODE_ENV&&void 0===r)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,i,a;void 0!==n&&(o=n.label,a=n.target,i=r.__lights_forwardProp&&n.shouldForwardProp?function(e){return r.__lights_forwardProp(e)&&n.shouldForwardProp(e)}:n.shouldForwardProp);var c=r.__lights_real===r,l=c&&r.__lights_base||r;"function"!=typeof i&&c&&(i=r.__lights_forwardProp);var u=i||J(l),p=!u("as");return function(){var d=[].slice.call(arguments),h=c&&void 0!==r.__lights_styles?r.__lights_styles.slice(0):[];if(void 0!==o&&h.push("label:"+o+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{"production"!==process.env.NODE_ENV&&void 0===d[0][0]&&console.error(E),h.push(d[0][0]);for(var f=d.length,m=1;m<f;m+=1)"production"!==process.env.NODE_ENV&&void 0===d[0][m]&&console.error(E),h.push(d[m],d[0][m])}var v=function(t){return s($.Consumer,null,function(r){var n=p&&t.as||l,o="",c=[],d=t;if(null==t.theme){for(var f in d={},t)d[f]=t[f];d.theme=r}"string"==typeof t.className?o=L(e.cache.registered,c,t.className):null!=t.className&&(o=t.className+" ");var m=q(h.concat(c),e.cache.registered,d);Y(e.cache,m),o+=e.cache.key+"-"+m.name,void 0!==a&&(o+=" "+a);var v=p&&void 0===i?J(n):u,y={};for(var g in t)p&&"as"===g||v(g)&&(y[g]=t[g]);return y.className=o,y.ref=t.innerRef,s(n,y)})};return v.displayName=void 0!==o?o:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",void 0!==r.defaultProps&&(v.defaultProps=r.defaultProps),v.__lights_styles=h,v.__lights_base=l,v.__lights_real=v,v.__lights_forwardProp=i,Object.defineProperty(v,"toString",{value:function(){return void 0===a&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+a}}),v.withComponent=function(e,r){return t(e,void 0!==r?F({},n||{},r):n).apply(void 0,h)},v}}}(re).bind();["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","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","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){oe[e]=oe(e)});var ie=re.flush,se=re.hydrate,ae=re.cx,ce=re.merge,le=re.getRegisteredStyles,ue=re.injectGlobal,pe=re.keyframes,de=re.css,he=re.sheet,fe=re.cache;export{ne as Global,$ as ThemeContext,K as ThemeProvider,fe as cache,de as css,ae as cx,ie as flush,le as getRegisteredStyles,se as hydrate,ue as injectGlobal,pe as keyframes,ce as merge,he as sheet,oe as styled,te as themeFn,X as useTheme,Q as withTheme}; | ||
//# sourceMappingURL=pretty-lights.modern.js.map |
100
package.json
{ | ||
"name": "pretty-lights", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "CSS-in-JS with a reliable API", | ||
@@ -32,15 +32,15 @@ "main": "lib/pretty-lights.js", | ||
"@emotion/babel-utils": "0.6.10", | ||
"@emotion/hash": "0.7.3", | ||
"@emotion/is-prop-valid": "0.8.5", | ||
"@emotion/memoize": "0.7.3", | ||
"@emotion/stylis": "0.8.4", | ||
"@emotion/unitless": "0.7.4", | ||
"@emotion/weak-memoize": "0.2.4", | ||
"chalk": "3.0.0", | ||
"@emotion/hash": "0.8.0", | ||
"@emotion/is-prop-valid": "0.8.8", | ||
"@emotion/memoize": "0.7.4", | ||
"@emotion/stylis": "0.8.5", | ||
"@emotion/unitless": "0.7.5", | ||
"@emotion/weak-memoize": "0.2.5", | ||
"chalk": "4.1.0", | ||
"convert-source-map": "1.7.0", | ||
"css": "2.2.4", | ||
"find-root": "1.1.0", | ||
"hoist-non-react-statics": "^3.3.1", | ||
"hoist-non-react-statics": "^3.3.2", | ||
"source-map": "0.7.3", | ||
"stylis": "^3.5.4", | ||
"stylis": "^3.5.0", | ||
"stylis-rule-sheet": "^0.0.10" | ||
@@ -54,42 +54,43 @@ }, | ||
"devDependencies": { | ||
"@babel/cli": "7.7.7", | ||
"@babel/core": "7.7.7", | ||
"@babel/plugin-proposal-class-properties": "7.7.4", | ||
"@babel/preset-env": "7.7.7", | ||
"@babel/preset-flow": "7.7.4", | ||
"@babel/preset-react": "7.7.4", | ||
"@testing-library/react": "^9.4.0", | ||
"@babel/cli": "7.10.3", | ||
"@babel/core": "7.10.3", | ||
"@babel/plugin-proposal-class-properties": "7.10.1", | ||
"@babel/preset-env": "7.10.3", | ||
"@babel/preset-flow": "7.10.1", | ||
"@babel/preset-react": "7.10.1", | ||
"@testing-library/react": "^10.4.3", | ||
"babel-check-duplicated-nodes": "1.0.0", | ||
"babel-eslint": "10.0.1", | ||
"babel-plugin-codegen": "3.1.0", | ||
"babel-eslint": "10.1.0", | ||
"babel-plugin-codegen": "4.0.1", | ||
"cssjanus": "1.3.2", | ||
"enzyme": "3.11.0", | ||
"enzyme-adapter-react-16": "1.15.2", | ||
"enzyme-to-json": "3.4.3", | ||
"eslint": "5.16.0", | ||
"eslint-config-airbnb": "17.1.0", | ||
"eslint-config-kyt": "1.0.0-alpha.8d1d2ff9", | ||
"eslint-config-prettier": "4.2.0", | ||
"eslint-plugin-flowtype": "4.5.2", | ||
"eslint-plugin-import": "2.17.2", | ||
"eslint-plugin-json": "1.4.0", | ||
"eslint-plugin-jsx-a11y": "6.2.1", | ||
"eslint-plugin-kyt": "1.0.0-alpha.8d1d2ff9", | ||
"eslint-plugin-prettier": "3.1.0", | ||
"eslint-plugin-react": "7.13.0", | ||
"eslint-plugin-react-hooks": "1.6.0", | ||
"flow-bin": "0.114.0", | ||
"jest": "24.9.0", | ||
"enzyme-to-json": "3.5.0", | ||
"eslint": "6.8.0", | ||
"eslint-config-airbnb": "18.2.0", | ||
"eslint-config-kyt": "1.0.5", | ||
"eslint-config-prettier": "6.11.0", | ||
"eslint-plugin-flowtype": "5.1.3", | ||
"eslint-plugin-import": "2.22.0", | ||
"eslint-plugin-jest": "23.17.1", | ||
"eslint-plugin-jest-formatting": "1.2.0", | ||
"eslint-plugin-json": "2.1.1", | ||
"eslint-plugin-jsx-a11y": "6.3.1", | ||
"eslint-plugin-prettier": "3.1.4", | ||
"eslint-plugin-react": "7.20.0", | ||
"eslint-plugin-react-hooks": "4.0.4", | ||
"flow-bin": "0.128.0", | ||
"jest": "26.1.0", | ||
"jest-in-case": "1.0.2", | ||
"jest-serializer-html": "^7.0.0", | ||
"microbundle": "0.11.0", | ||
"mkdirp": "0.5.1", | ||
"polished": "3.4.2", | ||
"prettier": "1.17.1", | ||
"pretty-format": "24.9.0", | ||
"microbundle": "0.12.2", | ||
"mkdirp": "1.0.4", | ||
"polished": "3.6.5", | ||
"prettier": "2.0.5", | ||
"pretty-format": "26.1.0", | ||
"prop-types": "^15.7.2", | ||
"react": "^16.12.0", | ||
"react-dom": "^16.12.0", | ||
"react-test-renderer": "16.12.0", | ||
"rimraf": "3.0.0", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"react-test-renderer": "16.13.1", | ||
"rimraf": "3.0.2", | ||
"touch": "3.1.0" | ||
@@ -101,11 +102,12 @@ }, | ||
"build:main": "NODE_ENV=production microbundle --jsx React.createElement -f es,cjs", | ||
"build:dev": "npm run clean && npm run build:server", | ||
"build": "npm run build:dev && npm run build:main", | ||
"prepare": "npm run build", | ||
"test": "npm run build:dev && jest", | ||
"test-update": "npm run build:dev && jest -u", | ||
"build:dev": "yarn clean && yarn build:server", | ||
"build": "yarn build:dev && yarn build:main", | ||
"prepare": "yarn build", | ||
"test": "yarn build:dev && jest", | ||
"test-update": "yarn build:dev && jest -u", | ||
"lint": "eslint .", | ||
"lint-fix": "eslint . --fix", | ||
"publish:alpha": "npm publish --tag alpha" | ||
"publish:alpha": "npm publish --tag alpha", | ||
"flow": "flow" | ||
} | ||
} |
@@ -68,2 +68,3 @@ # pretty-lights | ||
- [`injectGlobal`](./src/create/README.md#injectGlobal) | ||
- [`Global`](./src/global/README.md#global) | ||
@@ -70,0 +71,0 @@ ### Styled Components |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
225765
98
42
1084
+ Added@emotion/hash@0.8.0(transitive)
+ Added@emotion/is-prop-valid@0.8.8(transitive)
+ Added@emotion/memoize@0.7.4(transitive)
+ Added@emotion/stylis@0.8.5(transitive)
+ Added@emotion/unitless@0.7.5(transitive)
+ Added@emotion/weak-memoize@0.2.5(transitive)
+ Addedchalk@4.1.0(transitive)
- Removed@emotion/hash@0.7.3(transitive)
- Removed@emotion/is-prop-valid@0.8.5(transitive)
- Removed@emotion/memoize@0.7.3(transitive)
- Removed@emotion/stylis@0.8.4(transitive)
- Removed@emotion/unitless@0.7.4(transitive)
- Removed@emotion/weak-memoize@0.2.4(transitive)
- Removedchalk@3.0.0(transitive)
Updated@emotion/hash@0.8.0
Updated@emotion/is-prop-valid@0.8.8
Updated@emotion/memoize@0.7.4
Updated@emotion/stylis@0.8.5
Updated@emotion/unitless@0.7.5
Updated@emotion/weak-memoize@0.2.5
Updatedchalk@4.1.0
Updatedstylis@^3.5.0