Skip to content

Instantly share code, notes, and snippets.

@quantizor
Last active August 17, 2018 21:08
Show Gist options
  • Save quantizor/51d6c51132c6b59c250e6a9929b00b9a to your computer and use it in GitHub Desktop.
Save quantizor/51d6c51132c6b59c250e6a9929b00b9a to your computer and use it in GitHub Desktop.
test
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.styled={},e.React)}(this,function(e,t){"use strict";var r="default"in t?t.default:t,n=/([A-Z])/g;var a=function(e){return e.replace(n,"-$1").toLowerCase()},o=/^ms-/;var i=function(e){return a(e).replace(o,"-ms-")},s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},u=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},d=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},p=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},h=function(e){return"object"===(void 0===e?"undefined":s(e))&&e.constructor===Object},m=function e(t,r){return t.reduce(function(t,n){return null==n||!1===n||""===n?t:Array.isArray(n)?(t.push.apply(t,e(n,r)),t):n.hasOwnProperty("styledComponentId")?(t.push("."+n.styledComponentId),t):"function"==typeof n?(r?t.push.apply(t,e([n(r)],r)):t.push(n),t):(t.push(h(n)?function e(t,r){var n=Object.keys(t).filter(function(e){var r=t[e];return null!=r&&!1!==r&&""!==r}).map(function(r){return h(t[r])?e(t[r],r):i(r)+": "+t[r]+";"}).join(" ");return r?r+" {\n "+n+"\n}":n}(n):n.toString()),t)},[])};function g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function y(e,t){return e(t={exports:{}},t.exports),t.exports}var v=y(function(e,t){e.exports=function e(t){var r=/^\0+/g,n=/[\0\r\f]/g,a=/: */g,o=/zoo|gra/,i=/([,: ])(transform)/g,s=/,+\s*(?![^(]*[)])/g,c=/ +\s*(?![^(]*[)])/g,u=/ *[\0] */g,l=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,p=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,g=/:(read-only)/g,y=/\s+(?=[{\];=:>])/g,v=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,C=/\s{2,}/g,k=/([^\(])(:+) */g,w=/[svh]\w+-[tblr]{2}/,A=/\(\s*(.*)\s*\)/g,S=/([\s\S]*?);/g,x=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,P=/stretch|:\s*\w+\-(?:conte|avail)/,T=/([^-])(image-set\()/,j="-webkit-",I="-moz-",M="-ms-",E=59,F=125,R=123,N=40,D=41,$=91,_=93,L=10,z=13,H=9,B=64,U=32,V=38,W=45,q=95,G=42,Y=44,K=58,X=39,Z=34,J=47,Q=62,ee=43,te=126,re=0,ne=12,ae=11,oe=107,ie=109,se=115,ce=112,ue=111,le=105,fe=99,de=100,pe=112,he=1,me=1,ge=0,ye=1,ve=1,be=1,Ce=0,ke=0,we=0,Ae=[],Se=[],xe=0,Oe=null,Pe=-2,Te=-1,je=0,Ie=1,Me=2,Ee=3,Fe=0,Re=1,Ne="",De="",$e="";function _e(e,t,a,o,i){for(var s,c,l=0,f=0,d=0,p=0,y=0,v=0,b=0,C=0,w=0,S=0,x=0,O=0,P=0,T=0,q=0,Ce=0,Se=0,Oe=0,Pe=0,Te=a.length,ze=Te-1,qe="",Ge="",Ye="",Ke="",Xe="",Ze="";q<Te;){if(b=a.charCodeAt(q),q===ze&&f+p+d+l!==0&&(0!==f&&(b=f===J?L:J),p=d=l=0,Te++,ze++),f+p+d+l===0){if(q===ze&&(Ce>0&&(Ge=Ge.replace(n,"")),Ge.trim().length>0)){switch(b){case U:case H:case E:case z:case L:break;default:Ge+=a.charAt(q)}b=E}if(1===Se)switch(b){case R:case F:case E:case Z:case X:case N:case D:case Y:Se=0;case H:case z:case L:case U:break;default:for(Se=0,Pe=q,y=b,q--,b=E;Pe<Te;)switch(a.charCodeAt(Pe++)){case L:case z:case E:++q,b=y,Pe=Te;break;case K:Ce>0&&(++q,b=y);case R:Pe=Te}}switch(b){case R:for(Ge=Ge.trim(),y=Ge.charCodeAt(0),x=1,Pe=++q;q<Te;){switch(b=a.charCodeAt(q)){case R:x++;break;case F:x--;break;case J:switch(v=a.charCodeAt(q+1)){case G:case J:q=We(v,q,ze,a)}break;case $:b++;case N:b++;case Z:case X:for(;q++<ze&&a.charCodeAt(q)!==b;);}if(0===x)break;q++}switch(Ye=a.substring(Pe,q),y===re&&(y=(Ge=Ge.replace(r,"").trim()).charCodeAt(0)),y){case B:switch(Ce>0&&(Ge=Ge.replace(n,"")),v=Ge.charCodeAt(1)){case de:case ie:case se:case W:s=t;break;default:s=Ae}if(Ye=_e(t,s,Ye,v,i+1),Pe=Ye.length,we>0&&0===Pe&&(Pe=Ge.length),xe>0&&(s=Le(Ae,Ge,Oe),c=Ve(Ee,Ye,s,t,me,he,Pe,v,i,o),Ge=s.join(""),void 0!==c&&0===(Pe=(Ye=c.trim()).length)&&(v=0,Ye="")),Pe>0)switch(v){case se:Ge=Ge.replace(A,Ue);case de:case ie:case W:Ye=Ge+"{"+Ye+"}";break;case oe:Ge=Ge.replace(h,"$1 $2"+(Re>0?Ne:"")),Ye=Ge+"{"+Ye+"}",Ye=1===ve||2===ve&&Be("@"+Ye,3)?"@"+j+Ye+"@"+Ye:"@"+Ye;break;default:Ye=Ge+Ye,o===pe&&(Ke+=Ye,Ye="")}else Ye="";break;default:Ye=_e(t,Le(t,Ge,Oe),Ye,o,i+1)}Xe+=Ye,O=0,Se=0,T=0,Ce=0,Oe=0,P=0,Ge="",Ye="",b=a.charCodeAt(++q);break;case F:case E:if(Ge=(Ce>0?Ge.replace(n,""):Ge).trim(),(Pe=Ge.length)>1)switch(0===T&&((y=Ge.charCodeAt(0))===W||y>96&&y<123)&&(Pe=(Ge=Ge.replace(" ",":")).length),xe>0&&void 0!==(c=Ve(Ie,Ge,t,e,me,he,Ke.length,o,i,o))&&0===(Pe=(Ge=c.trim()).length)&&(Ge="\0\0"),y=Ge.charCodeAt(0),v=Ge.charCodeAt(1),y){case re:break;case B:if(v===le||v===fe){Ze+=Ge+a.charAt(q);break}default:if(Ge.charCodeAt(Pe-1)===K)break;Ke+=He(Ge,y,v,Ge.charCodeAt(2))}O=0,Se=0,T=0,Ce=0,Oe=0,Ge="",b=a.charCodeAt(++q)}}switch(b){case z:case L:if(f+p+d+l+ke===0)switch(S){case D:case X:case Z:case B:case te:case Q:case G:case ee:case J:case W:case K:case Y:case E:case R:case F:break;default:T>0&&(Se=1)}f===J?f=0:ye+O===0&&o!==oe&&Ge.length>0&&(Ce=1,Ge+="\0"),xe*Fe>0&&Ve(je,Ge,t,e,me,he,Ke.length,o,i,o),he=1,me++;break;case E:case F:if(f+p+d+l===0){he++;break}default:switch(he++,qe=a.charAt(q),b){case H:case U:if(p+l+f===0)switch(C){case Y:case K:case H:case U:qe="";break;default:b!==U&&(qe=" ")}break;case re:qe="\\0";break;case ne:qe="\\f";break;case ae:qe="\\v";break;case V:p+f+l===0&&ye>0&&(Oe=1,Ce=1,qe="\f"+qe);break;case 108:if(p+f+l+ge===0&&T>0)switch(q-T){case 2:C===ce&&a.charCodeAt(q-3)===K&&(ge=C);case 8:w===ue&&(ge=w)}break;case K:p+f+l===0&&(T=q);break;case Y:f+d+p+l===0&&(Ce=1,qe+="\r");break;case Z:case X:0===f&&(p=p===b?0:0===p?b:p);break;case $:p+f+d===0&&l++;break;case _:p+f+d===0&&l--;break;case D:p+f+l===0&&d--;break;case N:if(p+f+l===0){if(0===O)switch(2*C+3*w){case 533:break;default:x=0,O=1}d++}break;case B:f+d+p+l+T+P===0&&(P=1);break;case G:case J:if(p+l+d>0)break;switch(f){case 0:switch(2*b+3*a.charCodeAt(q+1)){case 235:f=J;break;case 220:Pe=q,f=G}break;case G:b===J&&C===G&&Pe+2!==q&&(33===a.charCodeAt(Pe+2)&&(Ke+=a.substring(Pe,q+1)),qe="",f=0)}}if(0===f){if(ye+p+l+P===0&&o!==oe&&b!==E)switch(b){case Y:case te:case Q:case ee:case D:case N:if(0===O){switch(C){case H:case U:case L:case z:qe+="\0";break;default:qe="\0"+qe+(b===Y?"":"\0")}Ce=1}else switch(b){case N:T+7===q&&108===C&&(T=0),O=++x;break;case D:0==(O=--x)&&(Ce=1,qe+="\0")}break;case H:case U:switch(C){case re:case R:case F:case E:case Y:case ne:case H:case U:case L:case z:break;default:0===O&&(Ce=1,qe+="\0")}}Ge+=qe,b!==U&&b!==H&&(S=b)}}w=C,C=b,q++}if(Pe=Ke.length,we>0&&0===Pe&&0===Xe.length&&0===t[0].length==0&&(o!==ie||1===t.length&&(ye>0?De:$e)===t[0])&&(Pe=t.join(",").length+2),Pe>0){if(s=0===ye&&o!==oe?function(e){for(var t,r,a=0,o=e.length,i=Array(o);a<o;++a){for(var s=e[a].split(u),c="",l=0,f=0,d=0,p=0,h=s.length;l<h;++l)if(!(0===(f=(r=s[l]).length)&&h>1)){if(d=c.charCodeAt(c.length-1),p=r.charCodeAt(0),t="",0!==l)switch(d){case G:case te:case Q:case ee:case U:case N:break;default:t=" "}switch(p){case V:r=t+De;case te:case Q:case ee:case U:case D:case N:break;case $:r=t+r+De;break;case K:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(be>0){r=t+r.substring(8,f-1);break}default:(l<1||s[l-1].length<1)&&(r=t+De+r)}break;case Y:t="";default:r=f>1&&r.indexOf(":")>0?t+r.replace(k,"$1"+De+"$2"):t+r+De}c+=r}i[a]=c.replace(n,"").trim()}return i}(t):t,xe>0&&void 0!==(c=Ve(Me,Ke,s,e,me,he,Pe,o,i,o))&&0===(Ke=c).length)return Ze+Ke+Xe;if(Ke=s.join(",")+"{"+Ke+"}",ve*ge!=0){switch(2!==ve||Be(Ke,2)||(ge=0),ge){case ue:Ke=Ke.replace(g,":"+I+"$1")+Ke;break;case ce:Ke=Ke.replace(m,"::"+j+"input-$1")+Ke.replace(m,"::"+I+"$1")+Ke.replace(m,":"+M+"input-$1")+Ke}ge=0}}return Ze+Ke+Xe}function Le(e,t,r){var n=t.trim().split(l),a=n,o=n.length,i=e.length;switch(i){case 0:case 1:for(var s=0,c=0===i?"":e[0]+" ";s<o;++s)a[s]=ze(c,a[s],r,i).trim();break;default:for(var s=0,u=0,a=[];s<o;++s)for(var f=0;f<i;++f)a[u++]=ze(e[f]+" ",n[s],r,i).trim()}return a}function ze(e,t,r,n){var a=t,o=a.charCodeAt(0);switch(o<33&&(o=(a=a.trim()).charCodeAt(0)),o){case V:switch(ye+n){case 0:case 1:if(0===e.trim().length)break;default:return a.replace(f,"$1"+e.trim())}break;case K:switch(a.charCodeAt(1)){case 103:if(be>0&&ye>0)return a.replace(d,"$1").replace(f,"$1"+$e);break;default:return e.trim()+a.replace(f,"$1"+e.trim())}default:if(r*ye>0&&a.indexOf("\f")>0)return a.replace(f,(e.charCodeAt(0)===K?"":"$1")+e.trim())}return e+a}function He(e,t,r,n){var u,l=0,f=e+";",d=2*t+3*r+4*n;if(944===d)return function(e){var t=e.length,r=e.indexOf(":",9)+1,n=e.substring(0,r).trim(),a=e.substring(r,t-1).trim();switch(e.charCodeAt(9)*Re){case 0:break;case W:if(110!==e.charCodeAt(10))break;default:for(var o=a.split((a="",s)),i=0,r=0,t=o.length;i<t;r=0,++i){for(var u=o[i],l=u.split(c);u=l[r];){var f=u.charCodeAt(0);if(1===Re&&(f>B&&f<90||f>96&&f<123||f===q||f===W&&u.charCodeAt(1)!==W))switch(isNaN(parseFloat(u))+(-1!==u.indexOf("("))){case 1:switch(u){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:u+=Ne}}l[r++]=u}a+=(0===i?"":",")+l.join(" ")}}return a=n+a+";",1===ve||2===ve&&Be(a,1)?j+a+a:a}(f);if(0===ve||2===ve&&!Be(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?j+f+f:f;case 951:return 116===f.charCodeAt(3)?j+f+f:f;case 963:return 110===f.charCodeAt(5)?j+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return j+f+f;case 978:return j+f+I+f+f;case 1019:case 983:return j+f+I+f+M+f+f;case 883:return f.charCodeAt(8)===W?j+f+f:f.indexOf("image-set(",11)>0?f.replace(T,"$1"+j+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return j+"box-"+f.replace("-grow","")+j+f+M+f.replace("grow","positive")+f;case 115:return j+f+M+f.replace("shrink","negative")+f;case 98:return j+f+M+f.replace("basis","preferred-size")+f}return j+f+M+f+f;case 964:return j+f+M+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return u=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),j+"box-pack"+u+j+f+M+"flex-pack"+u+f;case 1005:return o.test(f)?f.replace(a,":"+j)+f.replace(a,":"+I)+f:f;case 1e3:switch(u=f.substring(13).trim(),l=u.indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(l)){case 226:u=f.replace(w,"tb");break;case 232:u=f.replace(w,"tb-rl");break;case 220:u=f.replace(w,"lr");break;default:return f}return j+f+M+u+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(l=(f=e).length-10,u=(33===f.charCodeAt(l)?f.substring(0,l):f).substring(e.indexOf(":",7)+1).trim(),d=u.charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(u.charCodeAt(8)<111)break;case 115:f=f.replace(u,j+u)+";"+f;break;case 207:case 102:f=f.replace(u,j+(d>102?"inline-":"")+"box")+";"+f.replace(u,j+u)+";"+f.replace(u,M+u+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===W)switch(f.charCodeAt(6)){case 105:return u=f.replace("-items",""),j+f+j+"box-"+u+M+"flex-"+u+f;case 115:return j+f+M+"flex-item-"+f.replace(x,"")+f;default:return j+f+M+"flex-line-pack"+f.replace("align-content","").replace(x,"")+f}break;case 973:case 989:if(f.charCodeAt(3)!==W||122===f.charCodeAt(4))break;case 931:case 953:if(!0===P.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?He(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):f.replace(u,j+u)+f.replace(u,I+u.replace("fill-",""))+f;break;case 962:if(f=j+f+(102===f.charCodeAt(5)?M+f:"")+f,r+n===211&&105===f.charCodeAt(13)&&f.indexOf("transform",10)>0)return f.substring(0,f.indexOf(";",27)+1).replace(i,"$1"+j+"$2")+f}return f}function Be(e,t){var r=e.indexOf(1===t?":":"{"),n=e.substring(0,3!==t?r:10),a=e.substring(r+1,e.length-1);return Oe(2!==t?n:n.replace(O,"$1"),a,t)}function Ue(e,t){var r=He(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(S," or ($1)").substring(4):"("+t+")"}function Ve(e,t,r,n,a,o,i,s,c,u){for(var l,f=0,d=t;f<xe;++f)switch(l=Se[f].call(Ge,e,d,r,n,a,o,i,s,c,u)){case void 0:case!1:case!0:case null:break;default:d=l}switch(d){case void 0:case!1:case!0:case null:case t:break;default:return d}}function We(e,t,r,n){for(var a=t+1;a<r;++a)switch(n.charCodeAt(a)){case J:if(e===G&&n.charCodeAt(a-1)===G&&t+2!==a)return a+1;break;case L:if(e===J)return a+1}return a}function qe(e){for(var t in e){var r=e[t];switch(t){case"keyframe":Re=0|r;break;case"global":be=0|r;break;case"cascade":ye=0|r;break;case"compress":Ce=0|r;break;case"semicolon":ke=0|r;break;case"preserve":we=0|r;break;case"prefix":Oe=null,r?"function"!=typeof r?ve=1:(ve=2,Oe=r):ve=0}}return qe}function Ge(t,r){if(void 0!==this&&this.constructor===Ge)return e(t);var a=t,o=a.charCodeAt(0);o<33&&(o=(a=a.trim()).charCodeAt(0)),Re>0&&(Ne=a.replace(p,o===$?"":"-")),o=1,1===ye?$e=a:De=a;var i,s=[$e];xe>0&&void 0!==(i=Ve(Te,r,s,s,me,he,0,0,0,0))&&"string"==typeof i&&(r=i);var c=_e(Ae,s,r,0,0);return xe>0&&void 0!==(i=Ve(Pe,c,s,s,me,he,c.length,0,0,0))&&"string"!=typeof(c=i)&&(o=0),Ne="",$e="",De="",ge=0,me=1,he=1,Ce*o==0?c:function(e){return e.replace(n,"").replace(y,"").replace(v,"$1").replace(b,"$1").replace(C," ")}(c)}return Ge.use=function e(t){switch(t){case void 0:case null:xe=Se.length=0;break;default:switch(t.constructor){case Array:for(var r=0,n=t.length;r<n;++r)e(t[r]);break;case Function:Se[xe++]=t;break;case Boolean:Fe=0|!!t}}return e},Ge.set=qe,void 0!==t&&qe(t),Ge}(null)}),b=y(function(e,t){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,a,o,i,s,c,u,l,f){switch(r){case 1:if(0===l&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===u)return n+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(a[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}}),C=/^\s*\/\/.*$/gm,k=new v({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),w=new v({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),A=[],S=function(e){if(-2===e){var t=A;return A=[],t}},x=b(function(e){A.push(e)});w.use([x,S]),k.use([x,S]);var O=function(e,t,r){var n=e.join("").replace(C,"");return w(r||!t?"":t,t&&r?r+" "+t+" { "+n+" }":n)},P=function(e){return String.fromCharCode(e+(e>25?39:97))},T=function(e){var t="",r=void 0;for(r=e;r>52;r=Math.floor(r/52))t=P(r%52)+t;return P(r%52)+t},j=function(e,t){for(var r=[e[0]],n=0,a=t.length;n<a;n+=1)r.push(t[n],e[n+1]);return r},I=Object.freeze([]),M=Object.freeze({}),E=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return"function"==typeof e||h(e)?m(j(I,[e].concat(r))):m(j(e,r))},F=y(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,i=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,l=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,d=r?Symbol.for("react.timeout"):60113;function p(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case l:case o:case s:case i:return e;default:switch(e=e&&e.$$typeof){case u:case f:case c:return e;default:return t}}case a:return t}}}t.typeOf=p,t.AsyncMode=l,t.ContextConsumer=u,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Profiler=s,t.Portal=a,t.StrictMode=i,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===l||e===s||e===i||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===c||e.$$typeof===u||e.$$typeof===f)},t.isAsyncMode=function(e){return p(e)===l},t.isContextConsumer=function(e){return p(e)===u},t.isContextProvider=function(e){return p(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return p(e)===f},t.isFragment=function(e){return p(e)===o},t.isProfiler=function(e){return p(e)===s},t.isPortal=function(e){return p(e)===a},t.isStrictMode=function(e){return p(e)===i}});g(F);F.typeOf,F.AsyncMode,F.ContextConsumer,F.ContextProvider,F.Element,F.ForwardRef,F.Fragment,F.Profiler,F.Portal,F.StrictMode,F.isValidElementType,F.isAsyncMode,F.isContextConsumer,F.isContextProvider,F.isElement,F.isForwardRef,F.isFragment,F.isProfiler,F.isPortal,F.isStrictMode;var R=y(function(e,t){});g(R);R.typeOf,R.AsyncMode,R.ContextConsumer,R.ContextProvider,R.Element,R.ForwardRef,R.Fragment,R.Profiler,R.Portal,R.StrictMode,R.isValidElementType,R.isAsyncMode,R.isContextConsumer,R.isContextProvider,R.isElement,R.isForwardRef,R.isFragment,R.isProfiler,R.isPortal,R.isStrictMode;var N,D=y(function(e){e.exports=F}),$=D.isValidElementType;function _(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var L={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},z={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},H=_({},D.ForwardRef,(_(N={},"$$typeof",!0),_(N,"render",!0),N)),B=Object.defineProperty,U=Object.getOwnPropertyNames,V=Object.getOwnPropertySymbols,W=Object.getOwnPropertyDescriptor,q=Object.getPrototypeOf,G=Object.prototype;var Y=function e(t,r,n){if("string"!=typeof r){if(G){var a=q(r);a&&a!==G&&e(t,a,n)}var o=U(r);V&&(o=o.concat(V(r)));for(var i=H[t.$$typeof]||L,s=H[r.$$typeof]||L,c=0;c<o.length;++c){var u=o[c];if(!(z[u]||n&&n[u]||s&&s[u]||i&&i[u])){var l=W(r,u);try{B(t,u,l)}catch(e){}}}return t}return t},K=function(e,t,r){var n=r&&e.theme===r.theme;return e.theme&&!n?e.theme:t},X=/[[\].#*$><+~=|^:(),"'`-]+/g,Z=/(^-|-$)/g;function J(e){return e.replace(X,"-").replace(Z,"")}function Q(e){return e.displayName||e.name||"Component"}function ee(e){return"string"==typeof e}function te(e){return"function"==typeof e&&"string"==typeof e.styledComponentId}var re=/^((?:s(?:uppressContentEditableWarn|croll|pac)|(?:shape|image|text)Render|(?:letter|word)Spac|vHang|hang)ing|(?:on(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:Animation|Touch|Load|Drag)Start|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|Lo(?:stPointer|ad)|TimeUpdate|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|GotPointer|MouseDown|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|KeyPress|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|P(?:rogress|laying)|DragEnd|Key(?:Down|Up)|(?:MouseU|Dro)p|(?:Wait|Seek)ing|Scroll|Focus|Paste|Abort|Drag|Play|Blur)Captur|alignmentBaselin|(?:limitingConeAng|xlink(?:(?:Arcr|R)o|Tit)|s(?:urfaceSca|ty|ca)|unselectab|baseProfi|fontSty|(?:focus|dragg)ab|multip|profi|tit)l|d(?:ominantBaselin|efaultValu)|onPointerLeav|a(?:uto(?:Capitaliz|Revers|Sav)|dditiv)|(?:(?:formNoValid|xlinkActu|noValid|accumul|rot)a|autoComple|decelera)t|(?:(?:attribute|item)T|datat)yp|onPointerMov|(?:attribute|glyph)Nam|playsInlin|(?:writing|input|edge)Mod|(?:formE|e)ncTyp|(?:amplitu|mo)d|(?:xlinkTy|itemSco|keyTy|slo)p|(?:xmlSpa|non)c|fillRul|(?:dateTi|na)m|r(?:esourc|ol)|xmlBas|wmod)e|(?:glyphOrientationHorizont|loc)al|(?:externalResourcesRequir|select|revers|mut)ed|c(?:o(?:lorInterpolationFilter|ord)s|o(?:lor(?:Interpolation)?|nt(?:rols|ent))|(?:ontentS(?:cript|tyle)Typ|o(?:ntentEditab|lorProfi)l|l(?:assNam|ipRul)|a(?:lcMod|ptur)|it)e|olorRendering|l(?:ipPathUnits|assID)|(?:ontrolsLis|apHeigh)t|h(?:eckedLink|a(?:llenge|rSet)|ildren|ecked)|ell(?:Spac|Padd)ing|o(?:ntextMenu|ls)|(?:rossOrigi|olSpa)n|l(?:ip(?:Path)?|ass)|ursor|[xy])|glyphOrientationVertical|d(?:angerouslySetInnerHTML|efaultChecked|ownload|isabled|isplay|[xy])|(?:s(?:trikethroughThickn|eaml)es|(?:und|ov)erlineThicknes|r(?:equiredExtension|adiu)|(?:requiredFeatur|tableValu|stitchTil|numOctav|filterR)e|key(?:(?:Splin|Tim)e|Param)|auto[Ff]ocu|header|bia)s|(?:(?:st(?:rikethroughPosi|dDevia)|(?:und|ov)erlinePosi|(?:textDecor|elev)a|orienta)tio|(?:strokeLinejo|orig)i|on(?:PointerDow|FocusI)|formActio|zoomAndPa|directio|(?:vers|act)io|rowSpa|begi|ico)n|o(?:n(?:AnimationIteration|C(?:o(?:mposition(?:Update|Start|End)|ntextMenu|py)|anPlayThrough|anPlay|hange|lick|ut)|(?:(?:Duration|Volume|Rate)Chang|(?:MouseLea|(?:Touch|Mouse)Mo|DragLea)v|Paus)e|Loaded(?:Metad|D)ata|(?:Animation|Touch|Load|Drag)Start|(?:(?:T(?:ransition|ouch)|Animation)E|Suspe)nd|DoubleClick|(?:TouchCanc|Whe)el|(?:Mouse(?:Ent|Ov)e|Drag(?:Ent|Ov)e|Erro)r|TimeUpdate|(?:E(?:n(?:crypt|d)|mpti)|S(?:tall|eek))ed|MouseDown|P(?:rogress|laying)|(?:MouseOu|DragExi|S(?:elec|ubmi)|Rese|Inpu)t|KeyPress|DragEnd|Key(?:Down|Up)|(?:Wait|Seek)ing|(?:MouseU|Dro)p|Scroll|Paste|Focus|Abort|Drag|Play|Load|Blur)|rient)|p(?:reserveA(?:spectRatio|lpha)|ointsAt[X-Z]|anose1)|(?:patternContent|ma(?:sk(?:Content)?|rker)|primitive|gradient|pattern|filter)Units|(?:(?:allowTranspar|baseFrequ)enc|re(?:ferrerPolic|adOnl)|(?:(?:st(?:roke|op)O|floodO|fillO|o)pac|integr|secur)it|visibilit|fontFamil|accessKe|propert|summar)y|(?:gradientT|patternT|t)ransform|(?:[xy]ChannelSelect|lightingCol|textAnch|floodCol|stopCol|operat|htmlF)or|(?:strokeMiterlimi|(?:specularConsta|repeatCou|fontVaria)n|(?:(?:specularE|e)xpon|renderingInt|asc)en|d(?:iffuseConsta|esce)n|(?:fontSizeAdju|lengthAdju|manife)s|baselineShif|onPointerOu|vectorEffec|(?:(?:mar(?:ker|gin)|x)H|accentH|fontW)eigh|markerStar|a(?:utoCorrec|bou)|onFocusOu|intercep|restar|forma|inlis|heigh|lis)t|(?:(?:st(?:rokeDasho|artO)|o)ffs|acceptChars|formTarg|viewTarg|srcS)et|k(?:ernel(?:UnitLength|Matrix)|[1-4])|(?:(?:enableBackgrou|markerE)n|s(?:p(?:readMetho|ee)|ee)|formMetho|(?:markerM|onInval)i|preloa|metho|kin)d|strokeDasharray|(?:onPointerCanc|lab)el|(?:allowFullScre|hidd)en|systemLanguage|(?:(?:o(?:nPointer(?:Ent|Ov)|rd)|allowReord|placehold|frameBord|paintOrd|post)e|repeatDu|d(?:efe|u))r|v(?:Mathematical|ert(?:Origin[XY]|AdvY)|alues|ocab)|(?:pointerEve|keyPoi)nts|(?:strokeLineca|onPointerU|itemPro|useMa|wra|loo)p|h(?:oriz(?:Origin|Adv)X|ttpEquiv)|(?:vI|i)deographic|unicodeRange|mathematical|vAlphabetic|u(?:nicodeBidi|[12])|(?:fontStretc|hig)h|(?:(?:mar(?:ker|gin)W|strokeW)id|azimu)th|(?:xmlnsXl|valueL)ink|mediaGroup|spellCheck|(?:text|m(?:in|ax))Length|(?:unitsPerE|optimu|fro)m|r(?:adioGroup|e(?:sults|f[XY]|l)|ows|[xy])|a(?:rabicForm|l(?:phabetic|t)|sync)|pathLength|innerHTML|xlinkShow|(?:xlinkHr|glyphR)ef|(?:tabInde|(?:sand|b)bo|viewBo)x|(?:(?:href|xml|src)La|kerni)ng|autoPlay|o(?:verflow|pen)|f(?:o(?:ntSize|rm?)|il(?:ter|l))|r(?:e(?:quired|sult|f))?|divisor|p(?:attern|oints)|unicode|d(?:efault|ata|ir)?|i(?:temRef|n2|s)|t(?:arget[XY]|o)|srcDoc|s(?:coped|te(?:m[hv]|p)|pan)|(?:width|size)s|prefix|typeof|itemID|s(?:t(?:roke|art)|hape|cope|rc)|t(?:arget|ype)|(?:stri|la)ng|a(?:ccept|s)|m(?:edia|a(?:sk|x)|in)|x(?:mlns)?|width|value|size|href|k(?:ey)?|end|low|by|i[dn]|y[12]|g[12]|x[12]|f[xy]|[yz])$/,ne=RegExp.prototype.test.bind(new RegExp("^(x|data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"));var ae="undefined"!=typeof process&&process.env.SC_ATTR||"data-styled",oe="undefined"!=typeof window&&"HTMLElement"in window,ie=function(e){function t(r){c(this,t);for(var n=arguments.length,a=Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];var i=p(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/src/utils/errors.md#"+r+" for more information. "+(a?"Additional arguments: "+a.join(", "):"")));return p(i)}return f(t,e),t}(Error),se=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,ce=function(e){var t=""+(e||""),r=[];return t.replace(se,function(e,t,n){return r.push({componentId:t,matchIndex:n}),e}),r.map(function(e,n){var a=e.componentId,o=e.matchIndex,i=r[n+1];return{componentId:a,cssFromDOM:i?t.slice(o,i.matchIndex):t.slice(o)}})},ue=function(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},le=function(e,t,r){r&&((e[t]||(e[t]=Object.create(null)))[r]=!0)},fe=function(e,t){e[t]=Object.create(null)},de=function(e){return function(t,r){return void 0!==e[t]&&e[t][r]}},pe=function(e){var t="";for(var r in e)t+=Object.keys(e[r]).join(" ")+" ";return t.trim()},he=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets.length,r=0;r<t;r+=1){var n=document.styleSheets[r];if(n.ownerNode===e)return n}throw new ie(10)},me=function(e,t,r){if(!t)return!1;var n=e.cssRules.length;try{e.insertRule(t,r<=n?r:n)}catch(e){return!1}return!0},ge=function(e){return"\n/* sc-component-id: "+e+" */\n"},ye=function(e,t){for(var r=0,n=0;n<=t;n+=1)r+=e[n];return r},ve=function(e,t){return function(r){var n=ue();return"<style "+[n&&'nonce="'+n+'"',ae+'="'+pe(t)+'"','data-styled-version="4.0.0-alpha.0"',r].filter(Boolean).join(" ")+">"+e()+"</style>"}},be=function(e,t){return function(){var n,a=((n={})[ae]=pe(t),n["data-styled-version"]="4.0.0-alpha.0",n),o=ue();return o&&(a.nonce=o),r.createElement("style",l({},a,{dangerouslySetInnerHTML:{__html:e()}}))}},Ce=function(e){return function(){return Object.keys(e)}},ke=function e(t,r){var n=void 0===t?Object.create(null):t,a=void 0===r?Object.create(null):r,o=function(e){var t=a[e];return void 0!==t?t:a[e]=[""]},i=function(){var e="";for(var t in a){var r=a[t][0];r&&(e+=ge(t)+r)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var r in e)t[r]=l({},e[r]);return t}(n),r=Object.create(null);for(var o in a)r[o]=[a[o][0]];return e(t,r)},css:i,getIds:Ce(a),hasNameForId:de(n),insertMarker:o,insertRules:function(e,t,r){o(e)[0]+=t.join(" "),le(n,e,r)},removeRules:function(e){var t=a[e];void 0!==t&&(t[0]="",fe(n,e))},styleTag:null,toElement:be(i,n),toHTML:ve(i,n)}},we=function(e,t,r,n,a){return oe&&!r?function(e,t){var r=Object.create(null),n=Object.create(null),a=[],o=void 0!==t,i=!1,s=function(e){var t=n[e];return void 0!==t?t:(n[e]=a.length,a.push(0),fe(r,e),n[e])},c=function(){var t=he(e).cssRules,r="";for(var o in n){r+=ge(o);for(var i=n[o],s=ye(a,i),c=s-a[i];c<s;c+=1){var u=t[c];void 0!==u&&(r+=u.cssText)}}return r};return{styleTag:e,getIds:Ce(n),hasNameForId:de(r),insertMarker:s,insertRules:function(n,c,u){for(var l=s(n),f=he(e),d=ye(a,l),p=0,h=[],m=c.length,g=0;g<m;g+=1){var y=c[g],v=o;v&&-1!==y.indexOf("@import")?h.push(y):me(f,y,d+p)&&(v=!1,p+=1)}o&&h.length>0&&(i=!0,t().insertRules(n+"-import",h)),a[l]+=p,le(r,n,u)},removeRules:function(s){var c=n[s];if(void 0!==c){var u=a[c];!function(e,t,r){for(var n=t-r,a=t;a>n;a-=1)e.deleteRule(a)}(he(e),ye(a,c),u),a[c]=0,fe(r,s),o&&i&&t().removeRules(s+"-import")}},css:c,toHTML:ve(c,r),toElement:be(c,r),clone:function(){throw new ie(5)}}}(function(e,t,r){var n=document.createElement("style");n.setAttribute(ae,""),n.setAttribute("data-styled-version","4.0.0-alpha.0");var a=ue();if(a&&n.setAttribute("nonce",a),n.appendChild(document.createTextNode("")),e&&!t)e.appendChild(n);else{if(!t||!e||!t.parentNode)throw new ie(6);t.parentNode.insertBefore(n,r?t:t.nextSibling)}return n}(e,t,n),a):ke()},Ae=/\s+/,Se=void 0;Se=oe?1e3:-1;var xe=0,Oe=void 0,Pe=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:oe?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];c(this,e),this.getImportRuleTag=function(){var e=t.importRuleTag;if(void 0!==e)return e;var r=t.tags[0];return t.importRuleTag=we(t.target,r?r.styleTag:null,t.forceServer,!0)},xe+=1,this.id=xe,this.sealed=!1,this.forceServer=n,this.target=n?null:r,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return e.prototype.rehydrate=function(){if(!oe||this.forceServer)return this;var e=[],t=[],r=!1,n=document.querySelectorAll("style["+ae+'][data-styled-version="4.0.0-alpha.0"]'),a=n.length;if(0===a)return this;for(var o=0;o<a;o+=1){var i=n[o];r||(r=!!i.getAttribute("data-styled-streamed"));for(var s=(i.getAttribute(ae)||"").trim().split(Ae),c=s.length,u=0;u<c;u+=1){var f=s[u];this.rehydratedNames[f]=!0}t.push.apply(t,ce(i.textContent)),e.push(i)}var d=t.length;if(0===d)return this;var p=function(e,t,r,n){var a,o,i=(a=function(){for(var n=0,a=r.length;n<a;n+=1){var o=r[n],i=o.componentId,s=o.cssFromDOM,c=k("",s);e.insertRules(i,c)}for(var u=0,l=t.length;u<l;u+=1){var f=t[u];f.parentNode&&f.parentNode.removeChild(f)}},o=!1,function(){o||(o=!0,a())});return n&&i(),l({},e,{insertMarker:function(t){return i(),e.insertMarker(t)},insertRules:function(t,r,n){return i(),e.insertRules(t,r,n)}})}(this.makeTag(null),e,t,r);this.capacity=Math.max(1,Se-d),this.tags.push(p);for(var h=0;h<d;h+=1)this.tagMap[t[h].componentId]=p;return this},e.reset=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Oe=new e(void 0,t).rehydrate()},e.prototype.clone=function(){var t=new e(this.target,this.forceServer);return this.clones.push(t),t.tags=this.tags.map(function(e){for(var r=e.getIds(),n=e.clone(),a=0;a<r.length;a+=1)t.tagMap[r[a]]=n;return n}),t.rehydratedNames=l({},this.rehydratedNames),t.deferred=l({},this.deferred),t},e.prototype.sealAllTags=function(){this.capacity=1,this.sealed=!0},e.prototype.makeTag=function(e){var t=e?e.styleTag:null;return we(this.target,t,this.forceServer,!1,this.getImportRuleTag)},e.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!this.sealed)return t;var r=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=Se,this.sealed=!1,r=this.makeTag(r),this.tags.push(r)),this.tagMap[e]=r},e.prototype.hasId=function(e){return void 0!==this.tagMap[e]},e.prototype.hasNameForId=function(e,t){if(void 0===this.ignoreRehydratedNames[e]&&this.rehydratedNames[t])return!0;var r=this.tagMap[e];return void 0!==r&&r.hasNameForId(e,t)},e.prototype.deferredInject=function(e,t){if(void 0===this.tagMap[e]){for(var r=this.clones,n=0;n<r.length;n+=1)r[n].deferredInject(e,t);this.getTagForId(e).insertMarker(e),this.deferred[e]=t}},e.prototype.inject=function(e,t,r){for(var n=this.clones,a=0;a<n.length;a+=1)n[a].inject(e,t,r);var o=this.getTagForId(e);if(void 0!==this.deferred[e]){var i=this.deferred[e].concat(t);o.insertRules(e,i,r),this.deferred[e]=void 0}else o.insertRules(e,t,r)},e.prototype.remove=function(e){var t=this.tagMap[e];if(void 0!==t){for(var r=this.clones,n=0;n<r.length;n+=1)r[n].remove(e);t.removeRules(e),this.ignoreRehydratedNames[e]=!0,this.deferred[e]=void 0}},e.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},e.prototype.toReactElements=function(){var e=this.id;return this.tags.map(function(r,n){var a="sc-"+e+"-"+n;return t.cloneElement(r.toElement(),{key:a})})},u(e,null,[{key:"master",get:function(){return Oe||(Oe=(new e).rehydrate())}},{key:"instance",get:function(){return e.master}}]),e}(),Te=function(e,t){return e===t};function je(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Te,r=void 0,n=[],a=void 0,o=!1,i=function(e,r){return t(e,n[r])};return function(){for(var t=arguments.length,s=Array(t),c=0;c<t;c++)s[c]=arguments[c];return o&&r===this&&s.length===n.length&&s.every(i)?a:(o=!0,r=this,n=s,a=e.apply(this,s))}}var Ie=t.createContext(),Me=Ie.Consumer,Ee=function(e){function t(r){c(this,t);var n=p(this,e.call(this,r));return n.getContext=je(n.getContext.bind(n)),n}return f(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.children,a=t.theme;return n?r.createElement(Ie.Consumer,null,function(t){var o=e.getContext(a,t);return r.createElement(Ie.Provider,{value:o},r.Children.only(n))}):null},t.prototype.getTheme=function(e,t){if("function"==typeof e)return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":s(e)))throw new ie(8);return l({},t,e)},t.prototype.getContext=function(e,t){return this.getTheme(e,t)},t}(t.Component),Fe=function(){function e(){c(this,e),this.masterSheet=Pe.master,this.instance=this.masterSheet.clone(),this.closed=!1}return e.prototype.complete=function(){if(!this.closed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.closed=!0}},e.prototype.collectStyles=function(e){if(this.closed)throw new ie(2);return r.createElement(De,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.complete(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.complete(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new ie(3)},e}(),Re=t.createContext(),Ne=Re.Consumer,De=function(e){function t(r){c(this,t);var n=p(this,e.call(this,r));return n.getContext=je(n.getContext),n}return f(t,e),t.prototype.getContext=function(e,t){if(e)return e;if(t)return new Pe(t);throw new ie(4)},t.prototype.render=function(){var e=this.props,t=e.children,n=e.sheet,a=e.target,o=this.getContext(n,a);return r.createElement(Re.Provider,{value:o},r.Children.only(t))},t}(t.Component),$e={},_e={};var Le=function(e){function n(){c(this,n);var t=p(this,e.call(this));return t.attrs={},t.renderOuter=t.renderOuter.bind(t),t.renderInner=t.renderInner.bind(t),t}return f(n,e),n.prototype.render=function(){return r.createElement(Ne,null,this.renderOuter)},n.prototype.renderOuter=function(e){return this.styleSheet=e,r.createElement(Me,null,this.renderInner)},n.prototype.renderInner=function(e){var r=this.props.innerRef,n=this.constructor,a=n.styledComponentId,o=n.target,i=n.defaultProps,s=n.componentStyle,c=ee(o),u=void 0;if(s.isStatic)u=this.generateAndInjectStyles($e,this.props,this.styleSheet);else if(void 0!==e){var f=K(this.props,e,i);u=this.generateAndInjectStyles(f,this.props,this.styleSheet)}else u=this.generateAndInjectStyles(this.props.theme||M,this.props,this.styleSheet);var d=[this.props.className,a,this.attrs.className,u].filter(Boolean).join(" "),p=l({},this.attrs,{className:d});te(o)?p.innerRef=r:p.ref=r;var h,m=p,g=void 0;for(g in this.props)"innerRef"===g||"className"===g||c&&(h=g,!re.test(h)&&!ne(h.toLowerCase()))||(m[g]="style"===g&&g in this.attrs?l({},this.attrs[g],this.props[g]):this.props[g]);return t.createElement(o,m)},n.prototype.buildExecutionContext=function(e,r){var n=this.constructor.attrs,a=l({},r,{theme:e});return void 0===n?a:(this.attrs=Object.keys(n).reduce(function(e,r){var o=n[r];return e[r]="function"!=typeof o||function(e,t){for(var r=e;r;)if((r=Object.getPrototypeOf(r))&&r===t)return!0;return!1}(o,t.Component)?o:o(a),e},{}),l({},a,this.attrs))},n.prototype.generateAndInjectStyles=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Pe.master,n=this.constructor,a=n.attrs,o=n.componentStyle;n.warnTooManyClasses;if(o.isStatic&&void 0===a)return o.generateAndInjectStyles($e,r);var i=this.buildExecutionContext(e,t);return o.generateAndInjectStyles(i,r)},n}(t.Component);function ze(e){for(var t,r=0|e.length,n=0|r,a=0;r>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(t>>>16)&65535)<<16),n=1540483477*(65535&n)+((1540483477*(n>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++a;switch(r){case 3:n^=(255&e.charCodeAt(a+2))<<16;case 2:n^=(255&e.charCodeAt(a+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(a)))+((1540483477*(n>>>16)&65535)<<16)}return n=1540483477*(65535&(n^=n>>>13))+((1540483477*(n>>>16)&65535)<<16),(n^=n>>>15)>>>0}var He=oe,Be=function e(t,r){for(var n=0,a=t.length;n<a;n+=1){var o=t[n];if(Array.isArray(o)&&!e(o))return!1;if("function"==typeof o&&!te(o))return!1}if(void 0!==r)for(var i in r)if("function"==typeof r[i])return!1;return!0},Ue="undefined"!=typeof module&&module.hot&&!1,Ve=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],We={StyleSheet:Pe},qe=function(e,t,r){return function(){var n=Pe.master,a=r.apply(void 0,arguments),o=e(ze(JSON.stringify(a).replace(/\s|\\n/g,""))),i="sc-keyframes-"+o;return n.hasNameForId(i,o)||n.inject(i,t(a,o,"@keyframes"),o),o}}(T,O,E),Ge=function(e,t){return function(){var r=Pe.master,n=t.apply(void 0,arguments),a="sc-global-"+ze(JSON.stringify(n));r.hasId(a)||r.inject(a,e(n))}}(O,E),Ye=Object.freeze({css:E,keyframes:qe,injectGlobal:Ge,isStyledComponent:te,ThemeProvider:Ee,withTheme:function(e){var t="function"==typeof e&&!(e.prototype&&"isReactComponent"in e.prototype),n=te(e)||t,a=function(t){function a(){return c(this,a),p(this,t.apply(this,arguments))}return f(a,t),a.prototype.render=function(){var t=this;return r.createElement(Me,null,function(a){var o=t.constructor.defaultProps,i=K(t.props,a,o),s=l({theme:i},t.props);return n||(s.ref=s.innerRef,delete s.innerRef),r.createElement(e,s)})},a}(r.Component);return a.displayName="WithTheme("+Q(e)+")",a.styledComponentId="withTheme",Y(a,e)},ServerStyleSheet:Fe,StyleSheetManager:De,__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS:We}),Ke=function(e,t,r){var n=function(t){return e(ze(t))};return function(){function e(t,r,n){c(this,e),this.rules=t,this.isStatic=!Ue&&Be(t,r),this.componentId=n,Pe.master.hasId(n)||Pe.master.deferredInject(n,[])}return e.prototype.generateAndInjectStyles=function(e,a){var o=this.isStatic,i=this.componentId,s=this.lastClassName;if(He&&o&&void 0!==s&&a.hasNameForId(i,s))return s;var c=t(this.rules,e),u=n(this.componentId+c.join(""));return a.hasNameForId(i,u)||a.inject(this.componentId,r(c,"."+u),u),this.lastClassName=u,u},e.generateName=function(e){return n(e)},e}()}(T,m,O),Xe=function(e){return function t(r,n){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:M;if(!$(n))throw new ie(1,String(n));var o=function(){return r(n,a,e.apply(void 0,arguments))};return o.withConfig=function(e){return t(r,n,l({},a,e))},o.attrs=function(e){return t(r,n,l({},a,{attrs:l({},a.attrs||M,e)}))},o}}(E),Ze=function(e,t){var r=function(r){return t(e,r)};return Ve.forEach(function(e){r[e]=r(e)}),r}(function(e){return function t(r,n,a){var o=n.isClass,i=void 0===o?!ee(r):o,s=n.displayName,u=void 0===s?function(e){return ee(e)?"styled."+e:"Styled("+Q(e)+")"}(r):s,h=n.componentId,m=void 0===h?function(e,t,r){var n="string"!=typeof t?"sc":J(t),a=(_e[n]||0)+1;_e[n]=a;var o=n+"-"+e.generateName(n+a);return void 0!==r?r+"-"+o:o}(e,n.displayName,n.parentComponentId):h,g=n.ParentComponent,y=void 0===g?Le:g,v=n.attrs,b=n.displayName&&n.componentId?J(n.displayName)+"-"+n.componentId:n.componentId||m,C=new e(a,v,b),k=function(e){function r(){return c(this,r),p(this,e.apply(this,arguments))}return f(r,e),r.withComponent=function(e){var o=n.componentId,i=d(n,["componentId"]),s=o&&o+"-"+(ee(e)?e:J(Q(e)));return t(e,l({},i,{componentId:s,ParentComponent:r}),a)},r}(y);return k.attrs=v,k.componentStyle=C,k.displayName=u,k.styledComponentId=b,k.target=r,i&&Y(k,r,{attrs:!0,componentStyle:!0,displayName:!0,styledComponentId:!0,target:!0,warnTooManyClasses:!0,withComponent:!0}),k}}(Ke),Xe);for(var Je in Ye)Ze[Je]=Ye[Je];e.default=Ze,Object.defineProperty(e,"__esModule",{value:!0})});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment