styled-components 6.4.0-prerelease.4 → 6.4.0-prerelease.7

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,6 +1,6 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).styled={},e.React)}(this,function(e,t){"use strict";var n,s;const r="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",o="active",i="data-styled-version",c="6.4.0-prerelease.4",a="/*!sc*/\n",l="undefined"!=typeof window&&"undefined"!=typeof document;function u(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const h=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(s=null!==(n=u("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==n?n:u("SC_DISABLE_SPEEDY"))&&void 0!==s?s:"undefined"==typeof process||void 0===process.env),f="sc-keyframes-",d={},p=Object.freeze([]),g=Object.freeze({});function m(e,t){Object.defineProperty(e,"toString",{value:t})}function y(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}const b=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let s=n;for(;e>=s;)if(s<<=1,s<0)throw y(16,`${e}`);this.groupSizes=new Uint32Array(s),this.groupSizes.set(t),this.length=s;for(let e=n;e<s;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),s=0;for(let r=0,o=t.length;r<o;r++)this.tag.insertRule(n,t[r])&&(this.groupSizes[e]++,n++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),s=n+t;this.groupSizes[e]=0;for(let e=n;e<s;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],s=this.indexOfGroup(e),r=s+n;for(let e=s;e<r;e++)t+=this.tag.getRule(e)+a;return t}};let S=new Map,v=new Map,w=1;const $=e=>{if(S.has(e))return S.get(e);for(;v.has(w);)w++;const t=w++;return S.set(e,t),v.set(t,e),t},C=e=>v.get(e),I=(e,t)=>{w=t+1,S.set(e,t),v.set(t,e)},x=`style[${r}][${i}="${c}"]`,A=new RegExp(`^${r}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),R=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,O=e=>{if(!e)return document;if(R(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(R(t))return t}return document},j=(e,t,n)=>{const s=n.split(",");let r;for(let n=0,o=s.length;n<o;n++)(r=s[n])&&e.registerName(t,r)},_=(e,t)=>{var n;const s=(null!==(n=t.textContent)&&void 0!==n?n:"").split(a),r=[];for(let t=0,n=s.length;t<n;t++){const n=s[t].trim();if(!n)continue;const o=n.match(A);if(o){const t=0|parseInt(o[1],10),n=o[2];0!==t&&(I(n,t),j(e,n,o[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(n)}},k=e=>{const t=O(e.options.target).querySelectorAll(x);for(let n=0,s=t.length;n<s;n++){const s=t[n];s&&s.getAttribute(r)!==o&&(_(e,s),s.parentNode&&s.parentNode.removeChild(s))}};let P=!1;function N(){if(!1!==P)return P;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return P=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return P=t.getAttribute("content")||void 0}return P="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}const E=(e,t)=>{const n=document.head,s=e||n,a=document.createElement("style"),l=(e=>{const t=Array.from(e.querySelectorAll(`style[${r}]`));return t[t.length-1]})(s),u=void 0!==l?l.nextSibling:null;a.setAttribute(r,o),a.setAttribute(i,c);const h=t||N();return h&&a.setAttribute("nonce",h),s.insertBefore(a,u),a},T=class{constructor(e,t){this.element=E(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,s=n.length;t<s;t++){const s=n[t];if(s.ownerNode===e)return s}throw y(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},G=class{constructor(e,t){this.element=E(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},F=class{constructor(e){this.rules=[],this.length=0}insertRule(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)}deleteRule(e){this.rules.splice(e,1),this.length--}getRule(e){return e<this.length?this.rules[e]:""}};let M=l;const z={isServer:!l,useCSSOMInjection:!h};class D{static registerId(e){return $(e)}constructor(e=g,t={},n){this.options=Object.assign(Object.assign({},z),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&l&&M&&(M=!1,k(this)),m(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let s="";for(let o=0;o<n;o++){const n=C(o);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const c=t.getGroup(o);if(0===c.length)continue;const l=r+".g"+o+'[id="'+n+'"]';let u="";i.forEach(e=>{e.length>0&&(u+=e+",")}),s+=c+l+'{content:"'+u+'"}'+a}return s})(this))}rehydrate(){!this.server&&l&&k(this)}reconstructWithOptions(e,t=!0){const n=new D(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&l&&e.target!==this.options.target&&O(this.options.target)!==O(e.target)&&k(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({isServer:e,useCSSOMInjection:t,target:n,nonce:s})=>e?new F(n):t?new T(n,s):new G(n,s))(this.options),new b(e)));var e}hasNameForId(e,t){var n,s;return null!==(s=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==s&&s}registerName(e,t){$(e),e.startsWith(f)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules($(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup($(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const W={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink: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,scale: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};function B(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in W||e.startsWith("--")?String(t).trim():`${t}px`}function L(e){return e.displayName||e.name||"Component"}const q=e=>e>="A"&&e<="Z";function H(e){let t="";for(let n=0;n<e.length;n++){const s=e[n];if(1===n&&"-"===s&&"-"===e[0])return e;q(s)?t+="-"+s.toLowerCase():t+=s}return t.startsWith("ms-")?"-"+t:t}function V(e){return"function"==typeof e}const Y=Symbol.for("sc-keyframes");function U(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function J(e){return"object"==typeof e&&"styledComponentId"in e}const Z=e=>null==e||!1===e||""===e,K=e=>{const t=[];for(const n in e){const s=e[n];e.hasOwnProperty(n)&&!Z(s)&&(Array.isArray(s)&&s.isCss||V(s)?t.push(`${H(n)}:`,s,";"):U(s)?t.push(`${n} {`,...K(s),"}"):t.push(`${H(n)}: ${B(n,s)};`))}return t};function Q(e,t,n,s,r=[]){if("string"==typeof e)return e&&r.push(e),r;if(Z(e))return r;if(J(e))return r.push(`.${e.styledComponentId}`),r;if(V(e))return!V(o=e)||o.prototype&&o.prototype.isReactComponent||!t?(r.push(e),r):Q(e(t),t,n,s,r);var o,i;if("object"==typeof(i=e)&&null!==i&&Y in i)return n?(e.inject(n,s),r.push(e.getName(s))):r.push(e),r;if(U(e)){const t=K(e);for(let e=0;e<t.length;e++)r.push(t[e]);return r}if(!Array.isArray(e))return r.push(e.toString()),r;for(let o=0;o<e.length;o++)Q(e[o],t,n,s,r);return r}function X(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(V(n)&&!J(n))return!1}return!0}function ee(e,t){return e&&t?`${e} ${t}`:e||t||""}function te(e,t){return e.join(t||"")}class ne{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=X(e),D.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,s){const r=this.componentId;if(this.isStatic){if(n.hasNameForId(r,r+e))this.instanceRules.has(e)||this.computeRules(e,t,n,s);else{const o=this.computeRules(e,t,n,s);n.insertRules(r,o.name,o.rules)}return}const o=this.instanceRules.get(e);if(this.computeRules(e,t,n,s),!n.server&&o){const t=o.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let s=0;s<t.length;s++)if(t[s]!==n[s]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,s){const r=te(Q(this.rules,t,n,s)),o={name:this.componentId+e,rules:s(r,"")};return this.instanceRules.set(e,o),o}rebuildGroup(e){const t=this.componentId;e.clearRules(t),this.instanceRules.forEach(n=>{e.insertRules(t,n.name,n.rules)})}}var se="-ms-",re="-moz-",oe="-webkit-",ie="comm",ce="rule",ae="decl",le="@keyframes",ue=Math.abs,he=String.fromCharCode,fe=Object.assign;function de(e){return e.trim()}function pe(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function me(e,t,n){return e.indexOf(t,n)}function ye(e,t){return 0|e.charCodeAt(t)}function be(e,t,n){return e.slice(t,n)}function Se(e){return e.length}function ve(e){return e.length}function we(e,t){return t.push(e),e}function $e(e,t){return e.filter(function(e){return!pe(e,t)})}var Ce=1,Ie=1,xe=0,Ae=0,Re=0,Oe="";function je(e,t,n,s,r,o,i,c){return{value:e,root:t,parent:n,type:s,props:r,children:o,line:Ce,column:Ie,length:i,return:"",siblings:c}}function _e(e,t){return fe(je("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ke(e){for(;e.root;)e=_e(e.root,{children:[e]});we(e,e.siblings)}function Pe(){return Re=Ae>0?ye(Oe,--Ae):0,Ie--,10===Re&&(Ie=1,Ce--),Re}function Ne(){return Re=Ae<xe?ye(Oe,Ae++):0,Ie++,10===Re&&(Ie=1,Ce++),Re}function Ee(){return ye(Oe,Ae)}function Te(){return Ae}function Ge(e,t){return be(Oe,e,t)}function Fe(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 Me(e){return de(Ge(Ae-1,We(91===e?e+2:40===e?e+1:e)))}function ze(e){for(;(Re=Ee())&&Re<33;)Ne();return Fe(e)>2||Fe(Re)>3?"":" "}function De(e,t){for(;--t&&Ne()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Ge(e,Te()+(t<6&&32==Ee()&&32==Ne()))}function We(e){for(;Ne();)switch(Re){case e:return Ae;case 34:case 39:34!==e&&39!==e&&We(Re);break;case 40:41===e&&We(e);break;case 92:Ne()}return Ae}function Be(e,t){for(;Ne()&&e+Re!==57&&(e+Re!==84||47!==Ee()););return"/*"+Ge(t,Ae-1)+"*"+he(47===e?e:Ne())}function Le(e){for(;!Fe(Ee());)Ne();return Ge(e,Ae)}function qe(e){return function(e){return Oe="",e}(He("",null,null,null,[""],e=function(e){return Ce=Ie=1,xe=Se(Oe=e),Ae=0,[]}(e),0,[0],e))}function He(e,t,n,s,r,o,i,c,a){for(var l=0,u=0,h=i,f=0,d=0,p=0,g=1,m=1,y=1,b=0,S="",v=r,w=o,$=s,C=S;m;)switch(p=b,b=Ne()){case 40:if(108!=p&&58==ye(C,h-1)){-1!=me(C+=ge(Me(b),"&","&\f"),"&\f",ue(l?c[l-1]:0))&&(y=-1);break}case 34:case 39:case 91:C+=Me(b);break;case 9:case 10:case 13:case 32:C+=ze(p);break;case 92:C+=De(Te()-1,7);continue;case 47:switch(Ee()){case 42:case 47:we(Ye(Be(Ne(),Te()),t,n,a),a),5!=Fe(p||1)&&5!=Fe(Ee()||1)||!Se(C)||" "===be(C,-1,void 0)||(C+=" ");break;default:C+="/"}break;case 123*g:c[l++]=Se(C)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&(C=ge(C,/\f/g,"")),d>0&&(Se(C)-h||0===g&&47===p)&&we(d>32?Ue(C+";",s,n,h-1,a):Ue(ge(C," ","")+";",s,n,h-2,a),a);break;case 59:C+=";";default:if(we($=Ve(C,t,n,l,u,r,c,S,v=[],w=[],h,o),o),123===b)if(0===u)He(C,t,$,$,v,o,h,c,w);else{switch(f){case 99:if(110===ye(C,3))break;case 108:if(97===ye(C,2))break;default:u=0;case 100:case 109:case 115:}u?He(e,$,$,s&&we(Ve(e,$,$,0,0,r,c,S,r,v=[],h,w),w),r,w,h,c,s?v:w):He(C,$,$,$,[""],w,0,c,w)}}l=u=d=0,g=y=1,S=C="",h=i;break;case 58:h=1+Se(C),d=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Pe())continue;switch(C+=he(b),b*g){case 38:y=u>0?1:(C+="\f",-1);break;case 44:c[l++]=(Se(C)-1)*y,y=1;break;case 64:45===Ee()&&(C+=Me(Ne())),f=Ee(),u=h=Se(S=C+=Le(Te())),b++;break;case 45:45===p&&2==Se(C)&&(g=0)}}return o}function Ve(e,t,n,s,r,o,i,c,a,l,u,h){for(var f=r-1,d=0===r?o:[""],p=ve(d),g=0,m=0,y=0;g<s;++g)for(var b=0,S=be(e,f+1,f=ue(m=i[g])),v=e;b<p;++b)(v=de(m>0?d[b]+" "+S:ge(S,/&\f/g,d[b])))&&(a[y++]=v);return je(e,t,n,0===r?ce:c,a,l,u,h)}function Ye(e,t,n,s){return je(e,t,n,ie,he(Re),be(e,2,-2),0,s)}function Ue(e,t,n,s,r){return je(e,t,n,ae,be(e,0,s),be(e,s+1,-1),s,r)}function Je(e,t,n){switch(function(e,t){return 45^ye(e,0)?(((t<<2^ye(e,0))<<2^ye(e,1))<<2^ye(e,2))<<2^ye(e,3):0}(e,t)){case 5103:return oe+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return oe+e+e;case 4855:return oe+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oe+e+re+e+se+e+e;case 5936:switch(ye(e,t+11)){case 114:return oe+e+se+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+se+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+se+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return oe+e+se+e+e;case 6165:return oe+e+se+"flex-"+e+e;case 5187:return oe+e+ge(e,/(\w+).+(:[^]+)/,oe+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return oe+e+se+"flex-item-"+ge(e,/flex-|-self/g,"")+(pe(e,/flex-|baseline/)?"":se+"grid-row-"+ge(e,/flex-|-self/g,""))+e;case 4675:return oe+e+se+"flex-line-pack"+ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return oe+e+se+ge(e,"shrink","negative")+e;case 5292:return oe+e+se+ge(e,"basis","preferred-size")+e;case 6060:return oe+"box-"+ge(e,"-grow","")+oe+e+se+ge(e,"grow","positive")+e;case 4554:return oe+ge(e,/([^-])(transform)/g,"$1"+oe+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,oe+"$1"),/(image-set)/,oe+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,oe+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,oe+"box-pack:$3"+se+"flex-pack:$3"),/space-between/,"justify")+oe+e+e;case 4200:if(!pe(e,/flex-|baseline/))return se+"grid-column-align"+be(e,t)+e;break;case 2592:case 3360:return se+ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,pe(e.props,/grid-\w+-end/)})?~me(e+(n=n[t].value),"span",0)?e:se+ge(e,"-start","")+e+se+"grid-row-span:"+(~me(n,"span",0)?pe(n,/\d+/):+pe(n,/\d+/)-+pe(e,/\d+/))+";":se+ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return pe(e.props,/grid-\w+-start/)})?e:se+ge(ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,oe+"$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(Se(e)-1-t>6)switch(ye(e,t+1)){case 109:if(45!==ye(e,t+4))break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+re+(108==ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~me(e,"stretch",0)?Je(ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,s,r,o,i,c){return se+n+":"+s+c+(r?se+n+"-span:"+(o?i:+i-+s)+c:"")+e});case 4949:if(121===ye(e,t+6))return ge(e,":",":"+oe)+e;break;case 6444:switch(ye(e,45===ye(e,14)?18:11)){case 120:return ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+oe+(45===ye(e,14)?"inline-":"")+"box$3$1"+oe+"$2$3$1"+se+"$2box$3")+e;case 100:return ge(e,":",":"+se)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ge(e,"scroll-","scroll-snap-")+e}return e}function Ze(e,t){for(var n="",s=0;s<e.length;s++)n+=t(e[s],s,e,t)||"";return n}function Ke(e,t,n,s){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case ae:return e.return=e.return||e.value;case ie:return"";case le:return e.return=e.value+"{"+Ze(e.children,s)+"}";case ce:if(!Se(e.value=e.props.join(",")))return""}return Se(n=Ze(e.children,s))?e.return=e.value+"{"+n+"}":""}function Qe(e,t,n,s){if(e.length>-1&&!e.return)switch(e.type){case ae:return void(e.return=Je(e.value,e.length,n));case le:return Ze([_e(e,{value:ge(e.value,"@","@"+oe)})],s);case ce:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(pe(t,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ke(_e(e,{props:[ge(t,/:(read-\w+)/,":-moz-$1")]})),ke(_e(e,{props:[t]})),fe(e,{props:$e(n,s)});break;case"::placeholder":ke(_e(e,{props:[ge(t,/:(plac\w+)/,":"+oe+"input-$1")]})),ke(_e(e,{props:[ge(t,/:(plac\w+)/,":-moz-$1")]})),ke(_e(e,{props:[ge(t,/:(plac\w+)/,se+"input-$1")]})),ke(_e(e,{props:[t]})),fe(e,{props:$e(n,s)})}return""})}}const Xe=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},et=e=>Xe(5381,e),tt=/&/g,nt=47,st=42;function rt(e){if(-1===e.indexOf("}"))return!1;const t=e.length;let n=0,s=0,r=!1;for(let o=0;o<t;o++){const t=e.charCodeAt(o);if(0!==s||r||t!==nt||e.charCodeAt(o+1)!==st)if(r)t===st&&e.charCodeAt(o+1)===nt&&(r=!1,o++);else if(34!==t&&39!==t||0!==o&&92===e.charCodeAt(o-1)){if(0===s)if(123===t)n++;else if(125===t&&(n--,n<0))return!0}else 0===s?s=t:s===t&&(s=0);else r=!0,o++}return 0!==n||0!==s}function ot(e,t){return e.map(e=>("rule"===e.type&&(e.value=`${t} ${e.value}`,e.value=e.value.replaceAll(",",`,${t} `),e.props=e.props.map(e=>`${t} ${e}`)),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=ot(e.children,t)),e))}function it({options:e=g,plugins:t=p}=g){let n,s,r;const o=(e,t,r)=>r.startsWith(s)&&r.endsWith(s)&&r.replaceAll(s,"").length>0?`.${n}`:e,i=t.slice();i.push(e=>{e.type===ce&&e.value.includes("&")&&(r||(r=new RegExp(`\\${s}\\b`,"g")),e.props[0]=e.props[0].replace(tt,s).replace(r,o))}),e.prefix&&i.push(Qe),i.push(Ke);let c=[];const a=function(e){var t=ve(e);return function(n,s,r,o){for(var i="",c=0;c<t;c++)i+=e[c](n,s,r,o)||"";return i}}(i.concat(function(e){e.root||(e=e.return)&&c.push(e)})),l=(t,o="",i="",l="&")=>{n=l,s=o,r=void 0;const u=function(e){if(!rt(e))return e;const t=e.length;let n="",s=0,r=0,o=0,i=!1;for(let c=0;c<t;c++){const a=e.charCodeAt(c);if(0!==o||i||a!==nt||e.charCodeAt(c+1)!==st)if(i)a===st&&e.charCodeAt(c+1)===nt&&(i=!1,c++);else if(34!==a&&39!==a||0!==c&&92===e.charCodeAt(c-1)){if(0===o)if(123===a)r++;else if(125===a){if(r--,r<0){let n=c+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,r=0,c=n-1,s=n;continue}0===r&&(n+=e.substring(s,c+1),s=c+1)}else 59===a&&0===r&&(n+=e.substring(s,c+1),s=c+1)}else 0===o?o=a:o===a&&(o=0);else i=!0,c++}if(s<t){const t=e.substring(s);rt(t)||(n+=t)}return n}(function(e){if(-1===e.indexOf("//"))return e;const t=e.length,n=[];let s=0,r=0,o=0,i=0;for(;r<t;){const c=e.charCodeAt(r);if(34!==c&&39!==c||0!==r&&92===e.charCodeAt(r-1))if(0===o)if(c===nt&&r+1<t&&e.charCodeAt(r+1)===st){for(r+=2;r+1<t&&(e.charCodeAt(r)!==st||e.charCodeAt(r+1)!==nt);)r++;r+=2}else if(40===c&&r>=3&&108==(32|e.charCodeAt(r-1))&&114==(32|e.charCodeAt(r-2))&&117==(32|e.charCodeAt(r-3)))i=1,r++;else if(i>0)41===c?i--:40===c&&i++,r++;else if(c===st&&r+1<t&&e.charCodeAt(r+1)===nt)r>s&&n.push(e.substring(s,r)),r+=2,s=r;else if(c===nt&&r+1<t&&e.charCodeAt(r+1)===nt){for(r>s&&n.push(e.substring(s,r));r<t&&10!==e.charCodeAt(r);)r++;s=r}else r++;else r++;else 0===o?o=c:o===c&&(o=0),r++}return 0===s?e:(s<t&&n.push(e.substring(s)),n.join(""))}(t));let h=qe(i||o?`${i} ${o} { ${u} }`:u);return e.namespace&&(h=ot(h,e.namespace)),c=[],Ze(h,a),c};return l.hash=t.length?t.reduce((e,t)=>(t.name||y(15),Xe(e,t.name)),5381).toString():"",l}const ct=new D,at=it(),lt=t.createContext({shouldForwardProp:void 0,styleSheet:ct,stylis:at}),ut=lt.Consumer,ht=t.createContext(void 0);function ft(){return t.useContext(lt)}function dt(e){if(!t.useMemo)return e.children;const{styleSheet:n}=ft(),s=t.useMemo(()=>{let t=n;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions({target:e.target,nonce:e.nonce},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,n]),r=t.useMemo(()=>it({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=t.useMemo(()=>({shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:r}),[e.shouldForwardProp,s,r]);return t.createElement(lt.Provider,{value:o},t.createElement(ht.Provider,{value:r},e.children))}const pt=t.createContext(void 0),gt=pt.Consumer;function mt(e,t,n=g){return e.theme!==n.theme&&e.theme||t||n.theme}const yt=/(a)(d)/gi,bt=e=>String.fromCharCode(e+(e>25?39:97));function St(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=bt(t%52)+n;return(bt(t%52)+n).replace(yt,"$1-$2")}function vt(e){return St(et(e)>>>0)}function wt(e,t){const n=[e[0]];for(let s=0,r=t.length;s<r;s+=1)n.push(t[s],e[s+1]);return n}const $t=e=>Object.assign(e,{isCss:!0});function Ct(e,...t){if(V(e)||U(e))return $t(Q(wt(p,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Q(n):$t(Q(wt(n,t)))}function It(e,...n){const s=Ct(e,...n),r=`sc-global-${vt(JSON.stringify(s))}`,o=new ne(s,r),i=e=>{const n=ft(),s=t.useContext(pt);let i;{const e=t.useRef(null);null===e.current&&(e.current=n.styleSheet.allocateGSInstance(r)),i=e.current}return n.styleSheet.server&&c(i,e,n.styleSheet,s,n.stylis),t.useLayoutEffect(()=>(n.styleSheet.server||c(i,e,n.styleSheet,s,n.stylis),()=>{o.removeStyles(i,n.styleSheet)}),o.isStatic?[i,n.styleSheet]:[i,e,n.styleSheet,s,n.stylis]),n.styleSheet.server&&o.instanceRules.delete(i),null};function c(e,t,n,s,r){if(o.isStatic)o.renderStyles(e,d,n,r);else{const c=Object.assign(Object.assign({},t),{theme:mt(t,s,i.defaultProps)});o.renderStyles(e,c,n,r)}}return t.memo(i)}function xt(e,t,n,s,r){for(const o in e){const i=e[o],c=r?r+"-"+o:o;if("object"==typeof i&&null!==i){const e={};xt(i,t,e,s,c),n[o]=e}else n[o]=s(c,i,o)}}function At(e,t,n,s){let r="";for(const o in e){const i=e[o],c=t[o],a=s?s+"-"+o:o;"object"==typeof i&&null!==i?"object"==typeof c&&null!==c&&(r+=At(i,c,n,a)):void 0!==c&&"function"!=typeof c&&(r+="--"+n+a+":"+c+";")}return r}var Rt;class Ot{constructor(e,t){this[Rt]=!0,this.inject=(e,t=at)=>{const n=this.name+t.hash;e.hasNameForId(this.id,n)||e.insertRules(this.id,n,t(this.rules,n,"@keyframes"))},this.name=e,this.id=f+e,this.rules=t,$(this.id),m(this,()=>{throw y(12,String(this.name))})}getName(e=at){return this.name+e.hash}}Rt=Y;const jt=Symbol.for("react.memo"),_t=Symbol.for("react.forward_ref"),kt={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Pt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Nt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Et={[_t]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[jt]:Nt};function Tt(e){return("type"in(t=e)&&t.type.$$typeof)===jt?Nt:"$$typeof"in e?Et[e.$$typeof]:kt;var t}const Gt=Object.defineProperty,Ft=Object.getOwnPropertyNames,Mt=Object.getOwnPropertySymbols,zt=Object.getOwnPropertyDescriptor,Dt=Object.getPrototypeOf,Wt=Object.prototype;function Bt(e,t,n){if("string"!=typeof t){const s=Dt(t);s&&s!==Wt&&Bt(e,s,n);const r=Ft(t).concat(Mt(t)),o=Tt(e),i=Tt(t);for(let s=0;s<r.length;++s){const c=r[s];if(!(c in Pt||n&&n[c]||i&&c in i||o&&c in o)){const n=zt(t,c);try{Gt(e,c,n)}catch(e){}}}}return e}const Lt={StyleSheet:D,mainSheet:ct};var qt=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:class{constructor({nonce:e}={}){this._emitSheetCSS=()=>{const e=this.instance.toString();if(!e)return"";const t=this.instance.options.nonce||N();return`<style ${te([t&&`nonce="${t}"`,`${r}="true"`,`${i}="${c}"`].filter(Boolean)," ")}>${e}</style>`},this.getStyleTags=()=>{if(this.sealed)throw y(2);return this._emitSheetCSS()},this.getStyleElement=()=>{if(this.sealed)throw y(2);const e=this.instance.toString();if(!e)return[];const n={[r]:"",[i]:c,dangerouslySetInnerHTML:{__html:e}},s=this.instance.options.nonce||N();return s&&(n.nonce=s),[t.createElement("style",Object.assign({},n,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new D({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw y(2);return t.createElement(dt,{sheet:this.instance},e)}interleaveWithNodeStream(e){throw y(3)}},StyleSheetConsumer:ut,StyleSheetContext:lt,StyleSheetManager:dt,ThemeConsumer:gt,ThemeContext:pt,ThemeProvider:function(e){const n=t.useContext(pt),s=t.useMemo(()=>function(e,t){if(!e)throw y(14);if(V(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw y(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,n),[e.theme,n]);return e.children?t.createElement(pt.Provider,{value:s},e.children):null},__PRIVATE__:Lt,createGlobalStyle:It,createTheme:function(e,t){var n,s;const r=(null!==(n=null==t?void 0:t.prefix)&&void 0!==n?n:"sc")+"-",o=null!==(s=null==t?void 0:t.selector)&&void 0!==s?s:":root",i=function(e,t){const n={};return xt(e,t,n,(e,n)=>"var(--"+t+e+", "+n+")"),n}(e,r),c=It`
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t((e=e||self).styled={},e.React)}(this,function(e,t){"use strict";var n,s;const r="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",o="active",i="data-styled-version",c="6.4.0-prerelease.7",a="/*!sc*/\n",l="undefined"!=typeof window&&"undefined"!=typeof document;function u(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const h=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(s=null!==(n=u("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==n?n:u("SC_DISABLE_SPEEDY"))&&void 0!==s?s:"undefined"==typeof process||void 0===process.env),f="sc-keyframes-",d={},p=Object.freeze([]),g=Object.freeze({});function m(e,t){Object.defineProperty(e,"toString",{value:t})}function y(e,...t){return new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length>0?` Args: ${t.join(", ")}`:""}`)}const b=class{constructor(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e,this._cGroup=0,this._cIndex=0}indexOfGroup(e){if(e===this._cGroup)return this._cIndex;let t=this._cIndex;if(e>this._cGroup)for(let n=this._cGroup;n<e;n++)t+=this.groupSizes[n];else for(let n=this._cGroup-1;n>=e;n--)t-=this.groupSizes[n];return this._cGroup=e,this._cIndex=t,t}insertRules(e,t){if(e>=this.groupSizes.length){const t=this.groupSizes,n=t.length;let s=n;for(;e>=s;)if(s<<=1,s<0)throw y(16,`${e}`);this.groupSizes=new Uint32Array(s),this.groupSizes.set(t),this.length=s;for(let e=n;e<s;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),s=0;for(let r=0,o=t.length;r<o;r++)this.tag.insertRule(n,t[r])&&(this.groupSizes[e]++,n++,s++);s>0&&this._cGroup>e&&(this._cIndex+=s)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),s=n+t;this.groupSizes[e]=0;for(let e=n;e<s;e++)this.tag.deleteRule(n);t>0&&this._cGroup>e&&(this._cIndex-=t)}}getGroup(e){let t="";if(e>=this.length||0===this.groupSizes[e])return t;const n=this.groupSizes[e],s=this.indexOfGroup(e),r=s+n;for(let e=s;e<r;e++)t+=this.tag.getRule(e)+a;return t}};let S=new Map,v=new Map,w=1;const C=e=>{if(S.has(e))return S.get(e);for(;v.has(w);)w++;const t=w++;return S.set(e,t),v.set(t,e),t},$=e=>v.get(e),x=(e,t)=>{w=t+1,S.set(e,t),v.set(t,e)},A=`style[${r}][${i}="${c}"]`,O=new RegExp(`^${r}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),I=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,j=e=>{if(!e)return document;if(I(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(I(t))return t}return document},R=(e,t,n)=>{const s=n.split(",");let r;for(let n=0,o=s.length;n<o;n++)(r=s[n])&&e.registerName(t,r)},P=(e,t)=>{var n;const s=(null!==(n=t.textContent)&&void 0!==n?n:"").split(a),r=[];for(let t=0,n=s.length;t<n;t++){const n=s[t].trim();if(!n)continue;const o=n.match(O);if(o){const t=0|parseInt(o[1],10),n=o[2];0!==t&&(x(n,t),R(e,n,o[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(n)}},_=e=>{const t=j(e.options.target).querySelectorAll(A);for(let n=0,s=t.length;n<s;n++){const s=t[n];s&&s.getAttribute(r)!==o&&(P(e,s),s.parentNode&&s.parentNode.removeChild(s))}};let k=!1;function N(){if(!1!==k)return k;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return k=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return k=t.getAttribute("content")||void 0}return k="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}const T=(e,t)=>{const n=document.head,s=e||n,a=document.createElement("style"),l=(e=>{const t=Array.from(e.querySelectorAll(`style[${r}]`));return t[t.length-1]})(s),u=void 0!==l?l.nextSibling:null;a.setAttribute(r,o),a.setAttribute(i,c);const h=t||N();return h&&a.setAttribute("nonce",h),s.insertBefore(a,u),a},E=class{constructor(e,t){this.element=T(e,t),this.element.appendChild(document.createTextNode("")),this.sheet=(e=>{var t;if(e.sheet)return e.sheet;const n=null!==(t=e.getRootNode().styleSheets)&&void 0!==t?t:document.styleSheets;for(let t=0,s=n.length;t<s;t++){const s=n[t];if(s.ownerNode===e)return s}throw y(17)})(this.element),this.length=0}insertRule(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}}deleteRule(e){this.sheet.deleteRule(e),this.length--}getRule(e){const t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""}},G=class{constructor(e,t){this.element=T(e,t),this.nodes=this.element.childNodes,this.length=0}insertRule(e,t){if(e<=this.length&&e>=0){const n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1}deleteRule(e){this.element.removeChild(this.nodes[e]),this.length--}getRule(e){return e<this.length?this.nodes[e].textContent:""}},M=class{constructor(e){this.rules=[],this.length=0}insertRule(e,t){return e<=this.length&&(e===this.length?this.rules.push(t):this.rules.splice(e,0,t),this.length++,!0)}deleteRule(e){this.rules.splice(e,1),this.length--}getRule(e){return e<this.length?this.rules[e]:""}};let z=l;const F={isServer:!l,useCSSOMInjection:!h};class D{static registerId(e){return C(e)}constructor(e=g,t={},n){this.options=Object.assign(Object.assign({},F),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&l&&z&&(z=!1,_(this)),m(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let s="";for(let o=0;o<n;o++){const n=$(o);if(void 0===n)continue;const i=e.names.get(n);if(void 0===i||!i.size)continue;const c=t.getGroup(o);if(0===c.length)continue;const l=r+".g"+o+'[id="'+n+'"]';let u="";for(const e of i)e.length>0&&(u+=e+",");s+=c+l+'{content:"'+u+'"}'+a}return s})(this))}rehydrate(){!this.server&&l&&_(this)}reconstructWithOptions(e,t=!0){const n=new D(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&l&&e.target!==this.options.target&&j(this.options.target)!==j(e.target)&&_(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({isServer:e,useCSSOMInjection:t,target:n,nonce:s})=>e?new M(n):t?new E(n,s):new G(n,s))(this.options),new b(e)));var e}hasNameForId(e,t){var n,s;return null!==(s=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==s&&s}registerName(e,t){C(e),e.startsWith(f)&&this.keyframeIds.add(e);const n=this.names.get(e);n?n.add(t):this.names.set(e,new Set([t]))}insertRules(e,t,n){this.registerName(e,t),this.getTag().insertRules(C(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(C(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const W={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexShrink: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,scale: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};function B(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in W||e.startsWith("--")?String(t).trim():t+"px"}function L(e){return e.displayName||e.name||"Component"}const q=e=>e>="A"&&e<="Z";function H(e){let t="";for(let n=0;n<e.length;n++){const s=e[n];if(1===n&&"-"===s&&"-"===e[0])return e;q(s)?t+="-"+s.toLowerCase():t+=s}return t.startsWith("ms-")?"-"+t:t}function V(e){return"function"==typeof e}const Y=Symbol.for("sc-keyframes");function U(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function J(e){return V(e)&&!(e.prototype&&e.prototype.isReactComponent)}function Z(e){return"object"==typeof e&&"styledComponentId"in e}const K=e=>null==e||!1===e||""===e,Q=e=>{const t=[];for(const n in e){const s=e[n];e.hasOwnProperty(n)&&!K(s)&&(Array.isArray(s)&&s.isCss||V(s)?t.push(H(n)+":",s,";"):U(s)?t.push(n+" {",...Q(s),"}"):t.push(H(n)+": "+B(n,s)+";"))}return t};function X(e,t,n,s,r=[]){if("string"==typeof e)return e&&r.push(e),r;if(K(e))return r;if(Z(e))return r.push(`.${e.styledComponentId}`),r;if(V(e))return J(e)&&t?X(e(t),t,n,s,r):(r.push(e),r);if("object"==typeof(o=e)&&null!==o&&Y in o)return n?(e.inject(n,s),r.push(e.getName(s))):r.push(e),r;var o;if(U(e)){const t=Q(e);for(let e=0;e<t.length;e++)r.push(t[e]);return r}if(!Array.isArray(e))return r.push(e.toString()),r;for(let o=0;o<e.length;o++)X(e[o],t,n,s,r);return r}function ee(e,t){return e&&t?e+" "+t:e||t||""}function te(e,t){return e.join(t||"")}class ne{constructor(e,t){this.instanceRules=new Map,this.rules=e,this.componentId=t,this.isStatic=function(e){for(let t=0;t<e.length;t+=1){const n=e[t];if(V(n)&&!Z(n))return!1}return!0}(e),D.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,s){const r=this.componentId;if(this.isStatic){if(n.hasNameForId(r,r+e))this.instanceRules.has(e)||this.computeRules(e,t,n,s);else{const o=this.computeRules(e,t,n,s);n.insertRules(r,o.name,o.rules)}return}const o=this.instanceRules.get(e);if(this.computeRules(e,t,n,s),!n.server&&o){const t=o.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let s=0;s<t.length;s++)if(t[s]!==n[s]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,s){const r=te(X(this.rules,t,n,s)),o={name:this.componentId+e,rules:s(r,"")};return this.instanceRules.set(e,o),o}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}var se="-ms-",re="-moz-",oe="-webkit-",ie="comm",ce="rule",ae="decl",le="@keyframes",ue=Math.abs,he=String.fromCharCode,fe=Object.assign;function de(e){return e.trim()}function pe(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function me(e,t,n){return e.indexOf(t,n)}function ye(e,t){return 0|e.charCodeAt(t)}function be(e,t,n){return e.slice(t,n)}function Se(e){return e.length}function ve(e){return e.length}function we(e,t){return t.push(e),e}function Ce(e,t){return e.filter(function(e){return!pe(e,t)})}var $e=1,xe=1,Ae=0,Oe=0,Ie=0,je="";function Re(e,t,n,s,r,o,i,c){return{value:e,root:t,parent:n,type:s,props:r,children:o,line:$e,column:xe,length:i,return:"",siblings:c}}function Pe(e,t){return fe(Re("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _e(e){for(;e.root;)e=Pe(e.root,{children:[e]});we(e,e.siblings)}function ke(){return Ie=Oe>0?ye(je,--Oe):0,xe--,10===Ie&&(xe=1,$e--),Ie}function Ne(){return Ie=Oe<Ae?ye(je,Oe++):0,xe++,10===Ie&&(xe=1,$e++),Ie}function Te(){return ye(je,Oe)}function Ee(){return Oe}function Ge(e,t){return be(je,e,t)}function Me(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 ze(e){return de(Ge(Oe-1,We(91===e?e+2:40===e?e+1:e)))}function Fe(e){for(;(Ie=Te())&&Ie<33;)Ne();return Me(e)>2||Me(Ie)>3?"":" "}function De(e,t){for(;--t&&Ne()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Ge(e,Ee()+(t<6&&32==Te()&&32==Ne()))}function We(e){for(;Ne();)switch(Ie){case e:return Oe;case 34:case 39:34!==e&&39!==e&&We(Ie);break;case 40:41===e&&We(e);break;case 92:Ne()}return Oe}function Be(e,t){for(;Ne()&&e+Ie!==57&&(e+Ie!==84||47!==Te()););return"/*"+Ge(t,Oe-1)+"*"+he(47===e?e:Ne())}function Le(e){for(;!Me(Te());)Ne();return Ge(e,Oe)}function qe(e){return function(e){return je="",e}(He("",null,null,null,[""],e=function(e){return $e=xe=1,Ae=Se(je=e),Oe=0,[]}(e),0,[0],e))}function He(e,t,n,s,r,o,i,c,a){for(var l=0,u=0,h=i,f=0,d=0,p=0,g=1,m=1,y=1,b=0,S="",v=r,w=o,C=s,$=S;m;)switch(p=b,b=Ne()){case 40:if(108!=p&&58==ye($,h-1)){-1!=me($+=ge(ze(b),"&","&\f"),"&\f",ue(l?c[l-1]:0))&&(y=-1);break}case 34:case 39:case 91:$+=ze(b);break;case 9:case 10:case 13:case 32:$+=Fe(p);break;case 92:$+=De(Ee()-1,7);continue;case 47:switch(Te()){case 42:case 47:we(Ye(Be(Ne(),Ee()),t,n,a),a),5!=Me(p||1)&&5!=Me(Te()||1)||!Se($)||" "===be($,-1,void 0)||($+=" ");break;default:$+="/"}break;case 123*g:c[l++]=Se($)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&($=ge($,/\f/g,"")),d>0&&(Se($)-h||0===g&&47===p)&&we(d>32?Ue($+";",s,n,h-1,a):Ue(ge($," ","")+";",s,n,h-2,a),a);break;case 59:$+=";";default:if(we(C=Ve($,t,n,l,u,r,c,S,v=[],w=[],h,o),o),123===b)if(0===u)He($,t,C,C,v,o,h,c,w);else{switch(f){case 99:if(110===ye($,3))break;case 108:if(97===ye($,2))break;default:u=0;case 100:case 109:case 115:}u?He(e,C,C,s&&we(Ve(e,C,C,0,0,r,c,S,r,v=[],h,w),w),r,w,h,c,s?v:w):He($,C,C,C,[""],w,0,c,w)}}l=u=d=0,g=y=1,S=$="",h=i;break;case 58:h=1+Se($),d=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==ke())continue;switch($+=he(b),b*g){case 38:y=u>0?1:($+="\f",-1);break;case 44:c[l++]=(Se($)-1)*y,y=1;break;case 64:45===Te()&&($+=ze(Ne())),f=Te(),u=h=Se(S=$+=Le(Ee())),b++;break;case 45:45===p&&2==Se($)&&(g=0)}}return o}function Ve(e,t,n,s,r,o,i,c,a,l,u,h){for(var f=r-1,d=0===r?o:[""],p=ve(d),g=0,m=0,y=0;g<s;++g)for(var b=0,S=be(e,f+1,f=ue(m=i[g])),v=e;b<p;++b)(v=de(m>0?d[b]+" "+S:ge(S,/&\f/g,d[b])))&&(a[y++]=v);return Re(e,t,n,0===r?ce:c,a,l,u,h)}function Ye(e,t,n,s){return Re(e,t,n,ie,he(Ie),be(e,2,-2),0,s)}function Ue(e,t,n,s,r){return Re(e,t,n,ae,be(e,0,s),be(e,s+1,-1),s,r)}function Je(e,t,n){switch(function(e,t){return 45^ye(e,0)?(((t<<2^ye(e,0))<<2^ye(e,1))<<2^ye(e,2))<<2^ye(e,3):0}(e,t)){case 5103:return oe+"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 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return oe+e+e;case 4855:return oe+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return re+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return oe+e+re+e+se+e+e;case 5936:switch(ye(e,t+11)){case 114:return oe+e+se+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return oe+e+se+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return oe+e+se+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return oe+e+se+e+e;case 6165:return oe+e+se+"flex-"+e+e;case 5187:return oe+e+ge(e,/(\w+).+(:[^]+)/,oe+"box-$1$2"+se+"flex-$1$2")+e;case 5443:return oe+e+se+"flex-item-"+ge(e,/flex-|-self/g,"")+(pe(e,/flex-|baseline/)?"":se+"grid-row-"+ge(e,/flex-|-self/g,""))+e;case 4675:return oe+e+se+"flex-line-pack"+ge(e,/align-content|flex-|-self/g,"")+e;case 5548:return oe+e+se+ge(e,"shrink","negative")+e;case 5292:return oe+e+se+ge(e,"basis","preferred-size")+e;case 6060:return oe+"box-"+ge(e,"-grow","")+oe+e+se+ge(e,"grow","positive")+e;case 4554:return oe+ge(e,/([^-])(transform)/g,"$1"+oe+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,oe+"$1"),/(image-set)/,oe+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,oe+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,oe+"box-pack:$3"+se+"flex-pack:$3"),/space-between/,"justify")+oe+e+e;case 4200:if(!pe(e,/flex-|baseline/))return se+"grid-column-align"+be(e,t)+e;break;case 2592:case 3360:return se+ge(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,pe(e.props,/grid-\w+-end/)})?~me(e+(n=n[t].value),"span",0)?e:se+ge(e,"-start","")+e+se+"grid-row-span:"+(~me(n,"span",0)?pe(n,/\d+/):+pe(n,/\d+/)-+pe(e,/\d+/))+";":se+ge(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return pe(e.props,/grid-\w+-start/)})?e:se+ge(ge(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,oe+"$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(Se(e)-1-t>6)switch(ye(e,t+1)){case 109:if(45!==ye(e,t+4))break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+oe+"$2-$3$1"+re+(108==ye(e,t+3)?"$3":"$2-$3"))+e;case 115:return~me(e,"stretch",0)?Je(ge(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ge(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,s,r,o,i,c){return se+n+":"+s+c+(r?se+n+"-span:"+(o?i:+i-+s)+c:"")+e});case 4949:if(121===ye(e,t+6))return ge(e,":",":"+oe)+e;break;case 6444:switch(ye(e,45===ye(e,14)?18:11)){case 120:return ge(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+oe+(45===ye(e,14)?"inline-":"")+"box$3$1"+oe+"$2$3$1"+se+"$2box$3")+e;case 100:return ge(e,":",":"+se)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ge(e,"scroll-","scroll-snap-")+e}return e}function Ze(e,t){for(var n="",s=0;s<e.length;s++)n+=t(e[s],s,e,t)||"";return n}function Ke(e,t,n,s){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case ae:return e.return=e.return||e.value;case ie:return"";case le:return e.return=e.value+"{"+Ze(e.children,s)+"}";case ce:if(!Se(e.value=e.props.join(",")))return""}return Se(n=Ze(e.children,s))?e.return=e.value+"{"+n+"}":""}function Qe(e,t,n,s){if(e.length>-1&&!e.return)switch(e.type){case ae:return void(e.return=Je(e.value,e.length,n));case le:return Ze([Pe(e,{value:ge(e.value,"@","@"+oe)})],s);case ce:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(pe(t,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_e(Pe(e,{props:[ge(t,/:(read-\w+)/,":-moz-$1")]})),_e(Pe(e,{props:[t]})),fe(e,{props:Ce(n,s)});break;case"::placeholder":_e(Pe(e,{props:[ge(t,/:(plac\w+)/,":"+oe+"input-$1")]})),_e(Pe(e,{props:[ge(t,/:(plac\w+)/,":-moz-$1")]})),_e(Pe(e,{props:[ge(t,/:(plac\w+)/,se+"input-$1")]})),_e(Pe(e,{props:[t]})),fe(e,{props:Ce(n,s)})}return""})}}const Xe=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},et=e=>Xe(5381,e),tt=/&/g,nt=47,st=42;function rt(e){if(-1===e.indexOf("}"))return!1;const t=e.length;let n=0,s=0,r=!1;for(let o=0;o<t;o++){const t=e.charCodeAt(o);if(0!==s||r||t!==nt||e.charCodeAt(o+1)!==st)if(r)t===st&&e.charCodeAt(o+1)===nt&&(r=!1,o++);else if(34!==t&&39!==t||0!==o&&92===e.charCodeAt(o-1)){if(0===s)if(123===t)n++;else if(125===t&&(n--,n<0))return!0}else 0===s?s=t:s===t&&(s=0);else r=!0,o++}return 0!==n||0!==s}function ot(e,t){for(let n=0;n<e.length;n++){const s=e[n];if("rule"===s.type){s.value=t+" "+s.value,s.value=s.value.replaceAll(",",","+t+" ");const e=s.props,n=[];for(let s=0;s<e.length;s++)n[s]=t+" "+e[s];s.props=n}Array.isArray(s.children)&&"@keyframes"!==s.type&&(s.children=ot(s.children,t))}return e}function it({options:e=g,plugins:t=p}=g){let n,s,r;const o=(e,t,r)=>r.startsWith(s)&&r.endsWith(s)&&r.replaceAll(s,"").length>0?`.${n}`:e,i=t.slice();i.push(e=>{e.type===ce&&e.value.includes("&")&&(r||(r=new RegExp(`\\${s}\\b`,"g")),e.props[0]=e.props[0].replace(tt,s).replace(r,o))}),e.prefix&&i.push(Qe),i.push(Ke);let c=[];const a=function(e){var t=ve(e);return function(n,s,r,o){for(var i="",c=0;c<t;c++)i+=e[c](n,s,r,o)||"";return i}}(i.concat(function(e){e.root||(e=e.return)&&c.push(e)})),l=(t,o="",i="",l="&")=>{n=l,s=o,r=void 0;const u=function(e){if(!rt(e))return e;const t=e.length;let n="",s=0,r=0,o=0,i=!1;for(let c=0;c<t;c++){const a=e.charCodeAt(c);if(0!==o||i||a!==nt||e.charCodeAt(c+1)!==st)if(i)a===st&&e.charCodeAt(c+1)===nt&&(i=!1,c++);else if(34!==a&&39!==a||0!==c&&92===e.charCodeAt(c-1)){if(0===o)if(123===a)r++;else if(125===a){if(r--,r<0){let n=c+1;for(;n<t;){const t=e.charCodeAt(n);if(59===t||10===t)break;n++}n<t&&59===e.charCodeAt(n)&&n++,r=0,c=n-1,s=n;continue}0===r&&(n+=e.substring(s,c+1),s=c+1)}else 59===a&&0===r&&(n+=e.substring(s,c+1),s=c+1)}else 0===o?o=a:o===a&&(o=0);else i=!0,c++}if(s<t){const t=e.substring(s);rt(t)||(n+=t)}return n}(function(e){if(-1===e.indexOf("//"))return e;const t=e.length,n=[];let s=0,r=0,o=0,i=0;for(;r<t;){const c=e.charCodeAt(r);if(34!==c&&39!==c||0!==r&&92===e.charCodeAt(r-1))if(0===o)if(c===nt&&r+1<t&&e.charCodeAt(r+1)===st){for(r+=2;r+1<t&&(e.charCodeAt(r)!==st||e.charCodeAt(r+1)!==nt);)r++;r+=2}else if(40===c&&r>=3&&108==(32|e.charCodeAt(r-1))&&114==(32|e.charCodeAt(r-2))&&117==(32|e.charCodeAt(r-3)))i=1,r++;else if(i>0)41===c?i--:40===c&&i++,r++;else if(c===st&&r+1<t&&e.charCodeAt(r+1)===nt)r>s&&n.push(e.substring(s,r)),r+=2,s=r;else if(c===nt&&r+1<t&&e.charCodeAt(r+1)===nt){for(r>s&&n.push(e.substring(s,r));r<t&&10!==e.charCodeAt(r);)r++;s=r}else r++;else r++;else 0===o?o=c:o===c&&(o=0),r++}return 0===s?e:(s<t&&n.push(e.substring(s)),n.join(""))}(t));let h=qe(i||o?i+" "+o+" { "+u+" }":u);return e.namespace&&(h=ot(h,e.namespace)),c=[],Ze(h,a),c};return l.hash=t.length?t.reduce((e,t)=>(t.name||y(15),Xe(e,t.name)),5381).toString():"",l}const ct=new D,at=it(),lt=t.createContext({shouldForwardProp:void 0,styleSheet:ct,stylis:at}),ut=lt.Consumer,ht=t.createContext(void 0);function ft(){return t.useContext(lt)}function dt(e){if(!t.useMemo)return e.children;const{styleSheet:n}=ft(),s=t.useMemo(()=>{let t=n;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions({target:e.target,nonce:e.nonce},!1):void 0!==e.nonce&&(t=t.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,n]),r=t.useMemo(()=>it({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=t.useMemo(()=>({shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:r}),[e.shouldForwardProp,s,r]);return t.createElement(lt.Provider,{value:o},t.createElement(ht.Provider,{value:r},e.children))}const pt=t.createContext(void 0),gt=pt.Consumer;function mt(e,t,n=g){return e.theme!==n.theme&&e.theme||t||n.theme}const yt=/(a)(d)/gi,bt=e=>String.fromCharCode(e+(e>25?39:97));function St(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=bt(t%52)+n;return(bt(t%52)+n).replace(yt,"$1-$2")}function vt(e){return St(et(e)>>>0)}function wt(e,t){const n=[e[0]];for(let s=0,r=t.length;s<r;s+=1)n.push(t[s],e[s+1]);return n}const Ct=e=>Object.assign(e,{isCss:!0});function $t(e,...t){if(V(e)||U(e))return Ct(X(wt(p,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?X(n):Ct(X(wt(n,t)))}function xt(e,...n){const s=$t(e,...n),r=`sc-global-${vt(JSON.stringify(s))}`,o=new ne(s,r),i=e=>{const n=ft(),s=t.useContext(pt);let i;{const e=t.useRef(null);null===e.current&&(e.current=n.styleSheet.allocateGSInstance(r)),i=e.current}return n.styleSheet.server&&c(i,e,n.styleSheet,s,n.stylis),t.useLayoutEffect(()=>(n.styleSheet.server||c(i,e,n.styleSheet,s,n.stylis),()=>{o.removeStyles(i,n.styleSheet)}),o.isStatic?[i,n.styleSheet]:[i,e,n.styleSheet,s,n.stylis]),n.styleSheet.server&&o.instanceRules.delete(i),null};function c(e,t,n,s,r){if(o.isStatic)o.renderStyles(e,d,n,r);else{const c=Object.assign(Object.assign({},t),{theme:mt(t,s,i.defaultProps)});o.renderStyles(e,c,n,r)}}return t.memo(i)}function At(e,t,n,s,r){for(const o in e){const i=e[o],c=r?r+"-"+o:o;if("object"==typeof i&&null!==i){const e={};At(i,t,e,s,c),n[o]=e}else n[o]=s(c,i,o)}}function Ot(e,t,n,s){let r="";for(const o in e){const i=e[o],c=t[o],a=s?s+"-"+o:o;"object"==typeof i&&null!==i?"object"==typeof c&&null!==c&&(r+=Ot(i,c,n,a)):void 0!==c&&"function"!=typeof c&&(r+="--"+n+a+":"+c+";")}return r}var It;class jt{constructor(e,t){this[It]=!0,this.inject=(e,t=at)=>{const n=this.name+t.hash;e.hasNameForId(this.id,n)||e.insertRules(this.id,n,t(this.rules,n,"@keyframes"))},this.name=e,this.id=f+e,this.rules=t,C(this.id),m(this,()=>{throw y(12,String(this.name))})}getName(e=at){return this.name+e.hash}}It=Y;const Rt=Symbol.for("react.memo"),Pt=Symbol.for("react.forward_ref"),_t={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},kt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Nt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Tt={[Pt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[Rt]:Nt};function Et(e){return("type"in(t=e)&&t.type.$$typeof)===Rt?Nt:"$$typeof"in e?Tt[e.$$typeof]:_t;var t}const Gt=Object.defineProperty,Mt=Object.getOwnPropertyNames,zt=Object.getOwnPropertySymbols,Ft=Object.getOwnPropertyDescriptor,Dt=Object.getPrototypeOf,Wt=Object.prototype;function Bt(e,t,n){if("string"!=typeof t){const s=Dt(t);s&&s!==Wt&&Bt(e,s,n);const r=Mt(t).concat(zt(t)),o=Et(e),i=Et(t);for(let s=0;s<r.length;++s){const c=r[s];if(!(c in kt||n&&n[c]||i&&c in i||o&&c in o)){const n=Ft(t,c);try{Gt(e,c,n)}catch(e){}}}}return e}const Lt={StyleSheet:D,mainSheet:ct};var qt=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:class{constructor({nonce:e}={}){this._emitSheetCSS=()=>{const e=this.instance.toString();if(!e)return"";const t=this.instance.options.nonce||N();return`<style ${te([t&&`nonce="${t}"`,`${r}="true"`,`${i}="${c}"`].filter(Boolean)," ")}>${e}</style>`},this.getStyleTags=()=>{if(this.sealed)throw y(2);return this._emitSheetCSS()},this.getStyleElement=()=>{if(this.sealed)throw y(2);const e=this.instance.toString();if(!e)return[];const n={[r]:"",[i]:c,dangerouslySetInnerHTML:{__html:e}},s=this.instance.options.nonce||N();return s&&(n.nonce=s),[t.createElement("style",Object.assign({},n,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new D({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw y(2);return t.createElement(dt,{sheet:this.instance},e)}interleaveWithNodeStream(e){throw y(3)}},StyleSheetConsumer:ut,StyleSheetContext:lt,StyleSheetManager:dt,ThemeConsumer:gt,ThemeContext:pt,ThemeProvider:function(e){const n=t.useContext(pt),s=t.useMemo(()=>function(e,t){if(!e)throw y(14);if(V(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw y(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,n),[e.theme,n]);return e.children?t.createElement(pt.Provider,{value:s},e.children):null},__PRIVATE__:Lt,createGlobalStyle:xt,createTheme:function(e,t){var n,s;const r=(null!==(n=null==t?void 0:t.prefix)&&void 0!==n?n:"sc")+"-",o=null!==(s=null==t?void 0:t.selector)&&void 0!==s?s:":root",i=function(e,t){const n={};return At(e,t,n,(e,n)=>"var(--"+t+e+", "+n+")"),n}(e,r),c=xt`
2
2
  ${o} {
3
- ${t=>At(e,t.theme,r)}
3
+ ${t=>Ot(e,t.theme,r)}
4
4
  }
5
- `;return Object.assign(i,{GlobalStyle:c,raw:e,resolve(t){if(!l)throw new Error("createTheme.resolve() is client-only");const n=null!=t?t:document.documentElement;return function(e,t,n){const s={};return xt(e,t,s,(e,s)=>n.getPropertyValue("--"+t+e).trim()||s),s}(e,r,getComputedStyle(n))}})},css:Ct,isStyledComponent:J,keyframes:function(e,...t){const n=te(Ct(e,...t)),s=vt(n);return new Ot(s,n)},useTheme:function(){const e=t.useContext(pt);if(!e)throw y(18);return e},version:c,withTheme:function(e){const n=t.forwardRef((n,s)=>{const r=mt(n,t.useContext(pt),e.defaultProps);return t.createElement(e,Object.assign(Object.assign({},n),{theme:r,ref:s}))});return n.displayName=`WithTheme(${L(e)})`,Bt(n,e)}}),Ht=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);const Vt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Yt=/(^-|-$)/g;function Ut(e){return e.replace(Vt,"-").replace(Yt,"")}function Jt(e){return"string"==typeof e&&!0}function Zt(e){return Jt(e)?`styled.${e}`:`Styled(${L(e)})`}function Kt(e,t,n=!1){if(!n&&!U(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Kt(e[n],t[n]);else if(U(t))for(const n in t)e[n]=Kt(e[n],t[n]);return e}const Qt=et(c);class Xt{constructor(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&X(e),this.componentId=t,this.baseHash=Xe(Qt,t),this.baseStyle=n,D.registerId(t)}generateAndInjectStyles(e,t,n){let s=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))s=ee(s,this.staticRulesId);else{const r=te(Q(this.rules,e,t,n)),o=St(Xe(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,o)){const e=n(r,"."+o,void 0,this.componentId);t.insertRules(this.componentId,o,e)}s=ee(s,o),this.staticRulesId=o}else{let r=Xe(this.baseHash,n.hash),o="";for(let s=0;s<this.rules.length;s++){const i=this.rules[s];if("string"==typeof i)o+=i;else if(i){const c=te(Q(i,e,t,n));r=Xe(Xe(r,String(s)),c),o+=c}}if(o){const e=St(r>>>0);if(!t.hasNameForId(this.componentId,e)){const s=n(o,"."+e,void 0,this.componentId);t.insertRules(this.componentId,e,s)}s=ee(s,e)}}return s}}const en={};function tn(e,t){const n="string"!=typeof e?"sc":Ut(e);en[n]=(en[n]||0)+1;const s=`${n}-${vt(c+n+en[n])}`;return t?`${t}-${s}`:s}function nn(e,n,s){const r=J(e),o=e,i=!Jt(e),{attrs:c=p,componentId:a=tn(n.displayName,n.parentComponentId),displayName:l=Zt(e)}=n,u=n.displayName&&n.componentId?`${Ut(n.displayName)}-${n.componentId}`:n.componentId||a,h=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c;let{shouldForwardProp:f}=n;if(r&&o.shouldForwardProp){const e=o.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;f=(n,s)=>e(n,s)&&t(n,s)}else f=e}const d=new Xt(s,u,r?o.componentStyle:void 0);function y(e,n){return function(e,n,s){const{attrs:r,componentStyle:o,defaultProps:i,foldedComponentIds:c,styledComponentId:a,target:l}=e,u=t.useContext(pt),h=ft(),f=e.shouldForwardProp||h.shouldForwardProp,d=mt(n,u,i)||g,p=function(e,t,n){const s=Object.assign(Object.assign({},t),{className:void 0,theme:n});let r;for(let n=0;n<e.length;n+=1){r=e[n];const o=V(r)?r(Object.assign({},s)):r;for(const e in o)"className"===e?s.className=ee(s.className,o[e]):"style"===e?s.style=Object.assign(Object.assign({},s.style),o[e]):e in t&&void 0===t[e]||(s[e]=o[e])}return"className"in t&&"string"==typeof t.className&&(s.className=ee(s.className,t.className)),s}(r,n,d),m=p.as||l,y={};for(const e in p)void 0===p[e]||"$"===e[0]||"as"===e||"theme"===e&&p.theme===d||("forwardedAs"===e?y.as=p.forwardedAs:f&&!f(e,m)||(y[e]=p[e]));const b=function(e,t,n,s){return e.generateAndInjectStyles(t,n,s)}(o,p,h.styleSheet,h.stylis);let S=ee(c,a);return b&&(S+=" "+b),p.className&&(S+=" "+p.className),y[Jt(m)&&!Ht.has(m)?"class":"className"]=S,s&&(y.ref=s),t.createElement(m,y)}(b,e,n)}y.displayName=l;let b=t.forwardRef(y);return b.attrs=h,b.componentStyle=d,b.displayName=l,b.shouldForwardProp=f,b.foldedComponentIds=r?ee(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=u,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(const n of t)Kt(e,n,!0);return e}({},o.defaultProps,e):e}}),m(b,()=>`.${b.styledComponentId}`),i&&Bt(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function sn(e,t,n=g){if(!t)throw y(1,t);const s=(s,...r)=>e(t,n,Ct(s,...r));return s.attrs=s=>sn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,s).filter(Boolean)})),s.withConfig=s=>sn(e,t,Object.assign(Object.assign({},n),s)),s}new Set;const rn=e=>sn(nn,e),on=rn;Ht.forEach(e=>{on[e]=rn(e)});for(const e in qt)on[e]=qt[e];e.default=on,e.styled=on,Object.defineProperty(e,"__esModule",{value:!0})});
5
+ `;return Object.assign(i,{GlobalStyle:c,raw:e,resolve(t){if(!l)throw new Error("createTheme.resolve() is client-only");const n=null!=t?t:document.documentElement;return function(e,t,n){const s={};return At(e,t,s,(e,s)=>n.getPropertyValue("--"+t+e).trim()||s),s}(e,r,getComputedStyle(n))}})},css:$t,isStyledComponent:Z,keyframes:function(e,...t){const n=te($t(e,...t)),s=vt(n);return new jt(s,n)},useTheme:function(){const e=t.useContext(pt);if(!e)throw y(18);return e},version:c,withTheme:function(e){const n=t.forwardRef((n,s)=>{const r=mt(n,t.useContext(pt),e.defaultProps);return t.createElement(e,Object.assign(Object.assign({},n),{theme:r,ref:s}))});return n.displayName=`WithTheme(${L(e)})`,Bt(n,e)}}),Ht=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","br","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","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","map","mark","menu","meter","nav","object","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","slot","small","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","switch","symbol","text","textPath","tspan","use"]);const Vt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Yt=/(^-|-$)/g;function Ut(e){return e.replace(Vt,"-").replace(Yt,"")}function Jt(e){return"string"==typeof e&&!0}function Zt(e){return Jt(e)?`styled.${e}`:`Styled(${L(e)})`}function Kt(e,t,n=!1){if(!n&&!U(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=Kt(e[n],t[n]);else if(U(t))for(const n in t)e[n]=Kt(e[n],t[n]);return e}const Qt=et(c);class Xt{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=Xe(Qt,t),this.baseStyle=n,D.registerId(t)}generateAndInjectStyles(e,t,n){let s=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let r="";for(let s=0;s<this.rules.length;s++){const o=this.rules[s];if("string"==typeof o)r+=o;else if(o)if(J(o)){const s=o(e);"string"==typeof s?r+=s:null!=s&&!1!==s&&(r+=te(X(s,e,t,n)))}else r+=te(X(o,e,t,n))}if(r){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+r:r;let o=this.dynamicNameCache.get(e);if(o||(o=St(Xe(Xe(this.baseHash,n.hash),r)>>>0),this.dynamicNameCache.set(e,o)),!t.hasNameForId(this.componentId,o)){const e=n(r,"."+o,void 0,this.componentId);t.insertRules(this.componentId,o,e)}s=ee(s,o)}}return s}}const en=Object.prototype.hasOwnProperty,tn={};function nn(e,t){const n="string"!=typeof e?"sc":Ut(e);tn[n]=(tn[n]||0)+1;const s=n+"-"+vt(c+n+tn[n]);return t?t+"-"+s:s}function sn(e,n,s){const r=Z(e),o=e,i=!Jt(e),{attrs:c=p,componentId:a=nn(n.displayName,n.parentComponentId),displayName:l=Zt(e)}=n,u=n.displayName&&n.componentId?Ut(n.displayName)+"-"+n.componentId:n.componentId||a,h=r&&o.attrs?o.attrs.concat(c).filter(Boolean):c;let{shouldForwardProp:f}=n;if(r&&o.shouldForwardProp){const e=o.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;f=(n,s)=>e(n,s)&&t(n,s)}else f=e}const d=new Xt(s,u,r?o.componentStyle:void 0);function y(e,n){return function(e,n,s){const{attrs:r,componentStyle:o,defaultProps:i,foldedComponentIds:c,styledComponentId:a,target:l}=e,u=t.useContext(pt),h=ft(),f=e.shouldForwardProp||h.shouldForwardProp,d=mt(n,u,i)||g;let p,m;{const e=t.useRef(null),s=e.current;if(null!==s&&s[1]===d&&s[2]===h.styleSheet&&s[3]===h.stylis&&function(e,t,n){const s=e,r=t;let o=0;for(const e in r)if(en.call(r,e)&&(o++,s[e]!==r[e]))return!1;return o===n}(s[0],n,s[4]))p=s[5],m=s[6];else{p=function(e,t,n){const s=Object.assign(Object.assign({},t),{className:void 0,theme:n});for(let n=0;n<e.length;n++){const r=e[n],o=V(r)?r(Object.assign({},s)):r;for(const e in o)"className"===e?s.className=ee(s.className,o[e]):"style"===e?s.style=Object.assign(Object.assign({},s.style),o[e]):e in t&&void 0===t[e]||(s[e]=o[e])}return"className"in t&&"string"==typeof t.className&&(s.className=ee(s.className,t.className)),s}(r,n,d),m=function(e,t,n,s){return e.generateAndInjectStyles(t,n,s)}(o,p,h.styleSheet,h.stylis);let t=0;for(const e in n)en.call(n,e)&&t++;e.current=[n,d,h.styleSheet,h.stylis,t,p,m]}}const y=p.as||l,b=function(e,t,n,s){const r={};for(const o in e)void 0===e[o]||"$"===o[0]||"as"===o||"theme"===o&&e.theme===n||("forwardedAs"===o?r.as=e.forwardedAs:s&&!s(o,t)||(r[o]=e[o]));return r}(p,y,d,f);let S=ee(c,a);return m&&(S+=" "+m),p.className&&(S+=" "+p.className),b[Jt(y)&&!Ht.has(y)?"class":"className"]=S,s&&(b.ref=s),t.createElement(y,b)}(b,e,n)}y.displayName=l;let b=t.forwardRef(y);return b.attrs=h,b.componentStyle=d,b.displayName=l,b.shouldForwardProp=f,b.foldedComponentIds=r?ee(o.foldedComponentIds,o.styledComponentId):"",b.styledComponentId=u,b.target=r?o.target:e,Object.defineProperty(b,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=r?function(e,...t){for(const n of t)Kt(e,n,!0);return e}({},o.defaultProps,e):e}}),m(b,()=>`.${b.styledComponentId}`),i&&Bt(b,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),b}function rn(e,t,n=g){if(!t)throw y(1,t);const s=(s,...r)=>e(t,n,$t(s,...r));return s.attrs=s=>rn(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,s).filter(Boolean)})),s.withConfig=s=>rn(e,t,Object.assign(Object.assign({},n),s)),s}new Set;const on=e=>rn(sn,e),cn=on;Ht.forEach(e=>{cn[e]=on(e)});for(const e in qt)cn[e]=qt[e];e.default=cn,e.styled=cn,Object.defineProperty(e,"__esModule",{value:!0})});
6
6
  //# sourceMappingURL=styled-components.min.js.map