react-emotion
Advanced tools
Comparing version 8.0.12 to 9.0.0-0
@@ -1,2 +0,2 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["exports","react","prop-types"],t):t(e["react-emotion"]={},e.React,e.PropTypes)}(this,function(e,t,r){"use strict";function a(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function i(e){return s(e,e.length).toString(36)}function s(e,t){for(var r=1540483477,a=t^e.length,i=e.length,s=0;i>=4;){var l=n(e,s);l=o(l,r),l=o(l^=l>>>24,r),a=o(a,r),a^=l,s+=4,i-=4}switch(i){case 3:a^=c(e,s),a=o(a^=e.charCodeAt(s+2)<<16,r);break;case 2:a=o(a^=c(e,s),r);break;case 1:a=o(a^=e.charCodeAt(s),r)}return a^=a>>>13,a=o(a,r),(a^=a>>>15)>>>0}function n(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function c(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function o(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}function l(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}function u(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]}function d(){var e=document.createElement("style");return e.type="text/css",e.setAttribute("data-emotion",""),e.appendChild(document.createTextNode("")),document.head.appendChild(e),e}function h(t,r){if(null==t)return"";switch(typeof t){case"boolean":return"";case"function":return void 0!==t[A]?"."+t[x]:h.call(this,void 0===this?t():t(this.mergedProps,this.context),r);case"object":return f.call(this,t);default:var a=e.registered[t];return!1===r&&void 0!==a?a:t}}function f(t){if(F.has(t))return F.get(t);var r="";return Array.isArray(t)?t.forEach(function(e){r+=h.call(this,e,!1)},this):Object.keys(t).forEach(function(a){"object"!=typeof t[a]?void 0!==e.registered[t[a]]?r+=a+"{"+e.registered[t[a]]+"}":r+=I(a)+":"+L(a,t[a])+";":r+=a+"{"+h.call(this,t[a],!1)+"}"},this),F.set(t,r),r}function p(e){return 46===e.charCodeAt(e.length-1)}function g(e){var t=!0,r="",a="";null==e||void 0===e.raw?(t=!1,r=h.call(this,e,!1)):r=e[0];for(var s=arguments.length,n=new Array(s>1?s-1:0),c=1;c<s;c++)n[c-1]=arguments[c];return n.forEach(function(a,i){r+=h.call(this,a,p(r)),!0===t&&void 0!==e[i+1]&&(r+=e[i+1])},this),r=r.replace(B,function(e,t){return a+="-"+t,""}),P=i(r+a),N=P+a,r}function b(){var t=g.apply(this,arguments),r="css-"+N;return void 0===e.registered[r]&&(e.registered[r]=t),void 0===e.inserted[P]&&(T("."+r,t),e.inserted[P]=!0),r}function m(t,r){var a="";return r.split(" ").forEach(function(r){void 0!==e.registered[r]?t.push(r):a+=r+" "}),a}function k(e,t){var r=[],a=m(r,e);return r.length<2?e:a+b(r,t)}function v(){for(var e=arguments.length,t=0,r="";t<e;t++){var a=arguments[t];if(null!=a){var i=r&&r+" "||r;switch(typeof a){case"boolean":break;case"function":r=i+v(a());break;case"object":if(Array.isArray(a))r=i+v.apply(null,a);else for(var s in a)a[s]&&(r&&(r+=" "),r+=s);break;default:r=i+a}}}return r}function w(e){this.setState({theme:e})}function y(){void 0!==this.context[H]&&(this.unsubscribe=this.context[H].subscribe(w.bind(this)))}function C(){void 0!==this.unsubscribe&&this.context[H].unsubscribe(this.unsubscribe)}r=r&&r.hasOwnProperty("default")?r.default:r;var A="__emotion_styles",x="__emotion_target",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,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},O=function(e,t){return t={exports:{}},e(t,t.exports),t.exports}(function(e,t){!function(t){e.exports=t()}(function(){return function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,a,i,s,n,c,o,l,u){switch(r){case 1:0===u&&64===a.charCodeAt(0)&&e(a);break;case 2:if(0===l)return a+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+a),"";default:return a+"/*|*/"}case-2:a.split("/*|*/}").forEach(t)}}}})}),_=new(function(){function e(){this.isBrowser="undefined"!=typeof window,this.isSpeedy=!0,this.tags=[],this.ctr=0}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.isBrowser?this.tags[0]=d():this.sheet=[],this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isBrowser){if(this.isSpeedy){var r=u(this.tags[this.tags.length-1]);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else{var a=d();this.tags.push(a),a.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(d())}else this.sheet.push(e)},t.flush=function(){this.isBrowser?(this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0):this.sheet=[],this.injected=!1},e}());_.inject();var T=new function e(t){function r(e,t,i,l,u){for(var d,p,g,b,m=0,k=0,w=0,y=0,C=0,A=0,_=0,T=0,R=0,E=0,z=0,N=0,M=p=0,$=0,U=0,X=i.length,Y=X-1,te="",re="",ae="",ie="";N<X;){if(g=i.charCodeAt(N),N===Y&&0!==k+y+w+m&&(0!==k&&(g=47===k?10:47),y=w=m=0,X++,Y++),0===k+y+w+m){if(N===Y&&(0<p&&(te=te.replace(f,"")),0<te.trim().length)){switch(g){case 32:case 9:case 59:case 13:case 10:break;default:te+=i.charAt(N)}g=59}if(1===M)switch(g){case 123:case 125:case 59:case 34:case 39:case 40:case 41:case 44:M=0;case 9:case 13:case 10:case 32:break;default:for(M=0,U=N,d=g,N--,g=59;U<X;)switch(i.charCodeAt(++U)){case 10:case 13:case 59:N++,g=d;case 58:case 123:U=X}}switch(g){case 123:for(d=(te=te.trim()).charCodeAt(0),T=1,U=++N;N<X;){switch(g=i.charCodeAt(N)){case 123:T++;break;case 125:T--}if(0===T)break;N++}switch(E=i.substring(U,N),0===d&&(d=(te=te.replace(h,"").trim()).charCodeAt(0)),d){case 64:switch(0<p&&(te=te.replace(f,"")),p=te.charCodeAt(1)){case 100:case 109:case 115:case 45:d=t;break;default:d=G}if(E=r(t,d,E,p,u+1),U=E.length,0<q&&0===U&&(U=te.length),0<V&&(d=a(G,te,$),b=o(3,E,d,t,L,I,U,p,u),te=d.join(""),void 0!==b&&0===(U=(E=b.trim()).length)&&(p=0,E="")),0<U)switch(p){case 115:te=te.replace(P,c);case 100:case 109:case 45:E=te+"{"+E+"}";break;case 107:E=(te=te.replace(x,"$1 $2"+(0<K?J:"")))+"{"+E+"}",E=1===H||2===H&&n("@"+E,3)?"@-webkit-"+E+"@"+E:"@"+E;break;default:E=te+E,112===l&&(re+=E,E="")}else E="";break;default:E=r(t,a(t,te,$),E,l,u+1)}ae+=E,E=$=p=z=M=R=0,te="",g=i.charCodeAt(++N);break;case 125:case 59:if(te=(0<p?te.replace(f,""):te).trim(),1<(U=te.length))switch(0===z&&(45===(d=te.charCodeAt(0))||96<d&&123>d)&&(U=(te=te.replace(" ",":")).length),0<V&&void 0!==(b=o(1,te,t,e,L,I,re.length,l,u))&&0===(U=(te=b.trim()).length)&&(te="\0\0"),d=te.charCodeAt(0),p=te.charCodeAt(1),d+p){case 0:break;case 169:case 163:ie+=te+i.charAt(N);break;default:58!==te.charCodeAt(U-1)&&(re+=s(te,d,p,te.charCodeAt(2)))}$=p=z=M=R=0,te="",g=i.charCodeAt(++N)}}switch(g){case 13:case 10:if(0===k+y+w+m+D)switch(_){case 41:case 39:case 34:case 64:case 126:case 62:case 42:case 43:case 47:case 45:case 58:case 44:case 59:case 123:case 125:break;default:0<z&&(M=1)}47===k?k=0:0===B+R&&(p=1,te+="\0"),0<V*Z&&o(0,te,t,e,L,I,re.length,l,u),I=1,L++;break;case 59:case 125:if(0===k+y+w+m){I++;break}default:switch(I++,d=i.charAt(N),g){case 9:case 32:if(0===y+m+k)switch(C){case 44:case 58:case 9:case 32:d="";break;default:32!==g&&(d=" ")}break;case 0:d="\\0";break;case 12:d="\\f";break;case 11:d="\\v";break;case 38:0===y+k+m&&0<B&&(p=$=1,d="\f"+d);break;case 108:if(0===y+k+m+F&&0<z)switch(N-z){case 2:112===C&&58===i.charCodeAt(N-3)&&(F=C);case 8:111===A&&(F=A)}break;case 58:0===y+k+m&&(z=N);break;case 44:0===k+w+y+m&&(p=1,d+="\r");break;case 34:case 39:0===k&&(y=y===g?0:0===y?g:y);break;case 91:0===y+k+w&&m++;break;case 93:0===y+k+w&&m--;break;case 41:0===y+k+m&&w--;break;case 40:if(0===y+k+m){if(0===R)switch(2*C+3*A){case 533:break;default:T=0,R=1}w++}break;case 64:0===k+w+y+m+z+E&&(E=1);break;case 42:case 47:if(!(0<y+m+w))switch(k){case 0:switch(2*g+3*i.charCodeAt(N+1)){case 235:k=47;break;case 220:U=N,k=42}break;case 42:47===g&&42===C&&(33===i.charCodeAt(U+2)&&(re+=i.substring(U,N+1)),d="",k=0)}}if(0===k){if(0===B+y+m+E&&107!==l&&59!==g)switch(g){case 44:case 126:case 62:case 43:case 41:case 40:if(0===R){switch(C){case 9:case 32:case 10:case 13:d+="\0";break;default:d="\0"+d+(44===g?"":"\0")}p=1}else switch(g){case 40:R=++T;break;case 41:0==(R=--T)&&(p=1,d+="\0")}break;case 9:case 32:switch(C){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===R&&(p=1,d+="\0")}}te+=d,32!==g&&9!==g&&(_=g)}}A=C,C=g,N++}if(U=re.length,0<q&&0===U&&0===ae.length&&0===t[0].length==0&&(109!==l||1===t.length&&(0<B?Q:ee)===t[0])&&(U=t.join(",").length+2),0<U){if(0===B&&107!==l){for(i=0,m=t.length,k=Array(m);i<m;++i){for(A="",_=0,X=(C=t[i].split(v)).length;_<X;++_)if(!(0===(T=(y=C[_]).length)&&1<X)){if(N=A.charCodeAt(A.length-1),$=y.charCodeAt(0),w="",0!==_)switch(N){case 42:case 126:case 62:case 43:case 32:case 40:break;default:w=" "}switch($){case 38:y=w+Q;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:y=w+y+Q;break;case 58:switch(2*y.charCodeAt(1)+3*y.charCodeAt(2)){case 530:if(0<W){y=w+y.substring(8,T-1);break}default:(1>_||1>C[_-1].length)&&(y=w+Q+y)}break;case 44:w="";default:y=1<T&&0<y.indexOf(":")?w+y.replace(j,"$1"+Q+"$2"):w+y+Q}A+=y}k[i]=A.replace(f,"").trim()}t=k}if(d=t,0<V&&void 0!==(b=o(2,re,d,e,L,I,U,l,u))&&0===(re=b).length)return ie+re+ae;if(re=d.join(",")+"{"+re+"}",0!=H*F){switch(2!==H||n(re,2)||(F=0),F){case 111:re=re.replace(O,":-moz-$1")+re;break;case 112:re=re.replace(S,"::-webkit-input-$1")+re.replace(S,"::-moz-$1")+re.replace(S,":-ms-input-$1")+re}F=0}}return ie+re+ae}function a(e,t,r){var a=t.trim().split(w);t=a;var s=a.length,n=e.length;switch(n){case 0:case 1:var c=0;for(e=0===n?"":e[0]+" ";c<s;++c)t[c]=i(e,t[c],r,n).trim();break;default:var o=c=0;for(t=[];c<s;++c)for(var l=0;l<n;++l)t[o++]=i(e[l]+" ",a[c],r,n).trim()}return t}function i(e,t,r,a){var i=t.charCodeAt(0);switch(33>i&&(i=(t=t.trim()).charCodeAt(0)),i){case 38:switch(B+a){case 0:case 1:if(0===e.trim().length)break;default:return t.replace(y,"$1"+e.trim())}break;case 58:switch(t.charCodeAt(1)){case 103:if(0<W&&0<B)return t.replace(C,"$1").replace(y,"$1"+ee);break;default:return e.trim()+t}default:if(0<r*B&&0<t.indexOf("\f"))return t.replace(y,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function s(e,t,r,a){var i=0,s=e+";";if(944==(t=2*t+3*r+4*a)){switch(i=s.length,e=s.indexOf(":",9)+1,r=s.substring(0,e).trim(),a=s.substring(e,i-1).trim(),s.charCodeAt(9)*K){case 0:break;case 45:if(110!==s.charCodeAt(10))break;default:for(e=t=0,i=(s=a.split((a="",m))).length;t<i;e=0,++t){for(var c=s[t],o=c.split(k);c=o[e];){var l=c.charCodeAt(0);if(1===K&&(64<l&&90>l||96<l&&123>l||95===l||45===l&&45!==c.charCodeAt(1)))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=J}}o[e++]=c}a+=(0===t?"":",")+o.join(" ")}}return a=r+a+";",1===H||2===H&&n(a,1)?"-webkit-"+a+a:a}if(0===H||2===H&&!n(s,1))return s;switch(t){case 1015:return 45===s.charCodeAt(9)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:return 45===s.charCodeAt(8)?"-webkit-"+s+s:s;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(e=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+e+s;case 1005:return g.test(s)?s.replace(p,":-webkit-")+s.replace(p,":-moz-")+s:s;case 1e3:switch(e=s.substring(13).trim(),i=e.indexOf("-")+1,e.charCodeAt(0)+e.charCodeAt(i)){case 226:e=s.replace(z,"tb");break;case 232:e=s.replace(z,"tb-rl");break;case 220:e=s.replace(z,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+e+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(i=(s=e).length-10,e=(33===s.charCodeAt(i)?s.substring(0,i):s).substring(e.indexOf(":",7)+1).trim(),t=e.charCodeAt(0)+(0|e.charCodeAt(7))){case 203:if(111>e.charCodeAt(8))break;case 115:s=s.replace(e,"-webkit-"+e)+";"+s;break;case 207:case 102:s=s.replace(e,"-webkit-"+(102<t?"inline-":"")+"box")+";"+s.replace(e,"-webkit-"+e)+";"+s.replace(e,"-ms-"+e+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return e=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+e+"-ms-flex-"+e+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(M,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","")+s}break;case 953:if(0<(i=s.indexOf("-content",9))&&109===s.charCodeAt(i-3)&&45!==s.charCodeAt(i-4))return"width:-webkit-"+(e=s.substring(i-3))+"width:-moz-"+e+"width:"+e;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+a&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+s}return s}function n(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),Y(2!==t?a:a.replace($,"$1"),r,t)}function c(e,t){var r=s(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(N," or ($1)").substring(4):"("+t+")"}function o(e,t,r,a,i,s,n,c,o){for(var l,u=0,h=t;u<V;++u)switch(l=X[u].call(d,e,h,r,a,i,s,n,c,o)){case void 0:case!1:case!0:case null:break;default:h=l}switch(h){case void 0:case!1:case!0:case null:case t:break;default:return h}}function l(e){switch(e){case void 0:case null:V=X.length=0;break;default:switch(e.constructor){case Array:for(var t=0,r=e.length;t<r;++t)l(e[t]);break;case Function:X[V++]=e;break;case Boolean:Z=0|!!e}}return l}function u(e){for(var t in e){var r=e[t];switch(t){case"keyframe":K=0|r;break;case"global":W=0|r;break;case"cascade":B=0|r;break;case"compress":U=0|r;break;case"semicolon":D=0|r;break;case"preserve":q=0|r;break;case"prefix":Y=null,r?"function"!=typeof r?H=1:(H=2,Y=r):H=0}}return u}function d(t,a){if(void 0!==this&&this.constructor===d)return e(t);var i=t,s=i.charCodeAt(0);if(33>s&&(s=(i=i.trim()).charCodeAt(0)),0<K&&(J=i.replace(A,91===s?"":"-")),s=1,1===B?ee=i:Q=i,i=[ee],0<V){var n=o(-1,a,i,i,L,I,0,0,0);void 0!==n&&"string"==typeof n&&(a=n)}var c=r(G,i,a,0,0);return 0<V&&void 0!==(n=o(-2,c,i,i,L,I,c.length,0,0))&&"string"!=typeof(c=n)&&(s=0),Q=ee=J="",F=0,I=L=1,0==U*s?c:c.replace(f,"").replace(_,"").replace(T,"$1").replace(R,"$1").replace(E," ")}var h=/^\0+/g,f=/[\0\r\f]/g,p=/: */g,g=/zoo|gra/,b=/([,: ])(transform)/g,m=/,+\s*(?![^(]*[)])/g,k=/ +\s*(?![^(]*[)])/g,v=/ *[\0] */g,w=/,\r+?/g,y=/([\t\r\n ])*\f?&/g,C=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,A=/\W+/g,x=/@(k\w+)\s*(\S*)\s*/,S=/::(place)/g,O=/:(read-only)/g,_=/\s+(?=[{\];=:>])/g,T=/([[}=:>])\s+/g,R=/(\{[^{]+?);(?=\})/g,E=/\s{2,}/g,j=/([^\(])(:+) */g,z=/[svh]\w+-[tblr]{2}/,P=/\(\s*(.*)\s*\)/g,N=/([^]*?);/g,M=/-self|flex-/g,$=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=1,L=1,F=0,B=1,H=1,W=1,U=0,D=0,q=0,G=[],X=[],V=0,Y=null,Z=0,K=1,J="",Q="",ee="";return d.use=l,d.set=u,void 0!==t&&u(t),d}({keyframe:!1}),R=[],E=T.use,j=O(function(e){_.insert(e,z)});e.registered={},e.inserted={};var z="";T.use(j);var P,N,M,$=/[A-Z]|^ms/g,I=l(function(e){return e.replace($,"-$&").toLowerCase()}),L=function(e,t){return void 0===t||null===t||"boolean"==typeof t?"":1===S[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},F=new WeakMap,B=/label:\s*([^\s;\n]+)\s*[;\n]/g,H="__EMOTION_THEMING__",W=(M={},M[H]=r.object,M),U=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan)|(on[A-Z].*)|((data|aria)-.*))$/,D=l(function(e){return U.test(e)}),q=function(e){return"theme"!==e&&"innerRef"!==e},G=function(){return!0},X=function(e,t){for(var r=2,a=arguments.length;r<a;r++){var i=arguments[r],s=void 0;for(s in i)e(s)&&(t[s]=i[s])}return t};e.default=function e(r,i){var s,n,c;void 0!==i&&(s=i.label,n=i.target,c=i.e);var o=r.__emotion_real===r,l=void 0===c?o&&r.__emotion_base||r:r,u="string"==typeof l&&l.charAt(0)===l.charAt(0).toLowerCase()?D:q;return function(d){var h=o&&r[A]||[];if(void 0!==s&&(h=h.concat("label:"+s+";")),void 0===c){for(var f=arguments.length,p=new Array(f>1?f-1:0),g=1;g<f;g++)p[g-1]=arguments[g];h=null==d||void 0===d.raw?h.concat(d,p):p.reduce(function(e,t,r){return e.concat(t,d[r+1])},h.concat(d[0]))}var k=function(e){function r(){return e.apply(this,arguments)||this}return a(r,e),r.prototype.render=function(){var e=this.props,r=this.state;this.mergedProps=X(G,{},e,{theme:null!==r&&r.theme||e.theme||{}});var a="",i=[];return e.className&&(a+=void 0===c?m(i,e.className):e.className+" "),a+=void 0===c?b.apply(this,h.concat(i)):c,void 0!==n&&(a+=" "+n),t.createElement(l,X(u,{},e,{className:a,ref:e.innerRef}))},r}(t.Component);return k.prototype.componentWillMount=y,k.prototype.componentWillUnmount=C,k.displayName=void 0!==s?s:"Styled("+("string"==typeof l?l:l.displayName||l.name||"Component")+")",k.contextTypes=W,k[A]=h,k.__emotion_base=l,k.__emotion_real=k,k[x]=n,k.withComponent=function(t,r){return e(t,void 0!==r?X(G,{},i,r):i)(h)},k}},e.sheet=_,e.useStylisPlugin=function(e){R.push(e),E(null)(R)(j)},e.css=b,e.keyframes=function(){var t=g.apply(this,arguments),r="animation-"+N;return void 0===e.inserted[P]&&(T("","@keyframes "+r+"{"+t+"}"),e.inserted[P]=!0),r},e.injectGlobal=function(){var t=g.apply(this,arguments);void 0===e.inserted[P]&&(T("",t),e.inserted[P]=!0)},e.fontFace=function(){var t=g.apply(void 0,arguments);void 0===e.inserted[P]&&(T("","@font-face{"+t+"}"),e.inserted[P]=!0)},e.getRegisteredStyles=m,e.merge=k,e.cx=function(){return k(v.apply(void 0,arguments))},e.hydrate=function(t){t.forEach(function(t){e.inserted[t]=!0})},e.flush=function(){_.flush(),e.inserted={},e.registered={},_.inject()},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("prop-types")):"function"==typeof define&&define.amd?define(["exports","react","prop-types"],t):t(e["react-emotion"]={},e.React,e.PropTypes)}(this,function(e,t,r){"use strict";function a(e){return s(e,e.length).toString(36)}function s(e,t){for(var r=1540483477,a=t^e.length,s=e.length,o=0;s>=4;){var l=i(e,o);l=c(l,r),l=c(l^=l>>>24,r),a=c(a,r),a^=l,o+=4,s-=4}switch(s){case 3:a^=n(e,o),a=c(a^=e.charCodeAt(o+2)<<16,r);break;case 2:a=c(a^=n(e,o),r);break;case 1:a=c(a^=e.charCodeAt(o),r)}return a^=a>>>13,a=c(a,r),(a^=a>>>15)>>>0}function i(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)+(e.charCodeAt(t++)<<16)+(e.charCodeAt(t)<<24)}function n(e,t){return e.charCodeAt(t++)+(e.charCodeAt(t++)<<8)}function c(e,t){return(65535&(e|=0))*(t|=0)+(((e>>>16)*t&65535)<<16)|0}function o(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,a,s,i,n,c,o,l,u){switch(r){case 1:0===u&&64===a.charCodeAt(0)&&e(a);break;case 2:if(0===l)return a+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(s[0]+a),"";default:return a+"/*|*/"}case-2:a.split("/*|*/}").forEach(t)}}}function l(){return o}function u(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]}function d(e){var t=document.createElement("style");return t.type="text/css",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 h(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]=d(this.opts),this.injected=!0}function p(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e}function g(e,t){if(this.isSpeedy){var r=u(this.tags[this.tags.length-1]);try{r.insertRule(e,r.cssRules.length)}catch(e){}}else{var a=d(this.opts);this.tags.push(a),a.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(d(this.opts))}function b(e){return e.parentNode.removeChild(e)}function m(){this.tags.forEach(b),this.tags=[],this.ctr=0,this.injected=!1}function k(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function y(e){this.setState({theme:e})}function v(){void 0!==this.context[Y]&&(this.unsubscribe=this.context[Y].subscribe(y.bind(this)))}function w(){void 0!==this.unsubscribe&&this.context[Y].unsubscribe(this.unsubscribe)}t=t&&t.hasOwnProperty("default")?t.default:t,r=r&&r.hasOwnProperty("default")?r.default:r;var A,C=function e(t){function r(e,t,s,l,u){for(var d,p,g,b,m=0,k=0,v=0,w=0,A=0,C=0,_=0,E=0,R=0,T=0,N=0,z=0,M=p=0,$=0,D=0,X=s.length,Y=X-1,te="",re="",ae="",se="";z<X;){if(g=s.charCodeAt(z),z===Y&&0!==k+w+v+m&&(0!==k&&(g=47===k?10:47),w=v=m=0,X++,Y++),0===k+w+v+m){if(z===Y&&(0<p&&(te=te.replace(f,"")),0<te.trim().length)){switch(g){case 32:case 9:case 59:case 13:case 10:break;default:te+=s.charAt(z)}g=59}if(1===M)switch(g){case 123:case 125:case 59:case 34:case 39:case 40:case 41:case 44:M=0;case 9:case 13:case 10:case 32:break;default:for(M=0,D=z,d=g,z--,g=59;D<X;)switch(s.charCodeAt(++D)){case 10:case 13:case 59:z++,g=d;case 58:case 123:D=X}}switch(g){case 123:for(d=(te=te.trim()).charCodeAt(0),E=1,D=++z;z<X;){switch(g=s.charCodeAt(z)){case 123:E++;break;case 125:E--}if(0===E)break;z++}switch(T=s.substring(D,z),0===d&&(d=(te=te.replace(h,"").trim()).charCodeAt(0)),d){case 64:switch(0<p&&(te=te.replace(f,"")),p=te.charCodeAt(1)){case 100:case 109:case 115:case 45:d=t;break;default:d=B}if(T=r(t,d,T,p,u+1),D=T.length,0<q&&0===D&&(D=te.length),0<V&&(d=a(B,te,$),b=o(3,T,d,t,L,I,D,p,u),te=d.join(""),void 0!==b&&0===(D=(T=b.trim()).length)&&(p=0,T="")),0<D)switch(p){case 115:te=te.replace(P,c);case 100:case 109:case 45:T=te+"{"+T+"}";break;case 107:T=(te=te.replace(x,"$1 $2"+(0<K?J:"")))+"{"+T+"}",T=1===W||2===W&&n("@"+T,3)?"@-webkit-"+T+"@"+T:"@"+T;break;default:T=te+T,112===l&&(re+=T,T="")}else T="";break;default:T=r(t,a(t,te,$),T,l,u+1)}ae+=T,T=$=p=N=M=R=0,te="",g=s.charCodeAt(++z);break;case 125:case 59:if(te=(0<p?te.replace(f,""):te).trim(),1<(D=te.length))switch(0===N&&(45===(d=te.charCodeAt(0))||96<d&&123>d)&&(D=(te=te.replace(" ",":")).length),0<V&&void 0!==(b=o(1,te,t,e,L,I,re.length,l,u))&&0===(D=(te=b.trim()).length)&&(te="\0\0"),d=te.charCodeAt(0),p=te.charCodeAt(1),d+p){case 0:break;case 169:case 163:se+=te+s.charAt(z);break;default:58!==te.charCodeAt(D-1)&&(re+=i(te,d,p,te.charCodeAt(2)))}$=p=N=M=R=0,te="",g=s.charCodeAt(++z)}}switch(g){case 13:case 10:if(0===k+w+v+m+G)switch(_){case 41:case 39:case 34:case 64:case 126:case 62:case 42:case 43:case 47:case 45:case 58:case 44:case 59:case 123:case 125:break;default:0<N&&(M=1)}47===k?k=0:0===H+R&&(p=1,te+="\0"),0<V*Z&&o(0,te,t,e,L,I,re.length,l,u),I=1,L++;break;case 59:case 125:if(0===k+w+v+m){I++;break}default:switch(I++,d=s.charAt(z),g){case 9:case 32:if(0===w+m+k)switch(A){case 44:case 58:case 9:case 32:d="";break;default:32!==g&&(d=" ")}break;case 0:d="\\0";break;case 12:d="\\f";break;case 11:d="\\v";break;case 38:0===w+k+m&&0<H&&(p=$=1,d="\f"+d);break;case 108:if(0===w+k+m+F&&0<N)switch(z-N){case 2:112===A&&58===s.charCodeAt(z-3)&&(F=A);case 8:111===C&&(F=C)}break;case 58:0===w+k+m&&(N=z);break;case 44:0===k+v+w+m&&(p=1,d+="\r");break;case 34:case 39:0===k&&(w=w===g?0:0===w?g:w);break;case 91:0===w+k+v&&m++;break;case 93:0===w+k+v&&m--;break;case 41:0===w+k+m&&v--;break;case 40:if(0===w+k+m){if(0===R)switch(2*A+3*C){case 533:break;default:E=0,R=1}v++}break;case 64:0===k+v+w+m+N+T&&(T=1);break;case 42:case 47:if(!(0<w+m+v))switch(k){case 0:switch(2*g+3*s.charCodeAt(z+1)){case 235:k=47;break;case 220:D=z,k=42}break;case 42:47===g&&42===A&&(33===s.charCodeAt(D+2)&&(re+=s.substring(D,z+1)),d="",k=0)}}if(0===k){if(0===H+w+m+T&&107!==l&&59!==g)switch(g){case 44:case 126:case 62:case 43:case 41:case 40:if(0===R){switch(A){case 9:case 32:case 10:case 13:d+="\0";break;default:d="\0"+d+(44===g?"":"\0")}p=1}else switch(g){case 40:R=++E;break;case 41:0==(R=--E)&&(p=1,d+="\0")}break;case 9:case 32:switch(A){case 0:case 123:case 125:case 59:case 44:case 12:case 9:case 32:case 10:case 13:break;default:0===R&&(p=1,d+="\0")}}te+=d,32!==g&&9!==g&&(_=g)}}C=A,A=g,z++}if(D=re.length,0<q&&0===D&&0===ae.length&&0===t[0].length==!1&&(109!==l||1===t.length&&(0<H?Q:ee)===t[0])&&(D=t.join(",").length+2),0<D){if(0===H&&107!==l){for(s=0,m=t.length,k=Array(m);s<m;++s){for(C="",_=0,X=(A=t[s].split(y)).length;_<X;++_)if(!(0===(E=(w=A[_]).length)&&1<X)){if(z=C.charCodeAt(C.length-1),$=w.charCodeAt(0),v="",0!==_)switch(z){case 42:case 126:case 62:case 43:case 32:case 40:break;default:v=" "}switch($){case 38:w=v+Q;case 126:case 62:case 43:case 32:case 41:case 40:break;case 91:w=v+w+Q;break;case 58:switch(2*w.charCodeAt(1)+3*w.charCodeAt(2)){case 530:if(0<U){w=v+w.substring(8,E-1);break}default:(1>_||1>A[_-1].length)&&(w=v+Q+w)}break;case 44:v="";default:w=1<E&&0<w.indexOf(":")?v+w.replace(j,"$1"+Q+"$2"):v+w+Q}C+=w}k[s]=C.replace(f,"").trim()}t=k}if(d=t,0<V&&void 0!==(b=o(2,re,d,e,L,I,D,l,u))&&0===(re=b).length)return se+re+ae;if(re=d.join(",")+"{"+re+"}",0!=W*F){switch(2!==W||n(re,2)||(F=0),F){case 111:re=re.replace(O,":-moz-$1")+re;break;case 112:re=re.replace(S,"::-webkit-input-$1")+re.replace(S,"::-moz-$1")+re.replace(S,":-ms-input-$1")+re}F=0}}return se+re+ae}function a(e,t,r){var a=t.trim().split(v);t=a;var i=a.length,n=e.length;switch(n){case 0:case 1:var c=0;for(e=0===n?"":e[0]+" ";c<i;++c)t[c]=s(e,t[c],r,n).trim();break;default:var o=c=0;for(t=[];c<i;++c)for(var l=0;l<n;++l)t[o++]=s(e[l]+" ",a[c],r,n).trim()}return t}function s(e,t,r,a){var s=t.charCodeAt(0);switch(33>s&&(s=(t=t.trim()).charCodeAt(0)),s){case 38:switch(H+a){case 0:case 1:if(0===e.trim().length)break;default:return t.replace(w,"$1"+e.trim())}break;case 58:switch(t.charCodeAt(1)){case 103:if(0<U&&0<H)return t.replace(A,"$1").replace(w,"$1"+ee);break;default:return e.trim()+t}default:if(0<r*H&&0<t.indexOf("\f"))return t.replace(w,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,r,a){var s=0,i=e+";";if(944==(t=2*t+3*r+4*a)){switch(s=i.length,e=i.indexOf(":",9)+1,r=i.substring(0,e).trim(),a=i.substring(e,s-1).trim(),i.charCodeAt(9)*K){case 0:break;case 45:if(110!==i.charCodeAt(10))break;default:for(e=t=0,s=(i=a.split((a="",m))).length;t<s;e=0,++t){for(var c=i[t],o=c.split(k);c=o[e];){var l=c.charCodeAt(0);if(1===K&&(64<l&&90>l||96<l&&123>l||95===l||45===l&&45!==c.charCodeAt(1)))switch(isNaN(parseFloat(c))+(-1!==c.indexOf("("))){case 1:switch(c){case"infinite":case"alternate":case"backwards":case"running":case"normal":case"forwards":case"both":case"none":case"linear":case"ease":case"ease-in":case"ease-out":case"ease-in-out":case"paused":case"reverse":case"alternate-reverse":case"inherit":case"initial":case"unset":case"step-start":case"step-end":break;default:c+=J}}o[e++]=c}a+=(0===t?"":",")+o.join(" ")}}return a=r+a+";",1===W||2===W&&n(a,1)?"-webkit-"+a+a:a}if(0===W||2===W&&!n(i,1))return i;switch(t){case 1015:return 45===i.charCodeAt(9)?"-webkit-"+i+i:i;case 951:return 116===i.charCodeAt(3)?"-webkit-"+i+i:i;case 963:return 110===i.charCodeAt(5)?"-webkit-"+i+i:i;case 1009:if(100!==i.charCodeAt(4))break;case 969:case 942:return"-webkit-"+i+i;case 978:return"-webkit-"+i+"-moz-"+i+i;case 1019:case 983:return"-webkit-"+i+"-moz-"+i+"-ms-"+i+i;case 883:return 45===i.charCodeAt(8)?"-webkit-"+i+i:i;case 932:if(45===i.charCodeAt(4))switch(i.charCodeAt(5)){case 103:return"-webkit-box-"+i.replace("-grow","")+"-webkit-"+i+"-ms-"+i.replace("grow","positive")+i;case 115:return"-webkit-"+i+"-ms-"+i.replace("shrink","negative")+i;case 98:return"-webkit-"+i+"-ms-"+i.replace("basis","preferred-size")+i}return"-webkit-"+i+"-ms-"+i+i;case 964:return"-webkit-"+i+"-ms-flex-"+i+i;case 1023:if(99!==i.charCodeAt(8))break;return"-webkit-box-pack"+(e=i.substring(i.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+i+"-ms-flex-pack"+e+i;case 1005:return g.test(i)?i.replace(p,":-webkit-")+i.replace(p,":-moz-")+i:i;case 1e3:switch(e=i.substring(13).trim(),s=e.indexOf("-")+1,e.charCodeAt(0)+e.charCodeAt(s)){case 226:e=i.replace(N,"tb");break;case 232:e=i.replace(N,"tb-rl");break;case 220:e=i.replace(N,"lr");break;default:return i}return"-webkit-"+i+"-ms-"+e+i;case 1017:if(-1===i.indexOf("sticky",9))break;case 975:switch(s=(i=e).length-10,e=(33===i.charCodeAt(s)?i.substring(0,s):i).substring(e.indexOf(":",7)+1).trim(),t=e.charCodeAt(0)+(0|e.charCodeAt(7))){case 203:if(111>e.charCodeAt(8))break;case 115:i=i.replace(e,"-webkit-"+e)+";"+i;break;case 207:case 102:i=i.replace(e,"-webkit-"+(102<t?"inline-":"")+"box")+";"+i.replace(e,"-webkit-"+e)+";"+i.replace(e,"-ms-"+e+"box")+";"+i}return i+";";case 938:if(45===i.charCodeAt(5))switch(i.charCodeAt(6)){case 105:return e=i.replace("-items",""),"-webkit-"+i+"-webkit-box-"+e+"-ms-flex-"+e+i;case 115:return"-webkit-"+i+"-ms-flex-item-"+i.replace(M,"")+i;default:return"-webkit-"+i+"-ms-flex-line-pack"+i.replace("align-content","")+i}break;case 953:if(0<(s=i.indexOf("-content",9))&&109===i.charCodeAt(s-3)&&45!==i.charCodeAt(s-4))return"width:-webkit-"+(e=i.substring(s-3))+"width:-moz-"+e+"width:"+e;break;case 962:if(i="-webkit-"+i+(102===i.charCodeAt(5)?"-ms-"+i:"")+i,211===r+a&&105===i.charCodeAt(13)&&0<i.indexOf("transform",10))return i.substring(0,i.indexOf(";",27)+1).replace(b,"$1-webkit-$2")+i}return i}function n(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),Y(2!==t?a:a.replace($,"$1"),r,t)}function c(e,t){var r=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(z," or ($1)").substring(4):"("+t+")"}function o(e,t,r,a,s,i,n,c,o){for(var l,u=0,h=t;u<V;++u)switch(l=X[u].call(d,e,h,r,a,s,i,n,c,o)){case void 0:case!1:case!0:case null:break;default:h=l}switch(h){case void 0:case!1:case!0:case null:case t:break;default:return h}}function l(e){switch(e){case void 0:case null:V=X.length=0;break;default:switch(e.constructor){case Array:for(var t=0,r=e.length;t<r;++t)l(e[t]);break;case Function:X[V++]=e;break;case Boolean:Z=0|!!e}}return l}function u(e){for(var t in e){var r=e[t];switch(t){case"keyframe":K=0|r;break;case"global":U=0|r;break;case"cascade":H=0|r;break;case"compress":D=0|r;break;case"semicolon":G=0|r;break;case"preserve":q=0|r;break;case"prefix":Y=null,r?"function"!=typeof r?W=1:(W=2,Y=r):W=0}}return u}function d(t,a){if(void 0!==this&&this.constructor===d)return e(t);var s=t,i=s.charCodeAt(0);if(33>i&&(i=(s=s.trim()).charCodeAt(0)),0<K&&(J=s.replace(C,91===i?"":"-")),i=1,1===H?ee=s:Q=s,s=[ee],0<V){var n=o(-1,a,s,s,L,I,0,0,0);void 0!==n&&"string"==typeof n&&(a=n)}var c=r(B,s,a,0,0);return 0<V&&void 0!==(n=o(-2,c,s,s,L,I,c.length,0,0))&&"string"!=typeof(c=n)&&(i=0),Q=ee=J="",F=0,I=L=1,0==D*i?c:c.replace(f,"").replace(_,"").replace(E,"$1").replace(R,"$1").replace(T," ")}var h=/^\0+/g,f=/[\0\r\f]/g,p=/: */g,g=/zoo|gra/,b=/([,: ])(transform)/g,m=/,+\s*(?![^(]*[)])/g,k=/ +\s*(?![^(]*[)])/g,y=/ *[\0] */g,v=/,\r+?/g,w=/([\t\r\n ])*\f?&/g,A=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,C=/\W+/g,x=/@(k\w+)\s*(\S*)\s*/,S=/::(place)/g,O=/:(read-only)/g,_=/\s+(?=[{\];=:>])/g,E=/([[}=:>])\s+/g,R=/(\{[^{]+?);(?=\})/g,T=/\s{2,}/g,j=/([^\(])(:+) */g,N=/[svh]\w+-[tblr]{2}/,P=/\(\s*(.*)\s*\)/g,z=/([^]*?);/g,M=/-self|flex-/g,$=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=1,L=1,F=0,H=1,W=1,U=1,D=0,G=0,q=0,B=[],X=[],V=0,Y=null,Z=0,K=1,J="",Q="",ee="";return d.use=l,d.set=u,void 0!==t&&u(t),d},x="__emotion_styles",S="__emotion_target",O=function(e,t){return t={exports:{}},e(t,t.exports),t.exports}(function(e,t){!function(t){e.exports=t()}(l)}),_=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}},E="__emotion_styles",R="__emotion_target",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,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},j=/[A-Z]|^ms/g,N=_(function(e){return e.replace(j,"-$&").toLowerCase()}),P=function(e,t){return null==t||"boolean"==typeof t?"":1===T[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},z=function e(t){for(var r=t.length,a=0,s="";a<r;a++){var i=t[a];if(null!=i){var n=s&&s+" "||s;switch(typeof i){case"boolean":break;case"function":s=n+e([i()]);break;case"object":if(Array.isArray(i))s=n+e(i);else for(var c in i)i[c]&&(s&&(s+=" "),s+=c);break;default:s=n+i}}}return s},M="undefined"!=typeof window,$=function(){var e=h.prototype;return e.inject=f,e.speedy=p,e.insert=g,e.flush=m,h}(),I=function(e,t){function r(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":return void 0!==e[x]?"."+e[S]:r.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return s.call(this,e);default:var a=d.registered[e];return!1===t&&void 0!==a?a:e}}function s(e){if(k.has(e))return k.get(e);var t="";return Array.isArray(e)?e.forEach(function(e){t+=r.call(this,e,!1)},this):Object.keys(e).forEach(function(a){"object"!=typeof e[a]?void 0!==d.registered[e[a]]?t+=a+"{"+d.registered[e[a]]+"}":t+=N(a)+":"+P(a,e[a])+";":t+=a+"{"+r.call(this,e[a],!1)+"}"},this),k.set(e,t),t}function i(e,t){void 0===d.inserted[p]&&(l="",g(e,t),d.inserted[p]=l)}function n(e,t){var r="";return t.split(" ").forEach(function(t){void 0!==d.registered[t]?e.push(t):r+=t+" "}),r}function c(e,t){var r=[],a=n(r,e);return r.length<2?e:a+w(r,t)}function o(e){d.inserted[e]=!0}void 0===t&&(t={});var l,u=t.key||"css",d=e.__SECRET_EMOTION__,h=O(function(e){l+=e,M&&b.insert(e,m)});if(void 0===d){var f={keyframe:!1,global:!1,prefix:void 0===t.prefix||t.prefix,semicolon:!0};e.__SECRET_EMOTION__=d={registered:{},inserted:{},sheet:new $(t),stylis:new C(f),nonce:t.nonce,key:u},d.stylis.use(t.stylisPlugins)(h),M&&d.sheet.inject()}var p,g=d.stylis,b=d.sheet,m="",k=new WeakMap,y=/label:\s*([^\s;\n{]+)\s*;/g,v=function(e){var t=!0,s="",i="";null==e||void 0===e.raw?(t=!1,s+=r.call(this,e,!1)):s+=e[0];for(var n=arguments.length,c=new Array(n>1?n-1:0),o=1;o<n;o++)c[o-1]=arguments[o];return c.forEach(function(a,i){s+=r.call(this,a,46===s.charCodeAt(s.length-1)),!0===t&&void 0!==e[i+1]&&(s+=e[i+1])},this),s=s.replace(y,function(e,t){return i+="-"+t,""}),p=a(s+i)+i,s},w=function(){var e=v.apply(this,arguments),t=u+"-"+p;return void 0===d.registered[t]&&(d.registered[t]=e),i("."+t,e),t};return"undefined"!=typeof window&&Array.from(document.querySelectorAll("[data-emotion-"+u+"]")).forEach(function(e){b.tags[0].parentNode.insertBefore(e,b.tags[0]),e.getAttribute("data-emotion-"+u).split(" ").forEach(o)}),{flush:function(){M&&(b.flush(),b.inject()),d.inserted={},d.registered={}},hydrate:function(e){e.forEach(o)},cx:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return c(z(t))},merge:c,getRegisteredStyles:n,injectGlobal:function(){i("",v.apply(this,arguments))},keyframes:function(){var e=v.apply(this,arguments),t="animation-"+p;return i("","@keyframes "+t+"{"+e+"}"),t},css:w,sheet:b,caches:d}}("undefined"!=typeof global?global:{}),L=I.flush,F=I.hydrate,H=I.cx,W=I.merge,U=I.getRegisteredStyles,D=I.injectGlobal,G=I.keyframes,q=I.css,B=I.sheet,X=I.caches,V=Object.freeze({flush:L,hydrate:F,cx:H,merge:W,getRegisteredStyles:U,injectGlobal:D,keyframes:G,css:q,sheet:B,caches:X}),Y="__EMOTION_THEMING__",Z=(A={},A[Y]=r.object,A),K=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan)|(on[A-Z].*)|((data|aria)-.*))$/,J=_(function(e){return K.test(e)}),Q=function(e){return"theme"!==e&&"innerRef"!==e},ee=function(){return!0},te=function(e,t){for(var r=2,a=arguments.length;r<a;r++){var s=arguments[r],i=void 0;for(i in s)e(i)&&(t[i]=s[i])}return t},re=function(e,t){return function r(a,s){function i(){return"."+o}var n,c,o;void 0!==s&&(n=s.e,c=s.label,o=s.target);var l=a.__emotion_real===a,u=void 0===n?l&&a.__emotion_base||a:a,d="string"==typeof u&&u.charAt(0)===u.charAt(0).toLowerCase()?J:Q;return function(){function h(){var r=this.props,a=this.state;this.mergedProps=te(ee,{},r,{theme:null!==a&&a.theme||r.theme||{}});var s="",i=[];return r.className&&(s+=void 0===n?e.getRegisteredStyles(i,r.className):r.className+" "),s+=void 0===n?e.css.apply(this,p.concat(i)):n,void 0!==o&&(s+=" "+o),t.createElement(u,te(d,{},r,{className:s,ref:r.innerRef}))}var f=arguments,p=l&&void 0!==a[E]?a[E].slice(0):[];if(void 0!==c&&p.push("label:"+c+";"),void 0===n)if(null==f[0]||void 0===f[0].raw)p.push.apply(p,f);else{p.push(f[0][0]);for(var g=f.length,b=1;b<g;b++)p.push(f[b],f[0][b])}var m=function(e){function t(){return e.apply(this,arguments)||this}k(t,e);var r=t.prototype;return r.componentWillMount=v,r.componentWillUnmount=w,r.render=h,t}(t.Component);return m.displayName=void 0!==c?c:"Styled("+("string"==typeof u?u:u.displayName||u.name||"Component")+")",m.contextTypes=Z,m[E]=p,m.__emotion_base=u,m.__emotion_real=m,m[R]=o,Object.defineProperty(m,"toString",{enumerable:!1,value:i}),m.withComponent=function(e,t){return r(e,void 0!==t?te(ee,{},s,t):s).apply(void 0,f)},m}}}(V,t);e.default=re,e.flush=L,e.hydrate=F,e.cx=H,e.merge=W,e.getRegisteredStyles=U,e.injectGlobal=D,e.keyframes=G,e.css=q,e.sheet=B,e.caches=X,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
//# sourceMappingURL=emotion.umd.min.js.map |
@@ -7,175 +7,10 @@ 'use strict'; | ||
var react = require('react'); | ||
var emotionUtils = require('emotion-utils'); | ||
var React = _interopDefault(require('react')); | ||
var emotion = require('emotion'); | ||
var PropTypes = _interopDefault(require('prop-types')); | ||
var createEmotionStyled = _interopDefault(require('create-emotion-styled')); | ||
function _inheritsLoose(subClass, superClass) { | ||
subClass.prototype = Object.create(superClass.prototype); | ||
subClass.prototype.constructor = subClass; | ||
subClass.__proto__ = superClass; | ||
} | ||
var index = createEmotionStyled(emotion, React); | ||
var _contextTypes; | ||
var channel = '__EMOTION_THEMING__'; | ||
var contextTypes = (_contextTypes = {}, _contextTypes[channel] = PropTypes.object, _contextTypes); | ||
/* global codegen */ | ||
function setTheme(theme) { | ||
this.setState({ | ||
theme: theme | ||
}); | ||
} | ||
function componentWillMount() { | ||
if (this.context[channel] !== undefined) { | ||
this.unsubscribe = this.context[channel].subscribe(setTheme.bind(this)); | ||
} | ||
} | ||
function componentWillUnmount() { | ||
if (this.unsubscribe !== undefined) { | ||
this.context[channel].unsubscribe(this.unsubscribe); | ||
} | ||
} | ||
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan)|(on[A-Z].*)|((data|aria)-.*))$/; | ||
var testOmitPropsOnStringTag = emotionUtils.memoize(function (key) { | ||
return reactPropsRegex.test(key); | ||
}); | ||
var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) { | ||
return key !== 'theme' && key !== 'innerRef'; | ||
}; | ||
var testAlwaysTrue = function testAlwaysTrue() { | ||
return true; | ||
}; | ||
var omitAssign = function omitAssign(testFn, target) { | ||
var i = 2; | ||
var length = arguments.length; | ||
for (; i < length; i++) { | ||
var source = arguments[i]; | ||
var key = void 0; | ||
for (key in source) { | ||
if (testFn(key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
var createStyled = function createStyled(tag, options) { | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (tag === undefined) { | ||
throw new Error('You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.'); | ||
} | ||
} | ||
var identifierName; | ||
var stableClassName; | ||
var staticClassName; | ||
if (options !== undefined) { | ||
identifierName = options.label; | ||
stableClassName = options.target; | ||
staticClassName = options.e; | ||
} | ||
var isReal = tag.__emotion_real === tag; | ||
var baseTag = staticClassName === undefined ? isReal && tag.__emotion_base || tag : tag; | ||
var omitFn = typeof baseTag === 'string' && baseTag.charAt(0) === baseTag.charAt(0).toLowerCase() ? testOmitPropsOnStringTag : testOmitPropsOnComponent; | ||
return function (strings) { | ||
var styles = isReal && tag[emotionUtils.STYLES_KEY] || []; | ||
if (identifierName !== undefined) { | ||
styles = styles.concat("label:" + identifierName + ";"); | ||
} | ||
if (staticClassName === undefined) { | ||
for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
interpolations[_key - 1] = arguments[_key]; | ||
} | ||
if (strings == null || strings.raw === undefined) { | ||
styles = styles.concat(strings, interpolations); | ||
} else { | ||
styles = interpolations.reduce(function (array, interp, i) { | ||
return array.concat(interp, strings[i + 1]); | ||
}, styles.concat(strings[0])); | ||
} | ||
} | ||
var Styled = | ||
/*#__PURE__*/ | ||
function (_Component) { | ||
_inheritsLoose(Styled, _Component); | ||
function Styled() { | ||
return _Component.apply(this, arguments) || this; | ||
} | ||
var _proto = Styled.prototype; | ||
_proto.render = function render() { | ||
var props = this.props, | ||
state = this.state; | ||
this.mergedProps = omitAssign(testAlwaysTrue, {}, props, { | ||
theme: state !== null && state.theme || props.theme || {} | ||
}); | ||
var className = ''; | ||
var classInterpolations = []; | ||
if (props.className) { | ||
if (staticClassName === undefined) { | ||
className += emotion.getRegisteredStyles(classInterpolations, props.className); | ||
} else { | ||
className += props.className + " "; | ||
} | ||
} | ||
if (staticClassName === undefined) { | ||
className += emotion.css.apply(this, styles.concat(classInterpolations)); | ||
} else { | ||
className += staticClassName; | ||
} | ||
if (stableClassName !== undefined) { | ||
className += " " + stableClassName; | ||
} | ||
return react.createElement(baseTag, omitAssign(omitFn, {}, props, { | ||
className: className, | ||
ref: props.innerRef | ||
})); | ||
}; | ||
return Styled; | ||
}(react.Component); | ||
Styled.prototype.componentWillMount = componentWillMount; | ||
Styled.prototype.componentWillUnmount = componentWillUnmount; | ||
Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")"; | ||
Styled.contextTypes = contextTypes; | ||
Styled[emotionUtils.STYLES_KEY] = styles; | ||
Styled.__emotion_base = baseTag; | ||
Styled.__emotion_real = Styled; | ||
Styled[emotionUtils.TARGET_KEY] = stableClassName; | ||
Styled.withComponent = function (nextTag, nextOptions) { | ||
return createStyled(nextTag, nextOptions !== undefined ? omitAssign(testAlwaysTrue, {}, options, nextOptions) : options)(styles); | ||
}; | ||
return Styled; | ||
}; | ||
}; | ||
exports['default'] = createStyled; | ||
exports['default'] = index; | ||
Object.keys(emotion).forEach(function (key) { exports[key] = emotion[key]; }); | ||
//# sourceMappingURL=index.cjs.js.map |
@@ -1,174 +0,9 @@ | ||
import { Component, createElement } from 'react'; | ||
import { STYLES_KEY, TARGET_KEY, memoize } from 'emotion-utils'; | ||
import { css, getRegisteredStyles } from 'emotion'; | ||
import PropTypes from 'prop-types'; | ||
import React from 'react'; | ||
import * as emotion from 'emotion'; | ||
import createEmotionStyled from 'create-emotion-styled'; | ||
function _inheritsLoose(subClass, superClass) { | ||
subClass.prototype = Object.create(superClass.prototype); | ||
subClass.prototype.constructor = subClass; | ||
subClass.__proto__ = superClass; | ||
} | ||
var index = createEmotionStyled(emotion, React); | ||
var _contextTypes; | ||
var channel = '__EMOTION_THEMING__'; | ||
var contextTypes = (_contextTypes = {}, _contextTypes[channel] = PropTypes.object, _contextTypes); | ||
/* global codegen */ | ||
function setTheme(theme) { | ||
this.setState({ | ||
theme: theme | ||
}); | ||
} | ||
function componentWillMount() { | ||
if (this.context[channel] !== undefined) { | ||
this.unsubscribe = this.context[channel].subscribe(setTheme.bind(this)); | ||
} | ||
} | ||
function componentWillUnmount() { | ||
if (this.unsubscribe !== undefined) { | ||
this.context[channel].unsubscribe(this.unsubscribe); | ||
} | ||
} | ||
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|accept|acceptCharset|accessKey|action|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|default|defer|dir|disabled|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|itemProp|itemScope|itemType|itemID|itemRef|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan)|(on[A-Z].*)|((data|aria)-.*))$/; | ||
var testOmitPropsOnStringTag = memoize(function (key) { | ||
return reactPropsRegex.test(key); | ||
}); | ||
var testOmitPropsOnComponent = function testOmitPropsOnComponent(key) { | ||
return key !== 'theme' && key !== 'innerRef'; | ||
}; | ||
var testAlwaysTrue = function testAlwaysTrue() { | ||
return true; | ||
}; | ||
var omitAssign = function omitAssign(testFn, target) { | ||
var i = 2; | ||
var length = arguments.length; | ||
for (; i < length; i++) { | ||
var source = arguments[i]; | ||
var key = void 0; | ||
for (key in source) { | ||
if (testFn(key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
var createStyled = function createStyled(tag, options) { | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (tag === undefined) { | ||
throw new Error('You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.'); | ||
} | ||
} | ||
var identifierName; | ||
var stableClassName; | ||
var staticClassName; | ||
if (options !== undefined) { | ||
identifierName = options.label; | ||
stableClassName = options.target; | ||
staticClassName = options.e; | ||
} | ||
var isReal = tag.__emotion_real === tag; | ||
var baseTag = staticClassName === undefined ? isReal && tag.__emotion_base || tag : tag; | ||
var omitFn = typeof baseTag === 'string' && baseTag.charAt(0) === baseTag.charAt(0).toLowerCase() ? testOmitPropsOnStringTag : testOmitPropsOnComponent; | ||
return function (strings) { | ||
var styles = isReal && tag[STYLES_KEY] || []; | ||
if (identifierName !== undefined) { | ||
styles = styles.concat("label:" + identifierName + ";"); | ||
} | ||
if (staticClassName === undefined) { | ||
for (var _len = arguments.length, interpolations = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { | ||
interpolations[_key - 1] = arguments[_key]; | ||
} | ||
if (strings == null || strings.raw === undefined) { | ||
styles = styles.concat(strings, interpolations); | ||
} else { | ||
styles = interpolations.reduce(function (array, interp, i) { | ||
return array.concat(interp, strings[i + 1]); | ||
}, styles.concat(strings[0])); | ||
} | ||
} | ||
var Styled = | ||
/*#__PURE__*/ | ||
function (_Component) { | ||
_inheritsLoose(Styled, _Component); | ||
function Styled() { | ||
return _Component.apply(this, arguments) || this; | ||
} | ||
var _proto = Styled.prototype; | ||
_proto.render = function render() { | ||
var props = this.props, | ||
state = this.state; | ||
this.mergedProps = omitAssign(testAlwaysTrue, {}, props, { | ||
theme: state !== null && state.theme || props.theme || {} | ||
}); | ||
var className = ''; | ||
var classInterpolations = []; | ||
if (props.className) { | ||
if (staticClassName === undefined) { | ||
className += getRegisteredStyles(classInterpolations, props.className); | ||
} else { | ||
className += props.className + " "; | ||
} | ||
} | ||
if (staticClassName === undefined) { | ||
className += css.apply(this, styles.concat(classInterpolations)); | ||
} else { | ||
className += staticClassName; | ||
} | ||
if (stableClassName !== undefined) { | ||
className += " " + stableClassName; | ||
} | ||
return createElement(baseTag, omitAssign(omitFn, {}, props, { | ||
className: className, | ||
ref: props.innerRef | ||
})); | ||
}; | ||
return Styled; | ||
}(Component); | ||
Styled.prototype.componentWillMount = componentWillMount; | ||
Styled.prototype.componentWillUnmount = componentWillUnmount; | ||
Styled.displayName = identifierName !== undefined ? identifierName : "Styled(" + (typeof baseTag === 'string' ? baseTag : baseTag.displayName || baseTag.name || 'Component') + ")"; | ||
Styled.contextTypes = contextTypes; | ||
Styled[STYLES_KEY] = styles; | ||
Styled.__emotion_base = baseTag; | ||
Styled.__emotion_real = Styled; | ||
Styled[TARGET_KEY] = stableClassName; | ||
Styled.withComponent = function (nextTag, nextOptions) { | ||
return createStyled(nextTag, nextOptions !== undefined ? omitAssign(testAlwaysTrue, {}, options, nextOptions) : options)(styles); | ||
}; | ||
return Styled; | ||
}; | ||
}; | ||
export default createStyled; | ||
export default index; | ||
export * from 'emotion'; | ||
//# sourceMappingURL=index.es.js.map |
{ | ||
"name": "react-emotion", | ||
"version": "8.0.12", | ||
"version": "9.0.0-0", | ||
"description": "The Next Generation of CSS-in-JS, for React projects.", | ||
@@ -15,15 +15,14 @@ "main": "dist/index.cjs.js", | ||
"scripts": { | ||
"build": "npm-run-all clean rollup rollup:umd", | ||
"build": "npm-run-all clean rollup", | ||
"test:typescript": "dtslint types", | ||
"clean": "rimraf dist", | ||
"rollup": "rollup -c ../../rollup.config.js", | ||
"watch": "rollup -c ../../rollup.config.js --watch", | ||
"rollup:umd": "cross-env UMD=true rollup -c ../../rollup.config.js" | ||
"watch": "rollup -c ../../rollup.config.js --watch" | ||
}, | ||
"dependencies": { | ||
"babel-plugin-emotion": "^8.0.12", | ||
"emotion-utils": "^8.0.12" | ||
"babel-plugin-emotion": "^9.0.0-0", | ||
"create-emotion-styled": "^9.0.0-0" | ||
}, | ||
"peerDependencies": { | ||
"emotion": "^8.0.12" | ||
"emotion": "^9.0.0-0" | ||
}, | ||
@@ -34,3 +33,3 @@ "devDependencies": { | ||
"dtslint": "^0.2.0", | ||
"emotion": "^8.0.12", | ||
"emotion": "^9.0.0-0", | ||
"npm-run-all": "^4.0.2", | ||
@@ -41,5 +40,5 @@ "rimraf": "^2.6.1", | ||
"author": "Kye Hohenberger", | ||
"homepage": "https://github.com/tkh44/emotion#readme", | ||
"homepage": "https://emotion.sh", | ||
"license": "MIT", | ||
"repository": "https://github.com/tkh44/emotion/tree/master/packages/react-emotion", | ||
"repository": "https://github.com/emotion-js/emotion/tree/master/packages/react-emotion", | ||
"keywords": [ | ||
@@ -53,4 +52,4 @@ "styles", | ||
"bugs": { | ||
"url": "https://github.com/tkh44/emotion/issues" | ||
"url": "https://github.com/emotion-js/emotion/issues" | ||
} | ||
} |
160
src/index.js
@@ -1,156 +0,8 @@ | ||
/* global codegen */ | ||
import { createElement, Component } from 'react' | ||
import { memoize, STYLES_KEY, TARGET_KEY } from 'emotion-utils' | ||
import { css, getRegisteredStyles } from 'emotion' | ||
import { channel, contextTypes } from '../../emotion-theming/src/utils' | ||
// @flow | ||
import React from 'react' | ||
import * as emotion from 'emotion' | ||
import createEmotionStyled from 'create-emotion-styled' | ||
export default createEmotionStyled(emotion, React) | ||
export * from 'emotion' | ||
function setTheme(theme) { | ||
this.setState({ theme }) | ||
} | ||
function componentWillMount() { | ||
if (this.context[channel] !== undefined) { | ||
this.unsubscribe = this.context[channel].subscribe(setTheme.bind(this)) | ||
} | ||
} | ||
function componentWillUnmount() { | ||
if (this.unsubscribe !== undefined) { | ||
this.context[channel].unsubscribe(this.unsubscribe) | ||
} | ||
} | ||
const reactPropsRegex = codegen.require('./props') | ||
const testOmitPropsOnStringTag = memoize(key => reactPropsRegex.test(key)) | ||
const testOmitPropsOnComponent = key => key !== 'theme' && key !== 'innerRef' | ||
const testAlwaysTrue = () => true | ||
const omitAssign = function(testFn, target) { | ||
let i = 2 | ||
let length = arguments.length | ||
for (; i < length; i++) { | ||
let source = arguments[i] | ||
let key | ||
for (key in source) { | ||
if (testFn(key)) { | ||
target[key] = source[key] | ||
} | ||
} | ||
} | ||
return target | ||
} | ||
const createStyled = ( | ||
tag, | ||
options: { e: string, label: string, target: string } | ||
) => { | ||
if (process.env.NODE_ENV !== 'production') { | ||
if (tag === undefined) { | ||
throw new Error( | ||
'You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.' | ||
) | ||
} | ||
} | ||
let identifierName | ||
let stableClassName | ||
let staticClassName | ||
if (options !== undefined) { | ||
identifierName = options.label | ||
stableClassName = options.target | ||
staticClassName = options.e | ||
} | ||
const isReal = tag.__emotion_real === tag | ||
const baseTag = | ||
staticClassName === undefined ? (isReal && tag.__emotion_base) || tag : tag | ||
const omitFn = | ||
typeof baseTag === 'string' && | ||
baseTag.charAt(0) === baseTag.charAt(0).toLowerCase() | ||
? testOmitPropsOnStringTag | ||
: testOmitPropsOnComponent | ||
return (strings, ...interpolations) => { | ||
let styles = (isReal && tag[STYLES_KEY]) || [] | ||
if (identifierName !== undefined) { | ||
styles = styles.concat(`label:${identifierName};`) | ||
} | ||
if (staticClassName === undefined) { | ||
if (strings == null || strings.raw === undefined) { | ||
styles = styles.concat(strings, interpolations) | ||
} else { | ||
styles = interpolations.reduce( | ||
(array, interp, i) => array.concat(interp, strings[i + 1]), | ||
styles.concat(strings[0]) | ||
) | ||
} | ||
} | ||
class Styled extends Component { | ||
render() { | ||
const { props, state } = this | ||
this.mergedProps = omitAssign(testAlwaysTrue, {}, props, { | ||
theme: (state !== null && state.theme) || props.theme || {} | ||
}) | ||
let className = '' | ||
let classInterpolations = [] | ||
if (props.className) { | ||
if (staticClassName === undefined) { | ||
className += getRegisteredStyles( | ||
classInterpolations, | ||
props.className | ||
) | ||
} else { | ||
className += `${props.className} ` | ||
} | ||
} | ||
if (staticClassName === undefined) { | ||
className += css.apply(this, styles.concat(classInterpolations)) | ||
} else { | ||
className += staticClassName | ||
} | ||
if (stableClassName !== undefined) { | ||
className += ` ${stableClassName}` | ||
} | ||
return createElement( | ||
baseTag, | ||
omitAssign(omitFn, {}, props, { className, ref: props.innerRef }) | ||
) | ||
} | ||
} | ||
Styled.prototype.componentWillMount = componentWillMount | ||
Styled.prototype.componentWillUnmount = componentWillUnmount | ||
Styled.displayName = | ||
identifierName !== undefined | ||
? identifierName | ||
: `Styled(${typeof baseTag === 'string' | ||
? baseTag | ||
: baseTag.displayName || baseTag.name || 'Component'})` | ||
Styled.contextTypes = contextTypes | ||
Styled[STYLES_KEY] = styles | ||
Styled.__emotion_base = baseTag | ||
Styled.__emotion_real = Styled | ||
Styled[TARGET_KEY] = stableClassName | ||
Styled.withComponent = (nextTag, nextOptions: { target: string }) => { | ||
return createStyled( | ||
nextTag, | ||
nextOptions !== undefined | ||
? omitAssign(testAlwaysTrue, {}, options, nextOptions) | ||
: options | ||
)(styles) | ||
} | ||
return Styled | ||
} | ||
} | ||
export default createStyled |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
1
124698
13
353
2
1
+ Added@babel/code-frame@7.24.7(transitive)
+ Added@babel/generator@7.25.6(transitive)
+ Added@babel/helper-module-imports@7.24.7(transitive)
+ Added@babel/helper-string-parser@7.24.8(transitive)
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
+ Added@babel/highlight@7.24.7(transitive)
+ Added@babel/parser@7.25.6(transitive)
+ Added@babel/runtime@7.25.6(transitive)
+ Added@babel/template@7.25.0(transitive)
+ Added@babel/traverse@7.25.6(transitive)
+ Added@babel/types@7.25.6(transitive)
+ Added@emotion/babel-utils@0.6.10(transitive)
+ Added@emotion/hash@0.6.6(transitive)
+ Added@emotion/is-prop-valid@0.6.8(transitive)
+ Added@emotion/memoize@0.6.6(transitive)
+ Added@emotion/serialize@0.9.1(transitive)
+ Added@emotion/stylis@0.7.1(transitive)
+ Added@emotion/unitless@0.6.7(transitive)
+ Added@emotion/utils@0.8.2(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@types/parse-json@4.0.2(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedbabel-plugin-emotion@9.2.11(transitive)
+ Addedbabel-plugin-macros@2.8.0(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcosmiconfig@6.0.0(transitive)
+ Addedcreate-emotion@9.2.12(transitive)
+ Addedcreate-emotion-styled@9.2.8(transitive)
+ Addedcsstype@2.6.21(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addedemotion@9.2.12(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@2.5.2(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedms@2.1.3(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedparse-json@5.2.0(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicocolors@1.1.0(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedresolve-from@4.0.0(transitive)
+ Addedsource-map@0.7.4(transitive)
+ Addedstylis-rule-sheet@0.0.10(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtouch@2.0.2(transitive)
+ Addedyaml@1.10.2(transitive)
- Removedemotion-utils@^8.0.12
- Removed@babel/helper-module-imports@7.0.0-beta.32(transitive)
- Removed@babel/types@7.0.0-beta.32(transitive)
- Removedargparse@1.0.10(transitive)
- Removedbabel-macros@1.2.0(transitive)
- Removedbabel-plugin-emotion@8.0.12(transitive)
- Removedcosmiconfig@3.1.0(transitive)
- Removedemotion@8.0.12(transitive)
- Removedemotion-utils@8.0.12(transitive)
- Removedesprima@4.0.1(transitive)
- Removedesutils@2.0.3(transitive)
- Removedis-directory@0.3.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedparse-json@3.0.0(transitive)
- Removedrequire-from-string@2.0.2(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstylis-rule-sheet@0.0.5(transitive)
- Removedtouch@1.0.0(transitive)