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 2.0.0 to 2.0.1

2

dist/polished.min.js

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

!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(e.polished={})}(this,function(e){"use strict";function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}var f=["Top","Right","Bottom","Left"];function p(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(1<t.length)return t.splice(1,0,r),t.reduce(function(e,r){return""+e+o(r)});var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function a(e){for(var r=arguments.length,t=Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var a=t[0],o=t[1],i=void 0===o?a:o,u=t[2],s=void 0===u?a:u,l=t[3];return function(e,r){for(var t={},n=0;n<r.length;n+=1)(r[n]||0===r[n])&&(t[p(e,f[n])]=r[n]);return t}(e,[a,i,s,void 0===l?i:l])}function i(e,r){return e.substr(-r.length)===r}function u(e){var r=parseFloat(e);return isNaN(r)?e:r}var r=function(a){return function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"16px",t=e,n=r;if("string"==typeof e){if(!i(e,"px"))throw new Error('Expected a string ending in "px" or a number passed as the first argument to '+a+'(), got "'+e+'" instead.');t=u(e)}if("string"==typeof r){if(!i(r,"px"))throw new Error('Expected a string ending in "px" or a number passed as the second argument to '+a+'(), got "'+r+'" instead.');n=u(r)}if("string"==typeof t)throw new Error('Passed invalid pixel value ("'+e+'") to '+a+'(), please pass a value like "12px" or 12.');if("string"==typeof n)throw new Error('Passed invalid base value ("'+r+'") to '+a+'(), please pass a value like "12px" or 12.');return""+t/n+a}},t=r("em"),n=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function m(e){if("string"!=typeof e)return[e,""];var r=e.match(n);return r?[parseFloat(e),r[2]]:[e,void 0]}var s={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 l=r("rem");function b(e,r){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"320px",n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"1200px",a=m(e),o=a[0],i=a[1],u=m(r),s=u[0],l=u[1],f=m(t),p=f[0],d=f[1],c=m(n),h=c[0],b=c[1];if("number"!=typeof p||"number"!=typeof h||!d||!b||d!==b)throw new Error("minScreen and maxScreen must be provided as stringified numbers with the same units.");if("number"!=typeof o||"number"!=typeof s||!i||!l||i!==l)throw new Error("fromSize and toSize must be provided as stringified numbers with the same units.");var g=(o-s)/(p-h);return"calc("+(s-g*h).toFixed(2)+i+" + "+(100*g).toFixed(2)+"vw)"}var g=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};function d(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1.3;return"\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 "}var c=function(e,r){return e.raw=r,e}(["radial-gradient(","","","",")"],["radial-gradient(","","","",")"]);var h={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)"};function v(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderColor"].concat(r))}var y=["bottom","left","top","right"];function w(e){return Math.round(255*e)}function x(e,r,t){return w(e)+","+w(r)+","+w(t)}function k(e,r,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:x;if(0===r)return n(t,t,t);var a=e%360/60,o=(1-Math.abs(2*t-1))*r,i=o*(1-Math.abs(a%2-1)),u=0,s=0,l=0;0<=a&&a<1?(u=o,s=i):1<=a&&a<2?(u=i,s=o):2<=a&&a<3?(s=o,l=i):3<=a&&a<4?(s=i,l=o):4<=a&&a<5?(u=i,l=o):5<=a&&a<6&&(u=o,l=i);var f=t-o/2;return n(u+f,s+f,l+f)}var S={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 z=/^#[a-fA-F0-9]{6}$/,I=/^#[a-fA-F0-9]{8}$/,F=/^#[a-fA-F0-9]{3}$/,A=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,E=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,j=/^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,O=/^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function C(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return S[r]?"#"+S[r]:e}(e);if(r.match(z))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(I)){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(F))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};var n=A.exec(r);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var a=E.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 o=j.exec(r);if(o){var i="rgb("+k(parseInt(""+o[1],10),parseInt(""+o[2],10)/100,parseInt(""+o[3],10)/100)+")",u=A.exec(i);if(!u)throw new Error("Couldn't generate valid rgb string from "+r+", it returned "+i+".");return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var s=O.exec(r);if(s){var l="rgb("+k(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",f=A.exec(l);if(!f)throw new Error("Couldn't generate valid rgb string from "+r+", it returned "+l+".");return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+s[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function P(e){return function(e){var r=e.red/255,t=e.green/255,n=e.blue/255,a=Math.max(r,t,n),o=Math.min(r,t,n),i=(a+o)/2;if(a===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=void 0,s=a-o,l=.5<i?s/(2-a-o):s/(a+o);switch(a){case r:u=(t-n)/s+(t<n?6:0);break;case t:u=(n-r)/s+2;break;default:u=(r-t)/s+4}return u*=60,void 0!==e.alpha?{hue:u,saturation:l,lightness:i,alpha:e.alpha}:{hue:u,saturation:l,lightness:i}}(C(e))}var W=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 R(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function T(e){return R(Math.round(255*e))}function M(e,r,t){return W("#"+T(e)+T(r)+T(t))}function q(e,r,t){return k(e,r,t,M)}function $(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return q(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return q(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function B(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?q(e,r,t):"rgba("+k(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?q(e.hue,e.saturation,e.lightness):"rgba("+k(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function Q(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return W("#"+R(e)+R(r)+R(t));if("object"==typeof e&&void 0===r&&void 0===t)return W("#"+R(e.red)+R(e.green)+R(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function H(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var a=C(e);return"rgba("+a.red+","+a.green+","+a.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?Q(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?Q(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var N=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},D=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},L=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},V=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},U="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function _(e){if("object"!=typeof e)throw new Error(U);if(D(e))return H(e);if(N(e))return Q(e);if(V(e))return B(e);if(L(e))return $(e);throw new Error(U)}function G(e){return function r(t,n,a){return function(){var e=a.concat(Array.prototype.slice.call(arguments));return e.length>=n?t.apply(this,e):r(t,n,e)}}(e,e.length,[])}function J(e,r){var t=P(r);return _(g({},t,{hue:(t.hue+parseFloat(e))%360}))}var Y=G(J);function Z(e,r,t){return Math.max(e,Math.min(r,t))}function K(e,r){var t=P(r);return _(g({},t,{lightness:Z(0,1,t.lightness-parseFloat(e))}))}var X=G(K);function ee(e,r){var t=P(r);return _(g({},t,{saturation:Z(0,1,t.saturation-parseFloat(e))}))}var re=G(ee);function te(e){var t=C(e),r=Object.keys(t).map(function(e){var r=t[e]/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),n=r[0],a=r[1],o=r[2];return parseFloat((.2126*n+.7152*a+.0722*o).toFixed(3))}function ne(e,r){var t=P(r);return _(g({},t,{lightness:Z(0,1,t.lightness+parseFloat(e))}))}var ae=G(ne);function oe(e,r,t){var n=C(r),a=g({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),o=C(t),i=g({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),u=a.alpha-i.alpha,s=2*parseFloat(e)-1,l=((s*u==-1?s:s+u)/(1+s*u)+1)/2,f=1-l;return H({red:Math.floor(a.red*l+i.red*f),green:Math.floor(a.green*l+i.green*f),blue:Math.floor(a.blue*l+i.blue*f),alpha:a.alpha+(i.alpha-a.alpha)*(parseFloat(e)/1)})}var ie=G(oe);function ue(e,r){var t=C(r),n="number"==typeof t.alpha?t.alpha:1;return H(g({},t,{alpha:Z(0,1,(100*n+100*parseFloat(e))/100)}))}var se=G(ue);function le(e){return.179<te(e)?"#000":"#fff"}var fe=G(le);function pe(e,r){var t=P(r);return _(g({},t,{saturation:Z(0,1,t.saturation+parseFloat(e))}))}var de=G(pe);function ce(e,r){return _(g({},P(r),{hue:parseFloat(e)}))}var he=G(ce);function be(e,r){return _(g({},P(r),{lightness:parseFloat(e)}))}var ge=G(be);function me(e,r){return _(g({},P(r),{saturation:parseFloat(e)}))}var ve=G(me);function ye(e,r){return ie(parseFloat(e),r,"rgb(0, 0, 0)")}var we=G(ye);function xe(e,r){return ie(parseFloat(e),r,"rgb(255, 255, 255)")}var ke=G(xe);function Se(e,r){var t=C(r),n="number"==typeof t.alpha?t.alpha:1;return H(g({},t,{alpha:Z(0,1,(100*n-100*parseFloat(e))/100)}))}var ze=G(Se);var Ie=["top","right","bottom","left"];function Fe(e,r){return e(r?":"+r:"")}function Ae(e,r,t){if(!r)throw new Error("You must provide a template to this method.");if(0===e.length)return Fe(r,null);for(var n=[],a=0;a<e.length;a+=1){if(t&&t.indexOf(e[a])<0)throw new Error("You passed an unsupported selector state to this method.");n.push(Fe(r,e[a]))}return n=n.join(",")}var Ee=[void 0,null,"active","focus","hover"];function je(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Oe=["absolute","fixed","relative","static","sticky"];var Ce=[void 0,null,"active","focus","hover"];function Pe(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=Y,e.animation=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&8<r.length)throw new Error("The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation");return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new Error("To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')");if(Array.isArray(e)&&8<e.length)throw new Error("The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation");return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=b,e.border=function(e){for(var r=arguments.length,t=Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var a;return"string"==typeof e&&0<=Ie.indexOf(e)?((a={})["border"+o(e)+"Width"]=t[0],a["border"+o(e)+"Style"]=t[1],a["border"+o(e)+"Color"]=t[2],a):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=v,e.borderRadius=function(e,r){var t,n,a=o(e);if(!r&&0!==r)throw new Error("borderRadius expects a radius value as a string or number as the second argument.");if("Top"===a||"Bottom"===a)return(t={})["border"+a+"RightRadius"]=r,t["border"+a+"LeftRadius"]=r,t;if("Left"===a||"Right"===a)return(n={})["borderTop"+a+"Radius"]=r,n["borderBottom"+a+"Radius"]=r,n;throw new Error('borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.')},e.borderStyle=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return Ae(r,je,Ee)},e.clearFix=function(){var e;return(e={})[(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"&")+"::after"]={clear:"both",content:'""',display:"table"},e},e.complement=function(e){var r=P(e);return _(g({},r,{hue:(r.hue+180)%360}))},e.cover=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return{position:"absolute",top:e,right:e,bottom:e,left:e}},e.darken=X,e.desaturate=re,e.directionalProperty=a,e.ellipsis=function(){return[{display:"inline-block",maxWidth:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},{display:"inline-flex"}]},e.em=t,e.fluidRange=function(e){var r,t,n,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"320px",o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"1200px";if(!Array.isArray(e)&&"object"!=typeof e||null===e)throw new Error("expects either an array of objects or a single object with the properties prop, fromSize, and toSize.");if(Array.isArray(e)){var i={},u={},s=e,l=Array.isArray(s),f=0;for(s=l?s:s[Symbol.iterator]();;){var p,d,c;if(l){if(f>=s.length)break;c=s[f++]}else{if((f=s.next()).done)break;c=f.value}var h=c;if(!h.prop||!h.fromSize||!h.toSize)throw new Error("expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.");u[h.prop]=h.fromSize,i["@media (min-width: "+a+")"]=g({},i["@media (min-width: "+a+")"],((p={})[h.prop]=b(h.fromSize,h.toSize,a,o),p)),i["@media (min-width: "+o+")"]=g({},i["@media (min-width: "+o+")"],((d={})[h.prop]=h.toSize,d))}return g({},u,i)}if(!e.prop||!e.fromSize||!e.toSize)throw new Error("expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.");return(n={})[e.prop]=e.fromSize,n["@media (min-width: "+a+")"]=((r={})[e.prop]=b(e.fromSize,e.toSize,a,o),r),n["@media (min-width: "+o+")"]=((t={})[e.prop]=e.toSize,t),n},e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,a=e.fontStyle,o=e.fontVariant,i=e.fontWeight,u=e.fileFormats,s=void 0===u?["eot","woff2","woff","ttf","svg"]:u,l=e.localFonts,f=e.unicodeRange,p=e.fontDisplay,d=e.fontVariationSettings,c=e.fontFeatureSettings;if(!r)throw new Error("fontFace expects a name of a font-family.");if(!t&&!l)throw new Error("fontFace expects either the path to the font file(s) or a name of a local copy.");if(l&&!Array.isArray(l))throw new Error("fontFace expects localFonts to be an array.");if(!Array.isArray(s))throw new Error("fontFace expects fileFormats to be an array.");var h,b,g,m,v,y={"@font-face":{fontFamily:r,src:(h=t,b=l,g=s,v=[],b&&v.push(b.map(function(e){return'local("'+e+'")'}).join(", ")),h&&v.push((m=h,g.map(function(e){return'url("'+m+"."+e+'")'}).join(", "))),v.join(", ")),unicodeRange:f,fontStretch:n,fontStyle:a,fontVariant:o,fontWeight:i,fontDisplay:p,fontVariationSettings:d,fontFeatureSettings:c}};return JSON.parse(JSON.stringify(y))},e.getLuminance=te,e.getValueAndUnit=m,e.grayscale=function(e){return _(g({},P(e),{saturation:0}))},e.invert=function(e){var r=C(e);return _(g({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hiDPI=d,e.hsl=$,e.hsla=B,e.lighten=ae,e.margin=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["margin"].concat(r))},e.mix=ie,e.modularScale=function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"1em",t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"perfectFourth";if("number"!=typeof e)throw new Error("Please provide a number of steps to the modularScale helper.");if("string"==typeof t&&!s[t])throw new Error("Please pass a number or one of the predefined scales to the modularScale helper as the ratio.");var n="string"==typeof r?u(r):r,a="string"==typeof t?s[t]:t;if("string"==typeof n)throw new Error('Invalid value passed as base to modularScale, expected number or em string but got "'+r+'"');return n*Math.pow(a,e)+"em"},e.normalize=function(){return{html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{"background-color":"transparent"},"abbr[title]":[{borderBottom:"none",textDecoration:"underline"},{textDecoration:"underline dotted"}],"b,\n strong":{fontWeight:"bolder"},"code,\n kbd,\n samp":{fontFamily:"monospace, monospace",fontSize:"1em"},small:{fontSize:"80%"},"sub,\n sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},img:{borderStyle:"none"},"button,\n input,\n optgroup,\n select,\n textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},"button,\n input":{overflow:"visible"},"button,\n select":{textTransform:"none"},'button,\n html [type="button"],\n [type="reset"],\n [type="submit"]':{WebkitAppearance:"button"},'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"},'button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring':{outline:"1px dotted ButtonText"},fieldset:{padding:"0.35em 0.625em 0.75em"},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},progress:{verticalAlign:"baseline"},textarea:{overflow:"auto"},'[type="checkbox"],\n [type="radio"]':{boxSizing:"border-box",padding:"0"},'[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button':{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},'[type="search"]::-webkit-search-decoration':{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},details:{display:"block"},summary:{display:"list-item"},template:{display:"none"},"[hidden]":{display:"none"}}},e.opacify=se,e.padding=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["padding"].concat(r))},e.parseToHsl=P,e.parseToRgb=C,e.placeholder=function(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"&";return(r={})[t+"::-webkit-input-placeholder"]=g({},e),r[t+":-moz-placeholder"]=g({},e),r[t+"::-moz-placeholder"]=g({},e),r[t+":-ms-input-placeholder"]=g({},e),r},e.position=function(e){for(var r=arguments.length,t=Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return 0<=Oe.indexOf(e)?g({position:e},a.apply(void 0,[""].concat(t))):a.apply(void 0,["",e].concat(t))},e.radialGradient=function(e){var r,t=e.colorStops,n=e.extent,a=e.fallback,o=e.position,i=e.shape;if(!t||t.length<2)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:a||(r=t,r[0].split(" ")[0]),backgroundImage:function(e){for(var r="",t=0;t<e.length;t+=1)r+=e[t],3===t&&(arguments.length<=t+1?void 0:arguments[t+1])&&((arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3]))?(r=r.slice(0,-1),r+=", "+(arguments.length<=t+1?void 0:arguments[t+1])):3!==t||arguments.length<=t+1||!arguments[t+1]||(arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3])?(arguments.length<=t+1?void 0:arguments[t+1])&&(r+=(arguments.length<=t+1?void 0:arguments[t+1])+" "):r+=""+(arguments.length<=t+1?void 0:arguments[t+1]);return r.trim()}(c,o,i,n,t.join(", "))}},e.readableColor=fe,e.rem=l,e.retinaImage=function(e,r){var t,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"png",a=arguments[3],o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"_2x";if(!e)throw new Error("Please supply a filename to retinaImage() as the first argument.");var i=n.replace(/^\./,""),u=a?a+"."+i:""+e+o+"."+i;return(t={backgroundImage:"url("+e+"."+i+")"})[d()]=g({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),t},e.rgb=Q,e.rgba=H,e.saturate=de,e.selection=function(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return(r={})[t+"::-moz-selection"]=g({},e),r[t+"::selection"]=g({},e),r},e.setHue=he,e.setLightness=ge,e.setSaturation=ve,e.shade=we,e.size=function(e){return{height:e,width:1<arguments.length&&void 0!==arguments[1]?arguments[1]:e}},e.stripUnit=u,e.textInputs=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return Ae(r,Pe,Ce)},e.timingFunctions=function(e){return h[e]},e.tint=ke,e.toColorString=_,e.transitions=function(){for(var e=arguments.length,r=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 Error("Property must be a string value.");return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=ze,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,a=e.foregroundColor,o=e.backgroundColor,i=void 0===o?"transparent":o,u=[parseFloat(n),String(n).replace(/\d+/g,"")||"px"],s=[parseFloat(t),String(t).replace(/\d+/g,"")||"px"];if(isNaN(s[0])||isNaN(u[0]))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");var l=y.indexOf(r);return g({width:"0",height:"0",borderWidth:function(e,r,t){switch(e){case"top":return"0 "+t[0]/2+t[1]+" "+r[0]+r[1]+" "+t[0]/2+t[1];case"left":return""+r[0]/2+r[1]+" "+t[0]+t[1]+" "+r[0]/2+r[1]+" 0";case"bottom":return""+r[0]+r[1]+" "+t[0]/2+t[1]+" 0 "+t[0]/2+t[1];case"right":return""+r[0]/2+r[1]+" 0 "+r[0]/2+r[1]+" "+t[0]+t[1];default:throw new Error("Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.")}}(r,s,u),borderStyle:"solid"},v.apply(void 0,Array.from({length:4}).map(function(e,r){return r===l?a:i})))},e.wordWrap=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"break-word";return{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):"function"==typeof define&&define.amd?define(["exports"],r):r(e.polished={})}(this,function(e){"use strict";function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}var f=["Top","Right","Bottom","Left"];function p(e,r){if(!e)return r.toLowerCase();var t=e.split("-");if(1<t.length)return t.splice(1,0,r),t.reduce(function(e,r){return""+e+o(r)});var n=e.replace(/([a-z])([A-Z])/g,"$1"+r+"$2");return e===n?""+e+r:n}function a(e){for(var r=arguments.length,t=Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var a=t[0],o=t[1],i=void 0===o?a:o,u=t[2],s=void 0===u?a:u,l=t[3];return function(e,r){for(var t={},n=0;n<r.length;n+=1)(r[n]||0===r[n])&&(t[p(e,f[n])]=r[n]);return t}(e,[a,i,s,void 0===l?i:l])}function i(e,r){return e.substr(-r.length)===r}function u(e){var r=parseFloat(e);return isNaN(r)?e:r}var r=function(a){return function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"16px",t=e,n=r;if("string"==typeof e){if(!i(e,"px"))throw new Error('Expected a string ending in "px" or a number passed as the first argument to '+a+'(), got "'+e+'" instead.');t=u(e)}if("string"==typeof r){if(!i(r,"px"))throw new Error('Expected a string ending in "px" or a number passed as the second argument to '+a+'(), got "'+r+'" instead.');n=u(r)}if("string"==typeof t)throw new Error('Passed invalid pixel value ("'+e+'") to '+a+'(), please pass a value like "12px" or 12.');if("string"==typeof n)throw new Error('Passed invalid base value ("'+r+'") to '+a+'(), please pass a value like "12px" or 12.');return""+t/n+a}},t=r("em"),n=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function m(e){if("string"!=typeof e)return[e,""];var r=e.match(n);return r?[parseFloat(e),r[2]]:[e,void 0]}var s={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 l=r("rem");function b(e,r){var t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"320px",n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:"1200px",a=m(e),o=a[0],i=a[1],u=m(r),s=u[0],l=u[1],f=m(t),p=f[0],d=f[1],c=m(n),h=c[0],b=c[1];if("number"!=typeof p||"number"!=typeof h||!d||!b||d!==b)throw new Error("minScreen and maxScreen must be provided as stringified numbers with the same units.");if("number"!=typeof o||"number"!=typeof s||!i||!l||i!==l)throw new Error("fromSize and toSize must be provided as stringified numbers with the same units.");var g=(o-s)/(p-h);return"calc("+(s-g*h).toFixed(2)+i+" + "+(100*g).toFixed(2)+"vw)"}var g=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e};function d(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1.3;return"\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 "}var c=function(e,r){return e.raw=r,e}(["radial-gradient(","","","",")"],["radial-gradient(","","","",")"]);var h={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)"};function v(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderColor"].concat(r))}var y=["bottom","left","top","right"];function w(e){return Math.round(255*e)}function x(e,r,t){return w(e)+","+w(r)+","+w(t)}function k(e,r,t){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:x;if(0===r)return n(t,t,t);var a=e%360/60,o=(1-Math.abs(2*t-1))*r,i=o*(1-Math.abs(a%2-1)),u=0,s=0,l=0;0<=a&&a<1?(u=o,s=i):1<=a&&a<2?(u=i,s=o):2<=a&&a<3?(s=o,l=i):3<=a&&a<4?(s=i,l=o):4<=a&&a<5?(u=i,l=o):5<=a&&a<6&&(u=o,l=i);var f=t-o/2;return n(u+f,s+f,l+f)}var S={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 z=/^#[a-fA-F0-9]{6}$/,I=/^#[a-fA-F0-9]{8}$/,F=/^#[a-fA-F0-9]{3}$/,A=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,E=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,j=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,O=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function C(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var r=function(e){if("string"!=typeof e)return e;var r=e.toLowerCase();return S[r]?"#"+S[r]:e}(e);if(r.match(z))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(I)){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(F))return{red:parseInt(""+r[1]+r[1],16),green:parseInt(""+r[2]+r[2],16),blue:parseInt(""+r[3]+r[3],16)};var n=A.exec(r);if(n)return{red:parseInt(""+n[1],10),green:parseInt(""+n[2],10),blue:parseInt(""+n[3],10)};var a=E.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 o=j.exec(r);if(o){var i="rgb("+k(parseInt(""+o[1],10),parseInt(""+o[2],10)/100,parseInt(""+o[3],10)/100)+")",u=A.exec(i);if(!u)throw new Error("Couldn't generate valid rgb string from "+r+", it returned "+i+".");return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var s=O.exec(r);if(s){var l="rgb("+k(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",f=A.exec(l);if(!f)throw new Error("Couldn't generate valid rgb string from "+r+", it returned "+l+".");return{red:parseInt(""+f[1],10),green:parseInt(""+f[2],10),blue:parseInt(""+f[3],10),alpha:parseFloat(""+s[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function P(e){return function(e){var r=e.red/255,t=e.green/255,n=e.blue/255,a=Math.max(r,t,n),o=Math.min(r,t,n),i=(a+o)/2;if(a===o)return void 0!==e.alpha?{hue:0,saturation:0,lightness:i,alpha:e.alpha}:{hue:0,saturation:0,lightness:i};var u=void 0,s=a-o,l=.5<i?s/(2-a-o):s/(a+o);switch(a){case r:u=(t-n)/s+(t<n?6:0);break;case t:u=(n-r)/s+2;break;default:u=(r-t)/s+4}return u*=60,void 0!==e.alpha?{hue:u,saturation:l,lightness:i,alpha:e.alpha}:{hue:u,saturation:l,lightness:i}}(C(e))}var W=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 R(e){var r=e.toString(16);return 1===r.length?"0"+r:r}function T(e){return R(Math.round(255*e))}function M(e,r,t){return W("#"+T(e)+T(r)+T(t))}function q(e,r,t){return k(e,r,t,M)}function $(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return q(e,r,t);if("object"==typeof e&&void 0===r&&void 0===t)return q(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}function B(e,r,t,n){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?q(e,r,t):"rgba("+k(e,r,t)+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?q(e.hue,e.saturation,e.lightness):"rgba("+k(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}function Q(e,r,t){if("number"==typeof e&&"number"==typeof r&&"number"==typeof t)return W("#"+R(e)+R(r)+R(t));if("object"==typeof e&&void 0===r&&void 0===t)return W("#"+R(e.red)+R(e.green)+R(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function H(e,r,t,n){if("string"==typeof e&&"number"==typeof r){var a=C(e);return"rgba("+a.red+","+a.green+","+a.blue+","+r+")"}if("number"==typeof e&&"number"==typeof r&&"number"==typeof t&&"number"==typeof n)return 1<=n?Q(e,r,t):"rgba("+e+","+r+","+t+","+n+")";if("object"==typeof e&&void 0===r&&void 0===t&&void 0===n)return 1<=e.alpha?Q(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var N=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)},D=function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha},L=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)},V=function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha},U="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function _(e){if("object"!=typeof e)throw new Error(U);if(D(e))return H(e);if(N(e))return Q(e);if(V(e))return B(e);if(L(e))return $(e);throw new Error(U)}function G(e){return function r(t,n,a){return function(){var e=a.concat(Array.prototype.slice.call(arguments));return e.length>=n?t.apply(this,e):r(t,n,e)}}(e,e.length,[])}function J(e,r){var t=P(r);return _(g({},t,{hue:(t.hue+parseFloat(e))%360}))}var Y=G(J);function Z(e,r,t){return Math.max(e,Math.min(r,t))}function K(e,r){var t=P(r);return _(g({},t,{lightness:Z(0,1,t.lightness-parseFloat(e))}))}var X=G(K);function ee(e,r){var t=P(r);return _(g({},t,{saturation:Z(0,1,t.saturation-parseFloat(e))}))}var re=G(ee);function te(e){var t=C(e),r=Object.keys(t).map(function(e){var r=t[e]/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),n=r[0],a=r[1],o=r[2];return parseFloat((.2126*n+.7152*a+.0722*o).toFixed(3))}function ne(e,r){var t=P(r);return _(g({},t,{lightness:Z(0,1,t.lightness+parseFloat(e))}))}var ae=G(ne);function oe(e,r,t){var n=C(r),a=g({},n,{alpha:"number"==typeof n.alpha?n.alpha:1}),o=C(t),i=g({},o,{alpha:"number"==typeof o.alpha?o.alpha:1}),u=a.alpha-i.alpha,s=2*parseFloat(e)-1,l=((s*u==-1?s:s+u)/(1+s*u)+1)/2,f=1-l;return H({red:Math.floor(a.red*l+i.red*f),green:Math.floor(a.green*l+i.green*f),blue:Math.floor(a.blue*l+i.blue*f),alpha:a.alpha+(i.alpha-a.alpha)*(parseFloat(e)/1)})}var ie=G(oe);function ue(e,r){var t=C(r),n="number"==typeof t.alpha?t.alpha:1;return H(g({},t,{alpha:Z(0,1,(100*n+100*parseFloat(e))/100)}))}var se=G(ue);function le(e){return.179<te(e)?"#000":"#fff"}var fe=G(le);function pe(e,r){var t=P(r);return _(g({},t,{saturation:Z(0,1,t.saturation+parseFloat(e))}))}var de=G(pe);function ce(e,r){return _(g({},P(r),{hue:parseFloat(e)}))}var he=G(ce);function be(e,r){return _(g({},P(r),{lightness:parseFloat(e)}))}var ge=G(be);function me(e,r){return _(g({},P(r),{saturation:parseFloat(e)}))}var ve=G(me);function ye(e,r){return ie(parseFloat(e),r,"rgb(0, 0, 0)")}var we=G(ye);function xe(e,r){return ie(parseFloat(e),r,"rgb(255, 255, 255)")}var ke=G(xe);function Se(e,r){var t=C(r),n="number"==typeof t.alpha?t.alpha:1;return H(g({},t,{alpha:Z(0,1,(100*n-100*parseFloat(e))/100)}))}var ze=G(Se);var Ie=["top","right","bottom","left"];function Fe(e,r){return e(r?":"+r:"")}function Ae(e,r,t){if(!r)throw new Error("You must provide a template to this method.");if(0===e.length)return Fe(r,null);for(var n=[],a=0;a<e.length;a+=1){if(t&&t.indexOf(e[a])<0)throw new Error("You passed an unsupported selector state to this method.");n.push(Fe(r,e[a]))}return n=n.join(",")}var Ee=[void 0,null,"active","focus","hover"];function je(e){return"button"+e+',\n input[type="button"]'+e+',\n input[type="reset"]'+e+',\n input[type="submit"]'+e}var Oe=["absolute","fixed","relative","static","sticky"];var Ce=[void 0,null,"active","focus","hover"];function Pe(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=Y,e.animation=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];var n=Array.isArray(r[0]);if(!n&&8<r.length)throw new Error("The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation");return{animation:r.map(function(e){if(n&&!Array.isArray(e)||!n&&Array.isArray(e))throw new Error("To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')");if(Array.isArray(e)&&8<e.length)throw new Error("The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation");return Array.isArray(e)?e.join(" "):e}).join(", ")}},e.backgroundImages=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{backgroundImage:r.join(", ")}},e.backgrounds=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return{background:r.join(", ")}},e.between=b,e.border=function(e){for(var r=arguments.length,t=Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];var a;return"string"==typeof e&&0<=Ie.indexOf(e)?((a={})["border"+o(e)+"Width"]=t[0],a["border"+o(e)+"Style"]=t[1],a["border"+o(e)+"Color"]=t[2],a):(t.unshift(e),{borderWidth:t[0],borderStyle:t[1],borderColor:t[2]})},e.borderColor=v,e.borderRadius=function(e,r){var t,n,a=o(e);if(!r&&0!==r)throw new Error("borderRadius expects a radius value as a string or number as the second argument.");if("Top"===a||"Bottom"===a)return(t={})["border"+a+"RightRadius"]=r,t["border"+a+"LeftRadius"]=r,t;if("Left"===a||"Right"===a)return(n={})["borderTop"+a+"Radius"]=r,n["borderBottom"+a+"Radius"]=r,n;throw new Error('borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.')},e.borderStyle=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderStyle"].concat(r))},e.borderWidth=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["borderWidth"].concat(r))},e.buttons=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return Ae(r,je,Ee)},e.clearFix=function(){var e;return(e={})[(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"&")+"::after"]={clear:"both",content:'""',display:"table"},e},e.complement=function(e){var r=P(e);return _(g({},r,{hue:(r.hue+180)%360}))},e.cover=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return{position:"absolute",top:e,right:e,bottom:e,left:e}},e.darken=X,e.desaturate=re,e.directionalProperty=a,e.ellipsis=function(){return[{display:"inline-block",maxWidth:0<arguments.length&&void 0!==arguments[0]?arguments[0]:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"},{display:"inline-flex"}]},e.em=t,e.fluidRange=function(e){var r,t,n,a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"320px",o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"1200px";if(!Array.isArray(e)&&"object"!=typeof e||null===e)throw new Error("expects either an array of objects or a single object with the properties prop, fromSize, and toSize.");if(Array.isArray(e)){var i={},u={},s=e,l=Array.isArray(s),f=0;for(s=l?s:s[Symbol.iterator]();;){var p,d,c;if(l){if(f>=s.length)break;c=s[f++]}else{if((f=s.next()).done)break;c=f.value}var h=c;if(!h.prop||!h.fromSize||!h.toSize)throw new Error("expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.");u[h.prop]=h.fromSize,i["@media (min-width: "+a+")"]=g({},i["@media (min-width: "+a+")"],((p={})[h.prop]=b(h.fromSize,h.toSize,a,o),p)),i["@media (min-width: "+o+")"]=g({},i["@media (min-width: "+o+")"],((d={})[h.prop]=h.toSize,d))}return g({},u,i)}if(!e.prop||!e.fromSize||!e.toSize)throw new Error("expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.");return(n={})[e.prop]=e.fromSize,n["@media (min-width: "+a+")"]=((r={})[e.prop]=b(e.fromSize,e.toSize,a,o),r),n["@media (min-width: "+o+")"]=((t={})[e.prop]=e.toSize,t),n},e.fontFace=function(e){var r=e.fontFamily,t=e.fontFilePath,n=e.fontStretch,a=e.fontStyle,o=e.fontVariant,i=e.fontWeight,u=e.fileFormats,s=void 0===u?["eot","woff2","woff","ttf","svg"]:u,l=e.localFonts,f=e.unicodeRange,p=e.fontDisplay,d=e.fontVariationSettings,c=e.fontFeatureSettings;if(!r)throw new Error("fontFace expects a name of a font-family.");if(!t&&!l)throw new Error("fontFace expects either the path to the font file(s) or a name of a local copy.");if(l&&!Array.isArray(l))throw new Error("fontFace expects localFonts to be an array.");if(!Array.isArray(s))throw new Error("fontFace expects fileFormats to be an array.");var h,b,g,m,v,y={"@font-face":{fontFamily:r,src:(h=t,b=l,g=s,v=[],b&&v.push(b.map(function(e){return'local("'+e+'")'}).join(", ")),h&&v.push((m=h,g.map(function(e){return'url("'+m+"."+e+'")'}).join(", "))),v.join(", ")),unicodeRange:f,fontStretch:n,fontStyle:a,fontVariant:o,fontWeight:i,fontDisplay:p,fontVariationSettings:d,fontFeatureSettings:c}};return JSON.parse(JSON.stringify(y))},e.getLuminance=te,e.getValueAndUnit=m,e.grayscale=function(e){return _(g({},P(e),{saturation:0}))},e.invert=function(e){var r=C(e);return _(g({},r,{red:255-r.red,green:255-r.green,blue:255-r.blue}))},e.hideText=function(){return{textIndent:"101%",overflow:"hidden",whiteSpace:"nowrap"}},e.hideVisually=function(){return{border:"0",clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",whiteSpace:"nowrap",width:"1px"}},e.hiDPI=d,e.hsl=$,e.hsla=B,e.lighten=ae,e.margin=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["margin"].concat(r))},e.mix=ie,e.modularScale=function(e){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"1em",t=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"perfectFourth";if("number"!=typeof e)throw new Error("Please provide a number of steps to the modularScale helper.");if("string"==typeof t&&!s[t])throw new Error("Please pass a number or one of the predefined scales to the modularScale helper as the ratio.");var n="string"==typeof r?u(r):r,a="string"==typeof t?s[t]:t;if("string"==typeof n)throw new Error('Invalid value passed as base to modularScale, expected number or em string but got "'+r+'"');return n*Math.pow(a,e)+"em"},e.normalize=function(){return{html:{lineHeight:"1.15",textSizeAdjust:"100%"},body:{margin:"0"},h1:{fontSize:"2em",margin:"0.67em 0"},hr:{boxSizing:"content-box",height:"0",overflow:"visible"},pre:{fontFamily:"monospace, monospace",fontSize:"1em"},a:{"background-color":"transparent"},"abbr[title]":[{borderBottom:"none",textDecoration:"underline"},{textDecoration:"underline dotted"}],"b,\n strong":{fontWeight:"bolder"},"code,\n kbd,\n samp":{fontFamily:"monospace, monospace",fontSize:"1em"},small:{fontSize:"80%"},"sub,\n sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},img:{borderStyle:"none"},"button,\n input,\n optgroup,\n select,\n textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"1.15",margin:"0"},"button,\n input":{overflow:"visible"},"button,\n select":{textTransform:"none"},'button,\n html [type="button"],\n [type="reset"],\n [type="submit"]':{WebkitAppearance:"button"},'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"},'button:-moz-focusring,\n [type="button"]:-moz-focusring,\n [type="reset"]:-moz-focusring,\n [type="submit"]:-moz-focusring':{outline:"1px dotted ButtonText"},fieldset:{padding:"0.35em 0.625em 0.75em"},legend:{boxSizing:"border-box",color:"inherit",display:"table",maxWidth:"100%",padding:"0",whiteSpace:"normal"},progress:{verticalAlign:"baseline"},textarea:{overflow:"auto"},'[type="checkbox"],\n [type="radio"]':{boxSizing:"border-box",padding:"0"},'[type="number"]::-webkit-inner-spin-button,\n [type="number"]::-webkit-outer-spin-button':{height:"auto"},'[type="search"]':{WebkitAppearance:"textfield",outlineOffset:"-2px"},'[type="search"]::-webkit-search-decoration':{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},details:{display:"block"},summary:{display:"list-item"},template:{display:"none"},"[hidden]":{display:"none"}}},e.opacify=se,e.padding=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return a.apply(void 0,["padding"].concat(r))},e.parseToHsl=P,e.parseToRgb=C,e.placeholder=function(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"&";return(r={})[t+"::-webkit-input-placeholder"]=g({},e),r[t+":-moz-placeholder"]=g({},e),r[t+"::-moz-placeholder"]=g({},e),r[t+":-ms-input-placeholder"]=g({},e),r},e.position=function(e){for(var r=arguments.length,t=Array(1<r?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];return 0<=Oe.indexOf(e)?g({position:e},a.apply(void 0,[""].concat(t))):a.apply(void 0,["",e].concat(t))},e.radialGradient=function(e){var r,t=e.colorStops,n=e.extent,a=e.fallback,o=e.position,i=e.shape;if(!t||t.length<2)throw new Error("radialGradient requries at least 2 color-stops to properly render.");return{backgroundColor:a||(r=t,r[0].split(" ")[0]),backgroundImage:function(e){for(var r="",t=0;t<e.length;t+=1)r+=e[t],3===t&&(arguments.length<=t+1?void 0:arguments[t+1])&&((arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3]))?(r=r.slice(0,-1),r+=", "+(arguments.length<=t+1?void 0:arguments[t+1])):3!==t||arguments.length<=t+1||!arguments[t+1]||(arguments.length<=1?void 0:arguments[1])||(arguments.length<=2?void 0:arguments[2])||(arguments.length<=3?void 0:arguments[3])?(arguments.length<=t+1?void 0:arguments[t+1])&&(r+=(arguments.length<=t+1?void 0:arguments[t+1])+" "):r+=""+(arguments.length<=t+1?void 0:arguments[t+1]);return r.trim()}(c,o,i,n,t.join(", "))}},e.readableColor=fe,e.rem=l,e.retinaImage=function(e,r){var t,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"png",a=arguments[3],o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:"_2x";if(!e)throw new Error("Please supply a filename to retinaImage() as the first argument.");var i=n.replace(/^\./,""),u=a?a+"."+i:""+e+o+"."+i;return(t={backgroundImage:"url("+e+"."+i+")"})[d()]=g({backgroundImage:"url("+u+")"},r?{backgroundSize:r}:{}),t},e.rgb=Q,e.rgba=H,e.saturate=de,e.selection=function(e){var r,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"";return(r={})[t+"::-moz-selection"]=g({},e),r[t+"::selection"]=g({},e),r},e.setHue=he,e.setLightness=ge,e.setSaturation=ve,e.shade=we,e.size=function(e){return{height:e,width:1<arguments.length&&void 0!==arguments[1]?arguments[1]:e}},e.stripUnit=u,e.textInputs=function(){for(var e=arguments.length,r=Array(e),t=0;t<e;t++)r[t]=arguments[t];return Ae(r,Pe,Ce)},e.timingFunctions=function(e){return h[e]},e.tint=ke,e.toColorString=_,e.transitions=function(){for(var e=arguments.length,r=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 Error("Property must be a string value.");return{transition:r[0].map(function(e){return e+" "+n}).join(", ")}}return{transition:r.join(", ")}},e.transparentize=ze,e.triangle=function(e){var r=e.pointingDirection,t=e.height,n=e.width,a=e.foregroundColor,o=e.backgroundColor,i=void 0===o?"transparent":o,u=[parseFloat(n),String(n).replace(/\d+/g,"")||"px"],s=[parseFloat(t),String(t).replace(/\d+/g,"")||"px"];if(isNaN(s[0])||isNaN(u[0]))throw new Error("Passed an invalid value to `height` or `width`. Please provide a pixel based unit");var l=y.indexOf(r);return g({width:"0",height:"0",borderWidth:function(e,r,t){switch(e){case"top":return"0 "+t[0]/2+t[1]+" "+r[0]+r[1]+" "+t[0]/2+t[1];case"left":return""+r[0]/2+r[1]+" "+t[0]+t[1]+" "+r[0]/2+r[1]+" 0";case"bottom":return""+r[0]+r[1]+" "+t[0]/2+t[1]+" 0 "+t[0]/2+t[1];case"right":return""+r[0]/2+r[1]+" 0 "+r[0]/2+r[1]+" "+t[0]+t[1];default:throw new Error("Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.")}}(r,s,u),borderStyle:"solid"},v.apply(void 0,Array.from({length:4}).map(function(e,r){return r===l?a:i})))},e.wordWrap=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"break-word";return{overflowWrap:e,wordWrap:e,wordBreak:"break-word"===e?"break-all":e}},Object.defineProperty(e,"__esModule",{value:!0})});

@@ -22,4 +22,4 @@ 'use strict';

var rgbaRegex = /^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;
var hslRegex = /^hsl\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/;
var hslaRegex = /^hsla\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;
var hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/;
var hslaRegex = /^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;

@@ -26,0 +26,0 @@ /**

@@ -8,3 +8,3 @@ {

"types": "lib/index.d.ts",
"version": "2.0.0",
"version": "2.0.1",
"scripts": {

@@ -11,0 +11,0 @@ "build": "yarn build:lib && yarn build:dist && yarn build:flow && yarn build:docs && yarn build:typescript",

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