!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).emotion={})}(this,(function(e){"use strict";var t=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,r),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var r=function(e){if(e.sheet)return e.sheet;for(var t=0;t0?v(C,--$):0,k--,10===A&&(k=1,w--),A}function _(){return A=$2||P(A)>3?"":" "}function M(e,t){for(;--t&&_()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return G(e,E()+(t<6&&32==R()&&32==_()))}function W(e){for(;_();)switch(A){case e:return $;case 34:case 39:34!==e&&39!==e&&W(A);break;case 40:41===e&&W(e);break;case 92:_()}return $}function q(e,t){for(;_()&&e+A!==57&&(e+A!==84||47!==R()););return"/*"+G(t,$-1)+"*"+l(47===e?e:_())}function D(e){for(;!P(R());)_();return G(e,$)}function F(e){return T(L("",null,null,null,[""],e=N(e),0,[0],e))}function L(e,t,r,n,a,s,i,c,o){for(var u=0,f=0,d=i,g=0,m=0,w=0,k=1,x=1,$=1,A=0,C="",S=a,j=s,G=n,P=C;x;)switch(w=A,A=_()){case 40:if(108!=w&&58==v(P,d-1)){-1!=p(P+=h(z(A),"&","&\f"),"&\f")&&($=-1);break}case 34:case 39:case 91:P+=z(A);break;case 9:case 10:case 13:case 32:P+=I(w);break;case 92:P+=M(E()-1,7);continue;case 47:switch(R()){case 42:case 47:b(H(q(_(),E()),t,r),o);break;default:P+="/"}break;case 123*k:c[u++]=y(P)*$;case 125*k:case 59:case 0:switch(A){case 0:case 125:x=0;case 59+f:-1==$&&(P=h(P,/\f/g,"")),m>0&&y(P)-d&&b(m>32?Z(P+";",n,r,d-1):Z(h(P," ","")+";",n,r,d-2),o);break;case 59:P+=";";default:if(b(G=B(P,t,r,u,f,a,c,C,S=[],j=[],d),s),123===A)if(0===f)L(P,t,G,G,S,s,d,c,j);else switch(99===g&&110===v(P,3)?100:g){case 100:case 108:case 109:case 115:L(e,G,G,n&&b(B(e,G,G,0,0,a,c,C,a,S=[],d),j),a,j,d,c,n?S:j);break;default:L(P,G,G,G,[""],j,0,c,j)}}u=f=m=0,k=$=1,C=P="",d=i;break;case 58:d=1+y(P),m=w;default:if(k<1)if(123==A)--k;else if(125==A&&0==k++&&125==O())continue;switch(P+=l(A),A*k){case 38:$=f>0?1:(P+="\f",-1);break;case 44:c[u++]=(y(P)-1)*$,$=1;break;case 64:45===R()&&(P+=z(_())),g=R(),f=d=y(C=P+=D(E())),A++;break;case 45:45===w&&2==y(P)&&(k=0)}}return s}function B(e,t,r,n,a,s,c,o,l,f,p){for(var v=a-1,y=0===a?s:[""],b=m(y),w=0,k=0,x=0;w0?y[$]+" "+A:h(A,/&\f/g,y[$])))&&(l[x++]=C);return S(e,t,r,0===a?i:o,l,f,p)}function H(e,t,r){return S(e,t,r,s,l(A),g(e,2,-2),0)}function Z(e,t,r,n){return S(e,t,r,c,g(e,0,n),g(e,n+1,-1),n)}function J(e,t){for(var r="",n=m(e),a=0;a6)switch(v(e,t+1)){case 109:if(45!==v(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+n+(108==v(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?te(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==v(e,t+1))break;case 6444:switch(v(e,y(e)-3-(~p(e,"!important")&&10))){case 107:return h(e,":",":"+a)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===v(e,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+r+"$2box$3")+e}break;case 5936:switch(v(e,t+11)){case 114:return a+e+r+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a+e+r+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a+e+r+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a+e+r+e+e}return e}var re=[function(e,t,s,u){if(e.length>-1&&!e.return)switch(e.type){case c:e.return=te(e.value,e.length);break;case o:return J([j(e,{value:h(e.value,"@","@"+a)})],u);case i:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return J([j(e,{props:[h(t,/:(read-\w+)/,":"+n+"$1")]})],u);case"::placeholder":return J([j(e,{props:[h(t,/:(plac\w+)/,":"+a+"input-$1")]}),j(e,{props:[h(t,/:(plac\w+)/,":"+n+"$1")]}),j(e,{props:[h(t,/:(plac\w+)/,r+"input-$1")]})],u)}return""}))}}],ne=function(e){var r=e.key;if("css"===r){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var a,s,i=e.stylisPlugins||re,c={},o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r=4;++n,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(a){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}(a)+o;return{name:u,styles:a,next:de}};function ve(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "})),n}function ge(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function ye(e,t,r){var n=[],a=ve(e,n,r);return n.length<2?r:a+t(n)}var me=function e(t){for(var r="",n=0;n