index.min.js 2.85 KB
!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define(r):e.emotionCss=r()}(this,function(){"use strict";var t={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var r,o,n=/[A-Z]|^ms/g,i=/_EMO_([^_]+?)_([^]*?)_EMO_/g,s=(r=function(e){return e.replace(n,"-$&").toLowerCase()},o={},function(e){return void 0===o[e]&&(o[e]=r(e)),o[e]}),u=function(e,r){if(null==r||"boolean"==typeof r)return"";switch(e){case"animation":case"animationName":r=r.replace(i,function(e,r,t){return c=t+c,r})}return 1===t[e]||45===e.charCodeAt(1)||isNaN(r)||0===r?r:r+"px"};function f(e,r,t){if(null==t)return"";if(void 0!==t.__emotion_styles)return t;switch(typeof t){case"boolean":return"";case"object":return 1===t.anim?(c=t.styles+c,t.name):void 0!==t.styles?t.styles:function(e,t,o){var n="";if(Array.isArray(o))for(var r=0;r<o.length;r++)n+=f(e,t,o[r]);else{var i=function(r){"object"!=typeof o[r]?n+=s(r)+":"+u(r,o[r])+";":Array.isArray(o[r])&&"string"==typeof o[r][0]&&void 0===t[o[r][0]]?o[r].forEach(function(e){n+=s(r)+":"+u(r,e)+";"}):n+=r+"{"+f(e,t,o[r])+"}"};for(var a in o)i(a)}return n}(e,r,t);case"function":if(void 0!==e)return f(e,r,t(e));default:var o=r[t];return void 0!==o?o:t}}var l=/label:\s*([^\s;\n{]+)\s*;/g,c="",a={};return function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return function(e,r,t){if(1===r.length&&"object"==typeof r[0]&&null!==r[0]&&void 0!==r[0].styles)return r[0];var o=!0,n=c="",i=r[0];if(null==i||void 0===i.raw){o=!1;var a=f(t,e,i);c+=a}else c+=i[0];for(var s=1;s<r.length;s++){var u=f(t,e,r[s]);c+=u,o&&(c+=i[s])}return{name:function(e){for(var r,t=e.length,o=t^t,n=0;4<=t;)r=1540483477*(65535&(r=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+((1540483477*(r>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(r=1540483477*(65535&(r^=r>>>24))+((1540483477*(r>>>16)&65535)<<16)),t-=4,++n;switch(t){case 3:o^=(255&e.charCodeAt(n+2))<<16;case 2:o^=(255&e.charCodeAt(n+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(n)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),((o^=o>>>15)>>>0).toString(36)}(c=c.replace(l,function(e,r){return n+="-"+r,""}))+n,styles:c}}(a,r)}});
//# sourceMappingURL=index.min.js.map