Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

polished

Package Overview
Dependencies
Maintainers
3
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polished - npm Package Compare versions

Comparing version 3.6.3 to 3.6.4

2

dist/polished.min.js

@@ -1,1 +0,1 @@

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@babel/runtime/helpers/esm/extends"),require("@babel/runtime/helpers/esm/assertThisInitialized"),require("@babel/runtime/helpers/esm/inheritsLoose"),require("@babel/runtime/helpers/esm/wrapNativeSuper"),require("@babel/runtime/helpers/esm/taggedTemplateLiteralLoose")):"function"==typeof define&&define.amd?define(["exports","@babel/runtime/helpers/esm/extends","@babel/runtime/helpers/esm/assertThisInitialized","@babel/runtime/helpers/esm/inheritsLoose","@babel/runtime/helpers/esm/wrapNativeSuper","@babel/runtime/helpers/esm/taggedTemplateLiteralLoose"],r):r((e=e||self).polished={},e.extends,e.assertThisInitialized,e.inheritsLoose,e.wrapNativeSuper,e.taggedTemplateLiteralLoose)}(this,(function(e,r,t,n,o,a){"use strict";function i(){var e;return(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e]}r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o,a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var u={symbols:{"!":{postfix:{symbol:"!",f:function e(r){return r%1||!(+r>=0)?NaN:r>170?1/0:0===r?1:r*e(r-1)},notation:"postfix",precedence:6,rightToLeft:0,argCount:1},symbol:"!",regSymbol:"!"},"^":{infix:{symbol:"^",f:function(e,r){return Math.pow(e,r)},notation:"infix",precedence:5,rightToLeft:1,argCount:2},symbol:"^",regSymbol:"\\^"},"*":{infix:{symbol:"*",f:function(e,r){return e*r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"*",regSymbol:"\\*"},"/":{infix:{symbol:"/",f:function(e,r){return e/r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"/",regSymbol:"/"},"+":{infix:{symbol:"+",f:function(e,r){return e+r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"+",f:i,notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"+",regSymbol:"\\+"},"-":{infix:{symbol:"-",f:function(e,r){return e-r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"-",f:function(e){return-e},notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"-",regSymbol:"-"},",":{infix:{symbol:",",f:function(){return Array.of.apply(Array,arguments)},notation:"infix",precedence:1,rightToLeft:0,argCount:2},symbol:",",regSymbol:","},"(":{prefix:{symbol:"(",f:i,notation:"prefix",precedence:0,rightToLeft:0,argCount:1},symbol:"(",regSymbol:"\\("},")":{postfix:{symbol:")",f:void 0,notation:"postfix",precedence:0,rightToLeft:0,argCount:1},symbol:")",regSymbol:"\\)"},min:{func:{symbol:"min",f:function(){return Math.min.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"min",regSymbol:"min\\b"},max:{func:{symbol:"max",f:function(){return Math.max.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"max",regSymbol:"max\\b"},sqrt:{func:{symbol:"sqrt",f:function(e){return Math.sqrt(e)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"sqrt",regSymbol:"sqrt\\b"}}},f=function(e){function r(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+r+" for more information.")||this,t(n)}return n(r,e),r}(o(Error)),l=/((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;function s(e,r){var t,n=e.pop();return r.push(n.f.apply(n,(t=[]).concat.apply(t,r.splice(-n.argCount)))),n.precedence}function p(e,t){var n,o=function(e){var t={};return t.symbols=e?r({},u.symbols,{},e.symbols):r({},u.symbols),t}(t),a=[o.symbols["("].prefix],i=[],l=new RegExp("\\d+(?:\\.\\d+)?|"+Object.keys(o.symbols).map((function(e){return o.symbols[e]})).sort((function(e,r){return r.symbol.length-e.symbol.length})).map((function(e){return e.regSymbol})).join("|")+"|(\\S)","g");l.lastIndex=0;var p=!1;do{var c=(n=l.exec(e))||[")",void 0],d=c[0],b=c[1],h=o.symbols[d],m=h&&!h.prefix&&!h.func,g=!h||!h.postfix&&!h.infix;if(b||(p?g:m))throw new f(37,n?n.index:e.length,e);if(p){var y=h.postfix||h.infix;do{var v=a[a.length-1];if((y.precedence-v.precedence||v.rightToLeft)>0)break}while(s(a,i));p="postfix"===y.notation,")"!==y.symbol&&(a.push(y),p&&s(a,i))}else if(h){if(a.push(h.prefix||h.func),h.func&&(!(n=l.exec(e))||"("!==n[0]))throw new f(38,n?n.index:e.length,e)}else i.push(+d),p=!0}while(n&&a.length);if(a.length)throw new f(39,n?n.index:e.length,e);if(n)throw new f(40,n?n.index:e.length,e);return i.pop()}function c(e){return e.split("").reverse().join("")}var d=/--[\S]*/g;function b(e){return e.charAt(0).toUpperCase()+e.slice(1)}var h=["Top","Right","Bottom","Left"];function m(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(t.length>1)return t.splice(1,0,r),t.reduce((function(e,r){return""+e+b(r)}));var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function g(e,r){for(var t={},n=0;n<r.length;n+=1)(r[n]||0===r[n])&&(t[m(e,h[n])]=r[n]);return t}function y(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o=t[0],a=t[1],i=void 0===a?o:a,u=t[2],f=void 0===u?o:u,l=t[3],s=void 0===l?i:l,p=[o,i,f,s];return g(e,p)}function v(e,r){return e.substr(-r.length)===r}var w=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function x(e,r){if("string"!=typeof e)return r?[e,void 0]:e;var t=e.match(w);return r?(console.warn("stripUnit's unitReturn functionality has been marked for deprecation in polished 4.0. It's functionality has been been moved to getValueAndUnit."),t?[parseFloat(e),t[2]]:[e,void 0]):t?parseFloat(e):e}var S=function(e){return function(r,t){void 0===t&&(t="16px");var n=r,o=t;if("string"==typeof r){if(!v(r,"px"))throw new f(69,e,r);n=x(r)}if("string"==typeof t){if(!v(t,"px"))throw new f(70,e,t);o=x(t)}if("string"==typeof n)throw new f(71,r,e);if("string"==typeof o)throw new f(72,t,e);return""+n/o+e}},k=S("em"),z=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function A(e){if("string"!=typeof e)return[e,""];var r=e.match(z);return r?[parseFloat(e),r[2]]:[e,void 0]}var I={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};var F=S("rem");function j(e,r,t,n){void 0===t&&(t="320px"),void 0===n&&(n="1200px");var o=A(e),a=o[0],i=o[1],u=A(r),l=u[0],s=u[1],p=A(t),c=p[0],d=p[1],b=A(n),h=b[0],m=b[1];if("number"!=typeof c||"number"!=typeof h||!d||!m||d!==m)throw new f(47);if("number"!=typeof a||"number"!=typeof l||i!==s)throw new f(48);var g=(a-l)/(c-h);return"calc("+(l-g*h).toFixed(2)+(i||"")+" + "+(100*g).toFixed(2)+"vw)"}function C(e){var r=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,r){if(!e)return;if("string"==typeof e)return O(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return O(e,r)}(e)))return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var L=/^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i,T={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg",svgz:"svg"};function M(e,r){return r?' format("'+T[e]+'")':""}function q(e,r,t){return function(e){return!!e.match(L)}(e)?'url("'+e+'")'+M(r[0],t):r.map((function(r){return'url("'+e+"."+r+'")'+M(r,t)})).join(", ")}function R(e,r,t,n){var o=[];return r&&o.push(function(e){return e.map((function(e){return'local("'+e+'")'})).join(", ")}(r)),e&&o.push(q(e,t,n)),o.join(", ")}function W(e){return void 0===e&&(e=1.3),"\n @media only screen and (-webkit-min-device-pixel-ratio: "+e+"),\n only screen and (min--moz-device-pixel-ratio: "+e+"),\n only screen and (-o-min-device-pixel-ratio: "+e+"/1),\n only screen and (min-resolution: "+Math.round(96*e)+"dpi),\n only screen and (min-resolution: "+e+"dppx)\n "}function $(e){for(var r="",t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var a=0;a<e.length;a+=1)if(r+=e[a],a===n.length-1&&n[a]){var i=n.filter((function(e){return!!e}));i.length>1?(r=r.slice(0,-1),r+=", "+n[a]):1===i.length&&(r+=""+n[a])}else n[a]&&(r+=n[a]+" ");return r.trim()}function N(){var e=a(["linear-gradient(","",")"]);return N=function(){return e},e}function P(){var e=a(["radial-gradient(","","","",")"]);return P=function(){return e},e}var B={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};var E=function(e,r,t){var n=""+t[0]+(t[1]||""),o=""+t[0]/2+(t[1]||""),a=""+r[0]+(r[1]||""),i=""+r[0]/2+(r[1]||"");switch(e){case"top":return"0 "+o+" "+a+" "+o;case"topLeft":return n+" "+a+" 0 0";case"left":return i+" "+n+" "+i+" 0";case"bottomLeft":return n+" 0 0 "+a;case"bottom":return a+" "+o+" 0 "+o;case"bottomRight":return"0 0 "+n+" "+a;case"right":return i+" 0 "+i+" "+n;case"topRight":default:return"0 "+n+" "+a+" 0"}},Q=function(e,r,t){switch(e){case"top":case"bottomRight":return t+" "+t+" "+r+" "+t;case"right":case"bottomLeft":return t+" "+t+" "+t+" "+r;case"bottom":case"topLeft":return r+" "+t+" "+t+" "+t;case"left":case"topRight":return t+" "+r+" "+t+" "+t;default:throw new f(59)}};function V(e){return Math.round(255*e)}function D(e,r,t){return V(e)+","+V(r)+","+V(t)}function H(e,r,t,n){if(void 0===n&&(n=D),0===r)return n(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*r,i=a*(1-Math.abs(o%2-1)),u=0,f=0,l=0;o>=0&&o<1?(u=a,f=i):o>=1&&o<2?(u=i,f=a):o>=2&&o<3?(f=a,l=i):o>=3&&o<4?(f=i,l=a):o>=4&&o<5?(u=i,l=a):o>=5&&o<6&&(u=a,l=i);var s=t-a/2;return n(u+s,f+s,l+s)}var U={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var _=/^#[a-fA-F0-9]{6}$/,G=/^#[a-fA-F0-9]{8}$/,J=/^#[a-fA-F0-9]{3}$/,Z=/^#[a-fA-F0-9]{4}$/,K=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,X=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Y=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ee=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function re(e){if("string"!=typeof e)throw new f(3);var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return U[r]?"#"+U[r]:e}(e);if(r.match(_))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(G)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(J))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(Z)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var o=K.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=X.exec(r);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=Y.exec(r);if(i){var u="rgb("+H(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=K.exec(u);if(!l)throw new f(4,r,u);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var s=ee.exec(r);if(s){var p="rgb("+H(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",c=K.exec(p);if(!c)throw new f(4,r,p);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+s[4])}}throw new f(5)}function te(e){return function(e){var r,t=e.red/255,n=e.green/255,o=e.blue/255,a=Math.max(t,n,o),i=Math.min(t,n,o),u=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var f=a-i,l=u>.5?f/(2-a-i):f/(a+i);switch(a){case t:r=(n-o)/f+(n<o?6:0);break;case n:r=(o-t)/f+2;break;default:r=(t-n)/f+4}return r*=60,void 0!==e.alpha?{hue:r,saturation:l,lightness:u,alpha:e.alpha}:{hue:r,saturation:l,lightness:u}}(re(e))}var ne=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function oe(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function ae(e){return oe(Math.round(255*e))}function ie(e,r,t){return ne("#"+ae(e)+ae(r)+ae(t))}function ue(e,r,t){return H(e,r,t,ie)}function fe(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return ue(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return ue(e.hue,e.saturation,e.lightness);throw new f(1)}function le(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?ue(e,r,t):"rgba("+H(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?ue(e.hue,e.saturation,e.lightness):"rgba("+H(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new f(2)}function se(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return ne("#"+oe(e)+oe(r)+oe(t));if("object"==typeof e&&void 0===r&&void 0===t)return ne("#"+oe(e.red)+oe(e.green)+oe(e.blue));throw new f(6)}function pe(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=re(e);return"rgba("+o.red+","+o.green+","+o.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?se(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?se(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new f(7)}function ce(e){if("object"!=typeof e)throw new f(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return pe(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return se(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return le(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return fe(e);throw new f(8)}function de(e){return function e(r,t,n){return function(){var o=n.concat(Array.prototype.slice.call(arguments));return o.length>=t?r.apply(this,o):e(r,t,o)}}(e,e.length,[])}function be(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{hue:n.hue+parseFloat(e)}))}var he=de(be);function me(e,r,t){return Math.max(e,Math.min(r,t))}function ge(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{lightness:me(0,1,n.lightness-parseFloat(e))}))}var ye=de(ge);function ve(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{saturation:me(0,1,n.saturation-parseFloat(e))}))}var we=de(ve);function xe(e){if("transparent"===e)return 0;var r=re(e),t=Object.keys(r).map((function(e){var t=r[e]/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),n=t[0],o=t[1],a=t[2];return parseFloat((.2126*n+.7152*o+.0722*a).toFixed(3))}function Se(e,r){var t=xe(e),n=xe(r);return parseFloat((t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)).toFixed(2))}function ke(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{lightness:me(0,1,n.lightness+parseFloat(e))}))}var ze=de(ke);function Ae(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var o=re(t),a=r({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=re(n),u=r({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),f=a.alpha-u.alpha,l=2*parseFloat(e)-1,s=((l*f==-1?l:l+f)/(1+l*f)+1)/2,p=1-s;return pe({red:Math.floor(a.red*s+u.red*p),green:Math.floor(a.green*s+u.green*p),blue:Math.floor(a.blue*s+u.blue*p),alpha:a.alpha*(parseFloat(e)/1)+u.alpha*(1-parseFloat(e)/1)})}var Ie=de(Ae);function Fe(e,t){if("transparent"===t)return t;var n=re(t),o="number"==typeof n.alpha?n.alpha:1;return pe(r({},n,{alpha:me(0,1,(100*o+100*parseFloat(e))/100)}))}var je=de(Fe);function Ce(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{saturation:me(0,1,n.saturation+parseFloat(e))}))}var Oe=de(Ce);function Le(e,t){return"transparent"===t?t:ce(r({},te(t),{hue:parseFloat(e)}))}var Te=de(Le);function Me(e,t){return"transparent"===t?t:ce(r({},te(t),{lightness:parseFloat(e)}))}var qe=de(Me);function Re(e,t){return"transparent"===t?t:ce(r({},te(t),{saturation:parseFloat(e)}))}var We=de(Re);function $e(e,r){return"transparent"===r?r:Ie(parseFloat(e),"rgb(0, 0, 0)",r)}var Ne=de($e);function Pe(e,r){return"transparent"===r?r:Ie(parseFloat(e),"rgb(255, 255, 255)",r)}var Be=de(Pe);function Ee(e,t){if("transparent"===t)return t;var n=re(t),o="number"==typeof n.alpha?n.alpha:1;return pe(r({},n,{alpha:me(0,1,(100*o-100*parseFloat(e))/100)}))}var Qe=de(Ee);var Ve=["top","right","bottom","left"];function De(e,r){return e(r?":"+r:"")}function He(e,r,t){if(!r)throw new f(67);if(0===e.length)return De(r,null);for(var n=[],o=0;o<e.length;o+=1){if(t&&t.indexOf(e[o])<0)throw new f(68);n.push(De(r,e[o]))}return n=n.join(",")}var Ue=[void 0,null,"active","focus","hover"];function _e(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Ge=["absolute","fixed","relative","static","sticky"];var Je=[void 0,null,"active","focus","hover"];function Ze(e){return'input[type="color"]'+e+',\n input[type="date"]'+e+',\n input[type="datetime"]'+e+',\n input[type="datetime-local"]'+e+',\n input[type="email"]'+e+',\n input[type="month"]'+e+',\n input[type="number"]'+e+',\n input[type="password"]'+e+',\n input[type="search"]'+e+',\n input[type="tel"]'+e+',\n input[type="text"]'+e+',\n input[type="time"]'+e+',\n input[type="url"]'+e+',\n input[type="week"]'+e+",\n input:not([type])"+e+",\n textarea"+e}e.adjustHue=he,e.animation=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&r.length>8)throw new f(64);var o=r.map((function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new f(65);if(Array.isArray(e)&&e.length>8)throw new f(66);return Array.isArray(e)?e.join(" "):e})).join(", ");return{animation:o}},e.backgroundImages=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=j,e.border=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o;return"string"==typeof e&&Ve.indexOf(e)>=0?((o={})["border"+b(e)+"Width"]=t[0],o["border"+b(e)+"Style"]=t[1],o["border"+b(e)+"Color"]=t[2],o):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,r){var t,n,o=b(e);if(!r&&0!==r)throw new f(62);if("Top"===o||"Bottom"===o)return(t={})["border"+o+"RightRadius"]=r,t["border"+o+"LeftRadius"]=r,t;if("Left"===o||"Right"===o)return(n={})["borderTop"+o+"Radius"]=r,n["borderBottom"+o+"Radius"]=r,n;throw new f(63)},e.borderStyle=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return He(r,_e,Ue)},e.clearFix=function(e){var r;return void 0===e&&(e="&"),(r={})[e+"::after"]={clear:"both",content:'""',display:"table"},r},e.complement=function(e){if("transparent"===e)return e;var t=te(e);return ce(r({},t,{hue:(t.hue+180)%360}))},e.cover=function(e){return void 0===e&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}},e.cssVar=function(e,r){if(!e||!e.match(d)){if(r)return e;throw new f(73)}var t;if(null!==document.documentElement&&(t=getComputedStyle(document.documentElement).getPropertyValue(e)),t)return t.trim();throw new f(74)},e.darken=ye,e.desaturate=we,e.directionalProperty=y,e.ellipsis=function(e){return void 0===e&&(e="100%"),{display:"inline-block",maxWidth:e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=k,e.fluidRange=function(e,t,n){if(void 0===t&&(t="320px"),void 0===n&&(n="1200px"),!Array.isArray(e)&&"object"!=typeof e||null===e)throw new f(49);if(Array.isArray(e)){for(var o,a={},i={},u=C(e);!(o=u()).done;){var l,s,p=o.value;if(!p.prop||!p.fromSize||!p.toSize)throw new f(50);i[p.prop]=p.fromSize,a["@media (min-width: "+t+")"]=r({},a["@media (min-width: "+t+")"],((l={})[p.prop]=j(p.fromSize,p.toSize,t,n),l)),a["@media (min-width: "+n+")"]=r({},a["@media (min-width: "+n+")"],((s={})[p.prop]=p.toSize,s))}return r({},i,{},a)}var c,d,b;if(!e.prop||!e.fromSize||!e.toSize)throw new f(51);return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+t+")"]=((c={})[e.prop]=j(e.fromSize,e.toSize,t,n),c),b["@media (min-width: "+n+")"]=((d={})[e.prop]=e.toSize,d),b},e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,o=e.fontStyle,a=e.fontVariant,i=e.fontWeight,u=e.fileFormats,l=void 0===u?["eot","woff2","woff","ttf","svg"]:u,s=e.formatHint,p=void 0!==s&&s,c=e.localFonts,d=e.unicodeRange,b=e.fontDisplay,h=e.fontVariationSettings,m=e.fontFeatureSettings;if(!r)throw new f(55);if(!t&&!c)throw new f(52);if(c&&!Array.isArray(c))throw new f(53);if(!Array.isArray(l))throw new f(54);var g={"@font-face":{fontFamily:r,src:R(t,c,l,p),unicodeRange:d,fontStretch:n,fontStyle:o,fontVariant:a,fontWeight:i,fontDisplay:b,fontVariationSettings:h,fontFeatureSettings:m}};return JSON.parse(JSON.stringify(g))},e.getContrast=Se,e.getLuminance=xe,e.getValueAndUnit=A,e.grayscale=function(e){return"transparent"===e?e:ce(r({},te(e),{saturation:0}))},e.hiDPI=W,e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hsl=fe,e.hslToColorString=function(e){if("object"==typeof e&&"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness)return e.alpha&&"number"==typeof e.alpha?le({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):fe({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new f(45)},e.hsla=le,e.invert=function(e){if("transparent"===e)return e;var t=re(e);return ce(r({},t,{red:255-t.red,green:255-t.green,blue:255-t.blue}))},e.lighten=ze,e.linearGradient=function(e){var r=e.colorStops,t=e.fallback,n=e.toDirection,o=void 0===n?"":n;if(!r||r.length<2)throw new f(56);return{backgroundColor:t||r[0].split(" ")[0],backgroundImage:$(N(),o,r.join(", "))}},e.margin=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["margin"].concat(r))},e.math=function(e,r){var t=c(e),n=t.match(l);if(n&&!n.every((function(e){return e===n[0]})))throw new f(41);return""+p(c(t.replace(l,"")),r)+(n?c(n[0]):"")},e.meetsContrastGuidelines=function(e,r){var t=Se(e,r);return{AA:t>=4.5,AALarge:t>=3,AAA:t>=7,AAALarge:t>=4.5}},e.mix=Ie,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t=1.333),"number"!=typeof e)throw new f(42);if("string"==typeof t&&!I[t])throw new f(43);var n="string"==typeof r?A(r):[r,""],o=n[0],a=n[1],i="string"==typeof t?I[t]:t;if("string"==typeof o)throw new f(44,r);return""+o*Math.pow(i,e)+(a||"")},e.normalize=function(){var e;return[(e={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},main:{display:"block"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},e["b,\n strong"]={fontWeight:"bolder"},e["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},e.small={fontSize:"80%"},e["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},e.sub={bottom:"-0.25em"},e.sup={top:"-0.5em"},e.img={borderStyle:"none"},e["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},e["button,\n input"]={overflow:"visible"},e["button,\n select"]={textTransform:"none"},e['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},e['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},e['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},e.fieldset={padding:"0.35em 0.625em 0.75em"},e.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},e.progress={verticalAlign:"baseline"},e.textarea={overflow:"auto"},e['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},e['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},e['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},e['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},e["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},e.details={display:"block"},e.summary={display:"list-item"},e.template={display:"none"},e["[hidden]"]={display:"none"},e),{"abbr[title]":{textDecoration:"underline dotted"}}]},e.opacify=je,e.padding=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["padding"].concat(r))},e.parseToHsl=te,e.parseToRgb=re,e.position=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Ge.indexOf(e)>=0&&e?r({},y.apply(void 0,[""].concat(n)),{position:e}):y.apply(void 0,["",e].concat(n))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=void 0===t?"":t,o=e.fallback,a=e.position,i=void 0===a?"":a,u=e.shape,l=void 0===u?"":u;if(!r||r.length<2)throw new f(57);return{backgroundColor:o||r[0].split(" ")[0],backgroundImage:$(P(),i,l,n,r.join(", "))}},e.readableColor=function(e,r,t,n){void 0===r&&(r="#000"),void 0===t&&(t="#fff"),void 0===n&&(n=!1);var o=xe(e)>.179,a=o?r:t;return!n||Se(e,a)>=4.5?a:o?"#000":"#fff"},e.rem=F,e.retinaImage=function(e,t,n,o,a){var i;if(void 0===n&&(n="png"),void 0===a&&(a="_2x"),!e)throw new f(58);var u=n.replace(/^\./,""),l=o?o+"."+u:""+e+a+"."+u;return(i={backgroundImage:"url("+e+"."+u+")"})[W()]=r({backgroundImage:"url("+l+")"},t?{backgroundSize:t}:{}),i},e.rgb=se,e.rgbToColorString=function(e){if("object"==typeof e&&"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue)return e.alpha&&"number"==typeof e.alpha?pe({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):se({red:e.red,green:e.green,blue:e.blue});throw new f(46)},e.rgba=pe,e.saturate=Oe,e.setHue=Te,e.setLightness=qe,e.setSaturation=We,e.shade=Ne,e.size=function(e,r){return void 0===r&&(r=e),{height:e,width:r}},e.stripUnit=x,e.textInputs=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return He(r,Ze,Je)},e.timingFunctions=function(e){return B[e]},e.tint=Be,e.toColorString=ce,e.transitions=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(Array.isArray(r[0])&&2===r.length){var n=r[1];if("string"!=typeof n)throw new f(61);var o=r[0].map((function(e){return e+" "+n})).join(", ");return{transition:o}}return{transition:r.join(", ")}},e.transparentize=Qe,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,o=e.foregroundColor,a=e.backgroundColor,i=void 0===a?"transparent":a,u=A(n),l=A(t);if(isNaN(l[0])||isNaN(u[0]))throw new f(60);return{width:"0",height:"0",borderColor:Q(r,o,i),borderStyle:"solid",borderWidth:E(r,l,u)}},e.wordWrap=function(e){return void 0===e&&(e="break-word"),{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("@babel/runtime/helpers/esm/extends"),require("@babel/runtime/helpers/esm/assertThisInitialized"),require("@babel/runtime/helpers/esm/inheritsLoose"),require("@babel/runtime/helpers/esm/wrapNativeSuper"),require("@babel/runtime/helpers/esm/taggedTemplateLiteralLoose")):"function"==typeof define&&define.amd?define(["exports","@babel/runtime/helpers/esm/extends","@babel/runtime/helpers/esm/assertThisInitialized","@babel/runtime/helpers/esm/inheritsLoose","@babel/runtime/helpers/esm/wrapNativeSuper","@babel/runtime/helpers/esm/taggedTemplateLiteralLoose"],r):r((e=e||self).polished={},e.extends,e.assertThisInitialized,e.inheritsLoose,e.wrapNativeSuper,e.taggedTemplateLiteralLoose)}(this,(function(e,r,t,n,o,a){"use strict";function i(){var e;return(e=arguments.length-1)<0||arguments.length<=e?void 0:arguments[e]}r=r&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r,t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t,n=n&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n,o=o&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o,a=a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a;var u={symbols:{"!":{postfix:{symbol:"!",f:function e(r){return r%1||!(+r>=0)?NaN:r>170?1/0:0===r?1:r*e(r-1)},notation:"postfix",precedence:6,rightToLeft:0,argCount:1},symbol:"!",regSymbol:"!"},"^":{infix:{symbol:"^",f:function(e,r){return Math.pow(e,r)},notation:"infix",precedence:5,rightToLeft:1,argCount:2},symbol:"^",regSymbol:"\\^"},"*":{infix:{symbol:"*",f:function(e,r){return e*r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"*",regSymbol:"\\*"},"/":{infix:{symbol:"/",f:function(e,r){return e/r},notation:"infix",precedence:4,rightToLeft:0,argCount:2},symbol:"/",regSymbol:"/"},"+":{infix:{symbol:"+",f:function(e,r){return e+r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"+",f:i,notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"+",regSymbol:"\\+"},"-":{infix:{symbol:"-",f:function(e,r){return e-r},notation:"infix",precedence:2,rightToLeft:0,argCount:2},prefix:{symbol:"-",f:function(e){return-e},notation:"prefix",precedence:3,rightToLeft:0,argCount:1},symbol:"-",regSymbol:"-"},",":{infix:{symbol:",",f:function(){return Array.of.apply(Array,arguments)},notation:"infix",precedence:1,rightToLeft:0,argCount:2},symbol:",",regSymbol:","},"(":{prefix:{symbol:"(",f:i,notation:"prefix",precedence:0,rightToLeft:0,argCount:1},symbol:"(",regSymbol:"\\("},")":{postfix:{symbol:")",f:void 0,notation:"postfix",precedence:0,rightToLeft:0,argCount:1},symbol:")",regSymbol:"\\)"},min:{func:{symbol:"min",f:function(){return Math.min.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"min",regSymbol:"min\\b"},max:{func:{symbol:"max",f:function(){return Math.max.apply(Math,arguments)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"max",regSymbol:"max\\b"},sqrt:{func:{symbol:"sqrt",f:function(e){return Math.sqrt(e)},notation:"func",precedence:0,rightToLeft:0,argCount:1},symbol:"sqrt",regSymbol:"sqrt\\b"}}},f=function(e){function r(r){var n;return n=e.call(this,"An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#"+r+" for more information.")||this,t(n)}return n(r,e),r}(o(Error)),l=/((?!\w)a|na|hc|mc|dg|me[r]?|xe|ni(?![a-zA-Z])|mm|cp|tp|xp|q(?!s)|hv|xamv|nimv|wv|sm|s(?!\D|$)|ged|darg?|nrut)/g;function s(e,r){var t,n=e.pop();return r.push(n.f.apply(n,(t=[]).concat.apply(t,r.splice(-n.argCount)))),n.precedence}function p(e,t){var n,o=function(e){var t={};return t.symbols=e?r({},u.symbols,{},e.symbols):r({},u.symbols),t}(t),a=[o.symbols["("].prefix],i=[],l=new RegExp("\\d+(?:\\.\\d+)?|"+Object.keys(o.symbols).map((function(e){return o.symbols[e]})).sort((function(e,r){return r.symbol.length-e.symbol.length})).map((function(e){return e.regSymbol})).join("|")+"|(\\S)","g");l.lastIndex=0;var p=!1;do{var c=(n=l.exec(e))||[")",void 0],d=c[0],b=c[1],h=o.symbols[d],m=h&&!h.prefix&&!h.func,g=!h||!h.postfix&&!h.infix;if(b||(p?g:m))throw new f(37,n?n.index:e.length,e);if(p){var y=h.postfix||h.infix;do{var v=a[a.length-1];if((y.precedence-v.precedence||v.rightToLeft)>0)break}while(s(a,i));p="postfix"===y.notation,")"!==y.symbol&&(a.push(y),p&&s(a,i))}else if(h){if(a.push(h.prefix||h.func),h.func&&(!(n=l.exec(e))||"("!==n[0]))throw new f(38,n?n.index:e.length,e)}else i.push(+d),p=!0}while(n&&a.length);if(a.length)throw new f(39,n?n.index:e.length,e);if(n)throw new f(40,n?n.index:e.length,e);return i.pop()}function c(e){return e.split("").reverse().join("")}var d=/--[\S]*/g;function b(e){return e.charAt(0).toUpperCase()+e.slice(1)}var h=["Top","Right","Bottom","Left"];function m(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(t.length>1)return t.splice(1,0,r),t.reduce((function(e,r){return""+e+b(r)}));var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function g(e,r){for(var t={},n=0;n<r.length;n+=1)(r[n]||0===r[n])&&(t[m(e,h[n])]=r[n]);return t}function y(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o=t[0],a=t[1],i=void 0===a?o:a,u=t[2],f=void 0===u?o:u,l=t[3],s=void 0===l?i:l,p=[o,i,f,s];return g(e,p)}function v(e,r){return e.substr(-r.length)===r}var w=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function x(e,r){if("string"!=typeof e)return r?[e,void 0]:e;var t=e.match(w);return r?(console.warn("stripUnit's unitReturn functionality has been marked for deprecation in polished 4.0. It's functionality has been been moved to getValueAndUnit."),t?[parseFloat(e),t[2]]:[e,void 0]):t?parseFloat(e):e}var S=function(e){return function(r,t){void 0===t&&(t="16px");var n=r,o=t;if("string"==typeof r){if(!v(r,"px"))throw new f(69,e,r);n=x(r)}if("string"==typeof t){if(!v(t,"px"))throw new f(70,e,t);o=x(t)}if("string"==typeof n)throw new f(71,r,e);if("string"==typeof o)throw new f(72,t,e);return""+n/o+e}},k=S("em"),z=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function A(e){if("string"!=typeof e)return[e,""];var r=e.match(z);return r?[parseFloat(e),r[2]]:[e,void 0]}var I={minorSecond:1.067,majorSecond:1.125,minorThird:1.2,majorThird:1.25,perfectFourth:1.333,augFourth:1.414,perfectFifth:1.5,minorSixth:1.6,goldenSection:1.618,majorSixth:1.667,minorSeventh:1.778,majorSeventh:1.875,octave:2,majorTenth:2.5,majorEleventh:2.667,majorTwelfth:3,doubleOctave:4};var F=S("rem");function j(e,r,t,n){void 0===t&&(t="320px"),void 0===n&&(n="1200px");var o=A(e),a=o[0],i=o[1],u=A(r),l=u[0],s=u[1],p=A(t),c=p[0],d=p[1],b=A(n),h=b[0],m=b[1];if("number"!=typeof c||"number"!=typeof h||!d||!m||d!==m)throw new f(47);if("number"!=typeof a||"number"!=typeof l||i!==s)throw new f(48);var g=(a-l)/(c-h);return"calc("+(l-g*h).toFixed(2)+(i||"")+" + "+(100*g).toFixed(2)+"vw)"}function C(e){var r=0;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=function(e,r){if(!e)return;if("string"==typeof e)return O(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return O(e,r)}(e)))return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(r=e[Symbol.iterator]()).next.bind(r)}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}var L=/^\s*data:([a-z]+\/[a-z-]+(;[a-z-]+=[a-z-]+)?)?(;charset=[a-z0-9-]+)?(;base64)?,[a-z0-9!$&',()*+,;=\-._~:@/?%\s]*\s*$/i,T={woff:"woff",woff2:"woff2",ttf:"truetype",otf:"opentype",eot:"embedded-opentype",svg:"svg",svgz:"svg"};function M(e,r){return r?' format("'+T[e]+'")':""}function q(e,r,t){return function(e){return!!e.match(L)}(e)?'url("'+e+'")'+M(r[0],t):r.map((function(r){return'url("'+e+"."+r+'")'+M(r,t)})).join(", ")}function R(e,r,t,n){var o=[];return r&&o.push(function(e){return e.map((function(e){return'local("'+e+'")'})).join(", ")}(r)),e&&o.push(q(e,t,n)),o.join(", ")}function W(e){return void 0===e&&(e=1.3),"\n @media only screen and (-webkit-min-device-pixel-ratio: "+e+"),\n only screen and (min--moz-device-pixel-ratio: "+e+"),\n only screen and (-o-min-device-pixel-ratio: "+e+"/1),\n only screen and (min-resolution: "+Math.round(96*e)+"dpi),\n only screen and (min-resolution: "+e+"dppx)\n "}function $(e){for(var r="",t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];for(var a=0;a<e.length;a+=1)if(r+=e[a],a===n.length-1&&n[a]){var i=n.filter((function(e){return!!e}));i.length>1?(r=r.slice(0,-1),r+=", "+n[a]):1===i.length&&(r+=""+n[a])}else n[a]&&(r+=n[a]+" ");return r.trim()}function N(){var e=a(["linear-gradient(","",")"]);return N=function(){return e},e}function P(){var e=a(["radial-gradient(","","","",")"]);return P=function(){return e},e}var B={easeInBack:"cubic-bezier(0.600, -0.280, 0.735, 0.045)",easeInCirc:"cubic-bezier(0.600, 0.040, 0.980, 0.335)",easeInCubic:"cubic-bezier(0.550, 0.055, 0.675, 0.190)",easeInExpo:"cubic-bezier(0.950, 0.050, 0.795, 0.035)",easeInQuad:"cubic-bezier(0.550, 0.085, 0.680, 0.530)",easeInQuart:"cubic-bezier(0.895, 0.030, 0.685, 0.220)",easeInQuint:"cubic-bezier(0.755, 0.050, 0.855, 0.060)",easeInSine:"cubic-bezier(0.470, 0.000, 0.745, 0.715)",easeOutBack:"cubic-bezier(0.175, 0.885, 0.320, 1.275)",easeOutCubic:"cubic-bezier(0.215, 0.610, 0.355, 1.000)",easeOutCirc:"cubic-bezier(0.075, 0.820, 0.165, 1.000)",easeOutExpo:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",easeOutQuad:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",easeOutQuart:"cubic-bezier(0.165, 0.840, 0.440, 1.000)",easeOutQuint:"cubic-bezier(0.230, 1.000, 0.320, 1.000)",easeOutSine:"cubic-bezier(0.390, 0.575, 0.565, 1.000)",easeInOutBack:"cubic-bezier(0.680, -0.550, 0.265, 1.550)",easeInOutCirc:"cubic-bezier(0.785, 0.135, 0.150, 0.860)",easeInOutCubic:"cubic-bezier(0.645, 0.045, 0.355, 1.000)",easeInOutExpo:"cubic-bezier(1.000, 0.000, 0.000, 1.000)",easeInOutQuad:"cubic-bezier(0.455, 0.030, 0.515, 0.955)",easeInOutQuart:"cubic-bezier(0.770, 0.000, 0.175, 1.000)",easeInOutQuint:"cubic-bezier(0.860, 0.000, 0.070, 1.000)",easeInOutSine:"cubic-bezier(0.445, 0.050, 0.550, 0.950)"};var E=function(e,r,t){var n=""+t[0]+(t[1]||""),o=""+t[0]/2+(t[1]||""),a=""+r[0]+(r[1]||""),i=""+r[0]/2+(r[1]||"");switch(e){case"top":return"0 "+o+" "+a+" "+o;case"topLeft":return n+" "+a+" 0 0";case"left":return i+" "+n+" "+i+" 0";case"bottomLeft":return n+" 0 0 "+a;case"bottom":return a+" "+o+" 0 "+o;case"bottomRight":return"0 0 "+n+" "+a;case"right":return i+" 0 "+i+" "+n;case"topRight":default:return"0 "+n+" "+a+" 0"}},Q=function(e,r,t){switch(e){case"top":case"bottomRight":return t+" "+t+" "+r+" "+t;case"right":case"bottomLeft":return t+" "+t+" "+t+" "+r;case"bottom":case"topLeft":return r+" "+t+" "+t+" "+t;case"left":case"topRight":return t+" "+r+" "+t+" "+t;default:throw new f(59)}};function V(e){return Math.round(255*e)}function D(e,r,t){return V(e)+","+V(r)+","+V(t)}function H(e,r,t,n){if(void 0===n&&(n=D),0===r)return n(t,t,t);var o=(e%360+360)%360/60,a=(1-Math.abs(2*t-1))*r,i=a*(1-Math.abs(o%2-1)),u=0,f=0,l=0;o>=0&&o<1?(u=a,f=i):o>=1&&o<2?(u=i,f=a):o>=2&&o<3?(f=a,l=i):o>=3&&o<4?(f=i,l=a):o>=4&&o<5?(u=i,l=a):o>=5&&o<6&&(u=a,l=i);var s=t-a/2;return n(u+s,f+s,l+s)}var U={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var _=/^#[a-fA-F0-9]{6}$/,G=/^#[a-fA-F0-9]{8}$/,J=/^#[a-fA-F0-9]{3}$/,Z=/^#[a-fA-F0-9]{4}$/,K=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,X=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i,Y=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i,ee=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*(\d{1,3}[.]?[0-9]?)%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/i;function re(e){if("string"!=typeof e)throw new f(3);var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return U[r]?"#"+U[r]:e}(e);if(r.match(_))return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16)};if(r.match(G)){var t=parseFloat((parseInt(""+r[7]+r[8],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[2],16),green:parseInt(""+r[3]+r[4],16),blue:parseInt(""+r[5]+r[6],16),alpha:t}}if(r.match(J))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};if(r.match(Z)){var n=parseFloat((parseInt(""+r[4]+r[4],16)/255).toFixed(2));return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16),alpha:n}}var o=K.exec(r);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var a=X.exec(r);if(a)return{red:parseInt(""+a[1],10),green:parseInt(""+a[2],10),blue:parseInt(""+a[3],10),alpha:parseFloat(""+a[4])};var i=Y.exec(r);if(i){var u="rgb("+H(parseInt(""+i[1],10),parseInt(""+i[2],10)/100,parseInt(""+i[3],10)/100)+")",l=K.exec(u);if(!l)throw new f(4,r,u);return{red:parseInt(""+l[1],10),green:parseInt(""+l[2],10),blue:parseInt(""+l[3],10)}}var s=ee.exec(r);if(s){var p="rgb("+H(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",c=K.exec(p);if(!c)throw new f(4,r,p);return{red:parseInt(""+c[1],10),green:parseInt(""+c[2],10),blue:parseInt(""+c[3],10),alpha:parseFloat(""+s[4])}}throw new f(5)}function te(e){return function(e){var r,t=e.red/255,n=e.green/255,o=e.blue/255,a=Math.max(t,n,o),i=Math.min(t,n,o),u=(a+i)/2;if(a===i)return void 0!==e.alpha?{hue:0,saturation:0,lightness:u,alpha:e.alpha}:{hue:0,saturation:0,lightness:u};var f=a-i,l=u>.5?f/(2-a-i):f/(a+i);switch(a){case t:r=(n-o)/f+(n<o?6:0);break;case n:r=(o-t)/f+2;break;default:r=(t-n)/f+4}return r*=60,void 0!==e.alpha?{hue:r,saturation:l,lightness:u,alpha:e.alpha}:{hue:r,saturation:l,lightness:u}}(re(e))}var ne=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function oe(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function ae(e){return oe(Math.round(255*e))}function ie(e,r,t){return ne("#"+ae(e)+ae(r)+ae(t))}function ue(e,r,t){return H(e,r,t,ie)}function fe(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return ue(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return ue(e.hue,e.saturation,e.lightness);throw new f(1)}function le(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?ue(e,r,t):"rgba("+H(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?ue(e.hue,e.saturation,e.lightness):"rgba("+H(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new f(2)}function se(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return ne("#"+oe(e)+oe(r)+oe(t));if("object"==typeof e&&void 0===r&&void 0===t)return ne("#"+oe(e.red)+oe(e.green)+oe(e.blue));throw new f(6)}function pe(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var o=re(e);return"rgba("+o.red+","+o.green+","+o.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return n>=1?se(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return e.alpha>=1?se(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new f(7)}function ce(e){if("object"!=typeof e)throw new f(8);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return pe(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return se(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return le(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return fe(e);throw new f(8)}function de(e){return function e(r,t,n){return function(){var o=n.concat(Array.prototype.slice.call(arguments));return o.length>=t?r.apply(this,o):e(r,t,o)}}(e,e.length,[])}function be(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{hue:n.hue+parseFloat(e)}))}var he=de(be);function me(e,r,t){return Math.max(e,Math.min(r,t))}function ge(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{lightness:me(0,1,n.lightness-parseFloat(e))}))}var ye=de(ge);function ve(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{saturation:me(0,1,n.saturation-parseFloat(e))}))}var we=de(ve);function xe(e){if("transparent"===e)return 0;var r=re(e),t=Object.keys(r).map((function(e){var t=r[e]/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),n=t[0],o=t[1],a=t[2];return parseFloat((.2126*n+.7152*o+.0722*a).toFixed(3))}function Se(e,r){var t=xe(e),n=xe(r);return parseFloat((t>n?(t+.05)/(n+.05):(n+.05)/(t+.05)).toFixed(2))}function ke(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{lightness:me(0,1,n.lightness+parseFloat(e))}))}var ze=de(ke);function Ae(e,t,n){if("transparent"===t)return n;if("transparent"===n)return t;if(0===e)return n;var o=re(t),a=r({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),i=re(n),u=r({},i,{alpha:"number"==typeof i.alpha?i.alpha:1}),f=a.alpha-u.alpha,l=2*parseFloat(e)-1,s=((l*f==-1?l:l+f)/(1+l*f)+1)/2,p=1-s;return pe({red:Math.floor(a.red*s+u.red*p),green:Math.floor(a.green*s+u.green*p),blue:Math.floor(a.blue*s+u.blue*p),alpha:a.alpha*(parseFloat(e)/1)+u.alpha*(1-parseFloat(e)/1)})}var Ie=de(Ae);function Fe(e,t){if("transparent"===t)return t;var n=re(t),o="number"==typeof n.alpha?n.alpha:1;return pe(r({},n,{alpha:me(0,1,(100*o+100*parseFloat(e))/100)}))}var je=de(Fe);function Ce(e,t){if("transparent"===t)return t;var n=te(t);return ce(r({},n,{saturation:me(0,1,n.saturation+parseFloat(e))}))}var Oe=de(Ce);function Le(e,t){return"transparent"===t?t:ce(r({},te(t),{hue:parseFloat(e)}))}var Te=de(Le);function Me(e,t){return"transparent"===t?t:ce(r({},te(t),{lightness:parseFloat(e)}))}var qe=de(Me);function Re(e,t){return"transparent"===t?t:ce(r({},te(t),{saturation:parseFloat(e)}))}var We=de(Re);function $e(e,r){return"transparent"===r?r:Ie(parseFloat(e),"rgb(0, 0, 0)",r)}var Ne=de($e);function Pe(e,r){return"transparent"===r?r:Ie(parseFloat(e),"rgb(255, 255, 255)",r)}var Be=de(Pe);function Ee(e,t){if("transparent"===t)return t;var n=re(t),o="number"==typeof n.alpha?n.alpha:1;return pe(r({},n,{alpha:me(0,1,(100*o-100*parseFloat(e))/100)}))}var Qe=de(Ee);var Ve=["top","right","bottom","left"];function De(e,r){return e(r?":"+r:"")}function He(e,r,t){if(!r)throw new f(67);if(0===e.length)return De(r,null);for(var n=[],o=0;o<e.length;o+=1){if(t&&t.indexOf(e[o])<0)throw new f(68);n.push(De(r,e[o]))}return n=n.join(",")}var Ue=[void 0,null,"active","focus","hover"];function _e(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Ge=["absolute","fixed","relative","static","sticky"];var Je=[void 0,null,"active","focus","hover"];function Ze(e){return'input[type="color"]'+e+',\n input[type="date"]'+e+',\n input[type="datetime"]'+e+',\n input[type="datetime-local"]'+e+',\n input[type="email"]'+e+',\n input[type="month"]'+e+',\n input[type="number"]'+e+',\n input[type="password"]'+e+',\n input[type="search"]'+e+',\n input[type="tel"]'+e+',\n input[type="text"]'+e+',\n input[type="time"]'+e+',\n input[type="url"]'+e+',\n input[type="week"]'+e+",\n input:not([type])"+e+",\n textarea"+e}e.adjustHue=he,e.animation=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&r.length>8)throw new f(64);var o=r.map((function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new f(65);if(Array.isArray(e)&&e.length>8)throw new f(66);return Array.isArray(e)?e.join(" "):e})).join(", ");return{animation:o}},e.backgroundImages=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=j,e.border=function(e){for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var o;return"string"==typeof e&&Ve.indexOf(e)>=0?((o={})["border"+b(e)+"Width"]=t[0],o["border"+b(e)+"Style"]=t[1],o["border"+b(e)+"Color"]=t[2],o):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["borderColor"].concat(r))},e.borderRadius=function(e,r){var t,n,o=b(e);if(!r&&0!==r)throw new f(62);if("Top"===o||"Bottom"===o)return(t={})["border"+o+"RightRadius"]=r,t["border"+o+"LeftRadius"]=r,t;if("Left"===o||"Right"===o)return(n={})["borderTop"+o+"Radius"]=r,n["borderBottom"+o+"Radius"]=r,n;throw new f(63)},e.borderStyle=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return He(r,_e,Ue)},e.clearFix=function(e){var r;return void 0===e&&(e="&"),(r={})[e+"::after"]={clear:"both",content:'""',display:"table"},r},e.complement=function(e){if("transparent"===e)return e;var t=te(e);return ce(r({},t,{hue:(t.hue+180)%360}))},e.cover=function(e){return void 0===e&&(e=0),{position:"absolute",top:e,right:e,bottom:e,left:e}},e.cssVar=function(e,r){if(!e||!e.match(d)){if(r)return e;throw new f(73)}var t;if(null!==document.documentElement&&(t=getComputedStyle(document.documentElement).getPropertyValue(e)),t)return t.trim();throw new f(74)},e.darken=ye,e.desaturate=we,e.directionalProperty=y,e.ellipsis=function(e){return void 0===e&&(e="100%"),{display:"inline-block",maxWidth:e,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"}},e.em=k,e.fluidRange=function(e,t,n){if(void 0===t&&(t="320px"),void 0===n&&(n="1200px"),!Array.isArray(e)&&"object"!=typeof e||null===e)throw new f(49);if(Array.isArray(e)){for(var o,a={},i={},u=C(e);!(o=u()).done;){var l,s,p=o.value;if(!p.prop||!p.fromSize||!p.toSize)throw new f(50);i[p.prop]=p.fromSize,a["@media (min-width: "+t+")"]=r({},a["@media (min-width: "+t+")"],((l={})[p.prop]=j(p.fromSize,p.toSize,t,n),l)),a["@media (min-width: "+n+")"]=r({},a["@media (min-width: "+n+")"],((s={})[p.prop]=p.toSize,s))}return r({},i,{},a)}var c,d,b;if(!e.prop||!e.fromSize||!e.toSize)throw new f(51);return(b={})[e.prop]=e.fromSize,b["@media (min-width: "+t+")"]=((c={})[e.prop]=j(e.fromSize,e.toSize,t,n),c),b["@media (min-width: "+n+")"]=((d={})[e.prop]=e.toSize,d),b},e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,o=e.fontStyle,a=e.fontVariant,i=e.fontWeight,u=e.fileFormats,l=void 0===u?["eot","woff2","woff","ttf","svg"]:u,s=e.formatHint,p=void 0!==s&&s,c=e.localFonts,d=e.unicodeRange,b=e.fontDisplay,h=e.fontVariationSettings,m=e.fontFeatureSettings;if(!r)throw new f(55);if(!t&&!c)throw new f(52);if(c&&!Array.isArray(c))throw new f(53);if(!Array.isArray(l))throw new f(54);var g={"@font-face":{fontFamily:r,src:R(t,c,l,p),unicodeRange:d,fontStretch:n,fontStyle:o,fontVariant:a,fontWeight:i,fontDisplay:b,fontVariationSettings:h,fontFeatureSettings:m}};return JSON.parse(JSON.stringify(g))},e.getContrast=Se,e.getLuminance=xe,e.getValueAndUnit=A,e.grayscale=function(e){return"transparent"===e?e:ce(r({},te(e),{saturation:0}))},e.hiDPI=W,e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hsl=fe,e.hslToColorString=function(e){if("object"==typeof e&&"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness)return e.alpha&&"number"==typeof e.alpha?le({hue:e.hue,saturation:e.saturation,lightness:e.lightness,alpha:e.alpha}):fe({hue:e.hue,saturation:e.saturation,lightness:e.lightness});throw new f(45)},e.hsla=le,e.invert=function(e){if("transparent"===e)return e;var t=re(e);return ce(r({},t,{red:255-t.red,green:255-t.green,blue:255-t.blue}))},e.lighten=ze,e.linearGradient=function(e){var r=e.colorStops,t=e.fallback,n=e.toDirection,o=void 0===n?"":n;if(!r||r.length<2)throw new f(56);return{backgroundColor:t||r[0].split(" ")[0],backgroundImage:$(N(),o,r.join(", "))}},e.margin=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["margin"].concat(r))},e.math=function(e,r){var t=c(e),n=t.match(l);if(n&&!n.every((function(e){return e===n[0]})))throw new f(41);return""+p(c(t.replace(l,"")),r)+(n?c(n[0]):"")},e.meetsContrastGuidelines=function(e,r){var t=Se(e,r);return{AA:t>=4.5,AALarge:t>=3,AAA:t>=7,AAALarge:t>=4.5}},e.mix=Ie,e.modularScale=function(e,r,t){if(void 0===r&&(r="1em"),void 0===t&&(t=1.333),"number"!=typeof e)throw new f(42);if("string"==typeof t&&!I[t])throw new f(43);var n="string"==typeof r?A(r):[r,""],o=n[0],a=n[1],i="string"==typeof t?I[t]:t;if("string"==typeof o)throw new f(44,r);return""+o*Math.pow(i,e)+(a||"")},e.normalize=function(){var e;return[(e={html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},main:{display:"block"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{backgroundColor:"transparent"},"abbr[title]":{borderBottom:"none",textDecoration:"underline"}},e["b,\n strong"]={fontWeight:"bolder"},e["code,\n kbd,\n samp"]={fontFamily:"monospace, monospace",fontSize:"1em"},e.small={fontSize:"80%"},e["sub,\n sup"]={fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},e.sub={bottom:"-0.25em"},e.sup={top:"-0.5em"},e.img={borderStyle:"none"},e["button,\n input,\n optgroup,\n select,\n textarea"]={fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},e["button,\n input"]={overflow:"visible"},e["button,\n select"]={textTransform:"none"},e['button,\n html [type="button"],\n [type="reset"],\n [type="submit"]']={WebkitAppearance:"button"},e['button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner']={borderStyle:"none",padding:"0"},e['button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring']={outline:"1px dotted ButtonText"},e.fieldset={padding:"0.35em 0.625em 0.75em"},e.legend={boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},e.progress={verticalAlign:"baseline"},e.textarea={overflow:"auto"},e['[type="checkbox"],\n [type="radio"]']={boxSizing:"border-box",padding:"0"},e['[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button']={height:"auto"},e['[type="search"]']={WebkitAppearance:"textfield",outlineOffset:"-2px"},e['[type="search"]::-webkit-search-decoration']={WebkitAppearance:"none"},e["::-webkit-file-upload-button"]={WebkitAppearance:"button",font:"inherit"},e.details={display:"block"},e.summary={display:"list-item"},e.template={display:"none"},e["[hidden]"]={display:"none"},e),{"abbr[title]":{textDecoration:"underline dotted"}}]},e.opacify=je,e.padding=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return y.apply(void 0,["padding"].concat(r))},e.parseToHsl=te,e.parseToRgb=re,e.position=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return Ge.indexOf(e)>=0&&e?r({},y.apply(void 0,[""].concat(n)),{position:e}):y.apply(void 0,["",e].concat(n))},e.radialGradient=function(e){var r=e.colorStops,t=e.extent,n=void 0===t?"":t,o=e.fallback,a=e.position,i=void 0===a?"":a,u=e.shape,l=void 0===u?"":u;if(!r||r.length<2)throw new f(57);return{backgroundColor:o||r[0].split(" ")[0],backgroundImage:$(P(),i,l,n,r.join(", "))}},e.readableColor=function(e,r,t,n){void 0===r&&(r="#000"),void 0===t&&(t="#fff"),void 0===n&&(n=!1);var o=xe(e)>.179,a=o?r:t;return!n||Se(e,a)>=4.5?a:o?"#000":"#fff"},e.rem=F,e.retinaImage=function(e,t,n,o,a){var i;if(void 0===n&&(n="png"),void 0===a&&(a="_2x"),!e)throw new f(58);var u=n.replace(/^\./,""),l=o?o+"."+u:""+e+a+"."+u;return(i={backgroundImage:"url("+e+"."+u+")"})[W()]=r({backgroundImage:"url("+l+")"},t?{backgroundSize:t}:{}),i},e.rgb=se,e.rgbToColorString=function(e){if("object"==typeof e&&"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue)return"number"==typeof e.alpha?pe({red:e.red,green:e.green,blue:e.blue,alpha:e.alpha}):se({red:e.red,green:e.green,blue:e.blue});throw new f(46)},e.rgba=pe,e.saturate=Oe,e.setHue=Te,e.setLightness=qe,e.setSaturation=We,e.shade=Ne,e.size=function(e,r){return void 0===r&&(r=e),{height:e,width:r}},e.stripUnit=x,e.textInputs=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return He(r,Ze,Je)},e.timingFunctions=function(e){return B[e]},e.tint=Be,e.toColorString=ce,e.transitions=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];if(Array.isArray(r[0])&&2===r.length){var n=r[1];if("string"!=typeof n)throw new f(61);var o=r[0].map((function(e){return e+" "+n})).join(", ");return{transition:o}}return{transition:r.join(", ")}},e.transparentize=Qe,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,o=e.foregroundColor,a=e.backgroundColor,i=void 0===a?"transparent":a,u=A(n),l=A(t);if(isNaN(l[0])||isNaN(u[0]))throw new f(60);return{width:"0",height:"0",borderColor:Q(r,o,i),borderStyle:"solid",borderWidth:E(r,l,u)}},e.wordWrap=function(e){return void 0===e&&(e="break-word"),{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})}));

@@ -40,3 +40,3 @@ "use strict";

if (typeof color === 'object' && typeof color.red === 'number' && typeof color.green === 'number' && typeof color.blue === 'number') {
if (color.alpha && typeof color.alpha === 'number') {
if (typeof color.alpha === 'number') {
return (0, _rgba["default"])({

@@ -43,0 +43,0 @@ red: color.red,

{
"name": "polished",
"version": "3.6.3",
"version": "3.6.4",
"description": "A lightweight toolset for writing styles in Javascript.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -41,3 +41,3 @@ <a href="https://github.com/styled-components/polished">

As of v3.6.X we use `esmodules: true` for our ESM build and `>0.5%, not dead, ie >= 11, not op_mini all` for CJS and UMD builds.
As of v3.6.X we support `>0.5%, not dead, ie >= 11, not op_mini all` for all our builds.

@@ -44,0 +44,0 @@ ## Flow Type Definitions

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc