index.min.js
15.1 KB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(e.emotionCore={},e.React)}(this,function(e,m){"use strict";var c=function(){function e(e){this.isSpeedy=void 0===e.speedy||e.speedy,this.maxLength=this.isSpeedy?65e3:1,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container}var t=e.prototype;return t.insert=function(e){if(this.ctr%this.maxLength==0){var t,r=(a=this,(s=document.createElement("style")).setAttribute("data-emotion",a.key),void 0!==a.nonce&&s.setAttribute("nonce",a.nonce),s.appendChild(document.createTextNode("")),s);t=0===this.tags.length?this.before:this.tags[this.tags.length-1].nextSibling,this.container.insertBefore(r,t),this.tags.push(r)}var a,s,n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(n);try{i.insertRule(e,i.cssRules.length)}catch(e){}}else n.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode.removeChild(e)}),this.tags=[],this.ctr=0},e}();function o(e){function _(e,t,r){var a=t.trim().split(u),s=(t=a).length,n=e.length;switch(n){case 0:case 1:var i=0;for(e=0===n?"":e[0]+" ";i<s;++i)t[i]=l(e,t[i],r).trim();break;default:var c=i=0;for(t=[];i<s;++i)for(var o=0;o<n;++o)t[c++]=l(e[o]+" ",a[i],r).trim()}return t}function l(e,t,r){var a=t.charCodeAt(0);switch(a<33&&(a=(t=t.trim()).charCodeAt(0)),a){case 38:return t.replace(s,"$1"+e.trim());case 58:return e.trim()+t.replace(s,"$1"+e.trim());default:if(0<1*r&&0<t.indexOf("\f"))return t.replace(s,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function $(e,t,r,a){var s=e+";",n=2*t+3*r+4*a;if(944===n){e=s.indexOf(":",9)+1;var i=s.substring(e,s.length-1).trim();return i=s.substring(0,e).trim()+i+";",1===F||2===F&&N(i,1)?"-webkit-"+i+i:i}if(0===F||2===F&&!N(s,1))return s;switch(n){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace(m,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(i=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+i+s;case 1005:return o.test(s)?s.replace(c,":-webkit-")+s.replace(c,":-moz-")+s:s;case 1e3:switch(t=(i=s.substring(13).trim()).indexOf("-")+1,i.charCodeAt(0)+i.charCodeAt(t)){case 226:i=s.replace(f,"tb");break;case 232:i=s.replace(f,"tb-rl");break;case 220:i=s.replace(f,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+i+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,n=(i=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|i.charCodeAt(7))){case 203:if(i.charCodeAt(8)<111)break;case 115:s=s.replace(i,"-webkit-"+i)+";"+s;break;case 207:case 102:s=s.replace(i,"-webkit-"+(102<n?"inline-":"")+"box")+";"+s.replace(i,"-webkit-"+i)+";"+s.replace(i,"-ms-"+i+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return i=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+i+"-ms-flex-"+i+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(p,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(p,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===b.test(e))return 115===(i=e.substring(e.indexOf(":")+1)).charCodeAt(0)?$(e.replace("stretch","fill-available"),t,r,a).replace(":fill-available",":stretch"):s.replace(i,"-webkit-"+i)+s.replace(i,"-moz-"+i.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===r+a&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+s}return s}function N(e,t){var r=e.indexOf(1===t?":":"{"),a=e.substring(0,3!==t?r:10);return r=e.substring(r+1,e.length-1),i(2!==t?a:a.replace(n,"$1"),r,t)}function j(e,t){var r=$(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return r!==t+";"?r.replace(a," or ($1)").substring(4):"("+t+")"}function z(e,t,r,a,s,n,i,c,o,l){for(var h,u=0,f=t;u<T;++u)switch(h=k[u].call(d,e,f,r,a,s,n,i,c,o,l)){case void 0:case!1:case!0:case null:break;default:f=h}if(f!==t)return f}function t(e){return void 0!==(e=e.prefix)&&(i=null,e?"function"!=typeof e?F=1:(F=2,i=e):F=0),t}function d(e,t){var r=e;if(r.charCodeAt(0)<33&&(r=r.trim()),r=[r],0<T){var a=z(-1,t,r,r,L,G,0,0,0,0);void 0!==a&&"string"==typeof a&&(t=a)}var s=function e(t,r,a,s,n){for(var i,c,o,l,h,u=0,f=0,d=0,p=0,b=0,m=0,k=o=i=0,g=0,v=0,y=0,w=0,C=a.length,A=C-1,x="",S="",O="",E="";g<C;){if(c=a.charCodeAt(g),g===A&&0!==f+p+d+u&&(0!==f&&(c=47===f?10:47),p=d=u=0,C++,A++),0===f+p+d+u){if(g===A&&(0<v&&(x=x.replace(R,"")),0<x.trim().length)){switch(c){case 32:case 9:case 59:case 13:case 10:break;default:x+=a.charAt(g)}c=59}switch(c){case 123:for(i=(x=x.trim()).charCodeAt(0),o=1,w=++g;g<C;){switch(c=a.charCodeAt(g)){case 123:o++;break;case 125:o--;break;case 47:switch(c=a.charCodeAt(g+1)){case 42:case 47:e:{for(k=g+1;k<A;++k)switch(a.charCodeAt(k)){case 47:if(42===c&&42===a.charCodeAt(k-1)&&g+2!==k){g=k+1;break e}break;case 10:if(47===c){g=k+1;break e}}g=k}}break;case 91:c++;case 40:c++;case 34:case 39:for(;g++<A&&a.charCodeAt(g)!==c;);}if(0===o)break;g++}switch(o=a.substring(w,g),0===i&&(i=(x=x.replace(M,"").trim()).charCodeAt(0)),i){case 64:switch(0<v&&(x=x.replace(R,"")),c=x.charCodeAt(1)){case 100:case 109:case 115:case 45:v=r;break;default:v=B}if(w=(o=e(r,v,o,c,n+1)).length,0<T&&(h=z(3,o,v=_(B,x,y),r,L,G,w,c,n,s),x=v.join(""),void 0!==h&&0===(w=(o=h.trim()).length)&&(c=0,o="")),0<w)switch(c){case 115:x=x.replace(D,j);case 100:case 109:case 45:o=x+"{"+o+"}";break;case 107:o=(x=x.replace(P,"$1 $2"))+"{"+o+"}",o=1===F||2===F&&N("@"+o,3)?"@-webkit-"+o+"@"+o:"@"+o;break;default:o=x+o,112===s&&(S+=o,o="")}else o="";break;default:o=e(r,_(r,x,y),o,s,n+1)}O+=o,o=y=v=k=i=0,x="",c=a.charCodeAt(++g);break;case 125:case 59:if(1<(w=(x=(0<v?x.replace(R,""):x).trim()).length))switch(0===k&&(i=x.charCodeAt(0),45===i||96<i&&i<123)&&(w=(x=x.replace(" ",":")).length),0<T&&void 0!==(h=z(1,x,r,t,L,G,S.length,s,n,s))&&0===(w=(x=h.trim()).length)&&(x="\0\0"),i=x.charCodeAt(0),c=x.charCodeAt(1),i){case 0:break;case 64:if(105===c||99===c){E+=x+a.charAt(g);break}default:58!==x.charCodeAt(w-1)&&(S+=$(x,i,c,x.charCodeAt(2)))}y=v=k=i=0,x="",c=a.charCodeAt(++g)}}switch(c){case 13:case 10:47===f?f=0:0===1+i&&107!==s&&0<x.length&&(v=1,x+="\0"),0<T*U&&z(0,x,r,t,L,G,S.length,s,n,s),G=1,L++;break;case 59:case 125:if(0===f+p+d+u){G++;break}default:switch(G++,l=a.charAt(g),c){case 9:case 32:if(0===p+u+f)switch(b){case 44:case 58:case 9:case 32:l="";break;default:32!==c&&(l=" ")}break;case 0:l="\\0";break;case 12:l="\\f";break;case 11:l="\\v";break;case 38:0===p+f+u&&(v=y=1,l="\f"+l);break;case 108:if(0===p+f+u+q&&0<k)switch(g-k){case 2:112===b&&58===a.charCodeAt(g-3)&&(q=b);case 8:111===m&&(q=m)}break;case 58:0===p+f+u&&(k=g);break;case 44:0===f+d+p+u&&(v=1,l+="\r");break;case 34:case 39:0===f&&(p=p===c?0:0===p?c:p);break;case 91:0===p+f+d&&u++;break;case 93:0===p+f+d&&u--;break;case 41:0===p+f+u&&d--;break;case 40:if(0===p+f+u){if(0===i)switch(2*b+3*m){case 533:break;default:i=1}d++}break;case 64:0===f+d+p+u+k+o&&(o=1);break;case 42:case 47:if(!(0<p+u+d))switch(f){case 0:switch(2*c+3*a.charCodeAt(g+1)){case 235:f=47;break;case 220:w=g,f=42}break;case 42:47===c&&42===b&&w+2!==g&&(33===a.charCodeAt(w+2)&&(S+=a.substring(w,g+1)),l="",f=0)}}0===f&&(x+=l)}m=b,b=c,g++}if(0<(w=S.length)){if(v=r,0<T&&void 0!==(h=z(2,S,v,t,L,G,w,s,n,s))&&0===(S=h).length)return E+S+O;if(S=v.join(",")+"{"+S+"}",0!=F*q){switch(2!==F||N(S,2)||(q=0),q){case 111:S=S.replace(W,":-moz-$1")+S;break;case 112:S=S.replace(I,"::-webkit-input-$1")+S.replace(I,"::-moz-$1")+S.replace(I,":-ms-input-$1")+S}q=0}}return E+S+O}(B,r,t,0,0);return 0<T&&(void 0!==(a=z(-2,s,r,r,L,G,s.length,0,0,0))&&(s=a)),"",q=0,G=L=1,s}var M=/^\0+/g,R=/[\0\r\f]/g,c=/: */g,o=/zoo|gra/,h=/([,: ])(transform)/g,u=/,\r+?/g,s=/([\t\r\n ])*\f?&/g,P=/@(k\w+)\s*(\S*)\s*/,I=/::(place)/g,W=/:(read-only)/g,f=/[svh]\w+-[tblr]{2}/,D=/\(\s*(.*)\s*\)/g,a=/([\s\S]*?);/g,p=/-self|flex-/g,n=/[^]*?(:[rp][el]a[\w-]+)[^]*/,b=/stretch|:\s*\w+\-(?:conte|avail)/,m=/([^-])(image-set\()/,G=1,L=1,q=0,F=1,B=[],k=[],T=0,i=null,U=0;return d.use=function e(t){switch(t){case void 0:case null:T=k.length=0;break;default:switch(t.constructor){case Array:for(var r=0,a=t.length;r<a;++r)e(t[r]);break;case Function:k[T++]=t;break;case Boolean:U=0|!!t}}return e},d.set=t,void 0!==e&&t(e),d}var l="/*|*/";function h(e){e&&u.push(e+"}")}var u,f=function(e,t,r,a,s,n,i,c,o){switch(e){case-1:u=[];break;case 2:if(0===c)return t+l;break;case 3:switch(c){case 102:case 112:return u.push(r[0]+t),"";default:return t+l}case-2:return t.split("/*|*/}").forEach(h),u}},a=m.createContext(function(e){void 0===e&&(e={});var t,r=e.key||"css";void 0!==e.prefix&&(t={prefix:e.prefix});var a=new o(t);a.use(e.stylisPlugins)(f);var s,n={};s=e.container||document.head;var i=document.querySelectorAll("style[data-emotion-"+r+"]");return Array.prototype.forEach.call(i,function(e){e.getAttribute("data-emotion-"+r).split(" ").forEach(function(e){n[e]=!0}),e.parentNode!==s&&s.appendChild(e)}),{stylis:a,key:r,sheet:new c({key:r,container:s,nonce:e.nonce}),inserted:n,registered:{},theme:{}}}()),t=a.Provider;e.withCSSContext=function(r){return function(t){return m.createElement(a.Consumer,null,function(e){return r(t,e)})}};var r={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var s,n,i=/[A-Z]|^ms/g,d=/_EMO_([^_]+?)_([^]*?)_EMO_/g,p=(s=function(e){return e.replace(i,"-$&").toLowerCase()},n={},function(e){return void 0===n[e]&&(n[e]=s(e)),n[e]}),b=function(e,t){if(null==t||"boolean"==typeof t)return"";switch(e){case"animation":case"animationName":t=t.replace(d,function(e,t,r){return v=r+v,t})}return 1===r[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"};function k(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":return 1===r.anim?(v=r.styles+v,r.name):void 0!==r.styles?r.styles:function(e,r,a){var s="";if(Array.isArray(a))for(var t=0;t<a.length;t++)s+=k(e,r,a[t]);else{var n=function(t){"object"!=typeof a[t]?s+=p(t)+":"+b(t,a[t])+";":Array.isArray(a[t])&&"string"==typeof a[t][0]&&void 0===r[a[t][0]]?a[t].forEach(function(e){s+=p(t)+":"+b(t,e)+";"}):s+=t+"{"+k(e,r,a[t])+"}"};for(var i in a)n(i)}return s}(e,t,r);case"function":if(void 0!==e)return k(e,t,r(e));default:var a=t[r];return void 0!==a?a:r}}var g=/label:\s*([^\s;\n{]+)\s*;/g,v="",y=function(e,t,r){if(1===t.length&&"object"==typeof t[0]&&null!==t[0]&&void 0!==t[0].styles)return t[0];var a=!0,s=v="",n=t[0];if(null==n||void 0===n.raw){a=!1;var i=k(r,e,n);v+=i}else v+=n[0];for(var c=1;c<t.length;c++){var o=k(r,e,t[c]);v+=o,a&&(v+=n[c])}return{name:function(e){for(var t,r=e.length,a=r^r,s=0;4<=r;)t=1540483477*(65535&(t=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24))+((1540483477*(t>>>16)&65535)<<16),a=1540483477*(65535&a)+((1540483477*(a>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),r-=4,++s;switch(r){case 3:a^=(255&e.charCodeAt(s+2))<<16;case 2:a^=(255&e.charCodeAt(s+1))<<8;case 1:a=1540483477*(65535&(a^=255&e.charCodeAt(s)))+((1540483477*(a>>>16)&65535)<<16)}return a=1540483477*(65535&(a^=a>>>13))+((1540483477*(a>>>16)&65535)<<16),((a^=a>>>15)>>>0).toString(36)}(v=v.replace(g,function(e,t){return s+="-"+t,""}))+s,styles:v}},w=e.withCSSContext(function(e,t){return m.createElement(C,{styles:e.styles,context:t})}),C=function(t){var e,r;function a(e){return t.call(this,e)||this}r=t,(e=a).prototype=Object.create(r.prototype),(e.prototype.constructor=e).__proto__=r;var s=a.prototype;return s.componentDidMount=function(){this.updateStyles()},s.componentDidUpdate=function(){this.updateStyles()},s.updateStyles=function(){var e=y(this.props.context.registered,[this.props.styles]);if(e.name!==this.styleName){if(this.styleName=e.name,!this.sheet){this.sheet=new c({key:this.props.context.key+"-global",nonce:this.props.context.sheet.nonce,container:this.props.context.sheet.container});var t=document.querySelector("style[data-emotion-"+this.props.context.key+'="'+e.name+'"]');null!==t&&this.sheet.tags.push(t),this.props.context.sheet.tags.length&&(this.sheet.before=this.props.context.sheet.tags[0])}var r=this.props.context.stylis("",e.styles);this.sheet.tags.length&&(this.sheet.before=this.sheet.tags[0].nextElementSibling,this.sheet.flush()),r.forEach(this.sheet.insert,this.sheet)}},s.componentWillUnmount=function(){this.sheet.flush()},s.render=function(){return null},a}(m.Component),A={};function x(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return y(A,t)}e.Provider=t,e.jsx=function(d,p){var e,b=arguments;return null==p||null==p.css?m.createElement.apply(void 0,arguments):(p.css,e=function(e){var t,r,a,s,n=[],i="";void 0!==p.className&&(t=e.registered,r=n,a=p.className,s="",a.split(" ").forEach(function(e){void 0!==t[e]?r.push(t[e]):s+=e+" "}),i=s),n.push("function"==typeof p.css?p.css(e.theme):p.css);var c=y(e.registered,n);!function(e,t,r){if(!1===r&&void 0===e.registered[e.key+"-"+t.name]&&(e.registered[e.key+"-"+t.name]=t.styles),void 0===e.inserted[t.name]){var a=e.stylis("."+e.key+"-"+t.name,t.styles);e.inserted[t.name]=!0,a.forEach(e.sheet.insert,e.sheet)}}(e,c,"string"==typeof d),i+=e.key+"-"+c.name;var o={};for(var l in p)Object.prototype.hasOwnProperty.call(p,l)&&"css"!==l&&(o[l]=p[l]);o.className=i;var h=b.length,u=new Array(h);u[0]=d,u[1]=o;for(var f=2;f<h;f++)u[f]=b[f];return m.createElement.apply(void 0,u)},m.createElement(a.Consumer,null,e))},e.Global=w,e.keyframes=function(){var e=x.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},e.css=x,Object.defineProperty(e,"__esModule",{value:!0})});
//# sourceMappingURL=index.min.js.map