styled-components 4.2.1 → 4.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.styled=t(e.React)}(this,function(e){"use strict";var t="default"in e?e.default:e;function r(e){return e&&"string"==typeof e.styledComponentId}var n=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},a="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},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=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}}(),s=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},c=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)},l=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},u=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},d=function(e){return"object"===(void 0===e?"undefined":a(e))&&e.constructor===Object},f=Object.freeze([]),p=Object.freeze({});function h(e){return"function"==typeof e}function m(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 g=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,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case d:case o:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case l:case f:case c:return e;default:return t}}case m:case h:case a:return t}}}function g(e){return y(e)===d}t.typeOf=y,t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=f,t.Fragment=o,t.Lazy=m,t.Memo=h,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===s||e===i||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===f)},t.isAsyncMode=function(e){return g(e)||y(e)===u},t.isConcurrentMode=g,t.isContextConsumer=function(e){return y(e)===l},t.isContextProvider=function(e){return y(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===f},t.isFragment=function(e){return y(e)===o},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===h},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===s},t.isStrictMode=function(e){return y(e)===i},t.isSuspense=function(e){return y(e)===p}});m(g);g.typeOf,g.AsyncMode,g.ConcurrentMode,g.ContextConsumer,g.ContextProvider,g.Element,g.ForwardRef,g.Fragment,g.Lazy,g.Memo,g.Portal,g.Profiler,g.StrictMode,g.Suspense,g.isValidElementType,g.isAsyncMode,g.isConcurrentMode,g.isContextConsumer,g.isContextProvider,g.isElement,g.isForwardRef,g.isFragment,g.isLazy,g.isMemo,g.isPortal,g.isProfiler,g.isStrictMode,g.isSuspense;var v=y(function(e,t){});m(v);v.typeOf,v.AsyncMode,v.ConcurrentMode,v.ContextConsumer,v.ContextProvider,v.Element,v.ForwardRef,v.Fragment,v.Lazy,v.Memo,v.Portal,v.Profiler,v.StrictMode,v.Suspense,v.isValidElementType,v.isAsyncMode,v.isConcurrentMode,v.isContextConsumer,v.isContextProvider,v.isElement,v.isForwardRef,v.isFragment,v.isLazy,v.isMemo,v.isPortal,v.isProfiler,v.isStrictMode,v.isSuspense;var b=y(function(e){e.exports=g}),C=(b.isElement,b.isValidElementType),w=b.ForwardRef;function S(e){return e.displayName||e.name||"Component"}var k="undefined"!=typeof process&&process.env.SC_ATTR||"data-styled",x="undefined"!=typeof window&&"HTMLElement"in window,A="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||!1,I={},O=function(e){function t(r){o(this,t);for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];var s=u(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+r+" for more information."+(a.length>0?" Additional arguments: "+a.join(", "):"")));return u(s)}return c(t,e),t}(Error),j=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,M=function(e){var t=""+(e||""),r=[];return t.replace(j,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)}})},R=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,l=/ *[\0] */g,u=/,\r+?/g,d=/([\t\r\n ])*\f?&/g,f=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,p=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,y=/:(read-only)/g,g=/\s+(?=[{\];=:>])/g,v=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,C=/\s{2,}/g,w=/([^\(])(:+) */g,S=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,x=/([\s\S]*?);/g,A=/-self|flex-/g,I=/[^]*?(:[rp][el]a[\w-]+)[^]*/,O=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,M="-webkit-",R="-moz-",T="-ms-",E=59,P=125,N=123,$=40,_=41,F=91,L=93,H=10,z=13,D=9,G=64,B=32,U=38,W=45,q=95,V=42,Y=44,X=58,J=39,K=34,Z=47,Q=62,ee=43,te=126,re=0,ne=12,ae=11,oe=107,ie=109,se=115,ce=112,le=111,ue=105,de=99,fe=100,pe=112,he=1,me=1,ye=0,ge=1,ve=1,be=1,Ce=0,we=0,Se=0,ke=[],xe=[],Ae=0,Ie=null,Oe=-2,je=-1,Me=0,Re=1,Te=2,Ee=3,Pe=0,Ne=1,$e="",_e="",Fe="";function Le(e,t,a,o,i){for(var s,c,u=0,d=0,f=0,p=0,g=0,v=0,b=0,C=0,S=0,x=0,A=0,I=0,O=0,j=0,q=0,Ce=0,xe=0,Ie=0,Oe=0,je=a.length,ze=je-1,qe="",Ve="",Ye="",Xe="",Je="",Ke="";q<je;){if(b=a.charCodeAt(q),q===ze&&d+p+f+u!==0&&(0!==d&&(b=d===Z?H:Z),p=f=u=0,je++,ze++),d+p+f+u===0){if(q===ze&&(Ce>0&&(Ve=Ve.replace(n,"")),Ve.trim().length>0)){switch(b){case B:case D:case E:case z:case H:break;default:Ve+=a.charAt(q)}b=E}if(1===xe)switch(b){case N:case P:case E:case K:case J:case $:case _:case Y:xe=0;case D:case z:case H:case B:break;default:for(xe=0,Oe=q,g=b,q--,b=E;Oe<je;)switch(a.charCodeAt(Oe++)){case H:case z:case E:++q,b=g,Oe=je;break;case X:Ce>0&&(++q,b=g);case N:Oe=je}}switch(b){case N:for(g=(Ve=Ve.trim()).charCodeAt(0),A=1,Oe=++q;q<je;){switch(b=a.charCodeAt(q)){case N:A++;break;case P:A--;break;case Z:switch(v=a.charCodeAt(q+1)){case V:case Z:q=We(v,q,ze,a)}break;case F:b++;case $:b++;case K:case J:for(;q++<ze&&a.charCodeAt(q)!==b;);}if(0===A)break;q++}switch(Ye=a.substring(Oe,q),g===re&&(g=(Ve=Ve.replace(r,"").trim()).charCodeAt(0)),g){case G:switch(Ce>0&&(Ve=Ve.replace(n,"")),v=Ve.charCodeAt(1)){case fe:case ie:case se:case W:s=t;break;default:s=ke}if(Oe=(Ye=Le(t,s,Ye,v,i+1)).length,Se>0&&0===Oe&&(Oe=Ve.length),Ae>0&&(s=He(ke,Ve,Ie),c=Ue(Ee,Ye,s,t,me,he,Oe,v,i,o),Ve=s.join(""),void 0!==c&&0===(Oe=(Ye=c.trim()).length)&&(v=0,Ye="")),Oe>0)switch(v){case se:Ve=Ve.replace(k,Be);case fe:case ie:case W:Ye=Ve+"{"+Ye+"}";break;case oe:Ye=(Ve=Ve.replace(h,"$1 $2"+(Ne>0?$e:"")))+"{"+Ye+"}",Ye=1===ve||2===ve&&Ge("@"+Ye,3)?"@"+M+Ye+"@"+Ye:"@"+Ye;break;default:Ye=Ve+Ye,o===pe&&(Xe+=Ye,Ye="")}else Ye="";break;default:Ye=Le(t,He(t,Ve,Ie),Ye,o,i+1)}Je+=Ye,I=0,xe=0,j=0,Ce=0,Ie=0,O=0,Ve="",Ye="",b=a.charCodeAt(++q);break;case P:case E:if((Oe=(Ve=(Ce>0?Ve.replace(n,""):Ve).trim()).length)>1)switch(0===j&&((g=Ve.charCodeAt(0))===W||g>96&&g<123)&&(Oe=(Ve=Ve.replace(" ",":")).length),Ae>0&&void 0!==(c=Ue(Re,Ve,t,e,me,he,Xe.length,o,i,o))&&0===(Oe=(Ve=c.trim()).length)&&(Ve="\0\0"),g=Ve.charCodeAt(0),v=Ve.charCodeAt(1),g){case re:break;case G:if(v===ue||v===de){Ke+=Ve+a.charAt(q);break}default:if(Ve.charCodeAt(Oe-1)===X)break;Xe+=De(Ve,g,v,Ve.charCodeAt(2))}I=0,xe=0,j=0,Ce=0,Ie=0,Ve="",b=a.charCodeAt(++q)}}switch(b){case z:case H:if(d+p+f+u+we===0)switch(x){case _:case J:case K:case G:case te:case Q:case V:case ee:case Z:case W:case X:case Y:case E:case N:case P:break;default:j>0&&(xe=1)}d===Z?d=0:ge+I===0&&o!==oe&&Ve.length>0&&(Ce=1,Ve+="\0"),Ae*Pe>0&&Ue(Me,Ve,t,e,me,he,Xe.length,o,i,o),he=1,me++;break;case E:case P:if(d+p+f+u===0){he++;break}default:switch(he++,qe=a.charAt(q),b){case D:case B:if(p+u+d===0)switch(C){case Y:case X:case D:case B:qe="";break;default:b!==B&&(qe=" ")}break;case re:qe="\\0";break;case ne:qe="\\f";break;case ae:qe="\\v";break;case U:p+d+u===0&&ge>0&&(Ie=1,Ce=1,qe="\f"+qe);break;case 108:if(p+d+u+ye===0&&j>0)switch(q-j){case 2:C===ce&&a.charCodeAt(q-3)===X&&(ye=C);case 8:S===le&&(ye=S)}break;case X:p+d+u===0&&(j=q);break;case Y:d+f+p+u===0&&(Ce=1,qe+="\r");break;case K:case J:0===d&&(p=p===b?0:0===p?b:p);break;case F:p+d+f===0&&u++;break;case L:p+d+f===0&&u--;break;case _:p+d+u===0&&f--;break;case $:if(p+d+u===0){if(0===I)switch(2*C+3*S){case 533:break;default:A=0,I=1}f++}break;case G:d+f+p+u+j+O===0&&(O=1);break;case V:case Z:if(p+u+f>0)break;switch(d){case 0:switch(2*b+3*a.charCodeAt(q+1)){case 235:d=Z;break;case 220:Oe=q,d=V}break;case V:b===Z&&C===V&&Oe+2!==q&&(33===a.charCodeAt(Oe+2)&&(Xe+=a.substring(Oe,q+1)),qe="",d=0)}}if(0===d){if(ge+p+u+O===0&&o!==oe&&b!==E)switch(b){case Y:case te:case Q:case ee:case _:case $:if(0===I){switch(C){case D:case B:case H:case z:qe+="\0";break;default:qe="\0"+qe+(b===Y?"":"\0")}Ce=1}else switch(b){case $:j+7===q&&108===C&&(j=0),I=++A;break;case _:0==(I=--A)&&(Ce=1,qe+="\0")}break;case D:case B:switch(C){case re:case N:case P:case E:case Y:case ne:case D:case B:case H:case z:break;default:0===I&&(Ce=1,qe+="\0")}}Ve+=qe,b!==B&&b!==D&&(x=b)}}S=C,C=b,q++}if(Oe=Xe.length,Se>0&&0===Oe&&0===Je.length&&0===t[0].length==0&&(o!==ie||1===t.length&&(ge>0?_e:Fe)===t[0])&&(Oe=t.join(",").length+2),Oe>0){if(s=0===ge&&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(l),c="",u=0,d=0,f=0,p=0,h=s.length;u<h;++u)if(!(0===(d=(r=s[u]).length)&&h>1)){if(f=c.charCodeAt(c.length-1),p=r.charCodeAt(0),t="",0!==u)switch(f){case V:case te:case Q:case ee:case B:case $:break;default:t=" "}switch(p){case U:r=t+_e;case te:case Q:case ee:case B:case _:case $:break;case F:r=t+r+_e;break;case X:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(be>0){r=t+r.substring(8,d-1);break}default:(u<1||s[u-1].length<1)&&(r=t+_e+r)}break;case Y:t="";default:r=d>1&&r.indexOf(":")>0?t+r.replace(w,"$1"+_e+"$2"):t+r+_e}c+=r}i[a]=c.replace(n,"").trim()}return i}(t):t,Ae>0&&void 0!==(c=Ue(Te,Xe,s,e,me,he,Oe,o,i,o))&&0===(Xe=c).length)return Ke+Xe+Je;if(Xe=s.join(",")+"{"+Xe+"}",ve*ye!=0){switch(2!==ve||Ge(Xe,2)||(ye=0),ye){case le:Xe=Xe.replace(y,":"+R+"$1")+Xe;break;case ce:Xe=Xe.replace(m,"::"+M+"input-$1")+Xe.replace(m,"::"+R+"$1")+Xe.replace(m,":"+T+"input-$1")+Xe}ye=0}}return Ke+Xe+Je}function He(e,t,r){var n=t.trim().split(u),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:s=0;var l=0;for(a=[];s<o;++s)for(var d=0;d<i;++d)a[l++]=ze(e[d]+" ",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 U:switch(ge+n){case 0:case 1:if(0===e.trim().length)break;default:return a.replace(d,"$1"+e.trim())}break;case X:switch(a.charCodeAt(1)){case 103:if(be>0&&ge>0)return a.replace(f,"$1").replace(d,"$1"+Fe);break;default:return e.trim()+a.replace(d,"$1"+e.trim())}default:if(r*ge>0&&a.indexOf("\f")>0)return a.replace(d,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+a}function De(e,t,r,n){var l,u=0,d=e+";",f=2*t+3*r+4*n;if(944===f)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)*Ne){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 l=o[i],u=l.split(c);l=u[r];){var d=l.charCodeAt(0);if(1===Ne&&(d>G&&d<90||d>96&&d<123||d===q||d===W&&l.charCodeAt(1)!==W))switch(isNaN(parseFloat(l))+(-1!==l.indexOf("("))){case 1:switch(l){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:l+=$e}}u[r++]=l}a+=(0===i?"":",")+u.join(" ")}}return a=n+a+";",1===ve||2===ve&&Ge(a,1)?M+a+a:a}(d);if(0===ve||2===ve&&!Ge(d,1))return d;switch(f){case 1015:return 97===d.charCodeAt(10)?M+d+d:d;case 951:return 116===d.charCodeAt(3)?M+d+d:d;case 963:return 110===d.charCodeAt(5)?M+d+d:d;case 1009:if(100!==d.charCodeAt(4))break;case 969:case 942:return M+d+d;case 978:return M+d+R+d+d;case 1019:case 983:return M+d+R+d+T+d+d;case 883:return d.charCodeAt(8)===W?M+d+d:d.indexOf("image-set(",11)>0?d.replace(j,"$1"+M+"$2")+d:d;case 932:if(d.charCodeAt(4)===W)switch(d.charCodeAt(5)){case 103:return M+"box-"+d.replace("-grow","")+M+d+T+d.replace("grow","positive")+d;case 115:return M+d+T+d.replace("shrink","negative")+d;case 98:return M+d+T+d.replace("basis","preferred-size")+d}return M+d+T+d+d;case 964:return M+d+T+"flex-"+d+d;case 1023:if(99!==d.charCodeAt(8))break;return l=d.substring(d.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),M+"box-pack"+l+M+d+T+"flex-pack"+l+d;case 1005:return o.test(d)?d.replace(a,":"+M)+d.replace(a,":"+R)+d:d;case 1e3:switch(u=(l=d.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(u)){case 226:l=d.replace(S,"tb");break;case 232:l=d.replace(S,"tb-rl");break;case 220:l=d.replace(S,"lr");break;default:return d}return M+d+T+l+d;case 1017:if(-1===d.indexOf("sticky",9))return d;case 975:switch(u=(d=e).length-10,f=(l=(33===d.charCodeAt(u)?d.substring(0,u):d).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:d=d.replace(l,M+l)+";"+d;break;case 207:case 102:d=d.replace(l,M+(f>102?"inline-":"")+"box")+";"+d.replace(l,M+l)+";"+d.replace(l,T+l+"box")+";"+d}return d+";";case 938:if(d.charCodeAt(5)===W)switch(d.charCodeAt(6)){case 105:return l=d.replace("-items",""),M+d+M+"box-"+l+T+"flex-"+l+d;case 115:return M+d+T+"flex-item-"+d.replace(A,"")+d;default:return M+d+T+"flex-line-pack"+d.replace("align-content","").replace(A,"")+d}break;case 973:case 989:if(d.charCodeAt(3)!==W||122===d.charCodeAt(4))break;case 931:case 953:if(!0===O.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?De(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):d.replace(l,M+l)+d.replace(l,R+l.replace("fill-",""))+d;break;case 962:if(d=M+d+(102===d.charCodeAt(5)?T+d:"")+d,r+n===211&&105===d.charCodeAt(13)&&d.indexOf("transform",10)>0)return d.substring(0,d.indexOf(";",27)+1).replace(i,"$1"+M+"$2")+d}return d}function Ge(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 Ie(2!==t?n:n.replace(I,"$1"),a,t)}function Be(e,t){var r=De(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(x," or ($1)").substring(4):"("+t+")"}function Ue(e,t,r,n,a,o,i,s,c,l){for(var u,d=0,f=t;d<Ae;++d)switch(u=xe[d].call(Ve,e,f,r,n,a,o,i,s,c,l)){case void 0:case!1:case!0:case null:break;default:f=u}if(f!==t)return f}function We(e,t,r,n){for(var a=t+1;a<r;++a)switch(n.charCodeAt(a)){case Z:if(e===V&&n.charCodeAt(a-1)===V&&t+2!==a)return a+1;break;case H:if(e===Z)return a+1}return a}function qe(e){for(var t in e){var r=e[t];switch(t){case"keyframe":Ne=0|r;break;case"global":be=0|r;break;case"cascade":ge=0|r;break;case"compress":Ce=0|r;break;case"semicolon":we=0|r;break;case"preserve":Se=0|r;break;case"prefix":Ie=null,r?"function"!=typeof r?ve=1:(ve=2,Ie=r):ve=0}}return qe}function Ve(t,r){if(void 0!==this&&this.constructor===Ve)return e(t);var a=t,o=a.charCodeAt(0);o<33&&(o=(a=a.trim()).charCodeAt(0)),Ne>0&&($e=a.replace(p,o===F?"":"-")),o=1,1===ge?Fe=a:_e=a;var i,s=[Fe];Ae>0&&void 0!==(i=Ue(je,r,s,s,me,he,0,0,0,0))&&"string"==typeof i&&(r=i);var c=Le(ke,s,r,0,0);return Ae>0&&void 0!==(i=Ue(Oe,c,s,s,me,he,c.length,0,0,0))&&"string"!=typeof(c=i)&&(o=0),$e="",Fe="",_e="",ye=0,me=1,he=1,Ce*o==0?c:c.replace(n,"").replace(g,"").replace(v,"$1").replace(b,"$1").replace(C," ")}return Ve.use=function e(t){switch(t){case void 0:case null:Ae=xe.length=0;break;default:if("function"==typeof t)xe[Ae++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else Pe=0|!!t}return e},Ve.set=qe,void 0!==t&&qe(t),Ve}(null)}),T=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,l,u,d){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===l)return n+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(a[0]+n),"";default:return n+(0===d?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}}),E=/^\s*\/\/.*$/gm,P=new R({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),N=new R({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),$=[],_=function(e){if(-2===e){var t=$;return $=[],t}},F=T(function(e){$.push(e)}),L=void 0,H=void 0,z=void 0,D=function(e,t,r){return t>0&&-1!==r.slice(0,t).indexOf(H)&&r.slice(t-H.length,t)!==H?"."+L:e};N.use([function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(H)>0&&(r[0]=r[0].replace(z,D))},F,_]),P.use([F,_]);function G(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",a=e.join("").replace(E,""),o=t&&r?r+" "+t+" { "+a+" }":a;return L=n,H=t,z=new RegExp("\\"+H+"\\b","g"),N(r||!t?"":t,o)}var B=function(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},U=function(e,t,r){r&&((e[t]||(e[t]=Object.create(null)))[r]=!0)},W=function(e,t){e[t]=Object.create(null)},q=function(e){return function(t,r){return void 0!==e[t]&&e[t][r]}},V=function(e){var t="";for(var r in e)t+=Object.keys(e[r]).join(" ")+" ";return t.trim()},Y=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 O(10)},X=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},J=function(e){return"\n/* sc-component-id: "+e+" */\n"},K=function(e,t){for(var r=0,n=0;n<=t;n+=1)r+=e[n];return r},Z=function(e,t){return function(r){var n=B();return"<style "+[n&&'nonce="'+n+'"',k+'="'+V(t)+'"','data-styled-version="4.2.1"',r].filter(Boolean).join(" ")+">"+e()+"</style>"}},Q=function(e,r){return function(){var n,a=((n={})[k]=V(r),n["data-styled-version"]="4.2.1",n),o=B();return o&&(a.nonce=o),t.createElement("style",s({},a,{dangerouslySetInnerHTML:{__html:e()}}))}},ee=function(e){return function(){return Object.keys(e)}},te=function(e){return document.createTextNode(J(e))},re=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+=J(t)+r)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var r in e)t[r]=s({},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:ee(a),hasNameForId:q(n),insertMarker:o,insertRules:function(e,t,r){o(e)[0]+=t.join(" "),U(n,e,r)},removeRules:function(e){var t=a[e];void 0!==t&&(t[0]="",W(n,e))},sealed:!1,styleTag:null,toElement:Q(i,n),toHTML:Z(i,n)}},ne=function(e,t,r,n,a){if(x&&!r){var o=function(e,t,r){var n=document.createElement("style");n.setAttribute(k,""),n.setAttribute("data-styled-version","4.2.1");var a=B();if(a&&n.setAttribute("nonce",a),n.appendChild(document.createTextNode("")),e&&!t)e.appendChild(n);else{if(!t||!e||!t.parentNode)throw new O(6);t.parentNode.insertBefore(n,r?t:t.nextSibling)}return n}(e,t,n);return A?function(e,t){var r=Object.create(null),n=Object.create(null),a=void 0!==t,o=!1,i=function(t){var a=n[t];return void 0!==a?a:(n[t]=te(t),e.appendChild(n[t]),r[t]=Object.create(null),n[t])},s=function(){var e="";for(var t in n)e+=n[t].data;return e};return{clone:function(){throw new O(5)},css:s,getIds:ee(n),hasNameForId:q(r),insertMarker:i,insertRules:function(e,n,s){for(var c=i(e),l=[],u=n.length,d=0;d<u;d+=1){var f=n[d],p=a;if(p&&-1!==f.indexOf("@import"))l.push(f);else{p=!1;var h=d===u-1?"":" ";c.appendData(""+f+h)}}U(r,e,s),a&&l.length>0&&(o=!0,t().insertRules(e+"-import",l))},removeRules:function(i){var s=n[i];if(void 0!==s){var c=te(i);e.replaceChild(c,s),n[i]=c,W(r,i),a&&o&&t().removeRules(i+"-import")}},sealed:!1,styleTag:e,toElement:Q(s,r),toHTML:Z(s,r)}}(o,a):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),W(r,e),n[e])},c=function(){var t=Y(e).cssRules,r="";for(var o in n){r+=J(o);for(var i=n[o],s=K(a,i),c=s-a[i];c<s;c+=1){var l=t[c];void 0!==l&&(r+=l.cssText)}}return r};return{clone:function(){throw new O(5)},css:c,getIds:ee(n),hasNameForId:q(r),insertMarker:s,insertRules:function(n,c,l){for(var u=s(n),d=Y(e),f=K(a,u),p=0,h=[],m=c.length,y=0;y<m;y+=1){var g=c[y],v=o;v&&-1!==g.indexOf("@import")?h.push(g):X(d,g,f+p)&&(v=!1,p+=1)}o&&h.length>0&&(i=!0,t().insertRules(n+"-import",h)),a[u]+=p,U(r,n,l)},removeRules:function(s){var c=n[s];if(void 0!==c){var l=a[c];!function(e,t,r){for(var n=t-r,a=t;a>n;a-=1)e.deleteRule(a)}(Y(e),K(a,c)-1,l),a[c]=0,W(r,s),o&&i&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:Q(c,r),toHTML:Z(c,r)}}(o,a)}return re()},ae=/\s+/,oe=void 0;oe=x?A?40:1e3:-1;var ie=0,se=void 0,ce=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:x?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o(this,t),this.getImportRuleTag=function(){var t=e.importRuleTag;if(void 0!==t)return t;var r=e.tags[0];return e.importRuleTag=ne(e.target,r?r.styleTag:null,e.forceServer,!0)},ie+=1,this.id=ie,this.forceServer=n,this.target=n?null:r,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return t.prototype.rehydrate=function(){if(!x||this.forceServer)return this;var e=[],t=[],r=!1,n=document.querySelectorAll("style["+k+'][data-styled-version="4.2.1"]'),a=n.length;if(!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,c=(i.getAttribute(k)||"").trim().split(ae),l=c.length,u=0;u<l;u+=1)s=c[u],this.rehydratedNames[s]=!0;t.push.apply(t,M(i.textContent)),e.push(i)}var d=t.length;if(!d)return this;var f=this.makeTag(null);!function(e,t,r){for(var n=0,a=r.length;n<a;n+=1){var o=r[n],i=o.componentId,s=o.cssFromDOM,c=P("",s);e.insertRules(i,c)}for(var l=0,u=t.length;l<u;l+=1){var d=t[l];d.parentNode&&d.parentNode.removeChild(d)}}(f,e,t),this.capacity=Math.max(1,oe-d),this.tags.push(f);for(var p=0;p<d;p+=1)this.tagMap[t[p].componentId]=f;return this},t.reset=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];se=new t(void 0,e).rehydrate()},t.prototype.clone=function(){var e=new t(this.target,this.forceServer);return this.clones.push(e),e.tags=this.tags.map(function(t){for(var r=t.getIds(),n=t.clone(),a=0;a<r.length;a+=1)e.tagMap[r[a]]=n;return n}),e.rehydratedNames=s({},this.rehydratedNames),e.deferred=s({},this.deferred),e},t.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach(function(e){e.sealed=!0})},t.prototype.makeTag=function(e){var t=e?e.styleTag:null;return ne(this.target,t,this.forceServer,!1,this.getImportRuleTag)},t.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var r=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=oe,r=this.makeTag(r),this.tags.push(r)),this.tagMap[e]=r},t.prototype.hasId=function(e){return void 0!==this.tagMap[e]},t.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)},t.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}},t.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)},t.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}},t.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},t.prototype.toReactElements=function(){var t=this.id;return this.tags.map(function(r,n){var a="sc-"+t+"-"+n;return e.cloneElement(r.toElement(),{key:a})})},i(t,null,[{key:"master",get:function(){return se||(se=(new t).rehydrate())}},{key:"instance",get:function(){return t.master}}]),t}(),le=function(){function e(t,r){var n=this;o(this,e),this.inject=function(e){e.hasNameForId(n.id,n.name)||e.inject(n.id,n.rules,n.name)},this.toString=function(){throw new O(12,String(n.name))},this.name=t,this.rules=r,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),ue=/([A-Z])/g,de=/^ms-/;function fe(e){return e.replace(ue,"-$1").toLowerCase().replace(de,"-ms-")}var pe={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,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var he=function(e){return null==e||!1===e||""===e},me=function e(t,r){var n=[];return Object.keys(t).forEach(function(r){if(!he(t[r])){if(d(t[r]))return n.push.apply(n,e(t[r],r)),n;if(h(t[r]))return n.push(fe(r)+":",t[r],";"),n;n.push(fe(r)+": "+(a=r,null==(o=t[r])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||a in pe?String(o).trim():o+"px")+";")}var a,o;return n}),r?[r+" {"].concat(n,["}"]):n};function ye(e,t,n){if(Array.isArray(e)){for(var a,o=[],i=0,s=e.length;i<s;i+=1)null!==(a=ye(e[i],t,n))&&(Array.isArray(a)?o.push.apply(o,a):o.push(a));return o}return he(e)?null:r(e)?"."+e.styledComponentId:h(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ye(e(t),t,n):e instanceof le?n?(e.inject(n),e.getName()):e:d(e)?me(e):e.toString();var c}function ge(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return h(e)||d(e)?ye(n(f,[e].concat(r))):ye(n(e,r))}function ve(e,t){for(var n=0;n<e.length;n+=1){var a=e[n];if(Array.isArray(a)&&!ve(a,t))return!1;if(h(a)&&!r(a))return!1}return!t.some(function(e){return h(e)||function(e){for(var t in e)if(h(e[t]))return!0;return!1}(e)})}var be=function(){function e(t,r){o(this,e),this.rules=t,this.componentId=r,this.isStatic=ve(t,f),ce.master.hasId(r)||ce.master.deferredInject(r,[])}return e.prototype.createStyles=function(e,t){var r=G(ye(this.rules,e,t),"");t.inject(this.componentId,r)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}(),Ce=function(e,t){return e.length===t.length&&e.every(function(e,r){return n=e,a=t[r],n===a;var n,a})};function we(e,t){var r;void 0===t&&(t=Ce);var n,a=[],o=!1;return function(){for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return o&&r===this&&t(s,a)?n:(n=e.apply(this,s),o=!0,r=this,a=s,n)}}var Se=function(){function e(){o(this,e),this.masterSheet=ce.master,this.instance=this.masterSheet.clone(),this.sealed=!1}return e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new O(2);return t.createElement(Ae,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new O(3)},e}(),ke=e.createContext(),xe=ke.Consumer,Ae=function(e){function r(t){o(this,r);var n=u(this,e.call(this,t));return n.getContext=we(n.getContext),n}return c(r,e),r.prototype.getContext=function(e,t){if(e)return e;if(t)return new ce(t);throw new O(4)},r.prototype.render=function(){var e=this.props,r=e.children,n=e.sheet,a=e.target;return t.createElement(ke.Provider,{value:this.getContext(n,a)},r)},r}(e.Component),Ie=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p,n=!!r&&e.theme===r.theme;return e.theme&&!n?e.theme:t||r.theme},Oe=e.createContext(),je=Oe.Consumer,Me=function(e){function r(t){o(this,r);var n=u(this,e.call(this,t));return n.getContext=we(n.getContext.bind(n)),n.renderInner=n.renderInner.bind(n),n}return c(r,e),r.prototype.render=function(){return this.props.children?t.createElement(Oe.Consumer,null,this.renderInner):null},r.prototype.renderInner=function(e){var r=this.getContext(this.props.theme,e);return t.createElement(Oe.Provider,{value:r},t.Children.only(this.props.children))},r.prototype.getTheme=function(e,t){if(h(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":a(e)))throw new O(8);return s({},t,e)},r.prototype.getContext=function(e,t){return this.getTheme(e,t)},r}(e.Component);function Re(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>>>15)>>>0}x&&(window.scCGSHMRCache={});var Te=52,Ee=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pe(e){var t="",r=void 0;for(r=e;r>Te;r=Math.floor(r/Te))t=Ee(r%Te)+t;return Ee(r%Te)+t}var Ne,$e=function(e){return e.replace(/\s|\\n/g,"")};var _e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Fe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Le=((Ne={})[w]={$$typeof:!0,render:!0},Ne),He=Object.defineProperty,ze=Object.getOwnPropertyNames,De=Object.getOwnPropertySymbols,Ge=void 0===De?function(){return[]}:De,Be=Object.getOwnPropertyDescriptor,Ue=Object.getPrototypeOf,We=Object.prototype,qe=Array.prototype;function Ve(e,t,r){if("string"!=typeof t){var n=Ue(t);n&&n!==We&&Ve(e,n,r);for(var a=qe.concat(ze(t),Ge(t)),o=Le[e.$$typeof]||_e,i=Le[t.$$typeof]||_e,s=a.length,c=void 0,l=void 0;s--;)if(l=a[s],!(Fe[l]||r&&r[l]||i&&i[l]||o&&o[l])&&(c=Be(t,l)))try{He(e,l,c)}catch(e){}return e}return e}var Ye={StyleSheet:ce},Xe=Object.freeze({createGlobalStyle:function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=ge.apply(void 0,[e].concat(n)),l="sc-global-"+Re(JSON.stringify(i)),d=new be(i,l),f=function(e){function r(t){o(this,r);var n=u(this,e.call(this,t)),a=n.constructor,i=a.globalStyle,s=a.styledComponentId;return x&&(window.scCGSHMRCache[s]=(window.scCGSHMRCache[s]||0)+1),n.state={globalStyle:i,styledComponentId:s},n}return c(r,e),r.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},r.prototype.render=function(){var e=this;return t.createElement(xe,null,function(r){e.styleSheet=r||ce.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(I,e.styleSheet),null):t.createElement(je,null,function(t){var r=e.constructor.defaultProps,a=s({},e.props);return void 0!==t&&(a.theme=Ie(e.props,t,r)),n.renderStyles(a,e.styleSheet),null})})},r}(t.Component);return f.globalStyle=d,f.styledComponentId=l,f},css:ge,isStyledComponent:r,keyframes:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=ge.apply(void 0,[e].concat(r)),o=Pe(Re($e(JSON.stringify(a))));return new le(o,G(a,o,"@keyframes"))},ServerStyleSheet:Se,StyleSheetConsumer:xe,StyleSheetContext:ke,StyleSheetManager:Ae,ThemeConsumer:je,ThemeContext:Oe,ThemeProvider:Me,withTheme:function(e){var r=t.forwardRef(function(r,n){return t.createElement(je,null,function(a){var o=e.defaultProps,i=Ie(r,a,o);return t.createElement(e,s({},r,{theme:i,ref:n}))})});return Ve(r,e),r.displayName="WithTheme("+S(e)+")",r},__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS:Ye});var Je,Ke,Ze=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|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|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qe=(Je=function(e){return Ze.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91},Ke={},function(e){return void 0===Ke[e]&&(Ke[e]=Je(e)),Ke[e]}),et=function(e){return Pe(Re(e))},tt=function(){function e(t,r,n){o(this,e),this.rules=t,this.isStatic=ve(t,r),this.componentId=n,ce.master.hasId(n)||ce.master.deferredInject(n,[])}return e.prototype.generateAndInjectStyles=function(e,t){var r=this.isStatic,n=this.componentId,a=this.lastClassName;if(x&&r&&"string"==typeof a&&t.hasNameForId(n,a))return a;var o=ye(this.rules,e,t),i=et(this.componentId+o.join(""));return t.hasNameForId(n,i)||t.inject(this.componentId,G(o,"."+i,void 0,n),i),this.lastClassName=i,i},e.generateName=function(e){return et(e)},e}(),rt=/[[\].#*$><+~=|^:(),"'`-]+/g,nt=/(^-|-$)/g;function at(e){return e.replace(rt,"-").replace(nt,"")}function ot(e){return"string"==typeof e&&!0}var it={};var st=function(n){function a(){o(this,a);var e=u(this,n.call(this));return e.attrs={},e.renderOuter=e.renderOuter.bind(e),e.renderInner=e.renderInner.bind(e),e}return c(a,n),a.prototype.render=function(){return t.createElement(xe,null,this.renderOuter)},a.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():t.createElement(je,null,this.renderInner)},a.prototype.renderInner=function(t){var r=this.props.forwardedComponent,n=r.componentStyle,a=r.defaultProps,o=(r.displayName,r.foldedComponentIds),i=r.styledComponentId,c=r.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(p,this.props):void 0!==t?this.generateAndInjectStyles(Ie(this.props,t,a),this.props):this.generateAndInjectStyles(this.props.theme||p,this.props);var u=this.props.as||this.attrs.as||c,d=ot(u),f={},h=s({},this.attrs,this.props),m=void 0;for(m in h)"forwardedComponent"!==m&&"as"!==m&&("forwardedRef"===m?f.ref=h[m]:d&&!Qe(m)||(f[m]=h[m]));return this.props.style&&this.attrs.style&&(f.style=s({},this.attrs.style,this.props.style)),f.className=Array.prototype.concat(o,this.props.className,i,this.attrs.className,l).filter(Boolean).join(" "),e.createElement(u,f)},a.prototype.buildExecutionContext=function(e,t,n){var a=this,o=s({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var t,n=e,i=!1,s=void 0,c=void 0;for(c in h(n)&&(n=n(o),i=!0),n)s=n[c],i||!h(s)||(t=s)&&t.prototype&&t.prototype.isReactComponent||r(s)||(s=s(o)),a.attrs[c]=s,o[c]=s}),o):o},a.prototype.generateAndInjectStyles=function(e,t){var r=t.forwardedComponent,n=r.attrs,a=r.componentStyle;r.warnTooManyClasses;return a.isStatic&&!n.length?a.generateAndInjectStyles(p,this.styleSheet):a.generateAndInjectStyles(this.buildExecutionContext(e,t,n),this.styleSheet)},a}(e.Component);function ct(e,n,a){var o=r(e),i=!ot(e),c=n.displayName,u=void 0===c?function(e){return ot(e)?"styled."+e:"Styled("+S(e)+")"}(e):c,d=n.componentId,p=void 0===d?function(e,t,r){var n="string"!=typeof t?"sc":at(t),a=(it[n]||0)+1;it[n]=a;var o=n+"-"+e.generateName(n+a);return r?r+"-"+o:o}(tt,n.displayName,n.parentComponentId):d,h=n.ParentComponent,m=void 0===h?st:h,y=n.attrs,g=void 0===y?f:y,v=n.displayName&&n.componentId?at(n.displayName)+"-"+n.componentId:n.componentId||p,b=o&&e.attrs?Array.prototype.concat(e.attrs,g).filter(Boolean):g,C=new tt(o?e.componentStyle.rules.concat(a):a,b,v),w=void 0,k=function(e,r){return t.createElement(m,s({},e,{forwardedComponent:w,forwardedRef:r}))};return k.displayName=u,(w=t.forwardRef(k)).displayName=u,w.attrs=b,w.componentStyle=C,w.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):f,w.styledComponentId=v,w.target=o?e.target:e,w.withComponent=function(e){var t=n.componentId,r=l(n,["componentId"]),o=t&&t+"-"+(ot(e)?e:at(S(e)));return ct(e,s({},r,{attrs:b,componentId:o,ParentComponent:m}),a)},w.toString=function(){return"."+w.styledComponentId},i&&Ve(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),w}var lt=function(e){return function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;if(!C(r))throw new O(1,String(r));var a=function(){return t(r,n,ge.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,r,s({},n,a))},a.attrs=function(a){return e(t,r,s({},n,{attrs:Array.prototype.concat(n.attrs,a).filter(Boolean)}))},a}(ct,e)};for(var ut in["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){lt[e]=lt(e)}),Xe)lt[ut]=Xe[ut];return lt});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):e.styled=t(e.React)}(this,function(e){"use strict";var t="default"in e?e.default:e;function r(e){return e&&"string"==typeof e.styledComponentId}var n=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},a="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},o=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},i=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}}(),s=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},c=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)},l=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},u=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},f=function(e){return"object"===(void 0===e?"undefined":a(e))&&e.constructor===Object},d=Object.freeze([]),p=Object.freeze({});function h(e){return"function"==typeof e}function m(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 g=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,l=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.memo"):60115,m=r?Symbol.for("react.lazy"):60116;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case u:case f:case o:case s:case i:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case c:return e;default:return t}}case m:case h:case a:return t}}}function g(e){return y(e)===f}t.typeOf=y,t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=l,t.ContextProvider=c,t.Element=n,t.ForwardRef=d,t.Fragment=o,t.Lazy=m,t.Memo=h,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=p,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===f||e===s||e===i||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===c||e.$$typeof===l||e.$$typeof===d)},t.isAsyncMode=function(e){return g(e)||y(e)===u},t.isConcurrentMode=g,t.isContextConsumer=function(e){return y(e)===l},t.isContextProvider=function(e){return y(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===o},t.isLazy=function(e){return y(e)===m},t.isMemo=function(e){return y(e)===h},t.isPortal=function(e){return y(e)===a},t.isProfiler=function(e){return y(e)===s},t.isStrictMode=function(e){return y(e)===i},t.isSuspense=function(e){return y(e)===p}});m(g);g.typeOf,g.AsyncMode,g.ConcurrentMode,g.ContextConsumer,g.ContextProvider,g.Element,g.ForwardRef,g.Fragment,g.Lazy,g.Memo,g.Portal,g.Profiler,g.StrictMode,g.Suspense,g.isValidElementType,g.isAsyncMode,g.isConcurrentMode,g.isContextConsumer,g.isContextProvider,g.isElement,g.isForwardRef,g.isFragment,g.isLazy,g.isMemo,g.isPortal,g.isProfiler,g.isStrictMode,g.isSuspense;var v=y(function(e,t){});m(v);v.typeOf,v.AsyncMode,v.ConcurrentMode,v.ContextConsumer,v.ContextProvider,v.Element,v.ForwardRef,v.Fragment,v.Lazy,v.Memo,v.Portal,v.Profiler,v.StrictMode,v.Suspense,v.isValidElementType,v.isAsyncMode,v.isConcurrentMode,v.isContextConsumer,v.isContextProvider,v.isElement,v.isForwardRef,v.isFragment,v.isLazy,v.isMemo,v.isPortal,v.isProfiler,v.isStrictMode,v.isSuspense;var b=y(function(e){e.exports=g}),C=(b.isElement,b.isValidElementType),S=b.ForwardRef;function w(e){return e.displayName||e.name||"Component"}var k="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",A="undefined"!=typeof window&&"HTMLElement"in window,x="boolean"==typeof SC_DISABLE_SPEEDY&&SC_DISABLE_SPEEDY||"undefined"!=typeof process&&(process.env.REACT_APP_SC_DISABLE_SPEEDY||process.env.SC_DISABLE_SPEEDY)||!1,O={},I=function(e){function t(r){o(this,t);for(var n=arguments.length,a=Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];var s=u(this,e.call(this,"An error occurred. See https://github.com/styled-components/styled-components/blob/master/packages/styled-components/src/utils/errors.md#"+r+" for more information."+(a.length>0?" Additional arguments: "+a.join(", "):"")));return u(s)}return c(t,e),t}(Error),j=/^[^\S\n]*?\/\* sc-component-id:\s*(\S+)\s+\*\//gm,R=function(e){var t=""+(e||""),r=[];return t.replace(j,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)}})},E=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,l=/ *[\0] */g,u=/,\r+?/g,f=/([\t\r\n ])*\f?&/g,d=/:global\(((?:[^\(\)\[\]]*|\[.*\]|\([^\(\)]*\))*)\)/g,p=/\W+/g,h=/@(k\w+)\s*(\S*)\s*/,m=/::(place)/g,y=/:(read-only)/g,g=/\s+(?=[{\];=:>])/g,v=/([[}=:>])\s+/g,b=/(\{[^{]+?);(?=\})/g,C=/\s{2,}/g,S=/([^\(])(:+) */g,w=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,A=/([\s\S]*?);/g,x=/-self|flex-/g,O=/[^]*?(:[rp][el]a[\w-]+)[^]*/,I=/stretch|:\s*\w+\-(?:conte|avail)/,j=/([^-])(image-set\()/,R="-webkit-",E="-moz-",T="-ms-",M=59,P=125,N=123,_=40,$=41,F=91,L=93,D=10,H=13,z=9,G=64,B=32,U=38,W=45,q=95,Y=42,V=44,X=58,J=39,K=34,Z=47,Q=62,ee=43,te=126,re=0,ne=12,ae=11,oe=107,ie=109,se=115,ce=112,le=111,ue=105,fe=99,de=100,pe=112,he=1,me=1,ye=0,ge=1,ve=1,be=1,Ce=0,Se=0,we=0,ke=[],Ae=[],xe=0,Oe=null,Ie=-2,je=-1,Re=0,Ee=1,Te=2,Me=3,Pe=0,Ne=1,_e="",$e="",Fe="";function Le(e,t,a,o,i){for(var s,c,u=0,f=0,d=0,p=0,g=0,v=0,b=0,C=0,w=0,A=0,x=0,O=0,I=0,j=0,q=0,Ce=0,Ae=0,Oe=0,Ie=0,je=a.length,He=je-1,qe="",Ye="",Ve="",Xe="",Je="",Ke="";q<je;){if(b=a.charCodeAt(q),q===He&&f+p+d+u!==0&&(0!==f&&(b=f===Z?D:Z),p=d=u=0,je++,He++),f+p+d+u===0){if(q===He&&(Ce>0&&(Ye=Ye.replace(n,"")),Ye.trim().length>0)){switch(b){case B:case z:case M:case H:case D:break;default:Ye+=a.charAt(q)}b=M}if(1===Ae)switch(b){case N:case P:case M:case K:case J:case _:case $:case V:Ae=0;case z:case H:case D:case B:break;default:for(Ae=0,Ie=q,g=b,q--,b=M;Ie<je;)switch(a.charCodeAt(Ie++)){case D:case H:case M:++q,b=g,Ie=je;break;case X:Ce>0&&(++q,b=g);case N:Ie=je}}switch(b){case N:for(g=(Ye=Ye.trim()).charCodeAt(0),x=1,Ie=++q;q<je;){switch(b=a.charCodeAt(q)){case N:x++;break;case P:x--;break;case Z:switch(v=a.charCodeAt(q+1)){case Y:case Z:q=We(v,q,He,a)}break;case F:b++;case _:b++;case K:case J:for(;q++<He&&a.charCodeAt(q)!==b;);}if(0===x)break;q++}switch(Ve=a.substring(Ie,q),g===re&&(g=(Ye=Ye.replace(r,"").trim()).charCodeAt(0)),g){case G:switch(Ce>0&&(Ye=Ye.replace(n,"")),v=Ye.charCodeAt(1)){case de:case ie:case se:case W:s=t;break;default:s=ke}if(Ie=(Ve=Le(t,s,Ve,v,i+1)).length,we>0&&0===Ie&&(Ie=Ye.length),xe>0&&(s=De(ke,Ye,Oe),c=Ue(Me,Ve,s,t,me,he,Ie,v,i,o),Ye=s.join(""),void 0!==c&&0===(Ie=(Ve=c.trim()).length)&&(v=0,Ve="")),Ie>0)switch(v){case se:Ye=Ye.replace(k,Be);case de:case ie:case W:Ve=Ye+"{"+Ve+"}";break;case oe:Ve=(Ye=Ye.replace(h,"$1 $2"+(Ne>0?_e:"")))+"{"+Ve+"}",Ve=1===ve||2===ve&&Ge("@"+Ve,3)?"@"+R+Ve+"@"+Ve:"@"+Ve;break;default:Ve=Ye+Ve,o===pe&&(Xe+=Ve,Ve="")}else Ve="";break;default:Ve=Le(t,De(t,Ye,Oe),Ve,o,i+1)}Je+=Ve,O=0,Ae=0,j=0,Ce=0,Oe=0,I=0,Ye="",Ve="",b=a.charCodeAt(++q);break;case P:case M:if((Ie=(Ye=(Ce>0?Ye.replace(n,""):Ye).trim()).length)>1)switch(0===j&&((g=Ye.charCodeAt(0))===W||g>96&&g<123)&&(Ie=(Ye=Ye.replace(" ",":")).length),xe>0&&void 0!==(c=Ue(Ee,Ye,t,e,me,he,Xe.length,o,i,o))&&0===(Ie=(Ye=c.trim()).length)&&(Ye="\0\0"),g=Ye.charCodeAt(0),v=Ye.charCodeAt(1),g){case re:break;case G:if(v===ue||v===fe){Ke+=Ye+a.charAt(q);break}default:if(Ye.charCodeAt(Ie-1)===X)break;Xe+=ze(Ye,g,v,Ye.charCodeAt(2))}O=0,Ae=0,j=0,Ce=0,Oe=0,Ye="",b=a.charCodeAt(++q)}}switch(b){case H:case D:if(f+p+d+u+Se===0)switch(A){case $:case J:case K:case G:case te:case Q:case Y:case ee:case Z:case W:case X:case V:case M:case N:case P:break;default:j>0&&(Ae=1)}f===Z?f=0:ge+O===0&&o!==oe&&Ye.length>0&&(Ce=1,Ye+="\0"),xe*Pe>0&&Ue(Re,Ye,t,e,me,he,Xe.length,o,i,o),he=1,me++;break;case M:case P:if(f+p+d+u===0){he++;break}default:switch(he++,qe=a.charAt(q),b){case z:case B:if(p+u+f===0)switch(C){case V:case X:case z:case B:qe="";break;default:b!==B&&(qe=" ")}break;case re:qe="\\0";break;case ne:qe="\\f";break;case ae:qe="\\v";break;case U:p+f+u===0&&ge>0&&(Oe=1,Ce=1,qe="\f"+qe);break;case 108:if(p+f+u+ye===0&&j>0)switch(q-j){case 2:C===ce&&a.charCodeAt(q-3)===X&&(ye=C);case 8:w===le&&(ye=w)}break;case X:p+f+u===0&&(j=q);break;case V:f+d+p+u===0&&(Ce=1,qe+="\r");break;case K:case J:0===f&&(p=p===b?0:0===p?b:p);break;case F:p+f+d===0&&u++;break;case L:p+f+d===0&&u--;break;case $:p+f+u===0&&d--;break;case _:if(p+f+u===0){if(0===O)switch(2*C+3*w){case 533:break;default:x=0,O=1}d++}break;case G:f+d+p+u+j+I===0&&(I=1);break;case Y:case Z:if(p+u+d>0)break;switch(f){case 0:switch(2*b+3*a.charCodeAt(q+1)){case 235:f=Z;break;case 220:Ie=q,f=Y}break;case Y:b===Z&&C===Y&&Ie+2!==q&&(33===a.charCodeAt(Ie+2)&&(Xe+=a.substring(Ie,q+1)),qe="",f=0)}}if(0===f){if(ge+p+u+I===0&&o!==oe&&b!==M)switch(b){case V:case te:case Q:case ee:case $:case _:if(0===O){switch(C){case z:case B:case D:case H:qe+="\0";break;default:qe="\0"+qe+(b===V?"":"\0")}Ce=1}else switch(b){case _:j+7===q&&108===C&&(j=0),O=++x;break;case $:0==(O=--x)&&(Ce=1,qe+="\0")}break;case z:case B:switch(C){case re:case N:case P:case M:case V:case ne:case z:case B:case D:case H:break;default:0===O&&(Ce=1,qe+="\0")}}Ye+=qe,b!==B&&b!==z&&(A=b)}}w=C,C=b,q++}if(Ie=Xe.length,we>0&&0===Ie&&0===Je.length&&0===t[0].length==0&&(o!==ie||1===t.length&&(ge>0?$e:Fe)===t[0])&&(Ie=t.join(",").length+2),Ie>0){if(s=0===ge&&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(l),c="",u=0,f=0,d=0,p=0,h=s.length;u<h;++u)if(!(0===(f=(r=s[u]).length)&&h>1)){if(d=c.charCodeAt(c.length-1),p=r.charCodeAt(0),t="",0!==u)switch(d){case Y:case te:case Q:case ee:case B:case _:break;default:t=" "}switch(p){case U:r=t+$e;case te:case Q:case ee:case B:case $:case _:break;case F:r=t+r+$e;break;case X:switch(2*r.charCodeAt(1)+3*r.charCodeAt(2)){case 530:if(be>0){r=t+r.substring(8,f-1);break}default:(u<1||s[u-1].length<1)&&(r=t+$e+r)}break;case V:t="";default:r=f>1&&r.indexOf(":")>0?t+r.replace(S,"$1"+$e+"$2"):t+r+$e}c+=r}i[a]=c.replace(n,"").trim()}return i}(t):t,xe>0&&void 0!==(c=Ue(Te,Xe,s,e,me,he,Ie,o,i,o))&&0===(Xe=c).length)return Ke+Xe+Je;if(Xe=s.join(",")+"{"+Xe+"}",ve*ye!=0){switch(2!==ve||Ge(Xe,2)||(ye=0),ye){case le:Xe=Xe.replace(y,":"+E+"$1")+Xe;break;case ce:Xe=Xe.replace(m,"::"+R+"input-$1")+Xe.replace(m,"::"+E+"$1")+Xe.replace(m,":"+T+"input-$1")+Xe}ye=0}}return Ke+Xe+Je}function De(e,t,r){var n=t.trim().split(u),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]=He(c,a[s],r,i).trim();break;default:s=0;var l=0;for(a=[];s<o;++s)for(var f=0;f<i;++f)a[l++]=He(e[f]+" ",n[s],r,i).trim()}return a}function He(e,t,r,n){var a=t,o=a.charCodeAt(0);switch(o<33&&(o=(a=a.trim()).charCodeAt(0)),o){case U:switch(ge+n){case 0:case 1:if(0===e.trim().length)break;default:return a.replace(f,"$1"+e.trim())}break;case X:switch(a.charCodeAt(1)){case 103:if(be>0&&ge>0)return a.replace(d,"$1").replace(f,"$1"+Fe);break;default:return e.trim()+a.replace(f,"$1"+e.trim())}default:if(r*ge>0&&a.indexOf("\f")>0)return a.replace(f,(e.charCodeAt(0)===X?"":"$1")+e.trim())}return e+a}function ze(e,t,r,n){var l,u=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)*Ne){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 l=o[i],u=l.split(c);l=u[r];){var f=l.charCodeAt(0);if(1===Ne&&(f>G&&f<90||f>96&&f<123||f===q||f===W&&l.charCodeAt(1)!==W))switch(isNaN(parseFloat(l))+(-1!==l.indexOf("("))){case 1:switch(l){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:l+=_e}}u[r++]=l}a+=(0===i?"":",")+u.join(" ")}}return a=n+a+";",1===ve||2===ve&&Ge(a,1)?R+a+a:a}(f);if(0===ve||2===ve&&!Ge(f,1))return f;switch(d){case 1015:return 97===f.charCodeAt(10)?R+f+f:f;case 951:return 116===f.charCodeAt(3)?R+f+f:f;case 963:return 110===f.charCodeAt(5)?R+f+f:f;case 1009:if(100!==f.charCodeAt(4))break;case 969:case 942:return R+f+f;case 978:return R+f+E+f+f;case 1019:case 983:return R+f+E+f+T+f+f;case 883:return f.charCodeAt(8)===W?R+f+f:f.indexOf("image-set(",11)>0?f.replace(j,"$1"+R+"$2")+f:f;case 932:if(f.charCodeAt(4)===W)switch(f.charCodeAt(5)){case 103:return R+"box-"+f.replace("-grow","")+R+f+T+f.replace("grow","positive")+f;case 115:return R+f+T+f.replace("shrink","negative")+f;case 98:return R+f+T+f.replace("basis","preferred-size")+f}return R+f+T+f+f;case 964:return R+f+T+"flex-"+f+f;case 1023:if(99!==f.charCodeAt(8))break;return l=f.substring(f.indexOf(":",15)).replace("flex-","").replace("space-between","justify"),R+"box-pack"+l+R+f+T+"flex-pack"+l+f;case 1005:return o.test(f)?f.replace(a,":"+R)+f.replace(a,":"+E)+f:f;case 1e3:switch(u=(l=f.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(u)){case 226:l=f.replace(w,"tb");break;case 232:l=f.replace(w,"tb-rl");break;case 220:l=f.replace(w,"lr");break;default:return f}return R+f+T+l+f;case 1017:if(-1===f.indexOf("sticky",9))return f;case 975:switch(u=(f=e).length-10,d=(l=(33===f.charCodeAt(u)?f.substring(0,u):f).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(l.charCodeAt(8)<111)break;case 115:f=f.replace(l,R+l)+";"+f;break;case 207:case 102:f=f.replace(l,R+(d>102?"inline-":"")+"box")+";"+f.replace(l,R+l)+";"+f.replace(l,T+l+"box")+";"+f}return f+";";case 938:if(f.charCodeAt(5)===W)switch(f.charCodeAt(6)){case 105:return l=f.replace("-items",""),R+f+R+"box-"+l+T+"flex-"+l+f;case 115:return R+f+T+"flex-item-"+f.replace(x,"")+f;default:return R+f+T+"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===I.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?ze(e.replace("stretch","fill-available"),t,r,n).replace(":fill-available",":stretch"):f.replace(l,R+l)+f.replace(l,E+l.replace("fill-",""))+f;break;case 962:if(f=R+f+(102===f.charCodeAt(5)?T+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"+R+"$2")+f}return f}function Ge(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 Be(e,t){var r=ze(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(A," or ($1)").substring(4):"("+t+")"}function Ue(e,t,r,n,a,o,i,s,c,l){for(var u,f=0,d=t;f<xe;++f)switch(u=Ae[f].call(Ye,e,d,r,n,a,o,i,s,c,l)){case void 0:case!1:case!0:case null:break;default:d=u}if(d!==t)return d}function We(e,t,r,n){for(var a=t+1;a<r;++a)switch(n.charCodeAt(a)){case Z:if(e===Y&&n.charCodeAt(a-1)===Y&&t+2!==a)return a+1;break;case D:if(e===Z)return a+1}return a}function qe(e){for(var t in e){var r=e[t];switch(t){case"keyframe":Ne=0|r;break;case"global":be=0|r;break;case"cascade":ge=0|r;break;case"compress":Ce=0|r;break;case"semicolon":Se=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 Ye(t,r){if(void 0!==this&&this.constructor===Ye)return e(t);var a=t,o=a.charCodeAt(0);o<33&&(o=(a=a.trim()).charCodeAt(0)),Ne>0&&(_e=a.replace(p,o===F?"":"-")),o=1,1===ge?Fe=a:$e=a;var i,s=[Fe];xe>0&&void 0!==(i=Ue(je,r,s,s,me,he,0,0,0,0))&&"string"==typeof i&&(r=i);var c=Le(ke,s,r,0,0);return xe>0&&void 0!==(i=Ue(Ie,c,s,s,me,he,c.length,0,0,0))&&"string"!=typeof(c=i)&&(o=0),_e="",Fe="",$e="",ye=0,me=1,he=1,Ce*o==0?c:c.replace(n,"").replace(g,"").replace(v,"$1").replace(b,"$1").replace(C," ")}return Ye.use=function e(t){switch(t){case void 0:case null:xe=Ae.length=0;break;default:if("function"==typeof t)Ae[xe++]=t;else if("object"==typeof t)for(var r=0,n=t.length;r<n;++r)e(t[r]);else Pe=0|!!t}return e},Ye.set=qe,void 0!==t&&qe(t),Ye}(null)}),T=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,l,u,f){switch(r){case 1:if(0===u&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===l)return n+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(a[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}}),M=/^\s*\/\/.*$/gm,P=new E({global:!1,cascade:!0,keyframe:!1,prefix:!1,compress:!1,semicolon:!0}),N=new E({global:!1,cascade:!0,keyframe:!1,prefix:!0,compress:!1,semicolon:!1}),_=[],$=function(e){if(-2===e){var t=_;return _=[],t}},F=T(function(e){_.push(e)}),L=void 0,D=void 0,H=void 0,z=function(e,t,r){return t>0&&-1!==r.slice(0,t).indexOf(D)&&r.slice(t-D.length,t)!==D?"."+L:e};N.use([function(e,t,r){2===e&&r.length&&r[0].lastIndexOf(D)>0&&(r[0]=r[0].replace(H,z))},F,$]),P.use([F,$]);function G(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"&",a=e.join("").replace(M,""),o=t&&r?r+" "+t+" { "+a+" }":a;return L=n,D=t,H=new RegExp("\\"+D+"\\b","g"),N(r||!t?"":t,o)}var B=function(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null},U=function(e,t,r){r&&((e[t]||(e[t]=Object.create(null)))[r]=!0)},W=function(e,t){e[t]=Object.create(null)},q=function(e){return function(t,r){return void 0!==e[t]&&e[t][r]}},Y=function(e){var t="";for(var r in e)t+=Object.keys(e[r]).join(" ")+" ";return t.trim()},V=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 I(10)},X=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},J=function(e){return"\n/* sc-component-id: "+e+" */\n"},K=function(e,t){for(var r=0,n=0;n<=t;n+=1)r+=e[n];return r},Z=function(e,t){return function(r){var n=B();return"<style "+[n&&'nonce="'+n+'"',k+'="'+Y(t)+'"','data-styled-version="4.3.2"',r].filter(Boolean).join(" ")+">"+e()+"</style>"}},Q=function(e,r){return function(){var n,a=((n={})[k]=Y(r),n["data-styled-version"]="4.3.2",n),o=B();return o&&(a.nonce=o),t.createElement("style",s({},a,{dangerouslySetInnerHTML:{__html:e()}}))}},ee=function(e){return function(){return Object.keys(e)}},te=function(e){return document.createTextNode(J(e))},re=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+=J(t)+r)}return e};return{clone:function(){var t=function(e){var t=Object.create(null);for(var r in e)t[r]=s({},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:ee(a),hasNameForId:q(n),insertMarker:o,insertRules:function(e,t,r){o(e)[0]+=t.join(" "),U(n,e,r)},removeRules:function(e){var t=a[e];void 0!==t&&(t[0]="",W(n,e))},sealed:!1,styleTag:null,toElement:Q(i,n),toHTML:Z(i,n)}},ne=function(e,t,r,n,a){if(A&&!r){var o=function(e,t,r){var n=document.createElement("style");n.setAttribute(k,""),n.setAttribute("data-styled-version","4.3.2");var a=B();if(a&&n.setAttribute("nonce",a),n.appendChild(document.createTextNode("")),e&&!t)e.appendChild(n);else{if(!t||!e||!t.parentNode)throw new I(6);t.parentNode.insertBefore(n,r?t:t.nextSibling)}return n}(e,t,n);return x?function(e,t){var r=Object.create(null),n=Object.create(null),a=void 0!==t,o=!1,i=function(t){var a=n[t];return void 0!==a?a:(n[t]=te(t),e.appendChild(n[t]),r[t]=Object.create(null),n[t])},s=function(){var e="";for(var t in n)e+=n[t].data;return e};return{clone:function(){throw new I(5)},css:s,getIds:ee(n),hasNameForId:q(r),insertMarker:i,insertRules:function(e,n,s){for(var c=i(e),l=[],u=n.length,f=0;f<u;f+=1){var d=n[f],p=a;if(p&&-1!==d.indexOf("@import"))l.push(d);else{p=!1;var h=f===u-1?"":" ";c.appendData(""+d+h)}}U(r,e,s),a&&l.length>0&&(o=!0,t().insertRules(e+"-import",l))},removeRules:function(i){var s=n[i];if(void 0!==s){var c=te(i);e.replaceChild(c,s),n[i]=c,W(r,i),a&&o&&t().removeRules(i+"-import")}},sealed:!1,styleTag:e,toElement:Q(s,r),toHTML:Z(s,r)}}(o,a):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),W(r,e),n[e])},c=function(){var t=V(e).cssRules,r="";for(var o in n){r+=J(o);for(var i=n[o],s=K(a,i),c=s-a[i];c<s;c+=1){var l=t[c];void 0!==l&&(r+=l.cssText)}}return r};return{clone:function(){throw new I(5)},css:c,getIds:ee(n),hasNameForId:q(r),insertMarker:s,insertRules:function(n,c,l){for(var u=s(n),f=V(e),d=K(a,u),p=0,h=[],m=c.length,y=0;y<m;y+=1){var g=c[y],v=o;v&&-1!==g.indexOf("@import")?h.push(g):X(f,g,d+p)&&(v=!1,p+=1)}o&&h.length>0&&(i=!0,t().insertRules(n+"-import",h)),a[u]+=p,U(r,n,l)},removeRules:function(s){var c=n[s];if(void 0!==c){var l=a[c];!function(e,t,r){for(var n=t-r,a=t;a>n;a-=1)e.deleteRule(a)}(V(e),K(a,c)-1,l),a[c]=0,W(r,s),o&&i&&t().removeRules(s+"-import")}},sealed:!1,styleTag:e,toElement:Q(c,r),toHTML:Z(c,r)}}(o,a)}return re()},ae=/\s+/,oe=void 0;oe=A?x?40:1e3:-1;var ie=0,se=void 0,ce=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A?document.head:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o(this,t),this.getImportRuleTag=function(){var t=e.importRuleTag;if(void 0!==t)return t;var r=e.tags[0];return e.importRuleTag=ne(e.target,r?r.styleTag:null,e.forceServer,!0)},ie+=1,this.id=ie,this.forceServer=n,this.target=n?null:r,this.tagMap={},this.deferred={},this.rehydratedNames={},this.ignoreRehydratedNames={},this.tags=[],this.capacity=1,this.clones=[]}return t.prototype.rehydrate=function(){if(!A||this.forceServer)return this;var e=[],t=[],r=!1,n=document.querySelectorAll("style["+k+'][data-styled-version="4.3.2"]'),a=n.length;if(!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,c=(i.getAttribute(k)||"").trim().split(ae),l=c.length,u=0;u<l;u+=1)s=c[u],this.rehydratedNames[s]=!0;t.push.apply(t,R(i.textContent)),e.push(i)}var f=t.length;if(!f)return this;var d=this.makeTag(null);!function(e,t,r){for(var n=0,a=r.length;n<a;n+=1){var o=r[n],i=o.componentId,s=o.cssFromDOM,c=P("",s);e.insertRules(i,c)}for(var l=0,u=t.length;l<u;l+=1){var f=t[l];f.parentNode&&f.parentNode.removeChild(f)}}(d,e,t),this.capacity=Math.max(1,oe-f),this.tags.push(d);for(var p=0;p<f;p+=1)this.tagMap[t[p].componentId]=d;return this},t.reset=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];se=new t(void 0,e).rehydrate()},t.prototype.clone=function(){var e=new t(this.target,this.forceServer);return this.clones.push(e),e.tags=this.tags.map(function(t){for(var r=t.getIds(),n=t.clone(),a=0;a<r.length;a+=1)e.tagMap[r[a]]=n;return n}),e.rehydratedNames=s({},this.rehydratedNames),e.deferred=s({},this.deferred),e},t.prototype.sealAllTags=function(){this.capacity=1,this.tags.forEach(function(e){e.sealed=!0})},t.prototype.makeTag=function(e){var t=e?e.styleTag:null;return ne(this.target,t,this.forceServer,!1,this.getImportRuleTag)},t.prototype.getTagForId=function(e){var t=this.tagMap[e];if(void 0!==t&&!t.sealed)return t;var r=this.tags[this.tags.length-1];return this.capacity-=1,0===this.capacity&&(this.capacity=oe,r=this.makeTag(r),this.tags.push(r)),this.tagMap[e]=r},t.prototype.hasId=function(e){return void 0!==this.tagMap[e]},t.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)},t.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}},t.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)},t.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}},t.prototype.toHTML=function(){return this.tags.map(function(e){return e.toHTML()}).join("")},t.prototype.toReactElements=function(){var t=this.id;return this.tags.map(function(r,n){var a="sc-"+t+"-"+n;return e.cloneElement(r.toElement(),{key:a})})},i(t,null,[{key:"master",get:function(){return se||(se=(new t).rehydrate())}},{key:"instance",get:function(){return t.master}}]),t}(),le=function(){function e(t,r){var n=this;o(this,e),this.inject=function(e){e.hasNameForId(n.id,n.name)||e.inject(n.id,n.rules,n.name)},this.toString=function(){throw new I(12,String(n.name))},this.name=t,this.rules=r,this.id="sc-keyframes-"+t}return e.prototype.getName=function(){return this.name},e}(),ue=/([A-Z])/g,fe=/^ms-/;function de(e){return e.replace(ue,"-$1").toLowerCase().replace(fe,"-ms-")}var pe={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,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var he=function(e){return null==e||!1===e||""===e},me=function e(t,r){var n=[];return Object.keys(t).forEach(function(r){if(!he(t[r])){if(f(t[r]))return n.push.apply(n,e(t[r],r)),n;if(h(t[r]))return n.push(de(r)+":",t[r],";"),n;n.push(de(r)+": "+(a=r,null==(o=t[r])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||a in pe?String(o).trim():o+"px")+";")}var a,o;return n}),r?[r+" {"].concat(n,["}"]):n};function ye(e,t,n){if(Array.isArray(e)){for(var a,o=[],i=0,s=e.length;i<s;i+=1)null!==(a=ye(e[i],t,n))&&(Array.isArray(a)?o.push.apply(o,a):o.push(a));return o}return he(e)?null:r(e)?"."+e.styledComponentId:h(e)?"function"!=typeof(c=e)||c.prototype&&c.prototype.isReactComponent||!t?e:ye(e(t),t,n):e instanceof le?n?(e.inject(n),e.getName()):e:f(e)?me(e):e.toString();var c}function ge(e){for(var t=arguments.length,r=Array(t>1?t-1:0),a=1;a<t;a++)r[a-1]=arguments[a];return h(e)||f(e)?ye(n(d,[e].concat(r))):ye(n(e,r))}function ve(e,t){for(var n=0;n<e.length;n+=1){var a=e[n];if(Array.isArray(a)&&!ve(a,t))return!1;if(h(a)&&!r(a))return!1}return!t.some(function(e){return h(e)||function(e){for(var t in e)if(h(e[t]))return!0;return!1}(e)})}var be=function(){function e(t,r){o(this,e),this.rules=t,this.componentId=r,this.isStatic=ve(t,d),ce.master.hasId(r)||ce.master.deferredInject(r,[])}return e.prototype.createStyles=function(e,t){var r=G(ye(this.rules,e,t),"");t.inject(this.componentId,r)},e.prototype.removeStyles=function(e){var t=this.componentId;e.hasId(t)&&e.remove(t)},e.prototype.renderStyles=function(e,t){this.removeStyles(t),this.createStyles(e,t)},e}(),Ce=function(e,t){return e.length===t.length&&e.every(function(e,r){return n=e,a=t[r],n===a;var n,a})};function Se(e,t){var r;void 0===t&&(t=Ce);var n,a=[],o=!1;return function(){for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];return o&&r===this&&t(s,a)?n:(n=e.apply(this,s),o=!0,r=this,a=s,n)}}var we=function(){function e(){o(this,e),this.masterSheet=ce.master,this.instance=this.masterSheet.clone(),this.sealed=!1}return e.prototype.seal=function(){if(!this.sealed){var e=this.masterSheet.clones.indexOf(this.instance);this.masterSheet.clones.splice(e,1),this.sealed=!0}},e.prototype.collectStyles=function(e){if(this.sealed)throw new I(2);return t.createElement(xe,{sheet:this.instance},e)},e.prototype.getStyleTags=function(){return this.seal(),this.instance.toHTML()},e.prototype.getStyleElement=function(){return this.seal(),this.instance.toReactElements()},e.prototype.interleaveWithNodeStream=function(e){throw new I(3)},e}(),ke=e.createContext(),Ae=ke.Consumer,xe=function(e){function r(t){o(this,r);var n=u(this,e.call(this,t));return n.getContext=Se(n.getContext),n}return c(r,e),r.prototype.getContext=function(e,t){if(e)return e;if(t)return new ce(t);throw new I(4)},r.prototype.render=function(){var e=this.props,r=e.children,n=e.sheet,a=e.target;return t.createElement(ke.Provider,{value:this.getContext(n,a)},r)},r}(e.Component),Oe=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p,n=!!r&&e.theme===r.theme;return e.theme&&!n?e.theme:t||r.theme},Ie=e.createContext(),je=Ie.Consumer,Re=function(e){function r(t){o(this,r);var n=u(this,e.call(this,t));return n.getContext=Se(n.getContext.bind(n)),n.renderInner=n.renderInner.bind(n),n}return c(r,e),r.prototype.render=function(){return this.props.children?t.createElement(Ie.Consumer,null,this.renderInner):null},r.prototype.renderInner=function(e){var r=this.getContext(this.props.theme,e);return t.createElement(Ie.Provider,{value:r},t.Children.only(this.props.children))},r.prototype.getTheme=function(e,t){if(h(e))return e(t);if(null===e||Array.isArray(e)||"object"!==(void 0===e?"undefined":a(e)))throw new I(8);return s({},t,e)},r.prototype.getContext=function(e,t){return this.getTheme(e,t)},r}(e.Component);function Ee(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>>>15)>>>0}A&&(window.scCGSHMRCache={});var Te=52,Me=function(e){return String.fromCharCode(e+(e>25?39:97))};function Pe(e){var t="",r=void 0;for(r=e;r>Te;r=Math.floor(r/Te))t=Me(r%Te)+t;return Me(r%Te)+t}var Ne,_e=function(e){return e.replace(/\s|\\n/g,"")};var $e={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Fe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Le=((Ne={})[S]={$$typeof:!0,render:!0},Ne),De=Object.defineProperty,He=Object.getOwnPropertyNames,ze=Object.getOwnPropertySymbols,Ge=void 0===ze?function(){return[]}:ze,Be=Object.getOwnPropertyDescriptor,Ue=Object.getPrototypeOf,We=Object.prototype,qe=Array.prototype;function Ye(e,t,r){if("string"!=typeof t){var n=Ue(t);n&&n!==We&&Ye(e,n,r);for(var a=qe.concat(He(t),Ge(t)),o=Le[e.$$typeof]||$e,i=Le[t.$$typeof]||$e,s=a.length,c=void 0,l=void 0;s--;)if(l=a[s],!(Fe[l]||r&&r[l]||i&&i[l]||o&&o[l])&&(c=Be(t,l)))try{De(e,l,c)}catch(e){}return e}return e}var Ve={StyleSheet:ce},Xe=Object.freeze({createGlobalStyle:function(e){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var i=ge.apply(void 0,[e].concat(n)),l="sc-global-"+Ee(JSON.stringify(i)),f=new be(i,l),d=function(e){function r(t){o(this,r);var n=u(this,e.call(this,t)),a=n.constructor,i=a.globalStyle,s=a.styledComponentId;return A&&(window.scCGSHMRCache[s]=(window.scCGSHMRCache[s]||0)+1),n.state={globalStyle:i,styledComponentId:s},n}return c(r,e),r.prototype.componentWillUnmount=function(){window.scCGSHMRCache[this.state.styledComponentId]&&(window.scCGSHMRCache[this.state.styledComponentId]-=1),0===window.scCGSHMRCache[this.state.styledComponentId]&&this.state.globalStyle.removeStyles(this.styleSheet)},r.prototype.render=function(){var e=this;return t.createElement(Ae,null,function(r){e.styleSheet=r||ce.master;var n=e.state.globalStyle;return n.isStatic?(n.renderStyles(O,e.styleSheet),null):t.createElement(je,null,function(t){var r=e.constructor.defaultProps,a=s({},e.props);return void 0!==t&&(a.theme=Oe(e.props,t,r)),n.renderStyles(a,e.styleSheet),null})})},r}(t.Component);return d.globalStyle=f,d.styledComponentId=l,d},css:ge,isStyledComponent:r,keyframes:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=ge.apply(void 0,[e].concat(r)),o=Pe(Ee(_e(JSON.stringify(a))));return new le(o,G(a,o,"@keyframes"))},ServerStyleSheet:we,StyleSheetConsumer:Ae,StyleSheetContext:ke,StyleSheetManager:xe,ThemeConsumer:je,ThemeContext:Ie,ThemeProvider:Re,withTheme:function(e){var r=t.forwardRef(function(r,n){return t.createElement(je,null,function(a){var o=e.defaultProps,i=Oe(r,a,o);return t.createElement(e,s({},r,{theme:i,ref:n}))})});return Ye(r,e),r.displayName="WithTheme("+w(e)+")",r},__DO_NOT_USE_OR_YOU_WILL_BE_HAUNTED_BY_SPOOKY_GHOSTS:Ve});var Je,Ke,Ze=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|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|loading|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|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qe=(Je=function(e){return Ze.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91},Ke={},function(e){return void 0===Ke[e]&&(Ke[e]=Je(e)),Ke[e]});function et(e){return Object.prototype.toString.call(e).slice(8,-1)}function tt(e){return"Object"===et(e)&&(e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype)}function rt(e){return"Array"===et(e)}function nt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=null,a=e;return tt(e)&&e.extensions&&1===Object.keys(e).length&&(a={},n=e.extensions),t.reduce(function(e,t){return function e(t,r,n){if(!tt(r))return n&&rt(n)&&n.forEach(function(e){r=e(t,r)}),r;var a=tt(t)?Object.keys(t).reduce(function(e,n){var a=t[n];return Object.keys(r).includes(n)||(e[n]=a),e},{}):{};return Object.keys(r).reduce(function(a,o){var i=r[o],s=tt(t)?t[o]:void 0;return n&&rt(n)&&n.forEach(function(e){i=e(s,i)}),void 0===s?(a[o]=i,a):tt(i)?(a[o]=e(s,i,n),a):(a[o]=i,a)},a)}(e,t,n)},a)}var at=function(e){return Pe(Ee(e))},ot=function(){function e(t,r,n){o(this,e),this.rules=t,this.isStatic=ve(t,r),this.componentId=n,ce.master.hasId(n)||ce.master.deferredInject(n,[])}return e.prototype.generateAndInjectStyles=function(e,t){var r=this.isStatic,n=this.componentId,a=this.lastClassName;if(A&&r&&"string"==typeof a&&t.hasNameForId(n,a))return a;var o=ye(this.rules,e,t),i=at(this.componentId+o.join(""));return t.hasNameForId(n,i)||t.inject(this.componentId,G(o,"."+i,void 0,n),i),this.lastClassName=i,i},e.generateName=function(e){return at(e)},e}(),it=/[[\].#*$><+~=|^:(),"'`-]+/g,st=/(^-|-$)/g;function ct(e){return e.replace(it,"-").replace(st,"")}function lt(e){return"string"==typeof e&&!0}var ut={};var ft=function(n){function a(){o(this,a);var e=u(this,n.call(this));return e.attrs={},e.renderOuter=e.renderOuter.bind(e),e.renderInner=e.renderInner.bind(e),e}return c(a,n),a.prototype.render=function(){return t.createElement(Ae,null,this.renderOuter)},a.prototype.renderOuter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ce.master;return this.styleSheet=e,this.props.forwardedComponent.componentStyle.isStatic?this.renderInner():t.createElement(je,null,this.renderInner)},a.prototype.renderInner=function(t){var r=this.props.forwardedComponent,n=r.componentStyle,a=r.defaultProps,o=(r.displayName,r.foldedComponentIds),i=r.styledComponentId,c=r.target,l=void 0;l=n.isStatic?this.generateAndInjectStyles(p,this.props):this.generateAndInjectStyles(Oe(this.props,t,a)||p,this.props);var u=this.props.as||this.attrs.as||c,f=lt(u),d={},h=s({},this.attrs,this.props),m=void 0;for(m in h)"forwardedComponent"!==m&&"as"!==m&&("forwardedRef"===m?d.ref=h[m]:"forwardedAs"===m?d.as=h[m]:f&&!Qe(m)||(d[m]=h[m]));return this.props.style&&this.attrs.style&&(d.style=s({},this.attrs.style,this.props.style)),d.className=Array.prototype.concat(o,this.props.className,i,this.attrs.className,l).filter(Boolean).join(" "),e.createElement(u,d)},a.prototype.buildExecutionContext=function(e,t,n){var a=this,o=s({},t,{theme:e});return n.length?(this.attrs={},n.forEach(function(e){var t,n=e,i=!1,s=void 0,c=void 0;for(c in h(n)&&(n=n(o),i=!0),n)s=n[c],i||!h(s)||(t=s)&&t.prototype&&t.prototype.isReactComponent||r(s)||(s=s(o)),a.attrs[c]=s,o[c]=s}),o):o},a.prototype.generateAndInjectStyles=function(e,t){var r=t.forwardedComponent,n=r.attrs,a=r.componentStyle;r.warnTooManyClasses;return a.isStatic&&!n.length?a.generateAndInjectStyles(p,this.styleSheet):a.generateAndInjectStyles(this.buildExecutionContext(e,t,n),this.styleSheet)},a}(e.Component);function dt(e,n,a){var o=r(e),i=!lt(e),c=n.displayName,u=void 0===c?function(e){return lt(e)?"styled."+e:"Styled("+w(e)+")"}(e):c,f=n.componentId,p=void 0===f?function(e,t,r){var n="string"!=typeof t?"sc":ct(t),a=(ut[n]||0)+1;ut[n]=a;var o=n+"-"+e.generateName(n+a);return r?r+"-"+o:o}(ot,n.displayName,n.parentComponentId):f,h=n.ParentComponent,m=void 0===h?ft:h,y=n.attrs,g=void 0===y?d:y,v=n.displayName&&n.componentId?ct(n.displayName)+"-"+n.componentId:n.componentId||p,b=o&&e.attrs?Array.prototype.concat(e.attrs,g).filter(Boolean):g,C=new ot(o?e.componentStyle.rules.concat(a):a,b,v),S=void 0,k=function(e,r){return t.createElement(m,s({},e,{forwardedComponent:S,forwardedRef:r}))};return k.displayName=u,(S=t.forwardRef(k)).displayName=u,S.attrs=b,S.componentStyle=C,S.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):d,S.styledComponentId=v,S.target=o?e.target:e,S.withComponent=function(e){var t=n.componentId,r=l(n,["componentId"]),o=t&&t+"-"+(lt(e)?e:ct(w(e)));return dt(e,s({},r,{attrs:b,componentId:o,ParentComponent:m}),a)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?nt(e.defaultProps,t):t}}),S.toString=function(){return"."+S.styledComponentId},i&&Ye(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var pt=function(e){return function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;if(!C(r))throw new I(1,String(r));var a=function(){return t(r,n,ge.apply(void 0,arguments))};return a.withConfig=function(a){return e(t,r,s({},n,a))},a.attrs=function(a){return e(t,r,s({},n,{attrs:Array.prototype.concat(n.attrs,a).filter(Boolean)}))},a}(dt,e)};for(var ht in["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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach(function(e){pt[e]=pt(e)}),Xe)pt[ht]=Xe[ht];return pt});
2
2
  //# sourceMappingURL=styled-components.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styled-components.min.js","sources":["../src/models/StyleTags.js"],"sourcesContent":["// @flow\n/* eslint-disable flowtype/object-type-delimiter */\n/* eslint-disable react/prop-types */\n\nimport React, { type Element } from 'react';\nimport { IS_BROWSER, DISABLE_SPEEDY, SC_ATTR, SC_VERSION_ATTR } from '../constants';\nimport StyledError from '../utils/error';\nimport { type ExtractedComp } from '../utils/extractCompsFromCSS';\nimport { splitByRules } from '../utils/stringifyRules';\nimport getNonce from '../utils/nonce';\n\nimport {\n type Names,\n addNameForId,\n resetIdNames,\n hasNameForId,\n stringifyNames,\n cloneNames,\n} from '../utils/styleNames';\n\nimport { sheetForTag, safeInsertRule, deleteRules } from '../utils/insertRuleHelpers';\n\ndeclare var __VERSION__: string;\n\nexport interface Tag<T> {\n // $FlowFixMe: Doesn't seem to accept any combination w/ HTMLStyleElement for some reason\n styleTag: HTMLStyleElement | null;\n /* lists all ids of the tag */\n getIds(): string[];\n /* checks whether `name` is already injected for `id` */\n hasNameForId(id: string, name: string): boolean;\n /* inserts a marker to ensure the id's correct position in the sheet */\n insertMarker(id: string): T;\n /* inserts rules according to the ids markers */\n insertRules(id: string, cssRules: string[], name: ?string): void;\n /* removes all rules belonging to the id, keeping the marker around */\n removeRules(id: string): void;\n css(): string;\n toHTML(additionalAttrs: ?string): string;\n toElement(): Element<*>;\n clone(): Tag<T>;\n /* used in server side rendering to indicate that the rules in the tag have been flushed to HTML */\n sealed: boolean;\n}\n\n/* this marker separates component styles and is important for rehydration */\nconst makeTextMarker = id => `\\n/* sc-component-id: ${id} */\\n`;\n\n/* add up all numbers in array up until and including the index */\nconst addUpUntilIndex = (sizes: number[], index: number): number => {\n let totalUpToIndex = 0;\n for (let i = 0; i <= index; i += 1) {\n totalUpToIndex += sizes[i];\n }\n\n return totalUpToIndex;\n};\n\n/* create a new style tag after lastEl */\nconst makeStyleTag = (target: ?HTMLElement, tagEl: ?Node, insertBefore: ?boolean) => {\n const el = document.createElement('style');\n el.setAttribute(SC_ATTR, '');\n el.setAttribute(SC_VERSION_ATTR, __VERSION__);\n\n const nonce = getNonce();\n if (nonce) {\n el.setAttribute('nonce', nonce);\n }\n\n /* Work around insertRule quirk in EdgeHTML */\n el.appendChild(document.createTextNode(''));\n\n if (target && !tagEl) {\n /* Append to target when no previous element was passed */\n target.appendChild(el);\n } else {\n if (!tagEl || !target || !tagEl.parentNode) {\n throw new StyledError(6);\n }\n\n /* Insert new style tag after the previous one */\n tagEl.parentNode.insertBefore(el, insertBefore ? tagEl : tagEl.nextSibling);\n }\n\n return el;\n};\n\n/* takes a css factory function and outputs an html styled tag factory */\nconst wrapAsHtmlTag = (css: () => string, names: Names) => (additionalAttrs: ?string): string => {\n const nonce = getNonce();\n const attrs = [\n nonce && `nonce=\"${nonce}\"`,\n `${SC_ATTR}=\"${stringifyNames(names)}\"`,\n `${SC_VERSION_ATTR}=\"${__VERSION__}\"`,\n additionalAttrs,\n ];\n\n const htmlAttr = attrs.filter(Boolean).join(' ');\n return `<style ${htmlAttr}>${css()}</style>`;\n};\n\n/* takes a css factory function and outputs an element factory */\nconst wrapAsElement = (css: () => string, names: Names) => () => {\n const props = {\n [SC_ATTR]: stringifyNames(names),\n [SC_VERSION_ATTR]: __VERSION__,\n };\n\n const nonce = getNonce();\n if (nonce) {\n // $FlowFixMe\n props.nonce = nonce;\n }\n\n // eslint-disable-next-line react/no-danger\n return <style {...props} dangerouslySetInnerHTML={{ __html: css() }} />;\n};\n\nconst getIdsFromMarkersFactory = (markers: Object) => (): string[] => Object.keys(markers);\n\n/* speedy tags utilise insertRule */\nconst makeSpeedyTag = (el: HTMLStyleElement, getImportRuleTag: ?() => Tag<any>): Tag<number> => {\n const names: Names = (Object.create(null): Object);\n const markers = Object.create(null);\n const sizes: number[] = [];\n\n const extractImport = getImportRuleTag !== undefined;\n /* indicates whether getImportRuleTag was called */\n let usedImportRuleTag = false;\n\n const insertMarker = id => {\n const prev = markers[id];\n if (prev !== undefined) {\n return prev;\n }\n\n markers[id] = sizes.length;\n sizes.push(0);\n resetIdNames(names, id);\n\n return markers[id];\n };\n\n const insertRules = (id, cssRules, name) => {\n const marker = insertMarker(id);\n const sheet = sheetForTag(el);\n const insertIndex = addUpUntilIndex(sizes, marker);\n\n let injectedRules = 0;\n const importRules = [];\n const cssRulesSize = cssRules.length;\n\n for (let i = 0; i < cssRulesSize; i += 1) {\n const cssRule = cssRules[i];\n let mayHaveImport = extractImport; /* @import rules are reordered to appear first */\n if (mayHaveImport && cssRule.indexOf('@import') !== -1) {\n importRules.push(cssRule);\n } else if (safeInsertRule(sheet, cssRule, insertIndex + injectedRules)) {\n mayHaveImport = false;\n injectedRules += 1;\n }\n }\n\n if (extractImport && importRules.length > 0) {\n usedImportRuleTag = true;\n // $FlowFixMe\n getImportRuleTag().insertRules(`${id}-import`, importRules);\n }\n\n sizes[marker] += injectedRules; /* add up no of injected rules */\n addNameForId(names, id, name);\n };\n\n const removeRules = id => {\n const marker = markers[id];\n if (marker === undefined) return;\n\n const size = sizes[marker];\n const sheet = sheetForTag(el);\n const removalIndex = addUpUntilIndex(sizes, marker) - 1;\n deleteRules(sheet, removalIndex, size);\n sizes[marker] = 0;\n resetIdNames(names, id);\n\n if (extractImport && usedImportRuleTag) {\n // $FlowFixMe\n getImportRuleTag().removeRules(`${id}-import`);\n }\n };\n\n const css = () => {\n const { cssRules } = sheetForTag(el);\n let str = '';\n\n // eslint-disable-next-line guard-for-in\n for (const id in markers) {\n str += makeTextMarker(id);\n const marker = markers[id];\n const end = addUpUntilIndex(sizes, marker);\n const size = sizes[marker];\n for (let i = end - size; i < end; i += 1) {\n const rule = cssRules[i];\n if (rule !== undefined) {\n str += rule.cssText;\n }\n }\n }\n\n return str;\n };\n\n return {\n clone() {\n throw new StyledError(5);\n },\n css,\n getIds: getIdsFromMarkersFactory(markers),\n hasNameForId: hasNameForId(names),\n insertMarker,\n insertRules,\n removeRules,\n sealed: false,\n styleTag: el,\n toElement: wrapAsElement(css, names),\n toHTML: wrapAsHtmlTag(css, names),\n };\n};\n\nconst makeTextNode = id => document.createTextNode(makeTextMarker(id));\n\nconst makeBrowserTag = (el: HTMLStyleElement, getImportRuleTag: ?() => Tag<any>): Tag<Text> => {\n const names = (Object.create(null): Object);\n const markers = Object.create(null);\n\n const extractImport = getImportRuleTag !== undefined;\n\n /* indicates whether getImportRuleTag was called */\n let usedImportRuleTag = false;\n\n const insertMarker = id => {\n const prev = markers[id];\n if (prev !== undefined) {\n return prev;\n }\n\n markers[id] = makeTextNode(id);\n el.appendChild(markers[id]);\n names[id] = Object.create(null);\n\n return markers[id];\n };\n\n const insertRules = (id, cssRules, name) => {\n const marker = insertMarker(id);\n const importRules = [];\n const cssRulesSize = cssRules.length;\n\n for (let i = 0; i < cssRulesSize; i += 1) {\n const rule = cssRules[i];\n let mayHaveImport = extractImport;\n if (mayHaveImport && rule.indexOf('@import') !== -1) {\n importRules.push(rule);\n } else {\n mayHaveImport = false;\n const separator = i === cssRulesSize - 1 ? '' : ' ';\n marker.appendData(`${rule}${separator}`);\n }\n }\n\n addNameForId(names, id, name);\n\n if (extractImport && importRules.length > 0) {\n usedImportRuleTag = true;\n // $FlowFixMe\n getImportRuleTag().insertRules(`${id}-import`, importRules);\n }\n };\n\n const removeRules = id => {\n const marker = markers[id];\n if (marker === undefined) return;\n\n /* create new empty text node and replace the current one */\n const newMarker = makeTextNode(id);\n el.replaceChild(newMarker, marker);\n markers[id] = newMarker;\n resetIdNames(names, id);\n\n if (extractImport && usedImportRuleTag) {\n // $FlowFixMe\n getImportRuleTag().removeRules(`${id}-import`);\n }\n };\n\n const css = () => {\n let str = '';\n\n // eslint-disable-next-line guard-for-in\n for (const id in markers) {\n str += markers[id].data;\n }\n\n return str;\n };\n\n return {\n clone() {\n throw new StyledError(5);\n },\n css,\n getIds: getIdsFromMarkersFactory(markers),\n hasNameForId: hasNameForId(names),\n insertMarker,\n insertRules,\n removeRules,\n sealed: false,\n styleTag: el,\n toElement: wrapAsElement(css, names),\n toHTML: wrapAsHtmlTag(css, names),\n };\n};\n\nconst makeServerTag = (namesArg, markersArg): Tag<[string]> => {\n const names = namesArg === undefined ? (Object.create(null): Object) : namesArg;\n const markers = markersArg === undefined ? Object.create(null) : markersArg;\n\n const insertMarker = id => {\n const prev = markers[id];\n if (prev !== undefined) {\n return prev;\n }\n\n return (markers[id] = ['']);\n };\n\n const insertRules = (id, cssRules, name) => {\n const marker = insertMarker(id);\n marker[0] += cssRules.join(' ');\n addNameForId(names, id, name);\n };\n\n const removeRules = id => {\n const marker = markers[id];\n if (marker === undefined) return;\n marker[0] = '';\n resetIdNames(names, id);\n };\n\n const css = () => {\n let str = '';\n // eslint-disable-next-line guard-for-in\n for (const id in markers) {\n const cssForId = markers[id][0];\n if (cssForId) {\n str += makeTextMarker(id) + cssForId;\n }\n }\n return str;\n };\n\n const clone = () => {\n const namesClone = cloneNames(names);\n const markersClone = Object.create(null);\n\n // eslint-disable-next-line guard-for-in\n for (const id in markers) {\n markersClone[id] = [markers[id][0]];\n }\n\n return makeServerTag(namesClone, markersClone);\n };\n\n const tag = {\n clone,\n css,\n getIds: getIdsFromMarkersFactory(markers),\n hasNameForId: hasNameForId(names),\n insertMarker,\n insertRules,\n removeRules,\n sealed: false,\n styleTag: null,\n toElement: wrapAsElement(css, names),\n toHTML: wrapAsHtmlTag(css, names),\n };\n\n return tag;\n};\n\nexport const makeTag = (\n target: ?HTMLElement,\n tagEl: ?HTMLStyleElement,\n forceServer?: boolean,\n insertBefore?: boolean,\n getImportRuleTag?: () => Tag<any>\n): Tag<any> => {\n if (IS_BROWSER && !forceServer) {\n const el = makeStyleTag(target, tagEl, insertBefore);\n\n if (DISABLE_SPEEDY) {\n return makeBrowserTag(el, getImportRuleTag);\n } else {\n return makeSpeedyTag(el, getImportRuleTag);\n }\n }\n\n return makeServerTag();\n};\n\nexport const rehydrate = (\n tag: Tag<any>,\n els: HTMLStyleElement[],\n extracted: ExtractedComp[]\n): void => {\n /* add all extracted components to the new tag */\n for (let i = 0, len = extracted.length; i < len; i += 1) {\n const { componentId, cssFromDOM } = extracted[i];\n const cssRules = splitByRules(cssFromDOM);\n tag.insertRules(componentId, cssRules);\n }\n\n /* remove old HTMLStyleElements, since they have been rehydrated */\n for (let i = 0, len = els.length; i < len; i += 1) {\n const el = els[i];\n if (el.parentNode) {\n el.parentNode.removeChild(el);\n }\n }\n};\n"],"names":["__VERSION__","i"],"mappings":"uroBA2DiDA,g+FAiWtCC"}
1
+ {"version":3,"file":"styled-components.min.js","sources":["../src/models/StyleTags.js"],"sourcesContent":["// @flow\n/* eslint-disable flowtype/object-type-delimiter */\n/* eslint-disable react/prop-types */\n\nimport React, { type Element } from 'react';\nimport { IS_BROWSER, DISABLE_SPEEDY, SC_ATTR, SC_VERSION_ATTR } from '../constants';\nimport StyledError from '../utils/error';\nimport { type ExtractedComp } from '../utils/extractCompsFromCSS';\nimport { splitByRules } from '../utils/stringifyRules';\nimport getNonce from '../utils/nonce';\n\nimport {\n type Names,\n addNameForId,\n resetIdNames,\n hasNameForId,\n stringifyNames,\n cloneNames,\n} from '../utils/styleNames';\n\nimport { sheetForTag, safeInsertRule, deleteRules } from '../utils/insertRuleHelpers';\n\ndeclare var __VERSION__: string;\n\nexport interface Tag<T> {\n // $FlowFixMe: Doesn't seem to accept any combination w/ HTMLStyleElement for some reason\n styleTag: HTMLStyleElement | null;\n /* lists all ids of the tag */\n getIds(): string[];\n /* checks whether `name` is already injected for `id` */\n hasNameForId(id: string, name: string): boolean;\n /* inserts a marker to ensure the id's correct position in the sheet */\n insertMarker(id: string): T;\n /* inserts rules according to the ids markers */\n insertRules(id: string, cssRules: string[], name: ?string): void;\n /* removes all rules belonging to the id, keeping the marker around */\n removeRules(id: string): void;\n css(): string;\n toHTML(additionalAttrs: ?string): string;\n toElement(): Element<*>;\n clone(): Tag<T>;\n /* used in server side rendering to indicate that the rules in the tag have been flushed to HTML */\n sealed: boolean;\n}\n\n/* this marker separates component styles and is important for rehydration */\nconst makeTextMarker = id => `\\n/* sc-component-id: ${id} */\\n`;\n\n/* add up all numbers in array up until and including the index */\nconst addUpUntilIndex = (sizes: number[], index: number): number => {\n let totalUpToIndex = 0;\n for (let i = 0; i <= index; i += 1) {\n totalUpToIndex += sizes[i];\n }\n\n return totalUpToIndex;\n};\n\n/* create a new style tag after lastEl */\nconst makeStyleTag = (target: ?HTMLElement, tagEl: ?Node, insertBefore: ?boolean) => {\n const el = document.createElement('style');\n el.setAttribute(SC_ATTR, '');\n el.setAttribute(SC_VERSION_ATTR, __VERSION__);\n\n const nonce = getNonce();\n if (nonce) {\n el.setAttribute('nonce', nonce);\n }\n\n /* Work around insertRule quirk in EdgeHTML */\n el.appendChild(document.createTextNode(''));\n\n if (target && !tagEl) {\n /* Append to target when no previous element was passed */\n target.appendChild(el);\n } else {\n if (!tagEl || !target || !tagEl.parentNode) {\n throw new StyledError(6);\n }\n\n /* Insert new style tag after the previous one */\n tagEl.parentNode.insertBefore(el, insertBefore ? tagEl : tagEl.nextSibling);\n }\n\n return el;\n};\n\n/* takes a css factory function and outputs an html styled tag factory */\nconst wrapAsHtmlTag = (css: () => string, names: Names) => (additionalAttrs: ?string): string => {\n const nonce = getNonce();\n const attrs = [\n nonce && `nonce=\"${nonce}\"`,\n `${SC_ATTR}=\"${stringifyNames(names)}\"`,\n `${SC_VERSION_ATTR}=\"${__VERSION__}\"`,\n additionalAttrs,\n ];\n\n const htmlAttr = attrs.filter(Boolean).join(' ');\n return `<style ${htmlAttr}>${css()}</style>`;\n};\n\n/* takes a css factory function and outputs an element factory */\nconst wrapAsElement = (css: () => string, names: Names) => () => {\n const props = {\n [SC_ATTR]: stringifyNames(names),\n [SC_VERSION_ATTR]: __VERSION__,\n };\n\n const nonce = getNonce();\n if (nonce) {\n // $FlowFixMe\n props.nonce = nonce;\n }\n\n // eslint-disable-next-line react/no-danger\n return <style {...props} dangerouslySetInnerHTML={{ __html: css() }} />;\n};\n\nconst getIdsFromMarkersFactory = (markers: Object) => (): string[] => Object.keys(markers);\n\n/* speedy tags utilise insertRule */\nconst makeSpeedyTag = (el: HTMLStyleElement, getImportRuleTag: ?() => Tag<any>): Tag<number> => {\n const names: Names = (Object.create(null): Object);\n const markers = Object.create(null);\n const sizes: number[] = [];\n\n const extractImport = getImportRuleTag !== undefined;\n /* indicates whether getImportRuleTag was called */\n let usedImportRuleTag = false;\n\n const insertMarker = id => {\n const prev = markers[id];\n if (prev !== undefined) {\n return prev;\n }\n\n markers[id] = sizes.length;\n sizes.push(0);\n resetIdNames(names, id);\n\n return markers[id];\n };\n\n const insertRules = (id, cssRules, name) => {\n const marker = insertMarker(id);\n const sheet = sheetForTag(el);\n const insertIndex = addUpUntilIndex(sizes, marker);\n\n let injectedRules = 0;\n const importRules = [];\n const cssRulesSize = cssRules.length;\n\n for (let i = 0; i < cssRulesSize; i += 1) {\n const cssRule = cssRules[i];\n let mayHaveImport = extractImport; /* @import rules are reordered to appear first */\n if (mayHaveImport && cssRule.indexOf('@import') !== -1) {\n importRules.push(cssRule);\n } else if (safeInsertRule(sheet, cssRule, insertIndex + injectedRules)) {\n mayHaveImport = false;\n injectedRules += 1;\n }\n }\n\n if (extractImport && importRules.length > 0) {\n usedImportRuleTag = true;\n // $FlowFixMe\n getImportRuleTag().insertRules(`${id}-import`, importRules);\n }\n\n sizes[marker] += injectedRules; /* add up no of injected rules */\n addNameForId(names, id, name);\n };\n\n const removeRules = id => {\n const marker = markers[id];\n if (marker === undefined) return;\n\n const size = sizes[marker];\n const sheet = sheetForTag(el);\n const removalIndex = addUpUntilIndex(sizes, marker) - 1;\n deleteRules(sheet, removalIndex, size);\n sizes[marker] = 0;\n resetIdNames(names, id);\n\n if (extractImport && usedImportRuleTag) {\n // $FlowFixMe\n getImportRuleTag().removeRules(`${id}-import`);\n }\n };\n\n const css = () => {\n const { cssRules } = sheetForTag(el);\n let str = '';\n\n // eslint-disable-next-line guard-for-in\n for (const id in markers) {\n str += makeTextMarker(id);\n const marker = markers[id];\n const end = addUpUntilIndex(sizes, marker);\n const size = sizes[marker];\n for (let i = end - size; i < end; i += 1) {\n const rule = cssRules[i];\n if (rule !== undefined) {\n str += rule.cssText;\n }\n }\n }\n\n return str;\n };\n\n return {\n clone() {\n throw new StyledError(5);\n },\n css,\n getIds: getIdsFromMarkersFactory(markers),\n hasNameForId: hasNameForId(names),\n insertMarker,\n insertRules,\n removeRules,\n sealed: false,\n styleTag: el,\n toElement: wrapAsElement(css, names),\n toHTML: wrapAsHtmlTag(css, names),\n };\n};\n\nconst makeTextNode = id => document.createTextNode(makeTextMarker(id));\n\nconst makeBrowserTag = (el: HTMLStyleElement, getImportRuleTag: ?() => Tag<any>): Tag<Text> => {\n const names = (Object.create(null): Object);\n const markers = Object.create(null);\n\n const extractImport = getImportRuleTag !== undefined;\n\n /* indicates whether getImportRuleTag was called */\n let usedImportRuleTag = false;\n\n const insertMarker = id => {\n const prev = markers[id];\n if (prev !== undefined) {\n return prev;\n }\n\n markers[id] = makeTextNode(id);\n el.appendChild(markers[id]);\n names[id] = Object.create(null);\n\n return markers[id];\n };\n\n const insertRules = (id, cssRules, name) => {\n const marker = insertMarker(id);\n const importRules = [];\n const cssRulesSize = cssRules.length;\n\n for (let i = 0; i < cssRulesSize; i += 1) {\n const rule = cssRules[i];\n let mayHaveImport = extractImport;\n if (mayHaveImport && rule.indexOf('@import') !== -1) {\n importRules.push(rule);\n } else {\n mayHaveImport = false;\n const separator = i === cssRulesSize - 1 ? '' : ' ';\n marker.appendData(`${rule}${separator}`);\n }\n }\n\n addNameForId(names, id, name);\n\n if (extractImport && importRules.length > 0) {\n usedImportRuleTag = true;\n // $FlowFixMe\n getImportRuleTag().insertRules(`${id}-import`, importRules);\n }\n };\n\n const removeRules = id => {\n const marker = markers[id];\n if (marker === undefined) return;\n\n /* create new empty text node and replace the current one */\n const newMarker = makeTextNode(id);\n el.replaceChild(newMarker, marker);\n markers[id] = newMarker;\n resetIdNames(names, id);\n\n if (extractImport && usedImportRuleTag) {\n // $FlowFixMe\n getImportRuleTag().removeRules(`${id}-import`);\n }\n };\n\n const css = () => {\n let str = '';\n\n // eslint-disable-next-line guard-for-in\n for (const id in markers) {\n str += markers[id].data;\n }\n\n return str;\n };\n\n return {\n clone() {\n throw new StyledError(5);\n },\n css,\n getIds: getIdsFromMarkersFactory(markers),\n hasNameForId: hasNameForId(names),\n insertMarker,\n insertRules,\n removeRules,\n sealed: false,\n styleTag: el,\n toElement: wrapAsElement(css, names),\n toHTML: wrapAsHtmlTag(css, names),\n };\n};\n\nconst makeServerTag = (namesArg, markersArg): Tag<[string]> => {\n const names = namesArg === undefined ? (Object.create(null): Object) : namesArg;\n const markers = markersArg === undefined ? Object.create(null) : markersArg;\n\n const insertMarker = id => {\n const prev = markers[id];\n if (prev !== undefined) {\n return prev;\n }\n\n return (markers[id] = ['']);\n };\n\n const insertRules = (id, cssRules, name) => {\n const marker = insertMarker(id);\n marker[0] += cssRules.join(' ');\n addNameForId(names, id, name);\n };\n\n const removeRules = id => {\n const marker = markers[id];\n if (marker === undefined) return;\n marker[0] = '';\n resetIdNames(names, id);\n };\n\n const css = () => {\n let str = '';\n // eslint-disable-next-line guard-for-in\n for (const id in markers) {\n const cssForId = markers[id][0];\n if (cssForId) {\n str += makeTextMarker(id) + cssForId;\n }\n }\n return str;\n };\n\n const clone = () => {\n const namesClone = cloneNames(names);\n const markersClone = Object.create(null);\n\n // eslint-disable-next-line guard-for-in\n for (const id in markers) {\n markersClone[id] = [markers[id][0]];\n }\n\n return makeServerTag(namesClone, markersClone);\n };\n\n const tag = {\n clone,\n css,\n getIds: getIdsFromMarkersFactory(markers),\n hasNameForId: hasNameForId(names),\n insertMarker,\n insertRules,\n removeRules,\n sealed: false,\n styleTag: null,\n toElement: wrapAsElement(css, names),\n toHTML: wrapAsHtmlTag(css, names),\n };\n\n return tag;\n};\n\nexport const makeTag = (\n target: ?HTMLElement,\n tagEl: ?HTMLStyleElement,\n forceServer?: boolean,\n insertBefore?: boolean,\n getImportRuleTag?: () => Tag<any>\n): Tag<any> => {\n if (IS_BROWSER && !forceServer) {\n const el = makeStyleTag(target, tagEl, insertBefore);\n\n if (DISABLE_SPEEDY) {\n return makeBrowserTag(el, getImportRuleTag);\n } else {\n return makeSpeedyTag(el, getImportRuleTag);\n }\n }\n\n return makeServerTag();\n};\n\nexport const rehydrate = (\n tag: Tag<any>,\n els: HTMLStyleElement[],\n extracted: ExtractedComp[]\n): void => {\n /* add all extracted components to the new tag */\n for (let i = 0, len = extracted.length; i < len; i += 1) {\n const { componentId, cssFromDOM } = extracted[i];\n const cssRules = splitByRules(cssFromDOM);\n tag.insertRules(componentId, cssRules);\n }\n\n /* remove old HTMLStyleElements, since they have been rehydrated */\n for (let i = 0, len = els.length; i < len; i += 1) {\n const el = els[i];\n if (el.parentNode) {\n el.parentNode.removeChild(el);\n }\n }\n};\n"],"names":["__VERSION__","i"],"mappings":"+zoBA2DiDA,g+FAiWtCC"}
@@ -13,6 +13,7 @@ var reactIs = require('react-is');
13
13
  var supportsColor = _interopDefault(require('supports-color'));
14
14
  var transformDeclPairs = _interopDefault(require('css-to-react-native'));
15
15
  var memoize = _interopDefault(require('memoize-one'));
16
+ var merge = _interopDefault(require('merge-anything'));
16
17
  var reactNative = require('react-native');
17
18
  var reactNative__default = _interopDefault(reactNative);
18
19
 
@@ -143,7 +144,7 @@ function isStyledComponent(target) {
143
144
 
144
145
  //
145
146
 
146
- var SC_ATTR = typeof process !== 'undefined' && process.env.SC_ATTR || 'data-styled';
147
+ var SC_ATTR = typeof process !== 'undefined' && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || 'data-styled';
147
148
 
148
149
  var SC_VERSION_ATTR = 'data-styled-version';
149
150
 
@@ -151,7 +152,7 @@ var SC_STREAM_ATTR = 'data-styled-streamed';
151
152
 
152
153
  var IS_BROWSER = typeof window !== 'undefined' && 'HTMLElement' in window;
153
154
 
154
- var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || process.env.NODE_ENV !== 'production';
155
+ var DISABLE_SPEEDY = typeof SC_DISABLE_SPEEDY === 'boolean' && SC_DISABLE_SPEEDY || typeof process !== 'undefined' && (process.env.REACT_APP_SC_DISABLE_SPEEDY || process.env.SC_DISABLE_SPEEDY) || process.env.NODE_ENV !== 'production';
155
156
 
156
157
  //
157
158
 
@@ -447,7 +448,7 @@ var addUpUntilIndex = function addUpUntilIndex(sizes, index) {
447
448
  var makeStyleTag = function makeStyleTag(target, tagEl, insertBefore) {
448
449
  var el = document.createElement('style');
449
450
  el.setAttribute(SC_ATTR, '');
450
- el.setAttribute(SC_VERSION_ATTR, "4.2.1");
451
+ el.setAttribute(SC_VERSION_ATTR, "4.3.2");
451
452
 
452
453
  var nonce = getNonce();
453
454
  if (nonce) {
@@ -476,7 +477,7 @@ var makeStyleTag = function makeStyleTag(target, tagEl, insertBefore) {
476
477
  var wrapAsHtmlTag = function wrapAsHtmlTag(css, names) {
477
478
  return function (additionalAttrs) {
478
479
  var nonce = getNonce();
479
- var attrs = [nonce && 'nonce="' + nonce + '"', SC_ATTR + '="' + stringifyNames(names) + '"', SC_VERSION_ATTR + '="' + "4.2.1" + '"', additionalAttrs];
480
+ var attrs = [nonce && 'nonce="' + nonce + '"', SC_ATTR + '="' + stringifyNames(names) + '"', SC_VERSION_ATTR + '="' + "4.3.2" + '"', additionalAttrs];
480
481
 
481
482
  var htmlAttr = attrs.filter(Boolean).join(' ');
482
483
  return '<style ' + htmlAttr + '>' + css() + '</style>';
@@ -488,7 +489,7 @@ var wrapAsElement = function wrapAsElement(css, names) {
488
489
  return function () {
489
490
  var _props;
490
491
 
491
- var props = (_props = {}, _props[SC_ATTR] = stringifyNames(names), _props[SC_VERSION_ATTR] = "4.2.1", _props);
492
+ var props = (_props = {}, _props[SC_ATTR] = stringifyNames(names), _props[SC_VERSION_ATTR] = "4.3.2", _props);
492
493
 
493
494
  var nonce = getNonce();
494
495
  if (nonce) {
@@ -895,7 +896,7 @@ var StyleSheet = function () {
895
896
  var isStreamed = false;
896
897
 
897
898
  /* retrieve all of our SSR style elements from the DOM */
898
- var nodes = document.querySelectorAll('style[' + SC_ATTR + '][' + SC_VERSION_ATTR + '="' + "4.2.1" + '"]');
899
+ var nodes = document.querySelectorAll('style[' + SC_ATTR + '][' + SC_VERSION_ATTR + '="' + "4.3.2" + '"]');
899
900
 
900
901
  var nodesSize = nodes.length;
901
902
 
@@ -6167,8 +6168,6 @@ var ThemeProvider = function (_Component) {
6167
6168
 
6168
6169
  //
6169
6170
 
6170
- // $FlowFixMe
6171
-
6172
6171
  var StyledNativeComponent = function (_Component) {
6173
6172
  inherits(StyledNativeComponent, _Component);
6174
6173
 
@@ -6214,29 +6213,25 @@ var StyledNativeComponent = function (_Component) {
6214
6213
  function (theme) {
6215
6214
  var _props = _this2.props,
6216
6215
  renderAs = _props.as,
6216
+ forwardedAs = _props.forwardedAs,
6217
6217
  forwardedComponent = _props.forwardedComponent,
6218
6218
  forwardedRef = _props.forwardedRef,
6219
6219
  innerRef = _props.innerRef,
6220
6220
  _props$style = _props.style,
6221
6221
  style = _props$style === undefined ? [] : _props$style,
6222
- props = objectWithoutProperties(_props, ['as', 'forwardedComponent', 'forwardedRef', 'innerRef', 'style']);
6222
+ props = objectWithoutProperties(_props, ['as', 'forwardedAs', 'forwardedComponent', 'forwardedRef', 'innerRef', 'style']);
6223
6223
  var defaultProps = forwardedComponent.defaultProps,
6224
6224
  displayName = forwardedComponent.displayName,
6225
6225
  target = forwardedComponent.target;
6226
6226
 
6227
6227
 
6228
- var generatedStyles = void 0;
6229
- if (theme !== undefined) {
6230
- var themeProp = determineTheme(_this2.props, theme, defaultProps);
6231
- generatedStyles = _this2.generateAndInjectStyles(themeProp, _this2.props);
6232
- } else {
6233
- generatedStyles = _this2.generateAndInjectStyles(theme || EMPTY_OBJECT, _this2.props);
6234
- }
6228
+ var generatedStyles = _this2.generateAndInjectStyles(determineTheme(_this2.props, theme, defaultProps) || EMPTY_OBJECT, _this2.props);
6235
6229
 
6236
6230
  var propsForElement = _extends({}, _this2.attrs, props, {
6237
6231
  style: [generatedStyles].concat(style)
6238
6232
  });
6239
6233
 
6234
+ if (forwardedAs) propsForElement.as = forwardedAs;
6240
6235
  if (forwardedRef) propsForElement.ref = forwardedRef;
6241
6236
 
6242
6237
  if (process.env.NODE_ENV !== 'production' && innerRef) {
@@ -6264,13 +6259,11 @@ var StyledNativeComponent = function (_Component) {
6264
6259
  var key = void 0;
6265
6260
 
6266
6261
  if (isFunction(resolvedAttrDef)) {
6267
- // $FlowFixMe
6268
6262
  resolvedAttrDef = resolvedAttrDef(context);
6269
6263
  attrDefWasFn = true;
6270
6264
  }
6271
6265
 
6272
6266
  /* eslint-disable guard-for-in */
6273
- // $FlowFixMe
6274
6267
  for (key in resolvedAttrDef) {
6275
6268
  attr = resolvedAttrDef[key];
6276
6269
 
@@ -6332,6 +6325,7 @@ var _StyledNativeComponent = (function (InlineStyle) {
6332
6325
  var isClass = !isTag(target);
6333
6326
  var isTargetStyledComp = isStyledComponent(target);
6334
6327
 
6328
+ // $FlowFixMe
6335
6329
  var WrappedStyledNativeComponent = React__default.forwardRef(function (props, ref) {
6336
6330
  return React__default.createElement(ParentComponent, _extends({}, props, {
6337
6331
  forwardedComponent: WrappedStyledNativeComponent,
@@ -6360,9 +6354,11 @@ var _StyledNativeComponent = (function (InlineStyle) {
6360
6354
 
6361
6355
  // $FlowFixMe
6362
6356
  WrappedStyledNativeComponent.styledComponentId = 'StyledNativeComponent';
6357
+
6363
6358
  // $FlowFixMe
6364
6359
  WrappedStyledNativeComponent.target = isTargetStyledComp ? // $FlowFixMe
6365
6360
  target.target : target;
6361
+
6366
6362
  // $FlowFixMe
6367
6363
  WrappedStyledNativeComponent.withComponent = function withComponent(tag) {
6368
6364
  var _ = options.displayName,
@@ -6377,8 +6373,18 @@ var _StyledNativeComponent = (function (InlineStyle) {
6377
6373
  return createStyledNativeComponent(tag, newOptions, rules);
6378
6374
  };
6379
6375
 
6376
+ // $FlowFixMe
6377
+ Object.defineProperty(WrappedStyledNativeComponent, 'defaultProps', {
6378
+ get: function get$$1() {
6379
+ return this._foldedDefaultProps;
6380
+ },
6381
+ set: function set$$1(obj) {
6382
+ // $FlowFixMe
6383
+ this._foldedDefaultProps = isTargetStyledComp ? merge(target.defaultProps, obj) : obj;
6384
+ }
6385
+ });
6386
+
6380
6387
  if (isClass) {
6381
- // $FlowFixMe
6382
6388
  hoistNonReactStatics(WrappedStyledNativeComponent, target, {
6383
6389
  // all SC-specific things should not be hoisted
6384
6390
  attrs: true,