styled-components 6.4.0-prerelease.9 → 6.4.0

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.
Files changed (66) hide show
  1. package/dist/bench/bench-utils.d.ts +9 -0
  2. package/dist/constructors/constructWithOptions.d.ts +1 -1
  3. package/dist/constructors/createTheme.d.ts +19 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/models/ComponentStyle.d.ts +5 -0
  6. package/dist/models/ServerStyleSheet.d.ts +0 -10
  7. package/dist/models/StyleSheetManager.d.ts +11 -2
  8. package/dist/styled-components.browser.cjs.js +3 -3
  9. package/dist/styled-components.browser.cjs.js.map +1 -1
  10. package/dist/styled-components.browser.esm.js +3 -3
  11. package/dist/styled-components.browser.esm.js.map +1 -1
  12. package/dist/styled-components.cjs.js +3 -3
  13. package/dist/styled-components.cjs.js.map +1 -1
  14. package/dist/styled-components.esm.js +3 -3
  15. package/dist/styled-components.esm.js.map +1 -1
  16. package/dist/styled-components.js +221 -239
  17. package/dist/styled-components.js.map +1 -1
  18. package/dist/styled-components.min.js +3 -3
  19. package/dist/styled-components.min.js.map +1 -1
  20. package/dist/types.d.ts +23 -26
  21. package/dist/utils/cssTagged.d.ts +2 -0
  22. package/dist/utils/joinStrings.d.ts +3 -0
  23. package/dist/utils/rscCache.d.ts +2 -0
  24. package/dist/utils/stylis.d.ts +17 -0
  25. package/dist/utils/stylisPluginRSC.d.ts +3 -0
  26. package/native/dist/bench/bench-utils.d.ts +9 -0
  27. package/native/dist/constructors/constructWithOptions.d.ts +1 -1
  28. package/native/dist/constructors/createTheme.d.ts +19 -0
  29. package/native/dist/dist/bench/bench-utils.d.ts +9 -0
  30. package/native/dist/dist/constructors/constructWithOptions.d.ts +1 -1
  31. package/native/dist/dist/constructors/createTheme.d.ts +19 -0
  32. package/native/dist/dist/index.d.ts +1 -0
  33. package/native/dist/dist/models/ComponentStyle.d.ts +5 -0
  34. package/native/dist/dist/models/ServerStyleSheet.d.ts +0 -10
  35. package/native/dist/dist/models/StyleSheetManager.d.ts +11 -2
  36. package/native/dist/dist/types.d.ts +23 -26
  37. package/native/dist/dist/utils/cssTagged.d.ts +2 -0
  38. package/native/dist/dist/utils/joinStrings.d.ts +3 -0
  39. package/native/dist/dist/utils/rscCache.d.ts +2 -0
  40. package/native/dist/dist/utils/stylis.d.ts +17 -0
  41. package/native/dist/dist/utils/stylisPluginRSC.d.ts +3 -0
  42. package/native/dist/index.d.ts +1 -0
  43. package/native/dist/models/ComponentStyle.d.ts +5 -0
  44. package/native/dist/models/ServerStyleSheet.d.ts +0 -10
  45. package/native/dist/models/StyleSheetManager.d.ts +11 -2
  46. package/native/dist/styled-components.native.cjs.js +1 -1
  47. package/native/dist/styled-components.native.cjs.js.map +1 -1
  48. package/native/dist/styled-components.native.esm.js +1 -1
  49. package/native/dist/styled-components.native.esm.js.map +1 -1
  50. package/native/dist/types.d.ts +23 -26
  51. package/native/dist/utils/cssTagged.d.ts +2 -0
  52. package/native/dist/utils/joinStrings.d.ts +3 -0
  53. package/native/dist/utils/rscCache.d.ts +2 -0
  54. package/native/dist/utils/stylis.d.ts +17 -0
  55. package/native/dist/utils/stylisPluginRSC.d.ts +3 -0
  56. package/package.json +30 -38
  57. package/native/dist/bench/run.d.ts +0 -5
  58. package/native/dist/dist/bench/run.d.ts +0 -5
  59. package/native/dist/dist/test/globals.d.ts +0 -2
  60. package/native/dist/dist/test/utils.d.ts +0 -163
  61. package/native/dist/dist/test/veryLargeUnionType.d.ts +0 -1
  62. package/native/dist/dist/utils/rawElement.d.ts +0 -11
  63. package/native/dist/test/globals.d.ts +0 -2
  64. package/native/dist/test/utils.d.ts +0 -163
  65. package/native/dist/test/veryLargeUnionType.d.ts +0 -1
  66. package/native/dist/utils/rawElement.d.ts +0 -11
@@ -1,6 +1,6 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@emotion/is-prop-valid"),t=require("react"),n=require("stylis");function o(e){return e&&e.__esModule?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var r,i,a=/*#__PURE__*/o(e),l=/*#__PURE__*/o(t),c=/*#__PURE__*/s(n);const u="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",d="active",h="data-styled-version",p="6.4.0-prerelease.9",f="/*!sc*/\n",m="undefined"!=typeof window&&"undefined"!=typeof document,y=void 0===l.default.createContext;function g(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const v=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(i=null!==(r=g("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==r?r:g("SC_DISABLE_SPEEDY"))&&void 0!==i?i:"undefined"==typeof process||void 0===process.env||"production"!==process.env.NODE_ENV),S="sc-keyframes-",w={},b="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function C(e,...t){return"production"===process.env.NODE_ENV?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(", ")}`:""}`):new Error(function(...e){let t=e[0];const n=[];for(let t=1,o=e.length;t<o;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(b[e],...t).trim())}const N=1<<30;let O=new Map,E=new Map,A=1;const _=e=>{if(O.has(e))return O.get(e);for(;E.has(A);)A++;const t=A++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>N))throw C(16,`${t}`);return O.set(e,t),E.set(t,e),t},I=e=>E.get(e),P=(e,t)=>{A=t+1,O.set(e,t),E.set(t,e)},x=/invalid hook call/i,j=new Set,R=(e,t)=>{if("production"!==process.env.NODE_ENV){if(y)return;const n=`The component ${e}${t?` with the id of "${t}"`:""} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,o=console.error;try{let e=!0;console.error=(t,...s)=>{x.test(t)?(e=!1,j.delete(n)):o(t,...s)},"function"==typeof l.default.useState&&l.default.useState(null),e&&!j.has(n)&&(console.warn(n),j.add(n))}catch(e){x.test(e.message)&&j.delete(n)}finally{console.error=o}}},k=Object.freeze([]),T=Object.freeze({});function $(e,t,n=T){return e.theme!==n.theme&&e.theme||t||n.theme}var D=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 M=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,G=/(^-|-$)/g;function V(e){return e.replace(M,"-").replace(G,"")}const z=/(a)(d)/gi,F=e=>String.fromCharCode(e+(e>25?39:97));function W(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=F(t%52)+n;return(F(t%52)+n).replace(z,"$1-$2")}const q=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},L=e=>q(5381,e);function B(e){return W(L(e)>>>0)}function H(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Y(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}function U(e){return Y(e)?`styled.${e}`:`Styled(${H(e)})`}const J=Symbol.for("react.memo"),Z=Symbol.for("react.forward_ref"),X={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},K={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ee={[Z]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[J]:Q};function te(e){return("type"in(t=e)&&t.type.$$typeof)===J?Q:"$$typeof"in e?ee[e.$$typeof]:X;var t}const ne=Object.defineProperty,oe=Object.getOwnPropertyNames,se=Object.getOwnPropertySymbols,re=Object.getOwnPropertyDescriptor,ie=Object.getPrototypeOf,ae=Object.prototype;function le(e,t,n){if("string"!=typeof t){const o=ie(t);o&&o!==ae&&le(e,o,n);const s=oe(t).concat(se(t)),r=te(e),i=te(t);for(let o=0;o<s.length;++o){const a=s[o];if(!(a in K||n&&n[a]||i&&a in i||r&&a in r)){const n=re(t,a);try{ne(e,a,n)}catch(e){}}}}return e}function ce(e){return"function"==typeof e}function ue(e){return"object"==typeof e&&"styledComponentId"in e}function de(e,t){return e&&t?e+" "+t:e||t||""}function he(e,t){return e.join(t||"")}function pe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function fe(e,t,n=!1){if(!n&&!pe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=fe(e[n],t[n]);else if(pe(t))for(const n in t)e[n]=fe(e[n],t[n]);return e}function me(e,t){Object.defineProperty(e,"toString",{value:t})}const ye=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 o=n;for(;e>=o;)if(o<<=1,o<0)throw C(16,`${e}`);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(let e=n;e<o;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),o=0;for(let s=0,r=t.length;s<r;s++)this.tag.insertRule(n,t[s])&&(this.groupSizes[e]++,n++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(let e=n;e<o;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],o=this.indexOfGroup(e),s=o+n;for(let e=o;e<s;e++)t+=this.tag.getRule(e)+f;return t}},ge=`style[${u}][${h}="${p}"]`,ve=new RegExp(`^${u}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Se=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,we=e=>{if(!e)return document;if(Se(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Se(t))return t}return document},be=(e,t,n)=>{const o=n.split(",");let s;for(let n=0,r=o.length;n<r;n++)(s=o[n])&&e.registerName(t,s)},Ce=(e,t)=>{var n;const o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(f),s=[];for(let t=0,n=o.length;t<n;t++){const n=o[t].trim();if(!n)continue;const r=n.match(ve);if(r){const t=0|parseInt(r[1],10),n=r[2];0!==t&&(P(n,t),be(e,n,r[3]),e.getTag().insertRules(t,s)),s.length=0}else s.push(n)}},Ne=e=>{const t=we(e.options.target).querySelectorAll(ge);for(let n=0,o=t.length;n<o;n++){const o=t[n];o&&o.getAttribute(u)!==d&&(Ce(e,o),o.parentNode&&o.parentNode.removeChild(o))}};let Oe=!1;function Ee(){if(!1!==Oe)return Oe;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return Oe=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return Oe=t.getAttribute("content")||void 0}return Oe="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}const Ae=(e,t)=>{const n=document.head,o=e||n,s=document.createElement("style"),r=(e=>{const t=Array.from(e.querySelectorAll(`style[${u}]`));return t[t.length-1]})(o),i=void 0!==r?r.nextSibling:null;s.setAttribute(u,d),s.setAttribute(h,p);const a=t||Ee();return a&&s.setAttribute("nonce",a),o.insertBefore(s,i),s},_e=class{constructor(e,t){this.element=Ae(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,o=n.length;t<o;t++){const o=n[t];if(o.ownerNode===e)return o}throw C(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:""}},Ie=class{constructor(e,t){this.element=Ae(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:""}},Pe=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 xe=m;const je={isServer:!m,useCSSOMInjection:!v};class Re{static registerId(e){return _(e)}constructor(e=T,t={},n){this.options=Object.assign(Object.assign({},je),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&m&&xe&&(xe=!1,Ne(this)),me(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let o="";for(let s=0;s<n;s++){const n=I(s);if(void 0===n)continue;const r=e.names.get(n);if(void 0===r||!r.size)continue;const i=t.getGroup(s);if(0===i.length)continue;const a=u+".g"+s+'[id="'+n+'"]';let l="";for(const e of r)e.length>0&&(l+=e+",");o+=i+a+'{content:"'+l+'"}'+f}return o})(this))}rehydrate(){!this.server&&m&&Ne(this)}reconstructWithOptions(e,t=!0){const n=new Re(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&m&&e.target!==this.options.target&&we(this.options.target)!==we(e.target)&&Ne(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:o})=>e?new Pe(n):t?new _e(n,o):new Ie(n,o))(this.options),new ye(e)));var e}hasNameForId(e,t){var n,o;return null!==(o=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==o&&o}registerName(e,t){_(e),e.startsWith(S)&&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 ke={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 Te(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in ke||e.startsWith("--")?String(t).trim():t+"px"}const $e=e=>e>="A"&&e<="Z";function De(e){let t="";for(let n=0;n<e.length;n++){const o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;$e(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}const Me=Symbol.for("sc-keyframes");function Ge(e){return"object"==typeof e&&null!==e&&Me in e}function Ve(e){return ce(e)&&!(e.prototype&&e.prototype.isReactComponent)}const ze=e=>null==e||!1===e||""===e,Fe=e=>{const t=[];for(const n in e){const o=e[n];e.hasOwnProperty(n)&&!ze(o)&&(Array.isArray(o)&&o.isCss||ce(o)?t.push(De(n)+":",o,";"):pe(o)?t.push(n+" {",...Fe(o),"}"):t.push(De(n)+": "+Te(n,o)+";"))}return t};function We(e,t,n,o,s=[]){if("string"==typeof e)return e&&s.push(e),s;if(ze(e))return s;if(ue(e))return s.push(`.${e.styledComponentId}`),s;if(ce(e)){if(Ve(e)&&t){const r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||Ge(r)||pe(r)||null===r||console.error(`${H(e)} is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.`),We(r,t,n,o,s)}return s.push(e),s}if(Ge(e))return n?(e.inject(n,o),s.push(e.getName(o))):s.push(e),s;if(pe(e)){const t=Fe(e);for(let e=0;e<t.length;e++)s.push(t[e]);return s}if(!Array.isArray(e))return s.push(e.toString()),s;for(let r=0;r<e.length;r++)We(e[r],t,n,o,s);return s}const qe=L(p);class Le{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=q(qe,t),this.baseStyle=n,Re.registerId(t)}generateAndInjectStyles(e,t,n){let o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let s="";for(let o=0;o<this.rules.length;o++){const r=this.rules[o];if("string"==typeof r)s+=r;else if(r)if(Ve(r)){const o=r(e);"string"==typeof o?s+=o:null!=o&&!1!==o&&("production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||Ge(o)||pe(o)||console.error(`${H(r)} is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.`),s+=he(We(o,e,t,n)))}else s+=he(We(r,e,t,n))}if(s){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+s:s;let r=this.dynamicNameCache.get(e);if(r||(r=W(q(q(this.baseHash,n.hash),s)>>>0),this.dynamicNameCache.set(e,r)),!t.hasNameForId(this.componentId,r)){const e=n(s,"."+r,void 0,this.componentId);t.insertRules(this.componentId,r,e)}o=de(o,r)}}return o}}const Be=/&/g,He=47,Ye=42;function Ue(e){if(-1===e.indexOf("}"))return!1;const t=e.length;let n=0,o=0,s=!1;for(let r=0;r<t;r++){const t=e.charCodeAt(r);if(0!==o||s||t!==He||e.charCodeAt(r+1)!==Ye)if(s)t===Ye&&e.charCodeAt(r+1)===He&&(s=!1,r++);else if(34!==t&&39!==t||0!==r&&92===e.charCodeAt(r-1)){if(0===o)if(123===t)n++;else if(125===t&&(n--,n<0))return!0}else 0===o?o=t:o===t&&(o=0);else s=!0,r++}return 0!==n||0!==o}function Je(e,t){for(let n=0;n<e.length;n++){const o=e[n];if("rule"===o.type){o.value=t+" "+o.value,o.value=o.value.replaceAll(",",","+t+" ");const e=o.props,n=[];for(let o=0;o<e.length;o++)n[o]=t+" "+e[o];o.props=n}Array.isArray(o.children)&&"@keyframes"!==o.type&&(o.children=Je(o.children,t))}return e}function Ze({options:e=T,plugins:t=k}=T){let n,o,s;const r=(e,t,s)=>s.startsWith(o)&&s.endsWith(o)&&s.replaceAll(o,"").length>0?`.${n}`:e,i=t.slice();i.push(e=>{e.type===c.RULESET&&e.value.includes("&")&&(s||(s=new RegExp(`\\${o}\\b`,"g")),e.props[0]=e.props[0].replace(Be,o).replace(s,r))}),e.prefix&&i.push(c.prefixer),i.push(c.stringify);let a=[];const l=c.middleware(i.concat(c.rulesheet(e=>a.push(e)))),u=(t,r="",i="",u="&")=>{n=u,o=r,s=void 0;const d=function(e){if(!Ue(e))return e;const t=e.length;let n="",o=0,s=0,r=0,i=!1;for(let a=0;a<t;a++){const l=e.charCodeAt(a);if(0!==r||i||l!==He||e.charCodeAt(a+1)!==Ye)if(i)l===Ye&&e.charCodeAt(a+1)===He&&(i=!1,a++);else if(34!==l&&39!==l||0!==a&&92===e.charCodeAt(a-1)){if(0===r)if(123===l)s++;else if(125===l){if(s--,s<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++,s=0,a=n-1,o=n;continue}0===s&&(n+=e.substring(o,a+1),o=a+1)}else 59===l&&0===s&&(n+=e.substring(o,a+1),o=a+1)}else 0===r?r=l:r===l&&(r=0);else i=!0,a++}if(o<t){const t=e.substring(o);Ue(t)||(n+=t)}return n}(function(e){if(-1===e.indexOf("//"))return e;const t=e.length,n=[];let o=0,s=0,r=0,i=0;for(;s<t;){const a=e.charCodeAt(s);if(34!==a&&39!==a||0!==s&&92===e.charCodeAt(s-1))if(0===r)if(a===He&&s+1<t&&e.charCodeAt(s+1)===Ye){for(s+=2;s+1<t&&(e.charCodeAt(s)!==Ye||e.charCodeAt(s+1)!==He);)s++;s+=2}else if(40===a&&s>=3&&108==(32|e.charCodeAt(s-1))&&114==(32|e.charCodeAt(s-2))&&117==(32|e.charCodeAt(s-3)))i=1,s++;else if(i>0)41===a?i--:40===a&&i++,s++;else if(a===Ye&&s+1<t&&e.charCodeAt(s+1)===He)s>o&&n.push(e.substring(o,s)),s+=2,o=s;else if(a===He&&s+1<t&&e.charCodeAt(s+1)===He){for(s>o&&n.push(e.substring(o,s));s<t&&10!==e.charCodeAt(s);)s++;o=s}else s++;else s++;else 0===r?r=a:r===a&&(r=0),s++}return 0===o?e:(o<t&&n.push(e.substring(o)),n.join(""))}(t));let h=c.compile(i||r?i+" "+r+" { "+d+" }":d);return e.namespace&&(h=Je(h,e.namespace)),a=[],c.serialize(h,l),a};return u.hash=t.length?t.reduce((e,t)=>(t.name||C(15),q(e,t.name)),5381).toString():"",u}var Xe,Ke,Qe;const et=new Re,tt=Ze(),nt=y&&null!==(Qe=null===(Ke=(Xe=l.default).cache)||void 0===Ke?void 0:Ke.call(Xe,()=>{et.names.clear(),et.keyframeIds.clear(),et.clearTag()}))&&void 0!==Qe?Qe:null,ot={shouldForwardProp:void 0,styleSheet:et,stylis:tt},st=y?{Provider:({children:e})=>e,Consumer:({children:e})=>e(ot)}:l.default.createContext(ot),rt=st.Consumer,it=y?{Provider:({children:e})=>e,Consumer:({children:e})=>e(void 0)}:l.default.createContext(void 0);function at(){return y?(nt&&nt(),ot):l.default.useContext(st)}function lt(e){if(y||!l.default.useMemo)return e.children;const{styleSheet:t}=at(),n=l.default.useMemo(()=>{let n=t;return e.sheet?n=e.sheet:e.target?n=n.reconstructWithOptions({target:e.target,nonce:e.nonce},!1):void 0!==e.nonce&&(n=n.reconstructWithOptions({nonce:e.nonce})),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.nonce,e.sheet,e.target,t]),o=l.default.useMemo(()=>Ze({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins}),[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),s=l.default.useMemo(()=>({shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:o}),[e.shouldForwardProp,n,o]);return l.default.createElement(st.Provider,{value:s},l.default.createElement(it.Provider,{value:o},e.children))}const ct=y?{Provider:({children:e})=>e,Consumer:({children:e})=>e(void 0)}:l.default.createContext(void 0),ut=ct.Consumer,dt={};function ht(e,t){const n="string"!=typeof e?"sc":V(e);dt[n]=(dt[n]||0)+1;const o=n+"-"+B(p+n+dt[n]);return t?t+"-"+o:o}let pt=new Set,ft=null;if(y){const e=l.default.cache;e&&(ft=e(()=>new Set))}const mt=new Map;function yt(e){let t=mt.get(e);return t||(t=new RegExp("\\."+e+"(?![a-zA-Z0-9_-])","g"),mt.set(e,t)),t}function gt(e,n,o){const s=ue(e),r=e,i=!Y(e),{attrs:c=k,componentId:u=ht(n.displayName,n.parentComponentId),displayName:d=U(e)}=n,h=n.displayName&&n.componentId?V(n.displayName)+"-"+n.componentId:n.componentId||u,p=s&&r.attrs?r.attrs.concat(c).filter(Boolean):c;let{shouldForwardProp:f}=n;if(s&&r.shouldForwardProp){const e=r.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;f=(n,o)=>e(n,o)&&t(n,o)}else f=e}const m=new Le(o,h,s?r.componentStyle:void 0);function g(e,n){return function(e,n,o){const{attrs:s,componentStyle:r,defaultProps:i,foldedComponentIds:c,styledComponentId:u,target:d}=e,h=y?void 0:l.default.useContext(ct),p=at(),f=e.shouldForwardProp||p.shouldForwardProp;"production"!==process.env.NODE_ENV&&l.default.useDebugValue&&l.default.useDebugValue(u);const m=$(n,h,i)||(y?void 0:T);let g,v;g=function(e,t,n){const o=Object.assign(Object.assign({},t),{className:void 0,theme:n});for(let n=0;n<e.length;n++){const s=e[n],r=ce(s)?s(Object.assign({},o)):s;for(const e in r)"className"===e?o.className=de(o.className,r[e]):"style"===e?o.style=Object.assign(Object.assign({},o.style),r[e]):e in t&&void 0===t[e]||(o[e]=r[e])}return"className"in t&&"string"==typeof t.className&&(o.className=de(o.className,t.className)),o}(s,n,m),v=function(e,t,n,o){const s=e.generateAndInjectStyles(t,n,o);return"production"!==process.env.NODE_ENV&&l.default.useDebugValue&&l.default.useDebugValue(s),s}(r,g,p.styleSheet,p.stylis),"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(v);const S=g.as||d,w=function(e,t,n,o){const s={};for(const r in e)void 0===e[r]||"$"===r[0]||"as"===r||"theme"===r&&e.theme===n||("forwardedAs"===r?s.as=e.forwardedAs:o&&!o(r,t)||(s[r]=e[r],o||"development"!==process.env.NODE_ENV||a.default(r)||pt.has(r)||!D.has(t)||(pt.add(r),console.warn(`styled-components: it looks like an unknown prop "${r}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return s}(g,S,m,f);let b=de(c,u);v&&(b+=" "+v),g.className&&(b+=" "+g.className),w[Y(S)&&!D.has(S)?"class":"className"]=b,o&&(w.ref=o);const C=t.createElement(S,w);if(y){const e=p.styleSheet.getTag();let t="",n=r;for(;n;){let o=e.getGroup(_(n.componentId));if(o&&n!==r){const e=p.styleSheet.names.get(n.componentId);if(e)for(const t of e){const e=yt(t);e.lastIndex=0,o=o.replace(e,":where(."+t+")")}}t=o+t,n=n.baseStyle}const o=ft?ft():null;let s=null;if(p.styleSheet.keyframeIds.size>0){let t="";for(const n of p.styleSheet.keyframeIds){const s=e.getGroup(_(n));!s||o&&o.has(n)||(o&&o.add(n),t+=s)}t&&(s=l.default.createElement("style",{key:"sc-kf-"+r.componentId,children:t}))}const i=!(!t||!o)&&o.has(t);t&&!i&&o&&o.add(t);const a=t&&!i?l.default.createElement("style",{key:"sc-"+r.componentId,children:t}):null;if(s||a)return l.default.createElement(l.default.Fragment,null,s,a,C)}return C}(v,e,n)}g.displayName=d;let v=l.default.forwardRef(g);return v.attrs=p,v.componentStyle=m,v.displayName=d,v.shouldForwardProp=f,v.foldedComponentIds=s?de(r.foldedComponentIds,r.styledComponentId):"",v.styledComponentId=h,v.target=s?r.target:e,Object.defineProperty(v,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=s?function(e,...t){for(const n of t)fe(e,n,!0);return e}({},r.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(R(d,h),v.warnTooManyClasses=((e,t)=>{let n={},o=!1;return s=>{!o&&(n[s]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:""}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),o=!0,n={})}})(d,h)),me(v,()=>`.${v.styledComponentId}`),i&&le(v,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),v}function vt(e,t){const n=[e[0]];for(let o=0,s=t.length;o<s;o+=1)n.push(t[o],e[o+1]);return n}const St=e=>Object.assign(e,{isCss:!0});function wt(e,...t){if(ce(e)||pe(e))return St(We(vt(k,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?We(n):St(We(vt(n,t)))}function bt(e,t,n=T){if(!t)throw C(1,t);const o=(o,...s)=>e(t,n,wt(o,...s));return o.attrs=o=>bt(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)})),o.withConfig=o=>bt(e,t,Object.assign(Object.assign({},n),o)),o}const Ct=e=>bt(gt,e),Nt=Ct;D.forEach(e=>{Nt[e]=Ct(e)});class Ot{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(ce(n)&&!ue(n))return!1}return!0}(e),Re.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,o){const s=this.componentId;if(this.isStatic){if(n.hasNameForId(s,s+e))this.instanceRules.has(e)||this.computeRules(e,t,n,o);else{const r=this.computeRules(e,t,n,o);n.insertRules(s,r.name,r.rules)}return}const r=this.instanceRules.get(e);if(this.computeRules(e,t,n,o),!n.server&&r){const t=r.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let o=0;o<t.length;o++)if(t[o]!==n[o]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,o){const s=he(We(this.rules,t,n,o)),r={name:this.componentId+e,rules:o(s,"")};return this.instanceRules.set(e,r),r}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}function Et(e,...t){const n=wt(e,...t),o=`sc-global-${B(JSON.stringify(n))}`,s=new Ot(n,o);"production"!==process.env.NODE_ENV&&R(o);const r=e=>{const t=at(),i=y?void 0:l.default.useContext(ct);let a;if(a=t.styleSheet.allocateGSInstance(o),"production"!==process.env.NODE_ENV&&l.default.Children.count(e.children)&&console.warn(`The global style component ${o} was given child JSX. createGlobalStyle does not render children.`),"production"!==process.env.NODE_ENV&&n.some(e=>"string"==typeof e&&-1!==e.indexOf("@import"))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),(y||t.styleSheet.server)&&function(e,t,n,o,i){if(s.isStatic)s.renderStyles(e,w,n,i);else{const a=Object.assign(Object.assign({},t),{theme:$(t,o,r.defaultProps)});s.renderStyles(e,a,n,i)}}(a,e,t.styleSheet,i,t.stylis),y){const e="undefined"==typeof window?s.instanceRules.get(a):void 0;let t="";if(e){const n=e.rules;for(let e=0;e<n.length;e++)t+=n[e]+f}if(t)return s.instanceRules.delete(a),l.default.createElement("style",{key:o+"-"+a,"data-styled-global":o,children:t})}return s.instanceRules.delete(a),null};return l.default.memo(r)}function At(e,t,n,o,s){for(const r in e){const i=e[r],a=s?s+"-"+r:r;if("object"==typeof i&&null!==i){const e={};At(i,t,e,o,a),n[r]=e}else n[r]=o(a,i,r)}}function _t(e,t,n,o){let s="";for(const r in e){const i=e[r],a=t[r],l=o?o+"-"+r:r;"object"==typeof i&&null!==i?"object"==typeof a&&null!==a&&(s+=_t(i,a,n,l)):void 0!==a&&"function"!=typeof a&&(s+="--"+n+l+":"+a+";")}return s}var It;class Pt{constructor(e,t){this[It]=!0,this.inject=(e,t=tt)=>{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=S+e,this.rules=t,_(this.id),me(this,()=>{throw C(12,String(this.name))})}getName(e=tt){return this.name+e.hash}}It=Me;const xt=/^\s*<\/[a-z]/i,jt={StyleSheet:Re,mainSheet:et};"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");const Rt=`__sc-${u}__`;"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[Rt]||(window[Rt]=0),1===window[Rt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[Rt]+=1),exports.ServerStyleSheet=class{constructor({nonce:e}={}){this._emitSheetCSS=()=>{const e=this.instance.toString();if(!e)return"";const t=this.instance.options.nonce||Ee();return`<style ${he([t&&`nonce="${t}"`,`${u}="true"`,`${h}="${p}"`].filter(Boolean)," ")}>${e}</style>`},this.getStyleTags=()=>{if(this.sealed)throw C(2);return this._emitSheetCSS()},this.getStyleElement=()=>{if(this.sealed)throw C(2);const e=this.instance.toString();if(!e)return[];const t={[u]:"",[h]:p,dangerouslySetInnerHTML:{__html:e}},n=this.instance.options.nonce||Ee();return n&&(t.nonce=n),[l.default.createElement("style",Object.assign({},t,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new Re({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw C(2);return l.default.createElement(lt,{sheet:this.instance},e)}interleaveWithNodeStream(e){if(this.sealed)throw C(2);this.seal();const{Transform:t}=require("stream"),{instance:n,_emitSheetCSS:o}=this,s=new t({transform:function(e,t,s){const r=e.toString(),i=o();if(n.clearTag(),xt.test(r)){const e=r.indexOf(">")+1,t=r.slice(0,e),n=r.slice(e);this.push(t+i+n)}else this.push(i+r);s()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){const t=e;return t.on("error",e=>{s.emit("error",e)}),t.pipe(s)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(s);throw new Error("Unsupported stream type")}},exports.StyleSheetConsumer=rt,exports.StyleSheetContext=st,exports.StyleSheetManager=lt,exports.ThemeConsumer=ut,exports.ThemeContext=ct,exports.ThemeProvider=function(e){if(y)return e.children;const t=l.default.useContext(ct),n=l.default.useMemo(()=>function(e,t){if(!e)throw C(14);if(ce(e)){const n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw C(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw C(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,t),[e.theme,t]);return e.children?l.default.createElement(ct.Provider,{value:n},e.children):null},exports.__PRIVATE__=jt,exports.createGlobalStyle=Et,exports.createTheme=function(e,t){var n,o;const s=(null!==(n=null==t?void 0:t.prefix)&&void 0!==n?n:"sc")+"-",r=null!==(o=null==t?void 0:t.selector)&&void 0!==o?o:":root",i=function(e,t){const n={};return At(e,t,n,(e,n)=>{if("production"!==process.env.NODE_ENV){const t=String(n);let o=0;for(let e=0;e<t.length&&(40===t.charCodeAt(e)?o++:41===t.charCodeAt(e)&&o--,!(o<0));e++);0!==o&&console.warn(`createTheme: value "${t}" at "${e}" contains unbalanced parentheses and may break the var() fallback`)}return"var(--"+t+e+", "+n+")"}),n}(e,s),a=Et`
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@emotion/is-prop-valid"),t=require("react"),n=require("stylis");function o(e){return e&&e.__esModule?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var r,i,l=/*#__PURE__*/o(e),a=/*#__PURE__*/o(t),c=/*#__PURE__*/s(n);const u="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",d="active",h="data-styled-version",p="6.4.0",f="/*!sc*/\n",m="undefined"!=typeof window&&"undefined"!=typeof document,g=void 0===a.default.createContext;function y(e){if("undefined"!=typeof process&&void 0!==process.env){const t=process.env[e];if(void 0!==t&&""!==t)return"false"!==t}}const v=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:null!==(i=null!==(r=y("REACT_APP_SC_DISABLE_SPEEDY"))&&void 0!==r?r:y("SC_DISABLE_SPEEDY"))&&void 0!==i?i:"undefined"==typeof process||void 0===process.env||"production"!==process.env.NODE_ENV),S="sc-keyframes-",w={},b="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function N(e,...t){return"production"===process.env.NODE_ENV?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(", ")}`:""}`):new Error(function(...e){let t=e[0];const n=[];for(let t=1,o=e.length;t<o;t+=1)n.push(e[t]);return n.forEach(e=>{t=t.replace(/%[a-z]/,e)}),t}(b[e],...t).trim())}const C=1<<30;let P=new Map,O=new Map,E=1;const x=e=>{if(P.has(e))return P.get(e);for(;O.has(E);)E++;const t=E++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>C))throw N(16,`${t}`);return P.set(e,t),O.set(t,e),t},_=e=>O.get(e),I=(e,t)=>{E=t+1,P.set(e,t),O.set(t,e)},A=/invalid hook call/i,R=new Set,j=(e,t)=>{if("production"!==process.env.NODE_ENV){if(g)return;const n=`The component ${e}${t?` with the id of "${t}"`:""} has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.\nSee https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.\n`,o=console.error;try{let e=!0;console.error=(t,...s)=>{A.test(t)?(e=!1,R.delete(n)):o(t,...s)},"function"==typeof a.default.useState&&a.default.useState(null),e&&!R.has(n)&&(console.warn(n),R.add(n))}catch(e){A.test(e.message)&&R.delete(n)}finally{console.error=o}}},$=Object.freeze([]),k=Object.freeze({});function T(e,t,n=k){return e.theme!==n.theme&&e.theme||t||n.theme}const D=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,M=/(^-|-$)/g;function V(e){return e.replace(D,"-").replace(M,"")}const G=/(a)(d)/gi,F=e=>String.fromCharCode(e+(e>25?39:97));function z(e){let t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=F(t%52)+n;return(F(t%52)+n).replace(G,"$1-$2")}const W=5381,q=(e,t)=>{let n=t.length;for(;n;)e=33*e^t.charCodeAt(--n);return e},L=e=>q(W,e);function B(e){return z(L(e)>>>0)}function H(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function U(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}function Y(e){return U(e)?`styled.${e}`:`Styled(${H(e)})`}const J=Symbol.for("react.memo"),Z=Symbol.for("react.forward_ref"),X={contextType:!0,defaultProps:!0,displayName:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,propTypes:!0,type:!0},K={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Q={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ee={[Z]:{$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},[J]:Q};function te(e){return("type"in(t=e)&&t.type.$$typeof)===J?Q:"$$typeof"in e?ee[e.$$typeof]:X;var t}const ne=Object.defineProperty,oe=Object.getOwnPropertyNames,se=Object.getOwnPropertySymbols,re=Object.getOwnPropertyDescriptor,ie=Object.getPrototypeOf,le=Object.prototype;function ae(e,t,n){if("string"!=typeof t){const o=ie(t);o&&o!==le&&ae(e,o,n);const s=oe(t).concat(se(t)),r=te(e),i=te(t);for(let o=0;o<s.length;++o){const l=s[o];if(!(l in K||n&&n[l]||i&&l in i||r&&l in r)){const n=re(t,l);try{ne(e,l,n)}catch(e){}}}}return e}function ce(e){return"function"==typeof e}function ue(e){return"object"==typeof e&&"styledComponentId"in e}function de(e,t){return e&&t?e+" "+t:e||t||""}function he(e,t){return e.join(t||"")}function pe(e){let t="";for(let n=0;n<e.length;n++)t+=e[n]+f;return t}function fe(e){return e?e.replaceAll(f,""):e}function me(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ge(e,t,n=!1){if(!n&&!me(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(let n=0;n<t.length;n++)e[n]=ge(e[n],t[n]);else if(me(t))for(const n in t)e[n]=ge(e[n],t[n]);return e}function ye(e){if(!g)return null;const t=a.default.cache;return t?t(e):null}function ve(e,t){Object.defineProperty(e,"toString",{value:t})}const Se=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 o=n;for(;e>=o;)if(o<<=1,o<0)throw N(16,`${e}`);this.groupSizes=new Uint32Array(o),this.groupSizes.set(t),this.length=o;for(let e=n;e<o;e++)this.groupSizes[e]=0}let n=this.indexOfGroup(e+1),o=0;for(let s=0,r=t.length;s<r;s++)this.tag.insertRule(n,t[s])&&(this.groupSizes[e]++,n++,o++);o>0&&this._cGroup>e&&(this._cIndex+=o)}clearGroup(e){if(e<this.length){const t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(let e=n;e<o;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],o=this.indexOfGroup(e),s=o+n;for(let e=o;e<s;e++)t+=this.tag.getRule(e)+f;return t}},we=`style[${u}][${h}="${p}"]`,be=new RegExp(`^${u}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`),Ne=e=>"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot||"host"in e&&11===e.nodeType,Ce=e=>{if(!e)return document;if(Ne(e))return e;if("getRootNode"in e){const t=e.getRootNode();if(Ne(t))return t}return document},Pe=(e,t,n)=>{const o=n.split(",");let s;for(let n=0,r=o.length;n<r;n++)(s=o[n])&&e.registerName(t,s)},Oe=(e,t)=>{var n;const o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(f),s=[];for(let t=0,n=o.length;t<n;t++){const n=o[t].trim();if(!n)continue;const r=n.match(be);if(r){const t=0|parseInt(r[1],10),n=r[2];0!==t&&(I(n,t),Pe(e,n,r[3]),e.getTag().insertRules(t,s)),s.length=0}else s.push(n)}},Ee=e=>{const t=Ce(e.options.target).querySelectorAll(we);for(let n=0,o=t.length;n<o;n++){const o=t[n];o&&o.getAttribute(u)!==d&&(Oe(e,o),o.parentNode&&o.parentNode.removeChild(o))}};let xe=!1;function _e(){if(!1!==xe)return xe;if("undefined"!=typeof document){const e=document.head.querySelector('meta[property="csp-nonce"]');if(e)return xe=e.nonce||e.getAttribute("content")||void 0;const t=document.head.querySelector('meta[name="sc-nonce"]');if(t)return xe=t.getAttribute("content")||void 0}return xe="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:void 0}const Ie=(e,t)=>{const n=document.head,o=e||n,s=document.createElement("style"),r=(e=>{const t=Array.from(e.querySelectorAll(`style[${u}]`));return t[t.length-1]})(o),i=void 0!==r?r.nextSibling:null;s.setAttribute(u,d),s.setAttribute(h,p);const l=t||_e();return l&&s.setAttribute("nonce",l),o.insertBefore(s,i),s},Ae=class{constructor(e,t){this.element=Ie(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,o=n.length;t<o;t++){const o=n[t];if(o.ownerNode===e)return o}throw N(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:""}},Re=class{constructor(e,t){this.element=Ie(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:""}},je=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 $e=m;const ke={isServer:!m,useCSSOMInjection:!v};class Te{static registerId(e){return x(e)}constructor(e=k,t={},n){this.options=Object.assign(Object.assign({},ke),e),this.gs=t,this.keyframeIds=new Set,this.names=new Map(n),this.server=!!e.isServer,!this.server&&m&&$e&&($e=!1,Ee(this)),ve(this,()=>(e=>{const t=e.getTag(),{length:n}=t;let o="";for(let s=0;s<n;s++){const n=_(s);if(void 0===n)continue;const r=e.names.get(n);if(void 0===r||!r.size)continue;const i=t.getGroup(s);if(0===i.length)continue;const l=u+".g"+s+'[id="'+n+'"]';let a="";for(const e of r)e.length>0&&(a+=e+",");o+=i+l+'{content:"'+a+'"}'+f}return o})(this))}rehydrate(){!this.server&&m&&Ee(this)}reconstructWithOptions(e,t=!0){const n=new Te(Object.assign(Object.assign({},this.options),e),this.gs,t&&this.names||void 0);return n.keyframeIds=new Set(this.keyframeIds),!this.server&&m&&e.target!==this.options.target&&Ce(this.options.target)!==Ce(e.target)&&Ee(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:o})=>e?new je(n):t?new Ae(n,o):new Re(n,o))(this.options),new Se(e)));var e}hasNameForId(e,t){var n,o;return null!==(o=null===(n=this.names.get(e))||void 0===n?void 0:n.has(t))&&void 0!==o&&o}registerName(e,t){x(e),e.startsWith(S)&&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(x(e),n)}clearNames(e){this.names.has(e)&&this.names.get(e).clear()}clearRules(e){this.getTag().clearGroup(x(e)),this.clearNames(e)}clearTag(){this.tag=void 0}}const De=new WeakSet,Me={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 Ve(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in Me||e.startsWith("--")?String(t).trim():t+"px"}const Ge=e=>e>="A"&&e<="Z";function Fe(e){let t="";for(let n=0;n<e.length;n++){const o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Ge(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}const ze=Symbol.for("sc-keyframes");function We(e){return"object"==typeof e&&null!==e&&ze in e}function qe(e){return ce(e)&&!(e.prototype&&e.prototype.isReactComponent)}const Le=e=>null==e||!1===e||""===e,Be=Symbol.for("react.client.reference");function He(e){return e.$$typeof===Be}function Ue(e){const t=e.$$id,n=(t&&t.includes("#")?t.split("#").pop():t)||e.name||"unknown";console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`)}const Ye=e=>{const t=[];for(const n in e){const o=e[n];e.hasOwnProperty(n)&&!Le(o)&&(Array.isArray(o)&&De.has(o)||ce(o)?t.push(Fe(n)+":",o,";"):me(o)?t.push(n+" {",...Ye(o),"}"):t.push(Fe(n)+": "+Ve(n,o)+";"))}return t};function Je(e,t,n,o,s=[]){if(Le(e))return s;const r=typeof e;if("string"===r)return s.push(e),s;if("function"===r){if(He(e))return"production"!==process.env.NODE_ENV&&Ue(e),s;if(qe(e)&&t){const r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||We(r)||me(r)||null===r||console.error(`${H(e)} is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.`),Je(r,t,n,o,s)}return s.push(e),s}if(Array.isArray(e)){for(let r=0;r<e.length;r++)Je(e[r],t,n,o,s);return s}if(ue(e))return s.push(`.${e.styledComponentId}`),s;if(We(e))return n?(e.inject(n,o),s.push(e.getName(o))):s.push(e),s;if(He(e))return"production"!==process.env.NODE_ENV&&Ue(e),s;if(me(e)){const t=Ye(e);for(let e=0;e<t.length;e++)s.push(t[e]);return s}return s.push(e.toString()),s}const Ze=L(p),Xe=g?new WeakMap:null;function Ke(e,t){if(!Xe)return null;const n=Xe.get(e);if(!n)return null;const o=t.names.get(e.componentId);if(!o)return null;let s="";for(const e of o){const t=n.get(e);if(!t)return null;s+=t}return s}class Qe{constructor(e,t,n){this.rules=e,this.componentId=t,this.baseHash=q(Ze,t),this.baseStyle=n,Te.registerId(t)}generateAndInjectStyles(e,t,n){let o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";{let s="";for(let o=0;o<this.rules.length;o++){const r=this.rules[o];if("string"==typeof r)s+=r;else if(r)if(qe(r)){const o=r(e);"string"==typeof o?s+=o:null!=o&&!1!==o&&("production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||We(o)||me(o)||console.error(`${H(r)} is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.`),s+=he(Je(o,e,t,n)))}else s+=he(Je(r,e,t,n))}if(s){this.dynamicNameCache||(this.dynamicNameCache=new Map);const e=n.hash?n.hash+s:s;let r=this.dynamicNameCache.get(e);if(!r){if(r=z(q(q(this.baseHash,n.hash),s)>>>0),this.dynamicNameCache.size>=200){const e=this.dynamicNameCache.keys().next().value;void 0!==e&&this.dynamicNameCache.delete(e)}this.dynamicNameCache.set(e,r)}if(!t.hasNameForId(this.componentId,r))if(g&&function(e,t){var n,o;return null!==(o=null===(n=null==Xe?void 0:Xe.get(e))||void 0===n?void 0:n.has(t))&&void 0!==o&&o}(this,r))t.registerName(this.componentId,r);else{const e=n(s,"."+r,void 0,this.componentId);g&&function(e,t,n){if(!Xe)return;let o=Xe.get(e);o||(o=new Map,Xe.set(e,o)),o.set(t,pe(n))}(this,r,e),t.insertRules(this.componentId,r,e)}o=de(o,r)}}return o}}const et=/&/g,tt=47;function nt(e,t){let n=0;for(;--t>=0&&92===e.charCodeAt(t);)n++;return!(1&~n)}function ot(e){const t=e.length;let n="",o=0,s=0,r=0,i=!1,l=!1;for(let a=0;a<t;a++){const c=e.charCodeAt(a);if(0!==r||i||c!==tt||42!==e.charCodeAt(a+1))if(i)42===c&&e.charCodeAt(a+1)===tt&&(i=!1,a++);else if(34!==c&&39!==c||nt(e,a)){if(0===r)if(123===c)s++;else if(125===c){if(s--,s<0){l=!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++,s=0,a=n-1,o=n;continue}0===s&&(n+=e.substring(o,a+1),o=a+1)}else 59===c&&0===s&&(n+=e.substring(o,a+1),o=a+1)}else 0===r?r=c:r===c&&(r=0);else i=!0,a++}return l||0!==s||0!==r?(o<t&&0===s&&0===r&&(n+=e.substring(o)),n):e}function st(e,t){for(let n=0;n<e.length;n++){const o=e[n];if("rule"===o.type){o.value=t+" "+o.value,o.value=o.value.replaceAll(",",","+t+" ");const e=o.props,n=[];for(let o=0;o<e.length;o++)n[o]=t+" "+e[o];o.props=n}Array.isArray(o.children)&&"@keyframes"!==o.type&&(o.children=st(o.children,t))}return e}function rt({options:e=k,plugins:t=$}=k){let n,o,s;const r=(e,t,s)=>s.startsWith(o)&&s.endsWith(o)&&s.replaceAll(o,"").length>0?`.${n}`:e,i=t.slice();i.push(e=>{e.type===c.RULESET&&e.value.includes("&")&&(s||(s=new RegExp(`\\${o}\\b`,"g")),e.props[0]=e.props[0].replace(et,o).replace(s,r))}),e.prefix&&i.push(c.prefixer),i.push(c.stringify);let l=[];const a=c.middleware(i.concat(c.rulesheet(e=>l.push(e)))),u=(t,r="",i="",u="&")=>{n=u,o=r,s=void 0;const d=function(e){const t=-1!==e.indexOf("//"),n=-1!==e.indexOf("}");if(!t&&!n)return e;if(!t)return ot(e);const o=e.length;let s="",r=0,i=0,l=0,a=0,c=0,u=!1;for(;i<o;){const t=e.charCodeAt(i);if(34!==t&&39!==t||nt(e,i))if(0===l)if(t===tt&&i+1<o&&42===e.charCodeAt(i+1)){for(i+=2;i+1<o&&(42!==e.charCodeAt(i)||e.charCodeAt(i+1)!==tt);)i++;i+=2}else if(40!==t)if(41!==t)if(a>0)i++;else if(42===t&&i+1<o&&e.charCodeAt(i+1)===tt)s+=e.substring(r,i),i+=2,r=i,u=!0;else if(t===tt&&i+1<o&&e.charCodeAt(i+1)===tt){for(s+=e.substring(r,i);i<o&&10!==e.charCodeAt(i);)i++;r=i,u=!0}else 123===t?c++:125===t&&c--,i++;else a>0&&a--,i++;else a++,i++;else i++;else 0===l?l=t:l===t&&(l=0),i++}return u?(r<o&&(s+=e.substring(r)),0===c?s:ot(s)):0===c?e:ot(e)}(t);let h=c.compile(i||r?i+" "+r+" { "+d+" }":d);return e.namespace&&(h=st(h,e.namespace)),l=[],c.serialize(h,a),l},d=e;let h=W;for(let e=0;e<t.length;e++)t[e].name||N(15),h=q(h,t[e].name);return(null==d?void 0:d.namespace)&&(h=q(h,d.namespace)),(null==d?void 0:d.prefix)&&(h=q(h,"p")),u.hash=h!==W?h.toString():"",u}var it,lt,at;const ct=new Te,ut=rt();let dt,ht=null,pt=ut;const ft=g&&null!==(at=null===(lt=(it=a.default).cache)||void 0===lt?void 0:lt.call(it,()=>{ct.names.clear(),ct.keyframeIds.clear(),ct.clearTag(),ht=null}))&&void 0!==at?at:null,mt={shouldForwardProp:void 0,styleSheet:ct,stylis:ut,stylisPlugins:void 0},gt=g?{Provider:({children:e})=>e,Consumer:({children:e})=>e(mt)}:a.default.createContext(mt),yt=gt.Consumer;function vt(){return g?(ft&&ft(),ht||mt):a.default.useContext(gt)}function St(e){var t,n,o;if(g){ft&&ft();const o=ht||mt,s=void 0!==e.stylisPlugins||void 0!==e.namespace||void 0!==e.enableVendorPrefixes;s&&(e.stylisPlugins&&e.stylisPlugins!==dt?(dt=e.stylisPlugins,pt=rt({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})):void 0===e.namespace&&void 0===e.enableVendorPrefixes||(pt=rt({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:null!==(t=e.stylisPlugins)&&void 0!==t?t:o.stylisPlugins})));const r=s?void 0===e.stylisPlugins||e.stylisPlugins.length?pt:ut:o.stylis,i="shouldForwardProp"in e?e.shouldForwardProp:o.shouldForwardProp,l=null!==(n=e.stylisPlugins)&&void 0!==n?n:o.stylisPlugins;return ht=r!==ut||i?{shouldForwardProp:i,styleSheet:ct,stylis:r,stylisPlugins:l}:null,e.children}const s=vt(),{styleSheet:r}=s,i=a.default.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]),l=a.default.useMemo(()=>{var t;return void 0===e.stylisPlugins&&void 0===e.namespace&&void 0===e.enableVendorPrefixes?s.stylis:rt({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,u=null!==(o=e.stylisPlugins)&&void 0!==o?o:s.stylisPlugins,d=a.default.useMemo(()=>({shouldForwardProp:c,styleSheet:i,stylis:l,stylisPlugins:u}),[c,i,l,u]);return a.default.createElement(gt.Provider,{value:d},e.children)}const wt=g?{Provider:({children:e})=>e,Consumer:({children:e})=>e(void 0)}:a.default.createContext(void 0),bt=wt.Consumer,Nt={};function Ct(e,t){const n="string"!=typeof e?"sc":V(e);Nt[n]=(Nt[n]||0)+1;const o=n+"-"+B(p+n+Nt[n]);return t?t+"-"+o:o}let Pt;const Ot=ye(()=>new Set),Et=new Map;function xt(e){let t=Et.get(e);return t||(t=new RegExp("\\."+e+"(?![a-zA-Z0-9_-])","g"),Et.set(e,t)),t}function _t(e,t,n){const o=n.names.get(t);if(o)for(const t of o){const n=xt(t);n.lastIndex=0,e=e.replace(n,":where(."+t+")")}return e}function It(e,n,o){const s=ue(e),r=e,i=!U(e),{attrs:c=$,componentId:d=Ct(n.displayName,n.parentComponentId),displayName:h=Y(e)}=n,p=n.displayName&&n.componentId?V(n.displayName)+"-"+n.componentId:n.componentId||d,m=s&&r.attrs?r.attrs.concat(c).filter(Boolean):c;let{shouldForwardProp:y}=n;if(s&&r.shouldForwardProp){const e=r.shouldForwardProp;if(n.shouldForwardProp){const t=n.shouldForwardProp;y=(n,o)=>e(n,o)&&t(n,o)}else y=e}const v=new Qe(o,p,s?r.componentStyle:void 0);function S(e,n){return function(e,n,o){const{attrs:s,componentStyle:r,defaultProps:i,foldedComponentIds:c,styledComponentId:d,target:h}=e,p=g?void 0:a.default.useContext(wt),m=vt(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&a.default.useDebugValue&&a.default.useDebugValue(d);const v=T(n,p,i)||(g?void 0:k);let S,w;S=function(e,t,n){const o=Object.assign(Object.assign({},t),{className:void 0,theme:n}),s=e.length>1;for(let n=0;n<e.length;n++){const r=e[n],i=ce(r)?r(s?Object.assign({},o):o):r;for(const e in i)"className"===e?o.className=de(o.className,i[e]):"style"===e?o.style=Object.assign(Object.assign({},o.style),i[e]):e in t&&void 0===t[e]||(o[e]=i[e])}return"className"in t&&"string"==typeof t.className&&(o.className=de(o.className,t.className)),o}(s,n,v),w=function(e,t,n,o){const s=e.generateAndInjectStyles(t,n,o);return"production"!==process.env.NODE_ENV&&a.default.useDebugValue&&a.default.useDebugValue(s),s}(r,S,m.styleSheet,m.stylis),"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(w);const b=S.as||h,N=function(e,t,n,o){const s={};for(const r in e)void 0===e[r]||"$"===r[0]||"as"===r||"theme"===r&&e.theme===n||("forwardedAs"===r?s.as=e.forwardedAs:o&&!o(r,t)||(s[r]=e[r],o||"development"!==process.env.NODE_ENV||l.default(r)||(Pt||(Pt=new Set)).has(r)||!U(t)||t.includes("-")||(Pt.add(r),console.warn(`styled-components: it looks like an unknown prop "${r}" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via \`<StyleSheetManager shouldForwardProp={...}>\` (connect an API like \`@emotion/is-prop-valid\`) or consider using transient props (\`$\` prefix for automatic filtering.)`))));return s}(S,b,v,y);let C=de(c,d);w&&(C+=" "+w),S.className&&(C+=" "+S.className),N[U(b)&&b.includes("-")?"class":"className"]=C,o&&(N.ref=o);const P=t.createElement(b,N);if(g){const e=Ot?Ot():null;let t=null,n=0,o="",s=!0,i=r;for(;i;){const l=m.styleSheet.names.get(i.componentId);if(l){n+=l.size;for(const n of l)e&&e.has(n)||(t||(t=[]),t.push(n),e&&e.add(n))}if(t&&s){let e=Ke(i,m.styleSheet);null===e?s=!1:(i!==r&&(e=_t(e,i.componentId,m.styleSheet)),o=e+o)}i=i.baseStyle}if(t&&!s){o="";const e=m.styleSheet.getTag();let t=r;for(;t;){let n=e.getGroup(x(t.componentId));n&&t!==r&&(n=_t(n,t.componentId,m.styleSheet)),o=n+o,t=t.baseStyle}}let l="";if(m.styleSheet.keyframeIds.size>0){const t=m.styleSheet.getTag();for(const n of m.styleSheet.keyframeIds){if(e&&e.has(n))continue;const o=t.getGroup(x(n));o&&(l+=o,e&&e.add(n))}}if(o&&e&&t&&t.length<n){const e=o.split(f);let n="";for(let o=0;o<e.length;o++){const s=e[o];if(s)for(let e=0;e<t.length;e++){const o=xt(t[e]);if(o.lastIndex=0,o.test(s)){n+=s+f;break}}}o=n}const c=fe(l+o);if(c){const e=a.default.createElement("style",{[u]:"",key:"sc-"+r.componentId,children:c});return a.default.createElement(a.default.Fragment,null,e,P)}}return P}(w,e,n)}S.displayName=h;let w=a.default.forwardRef(S);return w.attrs=m,w.componentStyle=v,w.displayName=h,w.shouldForwardProp=y,w.foldedComponentIds=s?de(r.foldedComponentIds,r.styledComponentId):"",w.styledComponentId=p,w.target=s?r.target:e,Object.defineProperty(w,"defaultProps",{get(){return this._foldedDefaultProps},set(e){this._foldedDefaultProps=s?function(e,...t){for(const n of t)ge(e,n,!0);return e}({},r.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(j(h,p),w.warnTooManyClasses=((e,t)=>{let n={},o=!1;return s=>{!o&&(n[s]=!0,Object.keys(n).length>=200)&&(console.warn(`Over 200 classes were generated for component ${e}${t?` with the id of "${t}"`:""}.\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))\`width: 100%;\`\n\n <Component />`),o=!0,n={})}})(h,p)),ve(w,()=>`.${w.styledComponentId}`),i&&ae(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}var At=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"]);function Rt(e,t){const n=[e[0]];for(let o=0,s=t.length;o<s;o+=1)n.push(t[o],e[o+1]);return n}const jt=e=>(De.add(e),e);function $t(e,...t){if(ce(e)||me(e))return jt(Je(Rt($,[e,...t])));const n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?Je(n):jt(Je(Rt(n,t)))}function kt(e,t,n=k){if(!t)throw N(1,t);const o=(o,...s)=>e(t,n,$t(o,...s));return o.attrs=o=>kt(e,t,Object.assign(Object.assign({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)})),o.withConfig=o=>kt(e,t,Object.assign(Object.assign({},n),o)),o}const Tt=e=>kt(It,e),Dt=Tt;At.forEach(e=>{Dt[e]=Tt(e)});class Mt{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(ce(n)&&!ue(n))return!1}return!0}(e),Te.registerId(this.componentId)}removeStyles(e,t){this.instanceRules.delete(e),this.rebuildGroup(t)}renderStyles(e,t,n,o){const s=this.componentId;if(this.isStatic){if(n.hasNameForId(s,s+e))this.instanceRules.has(e)||this.computeRules(e,t,n,o);else{const r=this.computeRules(e,t,n,o);n.insertRules(s,r.name,r.rules)}return}const r=this.instanceRules.get(e);if(this.computeRules(e,t,n,o),!n.server&&r){const t=r.rules,n=this.instanceRules.get(e).rules;if(t.length===n.length){let e=!0;for(let o=0;o<t.length;o++)if(t[o]!==n[o]){e=!1;break}if(e)return}}this.rebuildGroup(n)}computeRules(e,t,n,o){const s=he(Je(this.rules,t,n,o)),r={name:this.componentId+e,rules:o(s,"")};return this.instanceRules.set(e,r),r}rebuildGroup(e){const t=this.componentId;e.clearRules(t);for(const n of this.instanceRules.values())e.insertRules(t,n.name,n.rules)}}const Vt=ye(()=>new Set);function Gt(e,...t){const n=$t(e,...t),o=`sc-global-${B(JSON.stringify(n))}`,s=new Mt(n,o);"production"!==process.env.NODE_ENV&&j(o);const r=e=>{const t=vt(),i=g?void 0:a.default.useContext(wt);let l;if(l=t.styleSheet.allocateGSInstance(o),"production"!==process.env.NODE_ENV&&a.default.Children.count(e.children)&&console.warn(`The global style component ${o} was given child JSX. createGlobalStyle does not render children.`),"production"!==process.env.NODE_ENV&&n.some(e=>"string"==typeof e&&-1!==e.indexOf("@import"))&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),(g||t.styleSheet.server)&&function(e,t,n,o,i){if(s.isStatic)s.renderStyles(e,w,n,i);else{const l=Object.assign(Object.assign({},t),{theme:T(t,o,r.defaultProps)});s.renderStyles(e,l,n,i)}}(l,e,t.styleSheet,i,t.stylis),g){const e="undefined"==typeof window?s.instanceRules.get(l):void 0,n=e?pe(e.rules):"";if(n){s.instanceRules.delete(l);const e=Vt?Vt():null;if(e){const r=s.isStatic?o+t.stylis.hash:n;if(e.has(r))return null;e.add(r)}return a.default.createElement("style",{key:o+"-"+l,"data-styled-global":o,children:fe(n)})}}return s.instanceRules.delete(l),null};return a.default.memo(r)}function Ft(e,t,n,o,s){for(const r in e){const i=e[r],l=s?s+"-"+r:r;if("object"==typeof i&&null!==i){const e={};Ft(i,t,e,o,l),n[r]=e}else n[r]=o(l,i,r)}}function zt(e,t,n,o){let s="";for(const r in e){const i=e[r],l=t[r],a=o?o+"-"+r:r;"object"==typeof i&&null!==i?"object"==typeof l&&null!==l&&(s+=zt(i,l,n,a)):void 0!==l&&"function"!=typeof l&&(s+="--"+n+a+":"+l+";")}return s}var Wt;const qt=g?new WeakMap:null;class Lt{constructor(e,t){this[Wt]=!0,this.inject=(e,t=ut)=>{var n;const o=this.getName(t);if(!e.hasNameForId(this.id,o)){const s=t.hash||"",r=g?null===(n=null==qt?void 0:qt.get(this))||void 0===n?void 0:n.get(s):void 0;if(r)e.insertRules(this.id,o,r);else{const n=t(this.rules,o,"@keyframes");if(g&&qt){let e=qt.get(this);e||(e=new Map,qt.set(this,e)),e.set(s,n)}e.insertRules(this.id,o,n)}}},this.name=e,this.id=S+e,this.rules=t,x(this.id),ve(this,()=>{throw N(12,String(this.name))})}getName(e=ut){return e.hash?this.name+z(+e.hash>>>0):this.name}}Wt=ze;const Bt=/^\s*<\/[a-z]/i,Ht={StyleSheet:Te,mainSheet:ct};"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");const Ut=`__sc-${u}__`;"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[Ut]||(window[Ut]=0),1===window[Ut]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info."),window[Ut]+=1);const Yt=/:(?:(first)-child|(last)-child|(only)-child|(nth-child)\(([^()]+)\)|(nth-last-child)\(([^()]+)\))/g,Jt=`:not(style[${u}])`,Zt=`style[${u}]`;function Xt(e){return-1===e.indexOf("-child")?e:(Yt.lastIndex=0,e.replace(Yt,(e,t,n,o,s,r,i,l)=>t?`:nth-child(1 of ${Jt})`:n?`:nth-last-child(1 of ${Jt})`:o?`:nth-child(1 of ${Jt}):nth-last-child(1 of ${Jt})`:s?-1!==r.indexOf(" of ")?e:`:nth-child(${r} of ${Jt})`:-1!==l.indexOf(" of ")?e:`:nth-last-child(${l} of ${Jt})`))}function Kt(e,t){if(-1===e.indexOf("+"))return;let n=0,o=0;for(let s=0;s<e.length;s++){const r=e.charCodeAt(s);if(40===r)n++;else if(41===r)n--;else if(91===r)o++;else if(93===r)o--;else if(43===r&&0===n&&0===o&&!nt(e,s)){const n=e.substring(0,s),o=e.substring(s+1);t.push(n+"+"+Zt+"+"+o),t.push(n+"+"+Zt+"+"+Zt+"+"+o)}}}exports.ServerStyleSheet=class{constructor({nonce:e}={}){this._emitSheetCSS=()=>{const e=this.instance.toString();if(!e)return"";const t=this.instance.options.nonce||_e();return`<style ${he([t&&`nonce="${t}"`,`${u}="true"`,`${h}="${p}"`].filter(Boolean)," ")}>${e}</style>`},this.getStyleTags=()=>{if(this.sealed)throw N(2);return this._emitSheetCSS()},this.getStyleElement=()=>{if(this.sealed)throw N(2);const e=this.instance.toString();if(!e)return[];const t={[u]:"",[h]:p,dangerouslySetInnerHTML:{__html:e}},n=this.instance.options.nonce||_e();return n&&(t.nonce=n),[a.default.createElement("style",Object.assign({},t,{key:"sc-0-0"}))]},this.seal=()=>{this.sealed=!0},this.instance=new Te({isServer:!0,nonce:e}),this.sealed=!1}collectStyles(e){if(this.sealed)throw N(2);return a.default.createElement(St,{sheet:this.instance},e)}interleaveWithNodeStream(e){if(this.sealed)throw N(2);this.seal();const{Transform:t}=require("stream"),{instance:n,_emitSheetCSS:o}=this,s=new t({transform:function(e,t,s){const r=e.toString(),i=o();if(n.clearTag(),Bt.test(r)){const e=r.indexOf(">")+1,t=r.slice(0,e),n=r.slice(e);this.push(t+i+n)}else this.push(i+r);s()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){const t=e;return t.on("error",e=>{s.emit("error",e)}),t.pipe(s)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(s);throw new Error("Unsupported stream type")}},exports.StyleSheetConsumer=yt,exports.StyleSheetContext=gt,exports.StyleSheetManager=St,exports.ThemeConsumer=bt,exports.ThemeContext=wt,exports.ThemeProvider=function(e){if(g)return e.children;const t=a.default.useContext(wt),n=a.default.useMemo(()=>function(e,t){if(!e)throw N(14);if(ce(e)){const n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw N(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw N(8);return t?Object.assign(Object.assign({},t),e):e}(e.theme,t),[e.theme,t]);return e.children?a.default.createElement(wt.Provider,{value:n},e.children):null},exports.__PRIVATE__=Ht,exports.createGlobalStyle=Gt,exports.createTheme=function(e,t){var n,o;const s=(null!==(n=null==t?void 0:t.prefix)&&void 0!==n?n:"sc")+"-",r=null!==(o=null==t?void 0:t.selector)&&void 0!==o?o:":root",i=function(e,t){const n={};return Ft(e,t,n,e=>"--"+t+e),n}(e,s),l=function(e,t){const n={};return Ft(e,t,n,(e,n)=>{if("production"!==process.env.NODE_ENV){const t=String(n);let o=0;for(let e=0;e<t.length&&(40===t.charCodeAt(e)?o++:41===t.charCodeAt(e)&&o--,!(o<0));e++);0!==o&&console.warn(`createTheme: value "${t}" at "${e}" contains unbalanced parentheses and may break the var() fallback`)}return"var(--"+t+e+", "+n+")"}),n}(e,s),a=Gt`
2
2
  ${r} {
3
- ${t=>_t(e,t.theme,s)}
3
+ ${t=>zt(e,t.theme,s)}
4
4
  }
5
- `;return Object.assign(i,{GlobalStyle:a,raw:e,resolve(t){if(!m)throw new Error("createTheme.resolve() is client-only");const n=null!=t?t:document.documentElement;return function(e,t,n){const o={};return At(e,t,o,(e,o)=>n.getPropertyValue("--"+t+e).trim()||o),o}(e,s,getComputedStyle(n))}})},exports.css=wt,exports.default=Nt,exports.isStyledComponent=ue,exports.keyframes=function(e,...t){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");const n=he(wt(e,...t)),o=B(n);return new Pt(o,n)},exports.styled=Nt,exports.useTheme=function(){const e=y?void 0:l.default.useContext(ct);if(!e)throw C(18);return e},exports.version=p,exports.withTheme=function(e){const t=l.default.forwardRef((t,n)=>{const o=$(t,y?void 0:l.default.useContext(ct),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===o&&console.warn(`[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "${H(e)}"`),l.default.createElement(e,Object.assign(Object.assign({},t),{theme:o,ref:n}))});return t.displayName=`WithTheme(${H(e)})`,le(t,e)};
5
+ `;return Object.assign(l,{GlobalStyle:a,raw:e,vars:i,resolve(t){if(!m)throw new Error("createTheme.resolve() is client-only");const n=null!=t?t:document.documentElement;return function(e,t,n){const o={};return Ft(e,t,o,(e,o)=>n.getPropertyValue("--"+t+e).trim()||o),o}(e,s,getComputedStyle(n))}})},exports.css=$t,exports.default=Dt,exports.isStyledComponent=ue,exports.keyframes=function(e,...t){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");const n=he($t(e,...t)),o=B(n);return new Lt(o,n)},exports.styled=Dt,exports.stylisPluginRSC=function(e){if(e.type===n.RULESET){const t=e.props,n=[];for(let e=0;e<t.length;e++){const o=Xt(t[e]);n.push(o),Kt(o,n)}e.props=n}},exports.useTheme=function(){const e=g?void 0:a.default.useContext(wt);if(!e)throw N(18);return e},exports.version=p,exports.withTheme=function(e){const t=a.default.forwardRef((t,n)=>{const o=T(t,g?void 0:a.default.useContext(wt),e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===o&&console.warn(`[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "${H(e)}"`),a.default.createElement(e,Object.assign(Object.assign({},t),{theme:o,ref:n}))});return t.displayName=`WithTheme(${H(e)})`,ae(t,e)};
6
6
  //# sourceMappingURL=styled-components.cjs.js.map