styled-components 6.4.2 → 6.4.3
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.
- package/dist/constructors/constructWithOptions.d.ts +2 -2
- package/dist/styled-components.browser.cjs.js +1 -1
- package/dist/styled-components.browser.cjs.js.map +1 -1
- package/dist/styled-components.browser.esm.js +1 -1
- package/dist/styled-components.browser.esm.js.map +1 -1
- package/dist/styled-components.cjs.js +1 -1
- package/dist/styled-components.cjs.js.map +1 -1
- package/dist/styled-components.esm.js +1 -1
- package/dist/styled-components.esm.js.map +1 -1
- package/dist/styled-components.js +1 -1
- package/dist/styled-components.js.map +1 -1
- package/dist/styled-components.min.js +1 -1
- package/dist/styled-components.min.js.map +1 -1
- package/dist/types.d.ts +65 -17
- package/native/dist/constructors/constructWithOptions.d.ts +2 -2
- package/native/dist/dist/constructors/constructWithOptions.d.ts +2 -2
- package/native/dist/dist/types.d.ts +65 -17
- package/native/dist/styled-components.native.cjs.js.map +1 -1
- package/native/dist/styled-components.native.esm.js.map +1 -1
- package/native/dist/types.d.ts +65 -17
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
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.2",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 f=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&&process,!1)),h="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)},O=`style[${r}][${i}="${c}"]`,I=new RegExp(`^${r}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),A=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,P=e=>{if(!e)return document;if(A(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(A(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)},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(I);if(o){const t=0|parseInt(o[1],10),n=o[2];0!==t&&(x(n,t),j(e,n,o[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(n)}},k=e=>{const t=P(e.options.target).querySelectorAll(O);for(let n=0,s=t.length;n<s;n++){const s=t[n];s&&s.getAttribute(r)!==o&&(R(e,s),s.parentNode&&s.parentNode.removeChild(s))}};let N=!1;function _(){if(!1!==N)return N;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return N=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return N=t.getAttribute("content")||void 0}return N="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 f=t||_();return f&&a.setAttribute("nonce",f),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:""}};let z=l;const M={isServer:!l,useCSSOMInjection:!f};class F{static registerId(e){return C(e)}constructor(e=g,t={},n){this.options=Object.assign(Object.assign({},M),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&l&&z&&(z=!1,k(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&&k(this)}reconstructWithOptions(e,t=!0){const n=new F(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&&P(this.options.target)!==P(e.target)&&k(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new E(t,n):new G(t,n))(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(h)&&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 D=new WeakSet,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=47;function V(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);t+=s>=65&&s<=90?"-"+String.fromCharCode(s+32):e[n]}return t.startsWith("ms-")?"-"+t:t}function H(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 H(e)&&!(e.prototype&&e.prototype.isReactComponent)}const K=Symbol.for("react.forward_ref");function Q(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===K&&"styledComponentId"in e}const X=e=>null==e||!1===e||""===e,Z=Symbol.for("react.client.reference");function ee(e){return e.$$typeof===Z}function te(e,t){for(const n in e){const s=e[n];e.hasOwnProperty(n)&&!X(s)&&(Array.isArray(s)&&D.has(s)||H(s)?t.push(V(n)+":",s,";"):U(s)?(t.push(n+" {"),te(s,t),t.push("}")):t.push(V(n)+": "+B(n,s)+";"))}}function ne(e,t,n,s,r=[]){if(X(e))return r;const o=typeof e;if("string"===o)return r.push(e),r;if("function"===o)return ee(e)?r:J(e)&&t?ne(e(t),t,n,s,r):(r.push(e),r);if(Array.isArray(e)){for(let o=0;o<e.length;o++)ne(e[o],t,n,s,r);return r}return Q(e)?(r.push(`.${e.styledComponentId}`),r):"object"==typeof(i=e)&&null!==i&&Y in i?(n?(e.inject(n,s),r.push(e.getName(s))):r.push(e),r):ee(e)?r:U(e)?e.toString!==Object.prototype.toString?(r.push(e.toString()),r):(te(e,r),r):(r.push(e.toString()),r);var i}function se(e,t){return e&&t?e+" "+t:e||t||""}function re(e,t){return e.join(t||"")}class oe{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(H(n)&&!Q(n))return!1}return!0}(e),F.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=re(ne(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 ie="-ms-",ce="-moz-",ae="-webkit-",le="comm",ue="rule",fe="decl",he="@keyframes",de=Math.abs,pe=String.fromCharCode,ge=Object.assign;function me(e){return e.trim()}function ye(e,t){return(e=t.exec(e))?e[0]:e}function be(e,t,n){return e.replace(t,n)}function Se(e,t,n){return e.indexOf(t,n)}function ve(e,t){return 0|e.charCodeAt(t)}function we(e,t,n){return e.slice(t,n)}function Ce(e){return e.length}function $e(e){return e.length}function xe(e,t){return t.push(e),e}function Oe(e,t){return e.filter(function(e){return!ye(e,t)})}var Ie=1,Ae=1,Pe=0,je=0,Re=0,ke="";function Ne(e,t,n,s,r,o,i,c){return{value:e,root:t,parent:n,type:s,props:r,children:o,line:Ie,column:Ae,length:i,return:"",siblings:c}}function _e(e,t){return ge(Ne("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Te(e){for(;e.root;)e=_e(e.root,{children:[e]});xe(e,e.siblings)}function Ee(){return Re=je>0?ve(ke,--je):0,Ae--,10===Re&&(Ae=1,Ie--),Re}function Ge(){return Re=je<Pe?ve(ke,je++):0,Ae++,10===Re&&(Ae=1,Ie++),Re}function ze(){return ve(ke,je)}function Me(){return je}function Fe(e,t){return we(ke,e,t)}function De(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 We(e){return me(Fe(je-1,qe(91===e?e+2:40===e?e+1:e)))}function Be(e){for(;(Re=ze())&&Re<33;)Ge();return De(e)>2||De(Re)>3?"":" "}function Le(e,t){for(;--t&&Ge()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Fe(e,Me()+(t<6&&32==ze()&&32==Ge()))}function qe(e){for(;Ge();)switch(Re){case e:return je;case 34:case 39:34!==e&&39!==e&&qe(Re);break;case 40:41===e&&qe(e);break;case 92:Ge()}return je}function Ve(e,t){for(;Ge()&&e+Re!==57&&(e+Re!==84||47!==ze()););return"/*"+Fe(t,je-1)+"*"+pe(47===e?e:Ge())}function He(e){for(;!De(ze());)Ge();return Fe(e,je)}function Ye(e){return function(e){return ke="",e}(Ue("",null,null,null,[""],e=function(e){return Ie=Ae=1,Pe=Ce(ke=e),je=0,[]}(e),0,[0],e))}function Ue(e,t,n,s,r,o,i,c,a){for(var l=0,u=0,f=i,h=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=Ge()){case 40:if(108!=p&&58==ve($,f-1)){-1!=Se($+=be(We(b),"&","&\f"),"&\f",de(l?c[l-1]:0))&&(y=-1);break}case 34:case 39:case 91:$+=We(b);break;case 9:case 10:case 13:case 32:$+=Be(p);break;case 92:$+=Le(Me()-1,7);continue;case 47:switch(ze()){case 42:case 47:xe(Ke(Ve(Ge(),Me()),t,n,a),a),5!=De(p||1)&&5!=De(ze()||1)||!Ce($)||" "===we($,-1,void 0)||($+=" ");break;default:$+="/"}break;case 123*g:c[l++]=Ce($)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&($=be($,/\f/g,"")),d>0&&(Ce($)-f||0===g&&47===p)&&xe(d>32?Qe($+";",s,n,f-1,a):Qe(be($," ","")+";",s,n,f-2,a),a);break;case 59:$+=";";default:if(xe(C=Je($,t,n,l,u,r,c,S,v=[],w=[],f,o),o),123===b)if(0===u)Ue($,t,C,C,v,o,f,c,w);else{switch(h){case 99:if(110===ve($,3))break;case 108:if(97===ve($,2))break;default:u=0;case 100:case 109:case 115:}u?Ue(e,C,C,s&&xe(Je(e,C,C,0,0,r,c,S,r,v=[],f,w),w),r,w,f,c,s?v:w):Ue($,C,C,C,[""],w,0,c,w)}}l=u=d=0,g=y=1,S=$="",f=i;break;case 58:f=1+Ce($),d=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Ee())continue;switch($+=pe(b),b*g){case 38:y=u>0?1:($+="\f",-1);break;case 44:c[l++]=(Ce($)-1)*y,y=1;break;case 64:45===ze()&&($+=We(Ge())),h=ze(),u=f=Ce(S=$+=He(Me())),b++;break;case 45:45===p&&2==Ce($)&&(g=0)}}return o}function Je(e,t,n,s,r,o,i,c,a,l,u,f){for(var h=r-1,d=0===r?o:[""],p=$e(d),g=0,m=0,y=0;g<s;++g)for(var b=0,S=we(e,h+1,h=de(m=i[g])),v=e;b<p;++b)(v=me(m>0?d[b]+" "+S:be(S,/&\f/g,d[b])))&&(a[y++]=v);return Ne(e,t,n,0===r?ue:c,a,l,u,f)}function Ke(e,t,n,s){return Ne(e,t,n,le,pe(Re),we(e,2,-2),0,s)}function Qe(e,t,n,s,r){return Ne(e,t,n,fe,we(e,0,s),we(e,s+1,-1),s,r)}function Xe(e,t,n){switch(function(e,t){return 45^ve(e,0)?(((t<<2^ve(e,0))<<2^ve(e,1))<<2^ve(e,2))<<2^ve(e,3):0}(e,t)){case 5103:return ae+"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 ae+e+e;case 4855:return ae+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+ce+e+ie+e+e;case 5936:switch(ve(e,t+11)){case 114:return ae+e+ie+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+ie+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+ie+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ae+e+ie+e+e;case 6165:return ae+e+ie+"flex-"+e+e;case 5187:return ae+e+be(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return ae+e+ie+"flex-item-"+be(e,/flex-|-self/g,"")+(ye(e,/flex-|baseline/)?"":ie+"grid-row-"+be(e,/flex-|-self/g,""))+e;case 4675:return ae+e+ie+"flex-line-pack"+be(e,/align-content|flex-|-self/g,"")+e;case 5548:return ae+e+ie+be(e,"shrink","negative")+e;case 5292:return ae+e+ie+be(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+be(e,"-grow","")+ae+e+ie+be(e,"grow","positive")+e;case 4554:return ae+be(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+ie+"flex-pack:$3"),/space-between/,"justify")+ae+e+e;case 4200:if(!ye(e,/flex-|baseline/))return ie+"grid-column-align"+we(e,t)+e;break;case 2592:case 3360:return ie+be(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,ye(e.props,/grid-\w+-end/)})?~Se(e+(n=n[t].value),"span",0)?e:ie+be(e,"-start","")+e+ie+"grid-row-span:"+(~Se(n,"span",0)?ye(n,/\d+/):+ye(n,/\d+/)-+ye(e,/\d+/))+";":ie+be(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return ye(e.props,/grid-\w+-start/)})?e:ie+be(be(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,ae+"$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(Ce(e)-1-t>6)switch(ve(e,t+1)){case 109:if(45!==ve(e,t+4))break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+ce+(108==ve(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch",0)?Xe(be(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return be(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,s,r,o,i,c){return ie+n+":"+s+c+(r?ie+n+"-span:"+(o?i:+i-+s)+c:"")+e});case 4949:if(121===ve(e,t+6))return be(e,":",":"+ae)+e;break;case 6444:switch(ve(e,45===ve(e,14)?18:11)){case 120:return be(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ae+(45===ve(e,14)?"inline-":"")+"box$3$1"+ae+"$2$3$1"+ie+"$2box$3")+e;case 100:return be(e,":",":"+ie)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return be(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 et(e,t,n,s){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case fe:return e.return=e.return||e.value;case le:return"";case he:return e.return=e.value+"{"+Ze(e.children,s)+"}";case ue:if(!Ce(e.value=e.props.join(",")))return""}return Ce(n=Ze(e.children,s))?e.return=e.value+"{"+n+"}":""}function tt(e,t,n,s){if(e.length>-1&&!e.return)switch(e.type){case fe:return void(e.return=Xe(e.value,e.length,n));case he:return Ze([_e(e,{value:be(e.value,"@","@"+ae)})],s);case ue:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(ye(t,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Te(_e(e,{props:[be(t,/:(read-\w+)/,":-moz-$1")]})),Te(_e(e,{props:[t]})),ge(e,{props:Oe(n,s)});break;case"::placeholder":Te(_e(e,{props:[be(t,/:(plac\w+)/,":"+ae+"input-$1")]})),Te(_e(e,{props:[be(t,/:(plac\w+)/,":-moz-$1")]})),Te(_e(e,{props:[be(t,/:(plac\w+)/,ie+"input-$1")]})),Te(_e(e,{props:[t]})),ge(e,{props:Oe(n,s)})}return""})}}const nt=5381,st=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},rt=e=>st(nt,e),ot=/&/g;function it(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function ct(e){const t=e.length;let n="",s=0,r=0,o=0,i=!1,c=!1;for(let a=0;a<t;a++){const l=e.charCodeAt(a);if(0!==o||i||l!==q||42!==e.charCodeAt(a+1))if(i)42===l&&e.charCodeAt(a+1)===q&&(i=!1,a++);else if(34!==l&&39!==l||it(e,a)){if(0===o)if(123===l)r++;else if(125===l){if(r--,r<0){c=!0;let n=a+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,a=n-1,s=n;continue}0===r&&(n+=e.substring(s,a+1),s=a+1)}else 59===l&&0===r&&(n+=e.substring(s,a+1),s=a+1)}else 0===o?o=l:o===l&&(o=0);else i=!0,a++}return c||0!==r||0!==o?(s<t&&0===r&&0===o&&(n+=e.substring(s)),n):e}function at(e,t){const n=t+" ",s=","+n;for(let r=0;r<e.length;r++){const o=e[r];if("rule"===o.type){o.value=(n+o.value).replaceAll(",",s);const e=o.props,t=[];for(let s=0;s<e.length;s++)t[s]=n+e[s];o.props=t}Array.isArray(o.children)&&"@keyframes"!==o.type&&at(o.children,t)}return e}function lt({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===ue&&e.value.includes("&")&&(r||(r=new RegExp(`\\${s}\\b`,"g")),e.props[0]=e.props[0].replace(ot,s).replace(r,o))}),e.prefix&&i.push(tt),i.push(et);let c=[];const a=function(e){var t=$e(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){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return ct(e);const s=e.length;let r="",o=0,i=0,c=0,a=0,l=0,u=!1;for(;i<s;){const t=e.charCodeAt(i);if(34!==t&&39!==t||it(e,i))if(0===c)if(t===q&&i+1<s&&42===e.charCodeAt(i+1)){for(i+=2;i+1<s&&(42!==e.charCodeAt(i)||e.charCodeAt(i+1)!==q);)i++;i+=2}else if(40!==t)if(41!==t)if(a>0)i++;else if(42===t&&i+1<s&&e.charCodeAt(i+1)===q)r+=e.substring(o,i),i+=2,o=i,u=!0;else if(t===q&&i+1<s&&e.charCodeAt(i+1)===q){for(r+=e.substring(o,i);i<s&&10!==e.charCodeAt(i);)i++;o=i,u=!0}else 123===t?l++:125===t&&l--,i++;else a>0&&a--,i++;else a++,i++;else i++;else 0===c?c=t:c===t&&(c=0),i++}return u?(o<s&&(r+=e.substring(o)),0===l?r:ct(r)):0===l?e:ct(e)}(t);let f=Ye(i||o?i+" "+o+" { "+u+" }":u);return e.namespace&&(f=at(f,e.namespace)),c=[],Ze(f,a),c},u=e;let f=nt;for(let e=0;e<t.length;e++)t[e].name||y(15),f=st(f,t[e].name);return(null==u?void 0:u.namespace)&&(f=st(f,u.namespace)),(null==u?void 0:u.prefix)&&(f=st(f,"p")),l.hash=f!==nt?f.toString():"",l}const ut=new F,ft=lt(),ht=t.createContext({shouldForwardProp:void 0,styleSheet:ut,stylis:ft,stylisPlugins:void 0}),dt=ht.Consumer;function pt(){return t.useContext(ht)}function gt(e){var n;const s=pt(),{styleSheet:r}=s,o=t.useMemo(()=>{let t=r;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!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,r]),i=t.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?s.stylis:lt({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:s.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,s.stylis,s.stylisPlugins]),c="shouldForwardProp"in e?e.shouldForwardProp:s.shouldForwardProp,a=null!==(n=e.stylisPlugins)&&void 0!==n?n:s.stylisPlugins,l=t.useMemo(()=>({shouldForwardProp:c,styleSheet:o,stylis:i,stylisPlugins:a}),[c,o,i,a]);return t.createElement(ht.Provider,{value:l},e.children)}const mt=t.createContext(void 0),yt=mt.Consumer;function bt(e,t,n=g){return e.theme!==n.theme&&e.theme||t||n.theme}const St=/(a)(d)/gi,vt=e=>String.fromCharCode(e+(e>25?39:97));function wt(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=vt(t%52)+n;return(vt(t%52)+n).replace(St,"$1-$2")}function Ct(e){return wt(rt(e)>>>0)}function $t(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 xt=e=>(D.add(e),e);function Ot(e,...t){if(H(e)||U(e))return xt(ne($t(p,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ne(n):xt(ne($t(n,t)))}function It(e,...n){const s=Ot(e,...n),r=`sc-global-${Ct(JSON.stringify(s))}`,o=new oe(s,r),i=e=>{const n=pt(),s=t.useContext(mt);let i;{const e=t.useRef(null);null===e.current&&(e.current=n.styleSheet.allocateGSInstance(r)),i=e.current}n.styleSheet.server&&c(i,e,n.styleSheet,s,n.stylis);{const a=o.isStatic?[i,n.styleSheet,o]:[i,e,n.styleSheet,s,n.stylis,o],l=t.useRef(o);t.useLayoutEffect(()=>{n.styleSheet.server||(l.current!==o&&(n.styleSheet.clearRules(r),l.current=o),c(i,e,n.styleSheet,s,n.stylis))},a),t.useLayoutEffect(()=>()=>{n.styleSheet.server||o.removeStyles(i,n.styleSheet)},[i,n.styleSheet,o])}return 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:bt(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 Pt(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+=Pt(i,c,n,a)):void 0!==c&&"function"!=typeof c&&(r+="--"+n+a+":"+c+";")}return r}var jt;class Rt{constructor(e,t){this[jt]=!0,this.inject=(e,t=ft)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const s=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,s)}},this.name=e,this.id=h+e,this.rules=t,C(this.id),m(this,()=>{throw y(12,String(this.name))})}getName(e=ft){return e.hash?this.name+wt(+e.hash>>>0):this.name}}jt=Y;const kt=Symbol.for("react.memo"),Nt=Symbol.for("react.forward_ref"),_t={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Tt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Et={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Gt={[Nt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[kt]:Et};function zt(e){return("type"in(t=e)&&t.type.$$typeof)===kt?Et:"$$typeof"in e?Gt[e.$$typeof]:_t;var t}const Mt=Object.defineProperty,Ft=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,Wt=Object.getOwnPropertyDescriptor,Bt=Object.getPrototypeOf,Lt=Object.prototype;function qt(e,t,n){if("string"!=typeof t){const s=Bt(t);s&&s!==Lt&&qt(e,s,n);const r=Ft(t).concat(Dt(t)),o=zt(e),i=zt(t);for(let s=0;s<r.length;++s){const c=r[s];if(!(c in Tt||n&&n[c]||i&&c in i||o&&c in o)){const n=Wt(t,c);try{Mt(e,c,n)}catch(e){}}}}return e}const Vt={StyleSheet:F,mainSheet:ut};var Ht=/*#__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||_();return`<style ${re([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||_();return s&&(n.nonce=s),[t.createElement("style",Object.assign({},n,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new F({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw y(2);return t.createElement(gt,{sheet:this.instance},e)}interleaveWithNodeStream(e){throw y(3)}},StyleSheetConsumer:dt,StyleSheetContext:ht,StyleSheetManager:gt,ThemeConsumer:yt,ThemeContext:mt,ThemeProvider:function(e){const n=t.useContext(mt),s=t.useMemo(()=>function(e,t){if(!e)throw y(14);if(H(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(mt.Provider,{value:s},e.children):null},__PRIVATE__:Vt,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 At(e,t,n,e=>"--"+t+e),n}(e,r),c=function(e,t){const n={};return At(e,t,n,(e,n)=>"var(--"+t+e+", "+n+")"),n}(e,r),a=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.3",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 f=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&&process,!1)),h="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)},O=`style[${r}][${i}="${c}"]`,I=new RegExp(`^${r}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),A=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,P=e=>{if(!e)return document;if(A(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(A(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)},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(I);if(o){const t=0|parseInt(o[1],10),n=o[2];0!==t&&(x(n,t),j(e,n,o[3]),e.getTag().insertRules(t,r)),r.length=0}else r.push(n)}},k=e=>{const t=P(e.options.target).querySelectorAll(O);for(let n=0,s=t.length;n<s;n++){const s=t[n];s&&s.getAttribute(r)!==o&&(R(e,s),s.parentNode&&s.parentNode.removeChild(s))}};let N=!1;function _(){if(!1!==N)return N;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return N=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return N=t.getAttribute("content")||void 0}return N="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 f=t||_();return f&&a.setAttribute("nonce",f),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:""}};let z=l;const M={isServer:!l,useCSSOMInjection:!f};class F{static registerId(e){return C(e)}constructor(e=g,t={},n){this.options=Object.assign(Object.assign({},M),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&l&&z&&(z=!1,k(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&&k(this)}reconstructWithOptions(e,t=!0){const n=new F(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&&P(this.options.target)!==P(e.target)&&k(n),n}allocateGSInstance(e){return this.gs[e]=(this.gs[e]||0)+1}getTag(){return this.tag||(this.tag=(e=(({useCSSOMInjection:e,target:t,nonce:n})=>e?new E(t,n):new G(t,n))(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(h)&&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 D=new WeakSet,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=47;function V(e){if(45===e.charCodeAt(0)&&45===e.charCodeAt(1))return e;let t="";for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);t+=s>=65&&s<=90?"-"+String.fromCharCode(s+32):e[n]}return t.startsWith("ms-")?"-"+t:t}function H(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 H(e)&&!(e.prototype&&e.prototype.isReactComponent)}const K=Symbol.for("react.forward_ref");function Q(e){return null!=e&&("object"==typeof e||"function"==typeof e)&&e.$$typeof===K&&"styledComponentId"in e}const X=e=>null==e||!1===e||""===e,Z=Symbol.for("react.client.reference");function ee(e){return e.$$typeof===Z}function te(e,t){for(const n in e){const s=e[n];e.hasOwnProperty(n)&&!X(s)&&(Array.isArray(s)&&D.has(s)||H(s)?t.push(V(n)+":",s,";"):U(s)?(t.push(n+" {"),te(s,t),t.push("}")):t.push(V(n)+": "+B(n,s)+";"))}}function ne(e,t,n,s,r=[]){if(X(e))return r;const o=typeof e;if("string"===o)return r.push(e),r;if("function"===o)return ee(e)?r:J(e)&&t?ne(e(t),t,n,s,r):(r.push(e),r);if(Array.isArray(e)){for(let o=0;o<e.length;o++)ne(e[o],t,n,s,r);return r}return Q(e)?(r.push(`.${e.styledComponentId}`),r):"object"==typeof(i=e)&&null!==i&&Y in i?(n?(e.inject(n,s),r.push(e.getName(s))):r.push(e),r):ee(e)?r:U(e)?e.toString!==Object.prototype.toString?(r.push(e.toString()),r):(te(e,r),r):(r.push(e.toString()),r);var i}function se(e,t){return e&&t?e+" "+t:e||t||""}function re(e,t){return e.join(t||"")}class oe{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(H(n)&&!Q(n))return!1}return!0}(e),F.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=re(ne(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 ie="-ms-",ce="-moz-",ae="-webkit-",le="comm",ue="rule",fe="decl",he="@keyframes",de=Math.abs,pe=String.fromCharCode,ge=Object.assign;function me(e){return e.trim()}function ye(e,t){return(e=t.exec(e))?e[0]:e}function be(e,t,n){return e.replace(t,n)}function Se(e,t,n){return e.indexOf(t,n)}function ve(e,t){return 0|e.charCodeAt(t)}function we(e,t,n){return e.slice(t,n)}function Ce(e){return e.length}function $e(e){return e.length}function xe(e,t){return t.push(e),e}function Oe(e,t){return e.filter(function(e){return!ye(e,t)})}var Ie=1,Ae=1,Pe=0,je=0,Re=0,ke="";function Ne(e,t,n,s,r,o,i,c){return{value:e,root:t,parent:n,type:s,props:r,children:o,line:Ie,column:Ae,length:i,return:"",siblings:c}}function _e(e,t){return ge(Ne("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Te(e){for(;e.root;)e=_e(e.root,{children:[e]});xe(e,e.siblings)}function Ee(){return Re=je>0?ve(ke,--je):0,Ae--,10===Re&&(Ae=1,Ie--),Re}function Ge(){return Re=je<Pe?ve(ke,je++):0,Ae++,10===Re&&(Ae=1,Ie++),Re}function ze(){return ve(ke,je)}function Me(){return je}function Fe(e,t){return we(ke,e,t)}function De(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 We(e){return me(Fe(je-1,qe(91===e?e+2:40===e?e+1:e)))}function Be(e){for(;(Re=ze())&&Re<33;)Ge();return De(e)>2||De(Re)>3?"":" "}function Le(e,t){for(;--t&&Ge()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Fe(e,Me()+(t<6&&32==ze()&&32==Ge()))}function qe(e){for(;Ge();)switch(Re){case e:return je;case 34:case 39:34!==e&&39!==e&&qe(Re);break;case 40:41===e&&qe(e);break;case 92:Ge()}return je}function Ve(e,t){for(;Ge()&&e+Re!==57&&(e+Re!==84||47!==ze()););return"/*"+Fe(t,je-1)+"*"+pe(47===e?e:Ge())}function He(e){for(;!De(ze());)Ge();return Fe(e,je)}function Ye(e){return function(e){return ke="",e}(Ue("",null,null,null,[""],e=function(e){return Ie=Ae=1,Pe=Ce(ke=e),je=0,[]}(e),0,[0],e))}function Ue(e,t,n,s,r,o,i,c,a){for(var l=0,u=0,f=i,h=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=Ge()){case 40:if(108!=p&&58==ve($,f-1)){-1!=Se($+=be(We(b),"&","&\f"),"&\f",de(l?c[l-1]:0))&&(y=-1);break}case 34:case 39:case 91:$+=We(b);break;case 9:case 10:case 13:case 32:$+=Be(p);break;case 92:$+=Le(Me()-1,7);continue;case 47:switch(ze()){case 42:case 47:xe(Ke(Ve(Ge(),Me()),t,n,a),a),5!=De(p||1)&&5!=De(ze()||1)||!Ce($)||" "===we($,-1,void 0)||($+=" ");break;default:$+="/"}break;case 123*g:c[l++]=Ce($)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+u:-1==y&&($=be($,/\f/g,"")),d>0&&(Ce($)-f||0===g&&47===p)&&xe(d>32?Qe($+";",s,n,f-1,a):Qe(be($," ","")+";",s,n,f-2,a),a);break;case 59:$+=";";default:if(xe(C=Je($,t,n,l,u,r,c,S,v=[],w=[],f,o),o),123===b)if(0===u)Ue($,t,C,C,v,o,f,c,w);else{switch(h){case 99:if(110===ve($,3))break;case 108:if(97===ve($,2))break;default:u=0;case 100:case 109:case 115:}u?Ue(e,C,C,s&&xe(Je(e,C,C,0,0,r,c,S,r,v=[],f,w),w),r,w,f,c,s?v:w):Ue($,C,C,C,[""],w,0,c,w)}}l=u=d=0,g=y=1,S=$="",f=i;break;case 58:f=1+Ce($),d=p;default:if(g<1)if(123==b)--g;else if(125==b&&0==g++&&125==Ee())continue;switch($+=pe(b),b*g){case 38:y=u>0?1:($+="\f",-1);break;case 44:c[l++]=(Ce($)-1)*y,y=1;break;case 64:45===ze()&&($+=We(Ge())),h=ze(),u=f=Ce(S=$+=He(Me())),b++;break;case 45:45===p&&2==Ce($)&&(g=0)}}return o}function Je(e,t,n,s,r,o,i,c,a,l,u,f){for(var h=r-1,d=0===r?o:[""],p=$e(d),g=0,m=0,y=0;g<s;++g)for(var b=0,S=we(e,h+1,h=de(m=i[g])),v=e;b<p;++b)(v=me(m>0?d[b]+" "+S:be(S,/&\f/g,d[b])))&&(a[y++]=v);return Ne(e,t,n,0===r?ue:c,a,l,u,f)}function Ke(e,t,n,s){return Ne(e,t,n,le,pe(Re),we(e,2,-2),0,s)}function Qe(e,t,n,s,r){return Ne(e,t,n,fe,we(e,0,s),we(e,s+1,-1),s,r)}function Xe(e,t,n){switch(function(e,t){return 45^ve(e,0)?(((t<<2^ve(e,0))<<2^ve(e,1))<<2^ve(e,2))<<2^ve(e,3):0}(e,t)){case 5103:return ae+"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 ae+e+e;case 4855:return ae+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return ce+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ae+e+ce+e+ie+e+e;case 5936:switch(ve(e,t+11)){case 114:return ae+e+ie+be(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ae+e+ie+be(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ae+e+ie+be(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ae+e+ie+e+e;case 6165:return ae+e+ie+"flex-"+e+e;case 5187:return ae+e+be(e,/(\w+).+(:[^]+)/,ae+"box-$1$2"+ie+"flex-$1$2")+e;case 5443:return ae+e+ie+"flex-item-"+be(e,/flex-|-self/g,"")+(ye(e,/flex-|baseline/)?"":ie+"grid-row-"+be(e,/flex-|-self/g,""))+e;case 4675:return ae+e+ie+"flex-line-pack"+be(e,/align-content|flex-|-self/g,"")+e;case 5548:return ae+e+ie+be(e,"shrink","negative")+e;case 5292:return ae+e+ie+be(e,"basis","preferred-size")+e;case 6060:return ae+"box-"+be(e,"-grow","")+ae+e+ie+be(e,"grow","positive")+e;case 4554:return ae+be(e,/([^-])(transform)/g,"$1"+ae+"$2")+e;case 6187:return be(be(be(e,/(zoom-|grab)/,ae+"$1"),/(image-set)/,ae+"$1"),e,"")+e;case 5495:case 3959:return be(e,/(image-set\([^]*)/,ae+"$1$`$1");case 4968:return be(be(e,/(.+:)(flex-)?(.*)/,ae+"box-pack:$3"+ie+"flex-pack:$3"),/space-between/,"justify")+ae+e+e;case 4200:if(!ye(e,/flex-|baseline/))return ie+"grid-column-align"+we(e,t)+e;break;case 2592:case 3360:return ie+be(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(e,n){return t=n,ye(e.props,/grid-\w+-end/)})?~Se(e+(n=n[t].value),"span",0)?e:ie+be(e,"-start","")+e+ie+"grid-row-span:"+(~Se(n,"span",0)?ye(n,/\d+/):+ye(n,/\d+/)-+ye(e,/\d+/))+";":ie+be(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(e){return ye(e.props,/grid-\w+-start/)})?e:ie+be(be(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return be(e,/(.+)-inline(.+)/,ae+"$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(Ce(e)-1-t>6)switch(ve(e,t+1)){case 109:if(45!==ve(e,t+4))break;case 102:return be(e,/(.+:)(.+)-([^]+)/,"$1"+ae+"$2-$3$1"+ce+(108==ve(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch",0)?Xe(be(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return be(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,n,s,r,o,i,c){return ie+n+":"+s+c+(r?ie+n+"-span:"+(o?i:+i-+s)+c:"")+e});case 4949:if(121===ve(e,t+6))return be(e,":",":"+ae)+e;break;case 6444:switch(ve(e,45===ve(e,14)?18:11)){case 120:return be(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ae+(45===ve(e,14)?"inline-":"")+"box$3$1"+ae+"$2$3$1"+ie+"$2box$3")+e;case 100:return be(e,":",":"+ie)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return be(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 et(e,t,n,s){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case fe:return e.return=e.return||e.value;case le:return"";case he:return e.return=e.value+"{"+Ze(e.children,s)+"}";case ue:if(!Ce(e.value=e.props.join(",")))return""}return Ce(n=Ze(e.children,s))?e.return=e.value+"{"+n+"}":""}function tt(e,t,n,s){if(e.length>-1&&!e.return)switch(e.type){case fe:return void(e.return=Xe(e.value,e.length,n));case he:return Ze([_e(e,{value:be(e.value,"@","@"+ae)})],s);case ue:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,function(t){switch(ye(t,s=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Te(_e(e,{props:[be(t,/:(read-\w+)/,":-moz-$1")]})),Te(_e(e,{props:[t]})),ge(e,{props:Oe(n,s)});break;case"::placeholder":Te(_e(e,{props:[be(t,/:(plac\w+)/,":"+ae+"input-$1")]})),Te(_e(e,{props:[be(t,/:(plac\w+)/,":-moz-$1")]})),Te(_e(e,{props:[be(t,/:(plac\w+)/,ie+"input-$1")]})),Te(_e(e,{props:[t]})),ge(e,{props:Oe(n,s)})}return""})}}const nt=5381,st=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},rt=e=>st(nt,e),ot=/&/g;function it(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function ct(e){const t=e.length;let n="",s=0,r=0,o=0,i=!1,c=!1;for(let a=0;a<t;a++){const l=e.charCodeAt(a);if(0!==o||i||l!==q||42!==e.charCodeAt(a+1))if(i)42===l&&e.charCodeAt(a+1)===q&&(i=!1,a++);else if(34!==l&&39!==l||it(e,a)){if(0===o)if(123===l)r++;else if(125===l){if(r--,r<0){c=!0;let n=a+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,a=n-1,s=n;continue}0===r&&(n+=e.substring(s,a+1),s=a+1)}else 59===l&&0===r&&(n+=e.substring(s,a+1),s=a+1)}else 0===o?o=l:o===l&&(o=0);else i=!0,a++}return c||0!==r||0!==o?(s<t&&0===r&&0===o&&(n+=e.substring(s)),n):e}function at(e,t){const n=t+" ",s=","+n;for(let r=0;r<e.length;r++){const o=e[r];if("rule"===o.type){o.value=(n+o.value).replaceAll(",",s);const e=o.props,t=[];for(let s=0;s<e.length;s++)t[s]=n+e[s];o.props=t}Array.isArray(o.children)&&"@keyframes"!==o.type&&at(o.children,t)}return e}function lt({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===ue&&e.value.includes("&")&&(r||(r=new RegExp(`\\${s}\\b`,"g")),e.props[0]=e.props[0].replace(ot,s).replace(r,o))}),e.prefix&&i.push(tt),i.push(et);let c=[];const a=function(e){var t=$e(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){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return ct(e);const s=e.length;let r="",o=0,i=0,c=0,a=0,l=0,u=!1;for(;i<s;){const t=e.charCodeAt(i);if(34!==t&&39!==t||it(e,i))if(0===c)if(t===q&&i+1<s&&42===e.charCodeAt(i+1)){for(i+=2;i+1<s&&(42!==e.charCodeAt(i)||e.charCodeAt(i+1)!==q);)i++;i+=2}else if(40!==t)if(41!==t)if(a>0)i++;else if(42===t&&i+1<s&&e.charCodeAt(i+1)===q)r+=e.substring(o,i),i+=2,o=i,u=!0;else if(t===q&&i+1<s&&e.charCodeAt(i+1)===q){for(r+=e.substring(o,i);i<s&&10!==e.charCodeAt(i);)i++;o=i,u=!0}else 123===t?l++:125===t&&l--,i++;else a>0&&a--,i++;else a++,i++;else i++;else 0===c?c=t:c===t&&(c=0),i++}return u?(o<s&&(r+=e.substring(o)),0===l?r:ct(r)):0===l?e:ct(e)}(t);let f=Ye(i||o?i+" "+o+" { "+u+" }":u);return e.namespace&&(f=at(f,e.namespace)),c=[],Ze(f,a),c},u=e;let f=nt;for(let e=0;e<t.length;e++)t[e].name||y(15),f=st(f,t[e].name);return(null==u?void 0:u.namespace)&&(f=st(f,u.namespace)),(null==u?void 0:u.prefix)&&(f=st(f,"p")),l.hash=f!==nt?f.toString():"",l}const ut=new F,ft=lt(),ht=t.createContext({shouldForwardProp:void 0,styleSheet:ut,stylis:ft,stylisPlugins:void 0}),dt=ht.Consumer;function pt(){return t.useContext(ht)}function gt(e){var n;const s=pt(),{styleSheet:r}=s,o=t.useMemo(()=>{let t=r;return e.sheet?t=e.sheet:e.target?t=t.reconstructWithOptions(void 0!==e.nonce?{target:e.target,nonce:e.nonce}:{target:e.target},!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,r]),i=t.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?s.stylis:lt({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:s.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins,s.stylis,s.stylisPlugins]),c="shouldForwardProp"in e?e.shouldForwardProp:s.shouldForwardProp,a=null!==(n=e.stylisPlugins)&&void 0!==n?n:s.stylisPlugins,l=t.useMemo(()=>({shouldForwardProp:c,styleSheet:o,stylis:i,stylisPlugins:a}),[c,o,i,a]);return t.createElement(ht.Provider,{value:l},e.children)}const mt=t.createContext(void 0),yt=mt.Consumer;function bt(e,t,n=g){return e.theme!==n.theme&&e.theme||t||n.theme}const St=/(a)(d)/gi,vt=e=>String.fromCharCode(e+(e>25?39:97));function wt(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=vt(t%52)+n;return(vt(t%52)+n).replace(St,"$1-$2")}function Ct(e){return wt(rt(e)>>>0)}function $t(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 xt=e=>(D.add(e),e);function Ot(e,...t){if(H(e)||U(e))return xt(ne($t(p,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?ne(n):xt(ne($t(n,t)))}function It(e,...n){const s=Ot(e,...n),r=`sc-global-${Ct(JSON.stringify(s))}`,o=new oe(s,r),i=e=>{const n=pt(),s=t.useContext(mt);let i;{const e=t.useRef(null);null===e.current&&(e.current=n.styleSheet.allocateGSInstance(r)),i=e.current}n.styleSheet.server&&c(i,e,n.styleSheet,s,n.stylis);{const a=o.isStatic?[i,n.styleSheet,o]:[i,e,n.styleSheet,s,n.stylis,o],l=t.useRef(o);t.useLayoutEffect(()=>{n.styleSheet.server||(l.current!==o&&(n.styleSheet.clearRules(r),l.current=o),c(i,e,n.styleSheet,s,n.stylis))},a),t.useLayoutEffect(()=>()=>{n.styleSheet.server||o.removeStyles(i,n.styleSheet)},[i,n.styleSheet,o])}return 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:bt(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 Pt(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+=Pt(i,c,n,a)):void 0!==c&&"function"!=typeof c&&(r+="--"+n+a+":"+c+";")}return r}var jt;class Rt{constructor(e,t){this[jt]=!0,this.inject=(e,t=ft)=>{const n=this.getName(t);if(!e.hasNameForId(this.id,n)){const s=t(this.rules,n,"@keyframes");e.insertRules(this.id,n,s)}},this.name=e,this.id=h+e,this.rules=t,C(this.id),m(this,()=>{throw y(12,String(this.name))})}getName(e=ft){return e.hash?this.name+wt(+e.hash>>>0):this.name}}jt=Y;const kt=Symbol.for("react.memo"),Nt=Symbol.for("react.forward_ref"),_t={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},Tt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Et={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Gt={[Nt]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[kt]:Et};function zt(e){return("type"in(t=e)&&t.type.$$typeof)===kt?Et:"$$typeof"in e?Gt[e.$$typeof]:_t;var t}const Mt=Object.defineProperty,Ft=Object.getOwnPropertyNames,Dt=Object.getOwnPropertySymbols,Wt=Object.getOwnPropertyDescriptor,Bt=Object.getPrototypeOf,Lt=Object.prototype;function qt(e,t,n){if("string"!=typeof t){const s=Bt(t);s&&s!==Lt&&qt(e,s,n);const r=Ft(t).concat(Dt(t)),o=zt(e),i=zt(t);for(let s=0;s<r.length;++s){const c=r[s];if(!(c in Tt||n&&n[c]||i&&c in i||o&&c in o)){const n=Wt(t,c);try{Mt(e,c,n)}catch(e){}}}}return e}const Vt={StyleSheet:F,mainSheet:ut};var Ht=/*#__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||_();return`<style ${re([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||_();return s&&(n.nonce=s),[t.createElement("style",Object.assign({},n,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new F({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw y(2);return t.createElement(gt,{sheet:this.instance},e)}interleaveWithNodeStream(e){throw y(3)}},StyleSheetConsumer:dt,StyleSheetContext:ht,StyleSheetManager:gt,ThemeConsumer:yt,ThemeContext:mt,ThemeProvider:function(e){const n=t.useContext(mt),s=t.useMemo(()=>function(e,t){if(!e)throw y(14);if(H(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(mt.Provider,{value:s},e.children):null},__PRIVATE__:Vt,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 At(e,t,n,e=>"--"+t+e),n}(e,r),c=function(e,t){const n={};return At(e,t,n,(e,n)=>"var(--"+t+e+", "+n+")"),n}(e,r),a=It`
|
|
2
2
|
${o} {
|
|
3
3
|
${t=>Pt(e,t.theme,r)}
|
|
4
4
|
}
|