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