eldav1d-marvel-ui
Version:
UI library for (and from) Playing with Marvel API
14 lines (11 loc) • 23 kB
JavaScript
;const ze=require("react/jsx-runtime"),B=require("react");function We(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const P=We(B);function je(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function Ye(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var qe=function(){function e(t){var n=this;this._insertTag=function(s){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(s,a),n.tags.push(s)},this.isSpeedy=t.speedy===void 0?process.env.NODE_ENV==="production":t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ye(this));var s=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
`+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!a}if(this.isSpeedy){var i=je(s);try{i.insertRule(n,i.cssRules.length)}catch(o){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',o)}}else s.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),b="-ms-",K="-moz-",f="-webkit-",ae="comm",ie="rule",oe="decl",Ue="@import",xe="@keyframes",Ge="@layer",Be=Math.abs,H=String.fromCharCode,Ke=Object.assign;function Ze(e,r){return E(e,0)^45?(((r<<2^E(e,0))<<2^E(e,1))<<2^E(e,2))<<2^E(e,3):0}function Oe(e){return e.trim()}function He(e,r){return(e=r.exec(e))?e[0]:e}function u(e,r,t){return e.replace(r,t)}function ee(e,r){return e.indexOf(r)}function E(e,r){return e.charCodeAt(r)|0}function F(e,r,t){return e.slice(r,t)}function R(e){return e.length}function ce(e){return e.length}function Y(e,r){return r.push(e),e}function Je(e,r){return e.map(r).join("")}var J=1,D=1,Se=0,O=0,g=0,V="";function Q(e,r,t,n,s,a,i){return{value:e,root:r,parent:t,type:n,props:s,children:a,line:J,column:D,length:i,return:""}}function M(e,r){return Ke(Q("",null,null,"",null,null,0),e,{length:-e.length},r)}function Qe(){return g}function Xe(){return g=O>0?E(V,--O):0,D--,g===10&&(D=1,J--),g}function S(){return g=O<Se?E(V,O++):0,D++,g===10&&(D=1,J++),g}function I(){return E(V,O)}function q(){return O}function j(e,r){return F(V,e,r)}function z(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ce(e){return J=D=1,Se=R(V=e),O=0,[]}function _e(e){return V="",e}function U(e){return Oe(j(O-1,re(e===91?e+2:e===40?e+1:e)))}function er(e){for(;(g=I())&&g<33;)S();return z(e)>2||z(g)>3?"":" "}function rr(e,r){for(;--r&&S()&&!(g<48||g>102||g>57&&g<65||g>70&&g<97););return j(e,q()+(r<6&&I()==32&&S()==32))}function re(e){for(;S();)switch(g){case e:return O;case 34:case 39:e!==34&&e!==39&&re(g);break;case 40:e===41&&re(e);break;case 92:S();break}return O}function tr(e,r){for(;S()&&e+g!==57;)if(e+g===84&&I()===47)break;return"/*"+j(r,O-1)+"*"+H(e===47?e:S())}function nr(e){for(;!z(I());)S();return j(e,O)}function sr(e){return _e(G("",null,null,null,[""],e=Ce(e),0,[0],e))}function G(e,r,t,n,s,a,i,o,l){for(var h=0,c=0,v=i,w=0,C=0,N=0,d=1,x=1,m=1,y=0,k="",L=s,$=a,A=n,p=k;x;)switch(N=y,y=S()){case 40:if(N!=108&&E(p,v-1)==58){ee(p+=u(U(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:p+=U(y);break;case 9:case 10:case 13:case 32:p+=er(N);break;case 92:p+=rr(q()-1,7);continue;case 47:switch(I()){case 42:case 47:Y(ar(tr(S(),q()),r,t),l);break;default:p+="/"}break;case 123*d:o[h++]=R(p)*m;case 125*d:case 59:case 0:switch(y){case 0:case 125:x=0;case 59+c:m==-1&&(p=u(p,/\f/g,"")),C>0&&R(p)-v&&Y(C>32?me(p+";",n,t,v-1):me(u(p," ","")+";",n,t,v-2),l);break;case 59:p+=";";default:if(Y(A=pe(p,r,t,h,c,s,o,k,L=[],$=[],v),a),y===123)if(c===0)G(p,r,A,A,L,a,v,o,$);else switch(w===99&&E(p,3)===110?100:w){case 100:case 108:case 109:case 115:G(e,A,A,n&&Y(pe(e,A,A,0,0,s,o,k,s,L=[],v),$),s,$,v,o,n?L:$);break;default:G(p,A,A,A,[""],$,0,o,$)}}h=c=C=0,d=m=1,k=p="",v=i;break;case 58:v=1+R(p),C=N;default:if(d<1){if(y==123)--d;else if(y==125&&d++==0&&Xe()==125)continue}switch(p+=H(y),y*d){case 38:m=c>0?1:(p+="\f",-1);break;case 44:o[h++]=(R(p)-1)*m,m=1;break;case 64:I()===45&&(p+=U(S())),w=I(),c=v=R(k=p+=nr(q())),y++;break;case 45:N===45&&R(p)==2&&(d=0)}}return a}function pe(e,r,t,n,s,a,i,o,l,h,c){for(var v=s-1,w=s===0?a:[""],C=ce(w),N=0,d=0,x=0;N<n;++N)for(var m=0,y=F(e,v+1,v=Be(d=i[N])),k=e;m<C;++m)(k=Oe(d>0?w[m]+" "+y:u(y,/&\f/g,w[m])))&&(l[x++]=k);return Q(e,r,t,s===0?ie:o,l,h,c)}function ar(e,r,t){return Q(e,r,t,ae,H(Qe()),F(e,2,-2),0)}function me(e,r,t,n){return Q(e,r,t,oe,F(e,0,n),F(e,n+1,-1),n)}function T(e,r){for(var t="",n=ce(e),s=0;s<n;s++)t+=r(e[s],s,e,r)||"";return t}function ir(e,r,t,n){switch(e.type){case Ge:if(e.children.length)break;case Ue:case oe:return e.return=e.return||e.value;case ae:return"";case xe:return e.return=e.value+"{"+T(e.children,n)+"}";case ie:e.value=e.props.join(",")}return R(t=T(e.children,n))?e.return=e.value+"{"+t+"}":""}function or(e){var r=ce(e);return function(t,n,s,a){for(var i="",o=0;o<r;o++)i+=e[o](t,n,s,a)||"";return i}}function cr(e){return function(r){r.root||(r=r.return)&&e(r)}}function fr(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var ur=function(r,t,n){for(var s=0,a=0;s=a,a=I(),s===38&&a===12&&(t[n]=1),!z(a);)S();return j(r,O)},lr=function(r,t){var n=-1,s=44;do switch(z(s)){case 0:s===38&&I()===12&&(t[n]=1),r[n]+=ur(O-1,t,n);break;case 2:r[n]+=U(s);break;case 4:if(s===44){r[++n]=I()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=H(s)}while(s=S());return r},dr=function(r,t){return _e(lr(Ce(r),t))},ve=new WeakMap,hr=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,s=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!ve.get(n))&&!s){ve.set(r,!0);for(var a=[],i=dr(t,a),o=n.props,l=0,h=0;l<i.length;l++)for(var c=0;c<o.length;c++,h++)r.props[h]=a[l]?i[l].replace(/&\f/g,o[c]):o[c]+" "+i[l]}}},pr=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}},mr="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",vr=function(r){return r.type==="comm"&&r.children.indexOf(mr)>-1},gr=function(r){return function(t,n,s){if(!(t.type!=="rule"||r.compat)){var a=t.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var i=!!t.parent,o=i?t.parent.children:s,l=o.length-1;l>=0;l--){var h=o[l];if(h.line<t.line)break;if(h.column<t.column){if(vr(h))return;break}}a.forEach(function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},ke=function(r){return r.type.charCodeAt(1)===105&&r.type.charCodeAt(0)===64},yr=function(r,t){for(var n=r-1;n>=0;n--)if(!ke(t[n]))return!0;return!1},ge=function(r){r.type="",r.value="",r.return="",r.children="",r.props=""},Er=function(r,t,n){ke(r)&&(r.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ge(r)):yr(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ge(r)))};function Ae(e,r){switch(Ze(e,r)){case 5103:return f+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return f+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return f+e+K+e+b+e+e;case 6828:case 4268:return f+e+b+e+e;case 6165:return f+e+b+"flex-"+e+e;case 5187:return f+e+u(e,/(\w+).+(:[^]+)/,f+"box-$1$2"+b+"flex-$1$2")+e;case 5443:return f+e+b+"flex-item-"+u(e,/flex-|-self/,"")+e;case 4675:return f+e+b+"flex-line-pack"+u(e,/align-content|flex-|-self/,"")+e;case 5548:return f+e+b+u(e,"shrink","negative")+e;case 5292:return f+e+b+u(e,"basis","preferred-size")+e;case 6060:return f+"box-"+u(e,"-grow","")+f+e+b+u(e,"grow","positive")+e;case 4554:return f+u(e,/([^-])(transform)/g,"$1"+f+"$2")+e;case 6187:return u(u(u(e,/(zoom-|grab)/,f+"$1"),/(image-set)/,f+"$1"),e,"")+e;case 5495:case 3959:return u(e,/(image-set\([^]*)/,f+"$1$`$1");case 4968:return u(u(e,/(.+:)(flex-)?(.*)/,f+"box-pack:$3"+b+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+f+e+e;case 4095:case 3583:case 4068:case 2532:return u(e,/(.+)-inline(.+)/,f+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(R(e)-1-r>6)switch(E(e,r+1)){case 109:if(E(e,r+4)!==45)break;case 102:return u(e,/(.+:)(.+)-([^]+)/,"$1"+f+"$2-$3$1"+K+(E(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~ee(e,"stretch")?Ae(u(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(E(e,r+1)!==115)break;case 6444:switch(E(e,R(e)-3-(~ee(e,"!important")&&10))){case 107:return u(e,":",":"+f)+e;case 101:return u(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+f+(E(e,14)===45?"inline-":"")+"box$3$1"+f+"$2$3$1"+b+"$2box$3")+e}break;case 5936:switch(E(e,r+11)){case 114:return f+e+b+u(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return f+e+b+u(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return f+e+b+u(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return f+e+b+e+e}return e}var br=function(r,t,n,s){if(r.length>-1&&!r.return)switch(r.type){case oe:r.return=Ae(r.value,r.length);break;case xe:return T([M(r,{value:u(r.value,"@","@"+f)})],s);case ie:if(r.length)return Je(r.props,function(a){switch(He(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return T([M(r,{props:[u(a,/:(read-\w+)/,":"+K+"$1")]})],s);case"::placeholder":return T([M(r,{props:[u(a,/:(plac\w+)/,":"+f+"input-$1")]}),M(r,{props:[u(a,/:(plac\w+)/,":"+K+"$1")]}),M(r,{props:[u(a,/:(plac\w+)/,b+"input-$1")]})],s)}return""})}},wr=[br],Re=function(r){var t=r.key;if(process.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(d){var x=d.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var s=r.stylisPlugins||wr;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var a={},i,o=[];i=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(d){for(var x=d.getAttribute("data-emotion").split(" "),m=1;m<x.length;m++)a[x[m]]=!0;o.push(d)});var l,h=[hr,pr];process.env.NODE_ENV!=="production"&&h.push(gr({get compat(){return N.compat}}),Er);{var c,v=[ir,process.env.NODE_ENV!=="production"?function(d){d.root||(d.return?c.insert(d.return):d.value&&d.type!==ae&&c.insert(d.value+"{}"))}:cr(function(d){c.insert(d)})],w=or(h.concat(s,v)),C=function(x){return T(sr(x),w)};l=function(x,m,y,k){c=y,process.env.NODE_ENV!=="production"&&m.map!==void 0&&(c={insert:function($){y.insert($+m.map)}}),C(x?x+"{"+m.styles+"}":m.styles),k&&(N.inserted[m.name]=!0)}}var N={key:t,sheet:new qe({key:t,container:i,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:a,registered:{},insert:l};return N.sheet.hydrate(o),N},Nr=!0;function Pe(e,r,t){var n="";return t.split(" ").forEach(function(s){e[s]!==void 0?r.push(e[s]+";"):n+=s+" "}),n}var fe=function(r,t,n){var s=r.key+"-"+t.name;(n===!1||Nr===!1)&&r.registered[s]===void 0&&(r.registered[s]=t.styles)},Ie=function(r,t,n){fe(r,t,n);var s=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var a=t;do r.insert(t===a?"."+s:"",a,r.sheet,!0),a=a.next;while(a!==void 0)}};function xr(e){for(var r=0,t,n=0,s=e.length;s>=4;++n,s-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(s){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Or={animationIterationCount:1,aspectRatio: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},ye=`You have illegal escape sequence in your template literal, most likely inside content's property value.
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
You can read more about this here:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Sr="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Cr=/[A-Z]|^ms/g,$e=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ue=function(r){return r.charCodeAt(1)===45},Ee=function(r){return r!=null&&typeof r!="boolean"},X=fr(function(e){return ue(e)?e:e.replace(Cr,"-$&").toLowerCase()}),Z=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace($e,function(n,s,a){return _={name:s,styles:a,next:_},s})}return Or[r]!==1&&!ue(r)&&typeof t=="number"&&t!==0?t+"px":t};if(process.env.NODE_ENV!=="production"){var _r=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,kr=["normal","none","initial","inherit","unset"],Ar=Z,Rr=/^-ms-/,Pr=/-(.)/g,be={};Z=function(r,t){if(r==="content"&&(typeof t!="string"||kr.indexOf(t)===-1&&!_r.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||t.charAt(0)!=='"'&&t.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var n=Ar(r,t);return n!==""&&!ue(r)&&r.indexOf("-")!==-1&&be[r]===void 0&&(be[r]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+r.replace(Rr,"ms-").replace(Pr,function(s,a){return a.toUpperCase()})+"?")),n}}var Te="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function W(e,r,t){if(t==null)return"";if(t.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&t.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Te);return t}switch(typeof t){case"boolean":return"";case"object":{if(t.anim===1)return _={name:t.name,styles:t.styles,next:_},t.name;if(t.styles!==void 0){var n=t.next;if(n!==void 0)for(;n!==void 0;)_={name:n.name,styles:n.styles,next:_},n=n.next;var s=t.styles+";";return process.env.NODE_ENV!=="production"&&t.map!==void 0&&(s+=t.map),s}return Ir(e,r,t)}case"function":{if(e!==void 0){var a=_,i=t(e);return _=a,W(e,r,i)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var o=[],l=t.replace($e,function(c,v,w){var C="animation"+o.length;return o.push("const "+C+" = keyframes`"+w.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+C+"}"});o.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(o,["`"+l+"`"]).join(`
`)+`
You should wrap it with \`css\` like this:
`+("css`"+l+"`"))}break}if(r==null)return t;var h=r[t];return h!==void 0?h:t}function Ir(e,r,t){var n="";if(Array.isArray(t))for(var s=0;s<t.length;s++)n+=W(e,r,t[s])+";";else for(var a in t){var i=t[a];if(typeof i!="object")r!=null&&r[i]!==void 0?n+=a+"{"+r[i]+"}":Ee(i)&&(n+=X(a)+":"+Z(a,i)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Te);if(Array.isArray(i)&&typeof i[0]=="string"&&(r==null||r[i[0]]===void 0))for(var o=0;o<i.length;o++)Ee(i[o])&&(n+=X(a)+":"+Z(a,i[o])+";");else{var l=W(e,r,i);switch(a){case"animation":case"animationName":{n+=X(a)+":"+l+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(Sr),n+=a+"{"+l+"}"}}}}return n}var we=/label:\s*([^\s;\n{]+)\s*(;|$)/g,De;process.env.NODE_ENV!=="production"&&(De=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var _,te=function(r,t,n){if(r.length===1&&typeof r[0]=="object"&&r[0]!==null&&r[0].styles!==void 0)return r[0];var s=!0,a="";_=void 0;var i=r[0];i==null||i.raw===void 0?(s=!1,a+=W(n,t,i)):(process.env.NODE_ENV!=="production"&&i[0]===void 0&&console.error(ye),a+=i[0]);for(var o=1;o<r.length;o++)a+=W(n,t,r[o]),s&&(process.env.NODE_ENV!=="production"&&i[o]===void 0&&console.error(ye),a+=i[o]);var l;process.env.NODE_ENV!=="production"&&(a=a.replace(De,function(w){return l=w,""})),we.lastIndex=0;for(var h="",c;(c=we.exec(a))!==null;)h+="-"+c[1];var v=xr(a)+h;return process.env.NODE_ENV!=="production"?{name:v,styles:a,map:l,next:_,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:v,styles:a,next:_}},$r=function(r){return r()},Ve=P.useInsertionEffect?P.useInsertionEffect:!1,Le=Ve||$r,Tr=Ve||P.useLayoutEffect,le={}.hasOwnProperty,de=P.createContext(typeof HTMLElement<"u"?Re({key:"css"}):null);process.env.NODE_ENV!=="production"&&(de.displayName="EmotionCacheContext");var Dr=de.Provider,Me=function(r){return B.forwardRef(function(t,n){var s=B.useContext(de);return r(t,s,n)})},he=P.createContext({});process.env.NODE_ENV!=="production"&&(he.displayName="EmotionThemeContext");var Ne=function(r){var t=r.split(".");return t[t.length-1]},Vr=function(r){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(r);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(r),t))return Ne(t[1])},Lr=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Mr=function(r){return r.replace(/\$/g,"-")},Fr=function(r){if(r)for(var t=r.split(`
`),n=0;n<t.length;n++){var s=Vr(t[n]);if(s){if(Lr.has(s))break;if(/^[A-Z]/.test(s))return Mr(s)}}},ne="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",se="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",zr=function(r,t){if(process.env.NODE_ENV!=="production"&&typeof t.css=="string"&&t.css.indexOf(":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var n={};for(var s in t)le.call(t,s)&&(n[s]=t[s]);if(n[ne]=r,process.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||t.css.name.indexOf("-")===-1)){var a=Fr(new Error().stack);a&&(n[se]=a)}return n},Wr=function(r){var t=r.cache,n=r.serialized,s=r.isStringTag;return fe(t,n,s),Le(function(){return Ie(t,n,s)}),null},Fe=Me(function(e,r,t){var n=e.css;typeof n=="string"&&r.registered[n]!==void 0&&(n=r.registered[n]);var s=e[ne],a=[n],i="";typeof e.className=="string"?i=Pe(r.registered,a,e.className):e.className!=null&&(i=e.className+" ");var o=te(a,void 0,P.useContext(he));if(process.env.NODE_ENV!=="production"&&o.name.indexOf("-")===-1){var l=e[se];l&&(o=te([o,"label:"+l+";"]))}i+=r.key+"-"+o.name;var h={};for(var c in e)le.call(e,c)&&c!=="css"&&c!==ne&&(process.env.NODE_ENV==="production"||c!==se)&&(h[c]=e[c]);return h.ref=t,h.className=i,P.createElement(P.Fragment,null,P.createElement(Wr,{cache:r,serialized:o,isStringTag:typeof s=="string"}),P.createElement(s,h))});process.env.NODE_ENV!=="production"&&(Fe.displayName="EmotionCssPropInternal");var jr=Fe;const Yr=({children:e})=>{const r=document.querySelector("title");if(!r)throw new Error("No <title> element found in document");const t=B.useMemo(()=>Re({key:"with-tailwind",insertionPoint:r}),[r]);return ze.jsx(Dr,{value:t,children:e})};exports.Emotion$1=jr;exports.EmotionCacheProvider=Yr;exports.ThemeContext=he;exports.createEmotionProps=zr;exports.getRegisteredStyles=Pe;exports.hasOwn=le;exports.insertStyles=Ie;exports.registerStyles=fe;exports.serializeStyles=te;exports.useInsertionEffectAlwaysWithSyncFallback=Le;exports.useInsertionEffectWithLayoutFallback=Tr;exports.withEmotionCache=Me;
//# sourceMappingURL=EmotionCacheProvider-NC5qpiG0.cjs.map