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

emotion

Package Overview
Dependencies
Maintainers
3
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emotion - npm Package Compare versions

Comparing version 9.2.0 to 9.2.1

2

dist/emotion.umd.min.js

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

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.emotion={})}(this,function(e){"use strict";var t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e};"object"==typeof Reflect&&Reflect.construct;var y=function i(e){function _(e,t,r){var a=t.trim().split(f),c=(t=a).length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<c;++s)t[s]=l(e,t[s],r).trim();break;default:var n=s=0;for(t=[];s<c;++s)for(var o=0;o<i;++o)t[n++]=l(e[o]+" ",a[s],r).trim()}return t}function l(e,t,r){var a=t.charCodeAt(0);switch(a<33&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(c,"$1"+e.trim());case 58:switch(t.charCodeAt(1)){case 103:break;default:return e.trim()+t.replace(c,"$1"+e.trim())}default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(c,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function j(e,t,r,a){var c=e+";",i=2*t+3*r+4*a;if(944===i){e=c.indexOf(":",9)+1;var s=c.substring(e,c.length-1).trim();return s=c.substring(0,e).trim()+s+";",1===D||2===D&&R(s,1)?"-webkit-"+s+s:s}if(0===D||2===D&&!R(c,1))return c;switch(i){case 1015:return 97===c.charCodeAt(10)?"-webkit-"+c+c:c;case 951:return 116===c.charCodeAt(3)?"-webkit-"+c+c:c;case 963:return 110===c.charCodeAt(5)?"-webkit-"+c+c:c;case 1009:if(100!==c.charCodeAt(4))break;case 969:case 942:return"-webkit-"+c+c;case 978:return"-webkit-"+c+"-moz-"+c+c;case 1019:case 983:return"-webkit-"+c+"-moz-"+c+"-ms-"+c+c;case 883:return 45===c.charCodeAt(8)?"-webkit-"+c+c:c;case 932:if(45===c.charCodeAt(4))switch(c.charCodeAt(5)){case 103:return"-webkit-box-"+c.replace("-grow","")+"-webkit-"+c+"-ms-"+c.replace("grow","positive")+c;case 115:return"-webkit-"+c+"-ms-"+c.replace("shrink","negative")+c;case 98:return"-webkit-"+c+"-ms-"+c.replace("basis","preferred-size")+c}return"-webkit-"+c+"-ms-"+c+c;case 964:return"-webkit-"+c+"-ms-flex-"+c+c;case 1023:if(99!==c.charCodeAt(8))break;return"-webkit-box-pack"+(s=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+c+"-ms-flex-pack"+s+c;case 1005:return o.test(c)?c.replace(n,":-webkit-")+c.replace(n,":-moz-")+c:c;case 1e3:switch(t=(s=c.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=c.replace(h,"tb");break;case 232:s=c.replace(h,"tb-rl");break;case 220:s=c.replace(h,"lr");break;default:return c}return"-webkit-"+c+"-ms-"+s+c;case 1017:if(-1===c.indexOf("sticky",9))break;case 975:switch(t=(c=e).length-10,i=(s=(33===c.charCodeAt(t)?c.substring(0,t):c).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(s.charCodeAt(8)<111)break;case 115:c=c.replace(s,"-webkit-"+s)+";"+c;break;case 207:case 102:c=c.replace(s,"-webkit-"+(102<i?"inline-":"")+"box")+";"+c.replace(s,"-webkit-"+s)+";"+c.replace(s,"-ms-"+s+"box")+";"+c}return c+";";case 938:if(45===c.charCodeAt(5))switch(c.charCodeAt(6)){case 105:return s=c.replace("-items",""),"-webkit-"+c+"-webkit-box-"+s+"-ms-flex-"+s+c;case 115:return"-webkit-"+c+"-ms-flex-item-"+c.replace(b,"")+c;default:return"-webkit-"+c+"-ms-flex-line-pack"+c.replace("align-content","").replace(b,"")+c}break;case 973:case 989:if(45!==c.charCodeAt(3)||122===c.charCodeAt(4))break;case 931:case 953:if(!0===p.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?j(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):c.replace(s,"-webkit-"+s)+c.replace(s,"-moz-"+s.replace("fill-",""))+c;break;case 962:if(c="-webkit-"+c+(102===c.charCodeAt(5)?"-ms-"+c:"")+c,211===r+a&&105===c.charCodeAt(13)&&0<c.indexOf("transform",10))return c.substring(0,c.indexOf(";",27)+1).replace(u,"$1-webkit-$2")+c}return c}function R(e,t){var r=e.indexOf(1===t?":":"{"),a=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),k(2!==t?a:a.replace(s,"$1"),r,t)}function $(e,t){var r=j(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(a," or ($1)").substring(4):"("+t+")"}function z(e,t,r,a,c,i,s,n,o,l){for(var u,f=0,h=t;f<q;++f)switch(u=g[f].call(d,e,h,r,a,c,i,s,n,o,l)){case void 0:case!1:case!0:case null:break;default:h=u}if(h!==t)return h}function t(e){return void 0!==(e=e.prefix)&&(k=null,e?"function"!=typeof e?D=1:(D=2,k=e):D=0),t}function d(e,t){if(void 0!==this&&this.constructor===d)return i(e);var r=e;if(r.charCodeAt(0)<33&&(r=r.trim()),r=[r],0<q){var a=z(-1,t,r,r,F,W,0,0,0,0);void 0!==a&&"string"==typeof a&&(t=a)}var c=function e(t,r,a,c,i){for(var s,n,o,l,u,f,h=0,d=0,b=0,p=0,g=0,k=0,v=l=s=0,w=0,m=n=0,A=0,C=a.length,y=C-1,x="",O="",E="",S="";w<C;){if(o=a.charCodeAt(w),w===y&&0!==d+p+b+h&&(0!==d&&(o=47===d?10:47),p=b=h=0,C++,y++),0===d+p+b+h){if(w===y&&(0<n&&(x=x.replace(I,"")),0<x.trim().length)){switch(o){case 32:case 9:case 59:case 13:case 10:break;default:x+=a.charAt(w)}o=59}switch(o){case 123:for(s=(x=x.trim()).charCodeAt(0),l=1,A=++w;w<C;){switch(o=a.charCodeAt(w)){case 123:l++;break;case 125:l--}if(0===l)break;w++}switch(o=a.substring(A,w),0===s&&(s=(x=x.replace(N,"").trim()).charCodeAt(0)),s){case 64:switch(0<n&&(x=x.replace(I,"")),n=x.charCodeAt(1)){case 100:case 109:case 115:case 45:l=r;break;default:l=L}if(A=(o=e(r,l,o,n,i+1)).length,0<q&&(f=z(3,o,l=_(L,x,m),r,F,W,A,n,i,c),x=l.join(""),void 0!==f&&0===(A=(o=f.trim()).length)&&(n=0,o="")),0<A)switch(n){case 115:x=x.replace(P,$);case 100:case 109:case 45:o=x+"{"+o+"}";break;case 107:o=(x=x.replace(T,"$1 $2"))+"{"+o+"}",o=1===D||2===D&&R("@"+o,3)?"@-webkit-"+o+"@"+o:"@"+o;break;default:o=x+o,112===c&&(O+=o,o="")}else o="";break;default:o=e(r,_(r,x,m),o,c,i+1)}E+=o,l=m=n=v=s=0,x="",o=a.charCodeAt(++w);break;case 125:case 59:if(1<(A=(x=(0<n?x.replace(I,""):x).trim()).length))switch(0===v&&(s=x.charCodeAt(0),45===s||96<s&&s<123)&&(A=(x=x.replace(" ",":")).length),0<q&&void 0!==(f=z(1,x,r,t,F,W,O.length,c,i,c))&&0===(A=(x=f.trim()).length)&&(x="\0\0"),s=x.charCodeAt(0),n=x.charCodeAt(1),s+n){case 0:break;case 169:case 163:S+=x+a.charAt(w);break;default:58!==x.charCodeAt(A-1)&&(O+=j(x,s,n,x.charCodeAt(2)))}m=n=v=s=0,x="",o=a.charCodeAt(++w)}}switch(o){case 13:case 10:47===d?d=0:0===1+s&&(n=1,x+="\0"),0<q*H&&z(0,x,r,t,F,W,O.length,c,i,c),W=1,F++;break;case 59:case 125:if(0===d+p+b+h){W++;break}default:switch(W++,u=a.charAt(w),o){case 9:case 32:if(0===p+h+d)switch(g){case 44:case 58:case 9:case 32:u="";break;default:32!==o&&(u=" ")}break;case 0:u="\\0";break;case 12:u="\\f";break;case 11:u="\\v";break;case 38:0===p+d+h&&(n=m=1,u="\f"+u);break;case 108:if(0===p+d+h+B&&0<v)switch(w-v){case 2:112===g&&58===a.charCodeAt(w-3)&&(B=g);case 8:111===k&&(B=k)}break;case 58:0===p+d+h&&(v=w);break;case 44:0===d+b+p+h&&(n=1,u+="\r");break;case 34:case 39:0===d&&(p=p===o?0:0===p?o:p);break;case 91:0===p+d+b&&h++;break;case 93:0===p+d+b&&h--;break;case 41:0===p+d+h&&b--;break;case 40:if(0===p+d+h){if(0===s)switch(2*g+3*k){case 533:break;default:s=1}b++}break;case 64:0===d+b+p+h+v+l&&(l=1);break;case 42:case 47:if(!(0<p+h+b))switch(d){case 0:switch(2*o+3*a.charCodeAt(w+1)){case 235:d=47;break;case 220:A=w,d=42}break;case 42:47===o&&42===g&&(33===a.charCodeAt(A+2)&&(O+=a.substring(A,w+1)),u="",d=0)}}0===d&&(x+=u)}k=g,g=o,w++}if(0<(A=O.length)){if(l=r,0<q&&void 0!==(f=z(2,O,l,t,F,W,A,c,i,c))&&0===(O=f).length)return S+O+E;if(O=l.join(",")+"{"+O+"}",0!=D*B){switch(2!==D||R(O,2)||(B=0),B){case 111:O=O.replace(M,":-moz-$1")+O;break;case 112:O=O.replace(G,"::-webkit-input-$1")+O.replace(G,"::-moz-$1")+O.replace(G,":-ms-input-$1")+O}B=0}}return S+O+E}(L,r,t,0,0);return 0<q&&(void 0!==(a=z(-2,c,r,r,F,W,c.length,0,0,0))&&(c=a)),"",B=0,W=F=1,c}var N=/^\0+/g,I=/[\0\r\f]/g,n=/: */g,o=/zoo|gra/,u=/([,: ])(transform)/g,f=/,\r+?/g,c=/([\t\r\n ])*\f?&/g,T=/@(k\w+)\s*(\S*)\s*/,G=/::(place)/g,M=/:(read-only)/g,h=/[svh]\w+-[tblr]{2}/,P=/\(\s*(.*)\s*\)/g,a=/([\s\S]*?);/g,b=/-self|flex-/g,s=/[^]*?(:[rp][el]a[\w-]+)[^]*/,p=/stretch|:\s*\w+\-(?:conte|avail)/,W=1,F=1,B=0,D=1,L=[],g=[],q=0,k=null,H=0;return d.use=function e(t){switch(t){case void 0:case null:q=g.length=0;break;default:switch(t.constructor){case Array:for(var r=0,a=t.length;r<a;++r)e(t[r]);break;case Function:g[q++]=t;break;case Boolean:H=0|!!t}}return e},d.set=t,void 0!==e&&t(e),d};function r(u){var f="/*|*/";function h(e){if(e)try{u(e+"}")}catch(e){}}return function(e,t,r,a,c,i,s,n,o,l){switch(e){case 1:if(0===o&&64===t.charCodeAt(0))return u(t+";"),"";break;case 2:if(0===n)return t+f;break;case 3:switch(n){case 102:case 112:return u(r[0]+t),"";default:return t+(0===l?f:"")}case-2:t.split("/*|*/}").forEach(h)}}}function a(){return r}var c,x=(function(e,t){var r;r=a,e.exports=r()}(c={exports:{}},c.exports),c.exports);var i,s,n={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},o=/[A-Z]|^ms/g,O=(i=function(e){return e.replace(o,"-$&").toLowerCase()},s={},function(e){return void 0===s[e]&&(s[e]=i(e)),s[e]}),E=function(e,t){return null==t||"boolean"==typeof t?"":1===n[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},S="undefined"!=typeof document;function l(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}function u(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}function f(){if(this.injected)throw new Error("already injected!");this.tags[0]=l(this.opts),this.injected=!0}function h(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e}function d(e,t){if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else{var a=l(this.opts);this.tags.push(a),a.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(l(this.opts))}function b(e){return e.parentNode.removeChild(e)}function p(){this.tags.forEach(b),this.tags=[],this.ctr=0,this.injected=!1}var _=function(){var e=u.prototype;return e.inject=f,e.speedy=h,e.insert=d,e.flush=p,u}();var g=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var r,a,c=t.key||"css",i=x(function(e){r+=e,S&&n.insert(e,l)});void 0!==t.prefix&&(a={prefix:t.prefix});var s={registered:{},inserted:{},nonce:t.nonce,key:c},n=new _(t);S&&n.inject();var o=new y(a);o.use(t.stylisPlugins)(i);var l="";function u(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var r=e.toString();return r}return u.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return function(e){if(d.has(e))return d.get(e);var r="";return Array.isArray(e)?e.forEach(function(e){r+=u.call(this,e,!1)},this):Object.keys(e).forEach(function(t){"object"!=typeof e[t]?void 0!==s.registered[e[t]]?r+=t+"{"+s.registered[e[t]]+"}":r+=O(t)+":"+E(t,e[t])+";":Array.isArray(e[t])&&"string"==typeof e[t][0]&&void 0===s.registered[e[t][0]]?e[t].forEach(function(e){r+=O(t)+":"+E(t,e)+";"}):r+=t+"{"+u.call(this,e[t],!1)+"}"},this),d.set(e,r),r}.call(this,e);default:var a=s.registered[e];return!1===t&&void 0!==a?a:e}}var f,h,d=new WeakMap,b=/label:\s*([^\s;\n{]+)\s*;/g,p=function(r){var a=!0,c="",i="";null==r||void 0===r.raw?c+=u.call(this,r,a=!1):c+=r[0];for(var e=arguments.length,t=new Array(1<e?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];return t.forEach(function(e,t){c+=u.call(this,e,46===c.charCodeAt(c.length-1)),!0===a&&void 0!==r[t+1]&&(c+=r[t+1])},this),c=(h=c).replace(b,function(e,t){return i+="-"+t,""}),f=function(e){for(var t,r=e.length,a=r^r,c=0;4<=r;)t=1540483477*(65535&(t=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24))+((1540483477*(t>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++c;switch(r){case 3:a^=(255&e.charCodeAt(c+2))<<16;case 2:a^=(255&e.charCodeAt(c+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(c)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)}(c+i)+i,c};function g(e,t){void 0===s.inserted[f]&&(r="",o(e,t),s.inserted[f]=r)}var k=function(){var e=p.apply(this,arguments),t=c+"-"+f;return void 0===s.registered[t]&&(s.registered[t]=h),g("."+t,e),t};function v(t,e){var r="";return e.split(" ").forEach(function(e){void 0!==s.registered[e]?t.push(e):r+=e+" "}),r}function w(e,t){var r=[],a=v(r,e);return r.length<2?e:a+k(r,t)}function m(e){s.inserted[e]=!0}if(S){var A=document.querySelectorAll("[data-emotion-"+c+"]");Array.prototype.forEach.call(A,function(e){n.tags[0].parentNode.insertBefore(e,n.tags[0]),e.getAttribute("data-emotion-"+c).split(" ").forEach(m)})}var C={flush:function(){S&&(n.flush(),n.inject()),s.inserted={},s.registered={}},hydrate:function(e){e.forEach(m)},cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return w(function e(t){for(var r=t.length,a=0,c="";a<r;a++){var i=t[a];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"function":s=e([i()]);break;case"object":if(Array.isArray(i))s=e(i);else for(var n in s="",i)i[n]&&n&&(s&&(s+=" "),s+=n);break;default:s=i}s&&(c&&(c+=" "),c+=s)}}return c}(t))},merge:w,getRegisteredStyles:v,injectGlobal:function(){g("",p.apply(this,arguments))},keyframes:function(){var e=p.apply(this,arguments),t="animation-"+f;return g("","@keyframes "+t+"{"+e+"}"),t},css:k,sheet:n,caches:s};return e.__SECRET_EMOTION__=C}("undefined"!=typeof global?global:{}),k=g.flush,v=g.hydrate,w=g.cx,m=g.merge,A=g.getRegisteredStyles,C=g.injectGlobal,j=g.keyframes,R=g.css,$=g.sheet,z=g.caches;e.flush=k,e.hydrate=v,e.cx=w,e.merge=m,e.getRegisteredStyles=A,e.injectGlobal=C,e.keyframes=j,e.css=R,e.sheet=$,e.caches=z,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.emotion={})}(this,function(e){"use strict";var y=function i(e){function _(e,t,r){var a=t.trim().split(f),c=(t=a).length,i=e.length;switch(i){case 0:case 1:var s=0;for(e=0===i?"":e[0]+" ";s<c;++s)t[s]=l(e,t[s],r).trim();break;default:var n=s=0;for(t=[];s<c;++s)for(var o=0;o<i;++o)t[n++]=l(e[o]+" ",a[s],r).trim()}return t}function l(e,t,r){var a=t.charCodeAt(0);switch(a<33&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(c,"$1"+e.trim());case 58:switch(t.charCodeAt(1)){case 103:break;default:return e.trim()+t.replace(c,"$1"+e.trim())}default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(c,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function j(e,t,r,a){var c=e+";",i=2*t+3*r+4*a;if(944===i){e=c.indexOf(":",9)+1;var s=c.substring(e,c.length-1).trim();return s=c.substring(0,e).trim()+s+";",1===D||2===D&&$(s,1)?"-webkit-"+s+s:s}if(0===D||2===D&&!$(c,1))return c;switch(i){case 1015:return 97===c.charCodeAt(10)?"-webkit-"+c+c:c;case 951:return 116===c.charCodeAt(3)?"-webkit-"+c+c:c;case 963:return 110===c.charCodeAt(5)?"-webkit-"+c+c:c;case 1009:if(100!==c.charCodeAt(4))break;case 969:case 942:return"-webkit-"+c+c;case 978:return"-webkit-"+c+"-moz-"+c+c;case 1019:case 983:return"-webkit-"+c+"-moz-"+c+"-ms-"+c+c;case 883:return 45===c.charCodeAt(8)?"-webkit-"+c+c:c;case 932:if(45===c.charCodeAt(4))switch(c.charCodeAt(5)){case 103:return"-webkit-box-"+c.replace("-grow","")+"-webkit-"+c+"-ms-"+c.replace("grow","positive")+c;case 115:return"-webkit-"+c+"-ms-"+c.replace("shrink","negative")+c;case 98:return"-webkit-"+c+"-ms-"+c.replace("basis","preferred-size")+c}return"-webkit-"+c+"-ms-"+c+c;case 964:return"-webkit-"+c+"-ms-flex-"+c+c;case 1023:if(99!==c.charCodeAt(8))break;return"-webkit-box-pack"+(s=c.substring(c.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+c+"-ms-flex-pack"+s+c;case 1005:return o.test(c)?c.replace(n,":-webkit-")+c.replace(n,":-moz-")+c:c;case 1e3:switch(t=(s=c.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=c.replace(h,"tb");break;case 232:s=c.replace(h,"tb-rl");break;case 220:s=c.replace(h,"lr");break;default:return c}return"-webkit-"+c+"-ms-"+s+c;case 1017:if(-1===c.indexOf("sticky",9))break;case 975:switch(t=(c=e).length-10,i=(s=(33===c.charCodeAt(t)?c.substring(0,t):c).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(s.charCodeAt(8)<111)break;case 115:c=c.replace(s,"-webkit-"+s)+";"+c;break;case 207:case 102:c=c.replace(s,"-webkit-"+(102<i?"inline-":"")+"box")+";"+c.replace(s,"-webkit-"+s)+";"+c.replace(s,"-ms-"+s+"box")+";"+c}return c+";";case 938:if(45===c.charCodeAt(5))switch(c.charCodeAt(6)){case 105:return s=c.replace("-items",""),"-webkit-"+c+"-webkit-box-"+s+"-ms-flex-"+s+c;case 115:return"-webkit-"+c+"-ms-flex-item-"+c.replace(b,"")+c;default:return"-webkit-"+c+"-ms-flex-line-pack"+c.replace("align-content","").replace(b,"")+c}break;case 973:case 989:if(45!==c.charCodeAt(3)||122===c.charCodeAt(4))break;case 931:case 953:if(!0===p.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?j(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):c.replace(s,"-webkit-"+s)+c.replace(s,"-moz-"+s.replace("fill-",""))+c;break;case 962:if(c="-webkit-"+c+(102===c.charCodeAt(5)?"-ms-"+c:"")+c,211===r+a&&105===c.charCodeAt(13)&&0<c.indexOf("transform",10))return c.substring(0,c.indexOf(";",27)+1).replace(u,"$1-webkit-$2")+c}return c}function $(e,t){var r=e.indexOf(1===t?":":"{"),a=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),k(2!==t?a:a.replace(s,"$1"),r,t)}function R(e,t){var r=j(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(a," or ($1)").substring(4):"("+t+")"}function z(e,t,r,a,c,i,s,n,o,l){for(var u,f=0,h=t;f<q;++f)switch(u=g[f].call(d,e,h,r,a,c,i,s,n,o,l)){case void 0:case!1:case!0:case null:break;default:h=u}if(h!==t)return h}function t(e){return void 0!==(e=e.prefix)&&(k=null,e?"function"!=typeof e?D=1:(D=2,k=e):D=0),t}function d(e,t){if(void 0!==this&&this.constructor===d)return i(e);var r=e;if(r.charCodeAt(0)<33&&(r=r.trim()),r=[r],0<q){var a=z(-1,t,r,r,F,P,0,0,0,0);void 0!==a&&"string"==typeof a&&(t=a)}var c=function e(t,r,a,c,i){for(var s,n,o,l,u,f,h=0,d=0,b=0,p=0,g=0,k=0,v=l=s=0,w=0,m=n=0,A=0,C=a.length,y=C-1,x="",O="",E="",S="";w<C;){if(o=a.charCodeAt(w),w===y&&0!==d+p+b+h&&(0!==d&&(o=47===d?10:47),p=b=h=0,C++,y++),0===d+p+b+h){if(w===y&&(0<n&&(x=x.replace(I,"")),0<x.trim().length)){switch(o){case 32:case 9:case 59:case 13:case 10:break;default:x+=a.charAt(w)}o=59}switch(o){case 123:for(s=(x=x.trim()).charCodeAt(0),l=1,A=++w;w<C;){switch(o=a.charCodeAt(w)){case 123:l++;break;case 125:l--}if(0===l)break;w++}switch(o=a.substring(A,w),0===s&&(s=(x=x.replace(N,"").trim()).charCodeAt(0)),s){case 64:switch(0<n&&(x=x.replace(I,"")),n=x.charCodeAt(1)){case 100:case 109:case 115:case 45:l=r;break;default:l=L}if(A=(o=e(r,l,o,n,i+1)).length,0<q&&(f=z(3,o,l=_(L,x,m),r,F,P,A,n,i,c),x=l.join(""),void 0!==f&&0===(A=(o=f.trim()).length)&&(n=0,o="")),0<A)switch(n){case 115:x=x.replace(W,R);case 100:case 109:case 45:o=x+"{"+o+"}";break;case 107:o=(x=x.replace(T,"$1 $2"))+"{"+o+"}",o=1===D||2===D&&$("@"+o,3)?"@-webkit-"+o+"@"+o:"@"+o;break;default:o=x+o,112===c&&(O+=o,o="")}else o="";break;default:o=e(r,_(r,x,m),o,c,i+1)}E+=o,l=m=n=v=s=0,x="",o=a.charCodeAt(++w);break;case 125:case 59:if(1<(A=(x=(0<n?x.replace(I,""):x).trim()).length))switch(0===v&&(s=x.charCodeAt(0),45===s||96<s&&s<123)&&(A=(x=x.replace(" ",":")).length),0<q&&void 0!==(f=z(1,x,r,t,F,P,O.length,c,i,c))&&0===(A=(x=f.trim()).length)&&(x="\0\0"),s=x.charCodeAt(0),n=x.charCodeAt(1),s+n){case 0:break;case 169:case 163:S+=x+a.charAt(w);break;default:58!==x.charCodeAt(A-1)&&(O+=j(x,s,n,x.charCodeAt(2)))}m=n=v=s=0,x="",o=a.charCodeAt(++w)}}switch(o){case 13:case 10:47===d?d=0:0===1+s&&(n=1,x+="\0"),0<q*H&&z(0,x,r,t,F,P,O.length,c,i,c),P=1,F++;break;case 59:case 125:if(0===d+p+b+h){P++;break}default:switch(P++,u=a.charAt(w),o){case 9:case 32:if(0===p+h+d)switch(g){case 44:case 58:case 9:case 32:u="";break;default:32!==o&&(u=" ")}break;case 0:u="\\0";break;case 12:u="\\f";break;case 11:u="\\v";break;case 38:0===p+d+h&&(n=m=1,u="\f"+u);break;case 108:if(0===p+d+h+B&&0<v)switch(w-v){case 2:112===g&&58===a.charCodeAt(w-3)&&(B=g);case 8:111===k&&(B=k)}break;case 58:0===p+d+h&&(v=w);break;case 44:0===d+b+p+h&&(n=1,u+="\r");break;case 34:case 39:0===d&&(p=p===o?0:0===p?o:p);break;case 91:0===p+d+b&&h++;break;case 93:0===p+d+b&&h--;break;case 41:0===p+d+h&&b--;break;case 40:if(0===p+d+h){if(0===s)switch(2*g+3*k){case 533:break;default:s=1}b++}break;case 64:0===d+b+p+h+v+l&&(l=1);break;case 42:case 47:if(!(0<p+h+b))switch(d){case 0:switch(2*o+3*a.charCodeAt(w+1)){case 235:d=47;break;case 220:A=w,d=42}break;case 42:47===o&&42===g&&(33===a.charCodeAt(A+2)&&(O+=a.substring(A,w+1)),u="",d=0)}}0===d&&(x+=u)}k=g,g=o,w++}if(0<(A=O.length)){if(l=r,0<q&&void 0!==(f=z(2,O,l,t,F,P,A,c,i,c))&&0===(O=f).length)return S+O+E;if(O=l.join(",")+"{"+O+"}",0!=D*B){switch(2!==D||$(O,2)||(B=0),B){case 111:O=O.replace(M,":-moz-$1")+O;break;case 112:O=O.replace(G,"::-webkit-input-$1")+O.replace(G,"::-moz-$1")+O.replace(G,":-ms-input-$1")+O}B=0}}return S+O+E}(L,r,t,0,0);return 0<q&&(void 0!==(a=z(-2,c,r,r,F,P,c.length,0,0,0))&&(c=a)),"",B=0,P=F=1,c}var N=/^\0+/g,I=/[\0\r\f]/g,n=/: */g,o=/zoo|gra/,u=/([,: ])(transform)/g,f=/,\r+?/g,c=/([\t\r\n ])*\f?&/g,T=/@(k\w+)\s*(\S*)\s*/,G=/::(place)/g,M=/:(read-only)/g,h=/[svh]\w+-[tblr]{2}/,W=/\(\s*(.*)\s*\)/g,a=/([\s\S]*?);/g,b=/-self|flex-/g,s=/[^]*?(:[rp][el]a[\w-]+)[^]*/,p=/stretch|:\s*\w+\-(?:conte|avail)/,P=1,F=1,B=0,D=1,L=[],g=[],q=0,k=null,H=0;return d.use=function e(t){switch(t){case void 0:case null:q=g.length=0;break;default:switch(t.constructor){case Array:for(var r=0,a=t.length;r<a;++r)e(t[r]);break;case Function:g[q++]=t;break;case Boolean:H=0|!!t}}return e},d.set=t,void 0!==e&&t(e),d};function t(u){var f="/*|*/";function h(e){if(e)try{u(e+"}")}catch(e){}}return function(e,t,r,a,c,i,s,n,o,l){switch(e){case 1:if(0===o&&64===t.charCodeAt(0))return u(t+";"),"";break;case 2:if(0===n)return t+f;break;case 3:switch(n){case 102:case 112:return u(r[0]+t),"";default:return t+(0===l?f:"")}case-2:t.split("/*|*/}").forEach(h)}}}function a(){return t}var r,x=(function(e,t){var r;r=a,e.exports=r()}(r={exports:{}},r.exports),r.exports);var c,i,s={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},n=/[A-Z]|^ms/g,O=(c=function(e){return e.replace(n,"-$&").toLowerCase()},i={},function(e){return void 0===i[e]&&(i[e]=c(e)),i[e]}),E=function(e,t){return null==t||"boolean"==typeof t?"":1===s[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},S="undefined"!=typeof document;function o(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}function l(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}function u(){if(this.injected)throw new Error("already injected!");this.tags[0]=o(this.opts),this.injected=!0}function f(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e}function h(e,t){if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else{var a=o(this.opts);this.tags.push(a),a.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(o(this.opts))}function d(e){return e.parentNode.removeChild(e)}function b(){this.tags.forEach(d),this.tags=[],this.ctr=0,this.injected=!1}var _=function(){var e=l.prototype;return e.inject=u,e.speedy=f,e.insert=h,e.flush=b,l}();var p=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var r,a,c=t.key||"css",i=x(function(e){r+=e,S&&n.insert(e,l)});void 0!==t.prefix&&(a={prefix:t.prefix});var s={registered:{},inserted:{},nonce:t.nonce,key:c},n=new _(t);S&&n.inject();var o=new y(a);o.use(t.stylisPlugins)(i);var l="";function u(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var r=e.toString();return r}return u.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return function(e){if(d.has(e))return d.get(e);var r="";return Array.isArray(e)?e.forEach(function(e){r+=u.call(this,e,!1)},this):Object.keys(e).forEach(function(t){"object"!=typeof e[t]?void 0!==s.registered[e[t]]?r+=t+"{"+s.registered[e[t]]+"}":r+=O(t)+":"+E(t,e[t])+";":Array.isArray(e[t])&&"string"==typeof e[t][0]&&void 0===s.registered[e[t][0]]?e[t].forEach(function(e){r+=O(t)+":"+E(t,e)+";"}):r+=t+"{"+u.call(this,e[t],!1)+"}"},this),d.set(e,r),r}.call(this,e);default:var a=s.registered[e];return!1===t&&void 0!==a?a:e}}var f,h,d=new WeakMap,b=/label:\s*([^\s;\n{]+)\s*;/g,p=function(r){var a=!0,c="",i="";null==r||void 0===r.raw?c+=u.call(this,r,a=!1):c+=r[0];for(var e=arguments.length,t=new Array(1<e?e-1:0),s=1;s<e;s++)t[s-1]=arguments[s];return t.forEach(function(e,t){c+=u.call(this,e,46===c.charCodeAt(c.length-1)),!0===a&&void 0!==r[t+1]&&(c+=r[t+1])},this),c=(h=c).replace(b,function(e,t){return i+="-"+t,""}),f=function(e){for(var t,r=e.length,a=r^r,c=0;4<=r;)t=1540483477*(65535&(t=255&e.charCodeAt(c)|(255&e.charCodeAt(++c))<<8|(255&e.charCodeAt(++c))<<16|(255&e.charCodeAt(++c))<<24))+((1540483477*(t>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++c;switch(r){case 3:a^=(255&e.charCodeAt(c+2))<<16;case 2:a^=(255&e.charCodeAt(c+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(c)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)}(c+i)+i,c};function g(e,t){void 0===s.inserted[f]&&(r="",o(e,t),s.inserted[f]=r)}var k=function(){var e=p.apply(this,arguments),t=c+"-"+f;return void 0===s.registered[t]&&(s.registered[t]=h),g("."+t,e),t};function v(t,e){var r="";return e.split(" ").forEach(function(e){void 0!==s.registered[e]?t.push(e):r+=e+" "}),r}function w(e,t){var r=[],a=v(r,e);return r.length<2?e:a+k(r,t)}function m(e){s.inserted[e]=!0}if(S){var A=document.querySelectorAll("[data-emotion-"+c+"]");Array.prototype.forEach.call(A,function(e){n.tags[0].parentNode.insertBefore(e,n.tags[0]),e.getAttribute("data-emotion-"+c).split(" ").forEach(m)})}var C={flush:function(){S&&(n.flush(),n.inject()),s.inserted={},s.registered={}},hydrate:function(e){e.forEach(m)},cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return w(function e(t){for(var r=t.length,a=0,c="";a<r;a++){var i=t[a];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"function":s=e([i()]);break;case"object":if(Array.isArray(i))s=e(i);else for(var n in s="",i)i[n]&&n&&(s&&(s+=" "),s+=n);break;default:s=i}s&&(c&&(c+=" "),c+=s)}}return c}(t))},merge:w,getRegisteredStyles:v,injectGlobal:function(){g("",p.apply(this,arguments))},keyframes:function(){var e=p.apply(this,arguments),t="animation-"+f;return g("","@keyframes "+t+"{"+e+"}"),t},css:k,sheet:n,caches:s};return e.__SECRET_EMOTION__=C}("undefined"!=typeof global?global:{}),g=p.flush,k=p.hydrate,v=p.cx,w=p.merge,m=p.getRegisteredStyles,A=p.injectGlobal,C=p.keyframes,j=p.css,$=p.sheet,R=p.caches;e.flush=g,e.hydrate=k,e.cx=v,e.merge=w,e.getRegisteredStyles=m,e.injectGlobal=A,e.keyframes=C,e.css=j,e.sheet=$,e.caches=R,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=emotion.umd.min.js.map

@@ -9,28 +9,15 @@ 'use strict';

var _sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
var _construct = typeof Reflect === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
var context = typeof global !== 'undefined' ? global : {};
var _createEmotion = createEmotion(context);
var flush = _createEmotion.flush;
var hydrate = _createEmotion.hydrate;
var cx = _createEmotion.cx;
var merge = _createEmotion.merge;
var getRegisteredStyles = _createEmotion.getRegisteredStyles;
var injectGlobal = _createEmotion.injectGlobal;
var keyframes = _createEmotion.keyframes;
var css = _createEmotion.css;
var sheet = _createEmotion.sheet;
var caches = _createEmotion.caches;
var _createEmotion = createEmotion(context),
flush = _createEmotion.flush,
hydrate = _createEmotion.hydrate,
cx = _createEmotion.cx,
merge = _createEmotion.merge,
getRegisteredStyles = _createEmotion.getRegisteredStyles,
injectGlobal = _createEmotion.injectGlobal,
keyframes = _createEmotion.keyframes,
css = _createEmotion.css,
sheet = _createEmotion.sheet,
caches = _createEmotion.caches;

@@ -37,0 +24,0 @@ exports.flush = flush;

import createEmotion from 'create-emotion';
var _sPO = Object.setPrototypeOf || function _sPO(o, p) {
o.__proto__ = p;
return o;
};
var _construct = typeof Reflect === "object" && Reflect.construct || function _construct(Parent, args, Class) {
var Constructor,
a = [null];
a.push.apply(a, args);
Constructor = Parent.bind.apply(Parent, a);
return _sPO(new Constructor(), Class.prototype);
};
var context = typeof global !== 'undefined' ? global : {};
var _createEmotion = createEmotion(context);
var flush = _createEmotion.flush;
var hydrate = _createEmotion.hydrate;
var cx = _createEmotion.cx;
var merge = _createEmotion.merge;
var getRegisteredStyles = _createEmotion.getRegisteredStyles;
var injectGlobal = _createEmotion.injectGlobal;
var keyframes = _createEmotion.keyframes;
var css = _createEmotion.css;
var sheet = _createEmotion.sheet;
var caches = _createEmotion.caches;
var _createEmotion = createEmotion(context),
flush = _createEmotion.flush,
hydrate = _createEmotion.hydrate,
cx = _createEmotion.cx,
merge = _createEmotion.merge,
getRegisteredStyles = _createEmotion.getRegisteredStyles,
injectGlobal = _createEmotion.injectGlobal,
keyframes = _createEmotion.keyframes,
css = _createEmotion.css,
sheet = _createEmotion.sheet,
caches = _createEmotion.caches;
export { flush, hydrate, cx, merge, getRegisteredStyles, injectGlobal, keyframes, css, sheet, caches };
//# sourceMappingURL=index.es.js.map
{
"name": "emotion",
"version": "9.2.0",
"version": "9.2.1",
"description": "The Next Generation of CSS-in-JS.",

@@ -23,3 +23,3 @@ "main": "dist/index.cjs.js",

"babel-plugin-emotion": "^9.2.0",
"create-emotion": "^9.2.0"
"create-emotion": "^9.2.1"
},

@@ -34,3 +34,3 @@ "devDependencies": {

"rimraf": "^2.6.1",
"rollup": "^0.51.3"
"rollup": "^0.60.1"
},

@@ -37,0 +37,0 @@ "author": "Kye Hohenberger",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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