styled-components 6.3.0 → 6.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@emotion/is-prop-valid"),n=require("react"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var i=/*#__PURE__*/s(t),c=/*#__PURE__*/s(n),u=/*#__PURE__*/a(r),l=/*#__PURE__*/s(o),d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",p="active",f="data-styled-version",h="6.3.0",m="/*!sc*/\n",y="undefined"!=typeof window&&"undefined"!=typeof document,v=void 0===c.default.createContext,g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),S={},w=/invalid hook call/i,_=new Set,b=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",o="The component ".concat(t).concat(r," has been created dynamically.\n")+"You 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",s=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];w.test(t)?(a=!1,_.delete(o)):s.apply(void 0,e.__spreadArray([t],n,!1))},"function"==typeof c.default.useState&&c.default.useState(null),a&&!_.has(o)&&(console.warn(o),_.add(o))}catch(e){w.test(e.message)&&_.delete(o)}finally{console.error=s}}},E=Object.freeze([]),N=Object.freeze({});function C(e,t,n){return void 0===n&&(n=N),e.theme!==n.theme&&e.theme||t||n.theme}var P=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),A=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I=/(^-|-$)/g;function x(e){return e.replace(A,"-").replace(I,"")}var O=/(a)(d)/gi,D=function(e){return String.fromCharCode(e+(e>25?39:97))};function T(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=D(t%52)+n;return(D(t%52)+n).replace(O,"$1-$2")}var R,j=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},k=function(e){return j(5381,e)};function M(e){return T(k(e)>>>0)}function V(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function F(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var L="function"==typeof Symbol&&Symbol.for,B=L?Symbol.for("react.memo"):60115,G=L?Symbol.for("react.forward_ref"):60112,z={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$={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},Y=((R={})[G]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R[B]=q,R);function W(e){return("type"in(t=e)&&t.type.$$typeof)===B?q:"$$typeof"in e?Y[e.$$typeof]:z;var t}var H=Object.defineProperty,U=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,X=Object.getOwnPropertyDescriptor,Z=Object.getPrototypeOf,K=Object.prototype;function Q(e,t,n){if("string"!=typeof t){if(K){var r=Z(t);r&&r!==K&&Q(e,r,n)}var o=U(t);J&&(o=o.concat(J(t)));for(var s=W(e),a=W(t),i=0;i<o.length;++i){var c=o[i];if(!(c in $||n&&n[c]||a&&c in a||s&&c in s)){var u=X(t,c);try{H(e,c,u)}catch(e){}}}}return e}function ee(e){return"function"==typeof e}function te(e){return"object"==typeof e&&"styledComponentId"in e}function ne(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function re(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function oe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function se(e,t,n){if(void 0===n&&(n=!1),!n&&!oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=se(e[r],t[r]);else if(oe(t))for(var r in t)e[r]=se(e[r],t[r]);return e}function ae(e,t){Object.defineProperty(e,"toString",{value:t})}var ie="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 ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function ue(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];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#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ce.apply(void 0,e.__spreadArray([ie[t]],n,!1)).trim())}var le=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw ue(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),i=(s=0,t.length);s<i;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(m);return t},e}(),de=1<<30,pe=new Map,fe=new Map,he=1,me=function(e){if(pe.has(e))return pe.get(e);for(;fe.has(he);)he++;var t=he++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>de))throw ue(16,"".concat(t));return pe.set(e,t),fe.set(t,e),t},ye=function(e,t){he=t+1,pe.set(e,t),fe.set(t,e)},ve="style[".concat(d,"][").concat(f,'="').concat(h,'"]'),ge=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(e,t,n){for(var r,o=n.split(","),s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},we=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(m),o=[],s=0,a=r.length;s<a;s++){var i=r[s].trim();if(i){var c=i.match(ge);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(ye(l,u),Se(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(i)}}},_e=function(e){for(var t=document.querySelectorAll(ve),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==p&&(we(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function be(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ee=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(d,p),r.setAttribute(f,h);var a=be();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},Ne=function(){function e(e){this.element=Ee(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw ue(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ce=function(){function e(e){this.element=Ee(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Pe=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ae=y,Ie={isServer:!y,useCSSOMInjection:!g},xe=function(){function t(t,n,r){void 0===t&&(t=N),void 0===n&&(n={});var o=this;this.options=e.__assign(e.__assign({},Ie),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&y&&Ae&&(Ae=!1,_e(this)),ae(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return fe.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),a=t.getGroup(n);if(void 0===s||!s.size||0===a.length)return"continue";var i="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(a).concat(i,'{content:"').concat(c,'"}').concat(m)},s=0;s<n;s++)o(s);return r}(o)})}return t.registerId=function(e){return me(e)},t.prototype.rehydrate=function(){!this.server&&y&&_e(this)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Pe(n):t?new Ne(n):new Ce(n)}(this.options),new le(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(me(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(me(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(me(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),Oe=/&/g,De=/^\s*\/\/.*$/gm;function Te(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Te(e.children,t)),e})}function Re(e){var t,n,r,o=void 0===e?N:e,s=o.options,a=void 0===s?N:s,i=o.plugins,c=void 0===i?E:i,l=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=c.slice();d.push(function(e){e.type===u.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,n).replace(r,l))}),a.prefix&&d.push(u.prefixer),d.push(u.stringify);var p=function(e,o,s,i){void 0===o&&(o=""),void 0===s&&(s=""),void 0===i&&(i="&"),t=i,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(De,""),l=u.compile(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);a.namespace&&(l=Te(l,a.namespace));var p=[];return u.serialize(l,u.middleware(d.concat(u.rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||ue(15),j(e,t.name)},5381).toString():"",p}var je=new xe,ke=Re(),Me={shouldForwardProp:void 0,styleSheet:je,stylis:ke},Ve=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Me)}}:c.default.createContext(Me),Fe=Ve.Consumer,Le=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0);function Be(){return!v&&c.default.useContext?c.default.useContext(Ve):Me}function Ge(e){if(v||!c.default.useMemo)return e.children;var t=Be().styleSheet,n=c.default.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=c.default.useMemo(function(){return Re({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=c.default.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return c.default.createElement(Ve.Provider,{value:o},c.default.createElement(Le.Provider,{value:r},e.children))}var ze=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ke);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ae(this,function(){throw ue(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=ke),this.name+e.hash},e}();function $e(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in l.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var qe=function(e){return e>="A"&&e<="Z"};function Ye(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;qe(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var We=function(e){return null==e||!1===e||""===e},He=function(t){var n=[];for(var r in t){var o=t[r];t.hasOwnProperty(r)&&!We(o)&&(Array.isArray(o)&&o.isCss||ee(o)?n.push("".concat(Ye(r),":"),o,";"):oe(o)?n.push.apply(n,e.__spreadArray(e.__spreadArray(["".concat(r," {")],He(o),!1),["}"],!1)):n.push("".concat(Ye(r),": ").concat($e(r,o),";")))}return n};function Ue(e,t,n,r){if(We(e))return[];if(te(e))return[".".concat(e.styledComponentId)];if(ee(e)){if(!ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof ze||oe(o)||null===o||console.error("".concat(V(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.")),Ue(o,t,n,r)}var s;return e instanceof ze?n?(e.inject(n,r),[e.getName(r)]):[e]:oe(e)?He(e):Array.isArray(e)?Array.prototype.concat.apply(E,e.map(function(e){return Ue(e,t,n,r)})):[e.toString()]}function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ee(n)&&!te(n))return!1}return!0}var Xe=k(h),Ze=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Je(e),this.componentId=t,this.baseHash=j(Xe,t),this.baseStyle=n,xe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ne(r,this.staticRulesId);else{var o=re(Ue(this.rules,e,t,n)),s=T(j(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}r=ne(r,s),this.staticRulesId=s}else{for(var i=j(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(i=j(i,l));else if(l){var d=re(Ue(l,e,t,n));i=j(i,d+u),c+=d}}if(c){var p=T(i>>>0);if(!t.hasNameForId(this.componentId,p)){var f=n(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}r=ne(r,p)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(me(this.componentId)):""}},e}(),Ke=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0),Qe=Ke.Consumer,et={},tt=new Set;function nt(t,r,o){var s=te(t),a=t,u=!F(t),l=r.attrs,d=void 0===l?E:l,p=r.componentId,f=void 0===p?function(e,t){var n="string"!=typeof e?"sc":x(e);et[n]=(et[n]||0)+1;var r="".concat(n,"-").concat(M(h+n+et[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):p,m=r.displayName,y=void 0===m?function(e){return F(e)?"styled.".concat(e):"Styled(".concat(V(e),")")}(t):m,g=r.displayName&&r.componentId?"".concat(x(r.displayName),"-").concat(r.componentId):r.componentId||f,S=s&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(s&&a.shouldForwardProp){var _=a.shouldForwardProp;if(r.shouldForwardProp){var A=r.shouldForwardProp;w=function(e,t){return _(e,t)&&A(e,t)}}else w=_}var I=new Ze(o,g,s?a.componentStyle:void 0);function O(t,r){return function(t,r,o){var s=t.attrs,a=t.componentStyle,u=t.defaultProps,l=t.foldedComponentIds,d=t.styledComponentId,p=t.target,f=c.default.useContext?c.default.useContext(Ke):void 0,h=Be(),m=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(d);var y=C(r,f,u)||N,g=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),a=0;a<t.length;a+=1){var i=ee(o=t[a])?o(s):o;for(var c in i)"className"===c?s.className=ne(s.className,i[c]):"style"===c?s.style=e.__assign(e.__assign({},s.style),i[c]):s[c]=i[c]}return"className"in n&&"string"==typeof n.className&&(s.className=ne(s.className,n.className)),s}(s,r,y),S=g.as||p,w={};for(var _ in g)void 0===g[_]||"$"===_[0]||"as"===_||"theme"===_&&g.theme===y||("forwardedAs"===_?w.as=g.forwardedAs:m&&!m(_,S)||(w[_]=g[_],m||"development"!==process.env.NODE_ENV||i.default(_)||tt.has(_)||!P.has(S)||(tt.add(_),console.warn('styled-components: it looks like an unknown prop "'.concat(_,'" 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.)')))));var b=function(e,t){var n=Be(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(r.className),r}(a,g),E=b.className,A=b.css;"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(E);var I=ne(l,d);E&&(I+=" "+E),g.className&&(I+=" "+g.className),w[F(S)&&!P.has(S)?"class":"className"]=I,o&&(w.ref=o);var x=n.createElement(S,w);return v&&A?c.default.createElement(c.default.Fragment,null,c.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(d,"-").concat(E),children:A}),x):x}(D,t,r)}O.displayName=y;var D=c.default.forwardRef(O);return D.attrs=S,D.componentStyle=I,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=s?ne(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=s?a.target:t,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)se(e,o[r],!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(b(y,g),D.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider 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 />"),r=!0,n={}}}}(y,g)),ae(D,function(){return".".concat(D.styledComponentId)}),u&&Q(D,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function rt(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ot=function(e){return Object.assign(e,{isCss:!0})};function st(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(ee(t)||oe(t))return ot(Ue(rt(E,e.__spreadArray([t],n,!0))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Ue(o):ot(Ue(rt(o,n)))}function at(t,n,r){if(void 0===r&&(r=N),!n)throw ue(1,n);var o=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return t(n,r,st.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return at(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return at(t,n,e.__assign(e.__assign({},r),o))},o}var it=function(e){return at(nt,e)},ct=it;P.forEach(function(e){ct[e]=it(e)});var ut=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Je(e),xe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(re(Ue(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&xe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),lt=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=be(),r=re([n&&'nonce="'.concat(n,'"'),"".concat(d,'="true"'),"".concat(f,'="').concat(h,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw ue(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw ue(2);var r=t.instance.toString();if(!r)return[];var o=((n={})[d]="",n[f]=h,n.dangerouslySetInnerHTML={__html:r},n),s=be();return s&&(o.nonce=s),[c.default.createElement("style",e.__assign({},o,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new xe({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw ue(2);return c.default.createElement(Ge,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){throw ue(3)},t}(),dt={StyleSheet:xe,mainSheet:je};"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");var pt="__sc-".concat(d,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[pt]||(window[pt]=0),1===window[pt]&&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[pt]+=1),exports.ServerStyleSheet=lt,exports.StyleSheetConsumer=Fe,exports.StyleSheetContext=Ve,exports.StyleSheetManager=Ge,exports.ThemeConsumer=Qe,exports.ThemeContext=Ke,exports.ThemeProvider=function(t){if(v||!c.default.useContext||!c.default.useMemo)return t.children;var n=c.default.useContext(Ke),r=c.default.useMemo(function(){return function(t,n){if(!t)throw ue(14);if(ee(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw ue(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw ue(8);return n?e.__assign(e.__assign({},n),t):t}(t.theme,n)},[t.theme,n]);return t.children?c.default.createElement(Ke.Provider,{value:r},t.children):null},exports.__PRIVATE__=dt,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=st.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(M(JSON.stringify(o))),a=new ut(o,s);"production"!==process.env.NODE_ENV&&b(s);var i=new WeakMap,u=function(t){var n=Be(),r=c.default.useContext?c.default.useContext(Ke):void 0,l=i.get(n.styleSheet);if(void 0===l&&(l=n.styleSheet.allocateGSInstance(s),i.set(n.styleSheet,l)),"production"!==process.env.NODE_ENV&&c.default.Children.count(t.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.some(function(e){return"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."),("undefined"==typeof window||!n.styleSheet.server)&&function(t,n,r,o,s){if(a.isStatic)a.renderStyles(t,S,r,s);else{var i=e.__assign(e.__assign({},n),{theme:C(n,o,u.defaultProps)});a.renderStyles(t,i,r,s)}}(l,t,n.styleSheet,r,n.stylis),v||"function"!=typeof c.default.useLayoutEffect||c.default.useLayoutEffect(function(){return function(){a.removeStyles(l,n.styleSheet)}},[l,n.styleSheet]),v){var d=s+l,p="undefined"==typeof window?n.styleSheet.getTag().getGroup(me(d)):"";if(p){var f=T(k(p)>>>0),h="sc-global-".concat(s,"-").concat(l,"-").concat(f);return c.default.createElement("style",{key:h,"data-styled-global":s,precedence:"styled-components",href:h,children:p})}}return null};return c.default.memo(u)},exports.css=st,exports.default=ct,exports.isStyledComponent=te,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"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.");var o=re(st.apply(void 0,e.__spreadArray([t],n,!1))),s=M(o);return new ze(s,o)},exports.styled=ct,exports.useTheme=function(){var e=!v&&c.default.useContext?c.default.useContext(Ke):void 0;if(!e)throw ue(18);return e},exports.version=h,exports.withTheme=function(t){var n=c.default.forwardRef(function(n,r){var o=C(n,c.default.useContext?c.default.useContext(Ke):void 0,t.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 "'.concat(V(t),'"')),c.default.createElement(t,e.__assign(e.__assign({},n),{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(V(t),")"),Q(n,t)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@emotion/is-prop-valid"),n=require("react"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var i=/*#__PURE__*/s(t),c=/*#__PURE__*/s(n),u=/*#__PURE__*/a(r),l=/*#__PURE__*/s(o),d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",p="active",f="data-styled-version",h="6.3.1",m="/*!sc*/\n",y="undefined"!=typeof window&&"undefined"!=typeof document,v=void 0===c.default.createContext,g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),S={},w=/invalid hook call/i,_=new Set,b=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",o="The component ".concat(t).concat(r," has been created dynamically.\n")+"You 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",s=console.error;try{var a=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];w.test(t)?(a=!1,_.delete(o)):s.apply(void 0,e.__spreadArray([t],n,!1))},"function"==typeof c.default.useState&&c.default.useState(null),a&&!_.has(o)&&(console.warn(o),_.add(o))}catch(e){w.test(e.message)&&_.delete(o)}finally{console.error=s}}},E=Object.freeze([]),N=Object.freeze({});function C(e,t,n){return void 0===n&&(n=N),e.theme!==n.theme&&e.theme||t||n.theme}var P=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),A=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I=/(^-|-$)/g;function x(e){return e.replace(A,"-").replace(I,"")}var O=/(a)(d)/gi,D=function(e){return String.fromCharCode(e+(e>25?39:97))};function T(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=D(t%52)+n;return(D(t%52)+n).replace(O,"$1-$2")}var R,j=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},k=function(e){return j(5381,e)};function M(e){return T(k(e)>>>0)}function V(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function F(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var L="function"==typeof Symbol&&Symbol.for,B=L?Symbol.for("react.memo"):60115,G=L?Symbol.for("react.forward_ref"):60112,z={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$={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},Y=((R={})[G]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R[B]=q,R);function W(e){return("type"in(t=e)&&t.type.$$typeof)===B?q:"$$typeof"in e?Y[e.$$typeof]:z;var t}var H=Object.defineProperty,U=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,X=Object.getOwnPropertyDescriptor,Z=Object.getPrototypeOf,K=Object.prototype;function Q(e,t,n){if("string"!=typeof t){if(K){var r=Z(t);r&&r!==K&&Q(e,r,n)}var o=U(t);J&&(o=o.concat(J(t)));for(var s=W(e),a=W(t),i=0;i<o.length;++i){var c=o[i];if(!(c in $||n&&n[c]||a&&c in a||s&&c in s)){var u=X(t,c);try{H(e,c,u)}catch(e){}}}}return e}function ee(e){return"function"==typeof e}function te(e){return"object"==typeof e&&"styledComponentId"in e}function ne(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function re(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function oe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function se(e,t,n){if(void 0===n&&(n=!1),!n&&!oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=se(e[r],t[r]);else if(oe(t))for(var r in t)e[r]=se(e[r],t[r]);return e}function ae(e,t){Object.defineProperty(e,"toString",{value:t})}var ie="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 ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function ue(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];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#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ce.apply(void 0,e.__spreadArray([ie[t]],n,!1)).trim())}var le=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw ue(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),i=(s=0,t.length);s<i;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(m);return t},e}(),de=1<<30,pe=new Map,fe=new Map,he=1,me=function(e){if(pe.has(e))return pe.get(e);for(;fe.has(he);)he++;var t=he++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>de))throw ue(16,"".concat(t));return pe.set(e,t),fe.set(t,e),t},ye=function(e,t){he=t+1,pe.set(e,t),fe.set(t,e)},ve="style[".concat(d,"][").concat(f,'="').concat(h,'"]'),ge=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(e,t,n){for(var r,o=n.split(","),s=0,a=o.length;s<a;s++)(r=o[s])&&e.registerName(t,r)},we=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(m),o=[],s=0,a=r.length;s<a;s++){var i=r[s].trim();if(i){var c=i.match(ge);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(ye(l,u),Se(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(i)}}},_e=function(e){for(var t=document.querySelectorAll(ve),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==p&&(we(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function be(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ee=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(d,p),r.setAttribute(f,h);var a=be();return a&&r.setAttribute("nonce",a),n.insertBefore(r,s),r},Ne=function(){function e(e){this.element=Ee(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw ue(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ce=function(){function e(e){this.element=Ee(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Pe=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ae=y,Ie={isServer:!y,useCSSOMInjection:!g},xe=function(){function t(t,n,r){void 0===t&&(t=N),void 0===n&&(n={});var o=this;this.options=e.__assign(e.__assign({},Ie),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&y&&Ae&&(Ae=!1,_e(this)),ae(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return fe.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),a=t.getGroup(n);if(void 0===s||!s.size||0===a.length)return"continue";var i="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(a).concat(i,'{content:"').concat(c,'"}').concat(m)},s=0;s<n;s++)o(s);return r}(o)})}return t.registerId=function(e){return me(e)},t.prototype.rehydrate=function(){!this.server&&y&&_e(this)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Pe(n):t?new Ne(n):new Ce(n)}(this.options),new le(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(me(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(me(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(me(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),Oe=/&/g,De=/^\s*\/\/.*$/gm;function Te(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Te(e.children,t)),e})}function Re(e){var t,n,r,o=void 0===e?N:e,s=o.options,a=void 0===s?N:s,i=o.plugins,c=void 0===i?E:i,l=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=c.slice();d.push(function(e){e.type===u.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,n).replace(r,l))}),a.prefix&&d.push(u.prefixer),d.push(u.stringify);var p=function(e,o,s,i){void 0===o&&(o=""),void 0===s&&(s=""),void 0===i&&(i="&"),t=i,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(De,""),l=u.compile(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);a.namespace&&(l=Te(l,a.namespace));var p=[];return u.serialize(l,u.middleware(d.concat(u.rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||ue(15),j(e,t.name)},5381).toString():"",p}var je=new xe,ke=Re(),Me={shouldForwardProp:void 0,styleSheet:je,stylis:ke},Ve=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Me)}}:c.default.createContext(Me),Fe=Ve.Consumer,Le=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0);function Be(){return!v&&c.default.useContext?c.default.useContext(Ve):Me}function Ge(e){if(v||!c.default.useMemo)return e.children;var t=Be().styleSheet,n=c.default.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=c.default.useMemo(function(){return Re({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=c.default.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return c.default.createElement(Ve.Provider,{value:o},c.default.createElement(Le.Provider,{value:r},e.children))}var ze=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ke);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ae(this,function(){throw ue(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=ke),this.name+e.hash},e}();function $e(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in l.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var qe=function(e){return e>="A"&&e<="Z"};function Ye(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;qe(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var We=function(e){return null==e||!1===e||""===e},He=function(t){var n=[];for(var r in t){var o=t[r];t.hasOwnProperty(r)&&!We(o)&&(Array.isArray(o)&&o.isCss||ee(o)?n.push("".concat(Ye(r),":"),o,";"):oe(o)?n.push.apply(n,e.__spreadArray(e.__spreadArray(["".concat(r," {")],He(o),!1),["}"],!1)):n.push("".concat(Ye(r),": ").concat($e(r,o),";")))}return n};function Ue(e,t,n,r){if(We(e))return[];if(te(e))return[".".concat(e.styledComponentId)];if(ee(e)){if(!ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof ze||oe(o)||null===o||console.error("".concat(V(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.")),Ue(o,t,n,r)}var s;return e instanceof ze?n?(e.inject(n,r),[e.getName(r)]):[e]:oe(e)?He(e):Array.isArray(e)?Array.prototype.concat.apply(E,e.map(function(e){return Ue(e,t,n,r)})):[e.toString()]}function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ee(n)&&!te(n))return!1}return!0}var Xe=k(h),Ze=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Je(e),this.componentId=t,this.baseHash=j(Xe,t),this.baseStyle=n,xe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ne(r,this.staticRulesId);else{var o=re(Ue(this.rules,e,t,n)),s=T(j(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}r=ne(r,s),this.staticRulesId=s}else{for(var i=j(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(i=j(i,l));else if(l){var d=re(Ue(l,e,t,n));i=j(i,d+u),c+=d}}if(c){var p=T(i>>>0);if(!t.hasNameForId(this.componentId,p)){var f=n(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}r=ne(r,p)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(me(this.componentId)):""}},e}(),Ke=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0),Qe=Ke.Consumer,et={},tt=new Set;function nt(t,r,o){var s=te(t),a=t,u=!F(t),l=r.attrs,d=void 0===l?E:l,p=r.componentId,f=void 0===p?function(e,t){var n="string"!=typeof e?"sc":x(e);et[n]=(et[n]||0)+1;var r="".concat(n,"-").concat(M(h+n+et[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):p,m=r.displayName,y=void 0===m?function(e){return F(e)?"styled.".concat(e):"Styled(".concat(V(e),")")}(t):m,g=r.displayName&&r.componentId?"".concat(x(r.displayName),"-").concat(r.componentId):r.componentId||f,S=s&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(s&&a.shouldForwardProp){var _=a.shouldForwardProp;if(r.shouldForwardProp){var A=r.shouldForwardProp;w=function(e,t){return _(e,t)&&A(e,t)}}else w=_}var I=new Ze(o,g,s?a.componentStyle:void 0);function O(t,r){return function(t,r,o){var s=t.attrs,a=t.componentStyle,u=t.defaultProps,l=t.foldedComponentIds,d=t.styledComponentId,p=t.target,f=c.default.useContext?c.default.useContext(Ke):void 0,h=Be(),m=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(d);var y=C(r,f,u)||N,g=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),a=0;a<t.length;a+=1){var i=ee(o=t[a])?o(s):o;for(var c in i)"className"===c?s.className=ne(s.className,i[c]):"style"===c?s.style=e.__assign(e.__assign({},s.style),i[c]):s[c]=i[c]}return"className"in n&&"string"==typeof n.className&&(s.className=ne(s.className,n.className)),s}(s,r,y),S=g.as||p,w={};for(var _ in g)void 0===g[_]||"$"===_[0]||"as"===_||"theme"===_&&g.theme===y||("forwardedAs"===_?w.as=g.forwardedAs:m&&!m(_,S)||(w[_]=g[_],m||"development"!==process.env.NODE_ENV||i.default(_)||tt.has(_)||!P.has(S)||(tt.add(_),console.warn('styled-components: it looks like an unknown prop "'.concat(_,'" 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.)')))));var b=function(e,t){var n=Be(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(r.className),r}(a,g),E=b.className,A=b.css;"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(E);var I=ne(l,d);E&&(I+=" "+E),g.className&&(I+=" "+g.className),w[F(S)&&!P.has(S)?"class":"className"]=I,o&&(w.ref=o);var x=n.createElement(S,w);return v&&A?c.default.createElement(c.default.Fragment,null,c.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(d,"-").concat(E),children:A}),x):x}(D,t,r)}O.displayName=y;var D=c.default.forwardRef(O);return D.attrs=S,D.componentStyle=I,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=s?ne(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=s?a.target:t,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)se(e,o[r],!0);return e}({},a.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(b(y,g),D.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider 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 />"),r=!0,n={}}}}(y,g)),ae(D,function(){return".".concat(D.styledComponentId)}),u&&Q(D,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function rt(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ot=function(e){return Object.assign(e,{isCss:!0})};function st(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(ee(t)||oe(t))return ot(Ue(rt(E,e.__spreadArray([t],n,!0))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Ue(o):ot(Ue(rt(o,n)))}function at(t,n,r){if(void 0===r&&(r=N),!n)throw ue(1,n);var o=function(o){for(var s=[],a=1;a<arguments.length;a++)s[a-1]=arguments[a];return t(n,r,st.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return at(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return at(t,n,e.__assign(e.__assign({},r),o))},o}var it=function(e){return at(nt,e)},ct=it;P.forEach(function(e){ct[e]=it(e)});var ut=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Je(e),xe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(re(Ue(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&xe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),lt=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=be(),r=re([n&&'nonce="'.concat(n,'"'),"".concat(d,'="true"'),"".concat(f,'="').concat(h,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw ue(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw ue(2);var r=t.instance.toString();if(!r)return[];var o=((n={})[d]="",n[f]=h,n.dangerouslySetInnerHTML={__html:r},n),s=be();return s&&(o.nonce=s),[c.default.createElement("style",e.__assign({},o,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new xe({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw ue(2);return c.default.createElement(Ge,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){throw ue(3)},t}(),dt={StyleSheet:xe,mainSheet:je};"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");var pt="__sc-".concat(d,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[pt]||(window[pt]=0),1===window[pt]&&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[pt]+=1),exports.ServerStyleSheet=lt,exports.StyleSheetConsumer=Fe,exports.StyleSheetContext=Ve,exports.StyleSheetManager=Ge,exports.ThemeConsumer=Qe,exports.ThemeContext=Ke,exports.ThemeProvider=function(t){if(v||!c.default.useContext||!c.default.useMemo)return t.children;var n=c.default.useContext(Ke),r=c.default.useMemo(function(){return function(t,n){if(!t)throw ue(14);if(ee(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw ue(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw ue(8);return n?e.__assign(e.__assign({},n),t):t}(t.theme,n)},[t.theme,n]);return t.children?c.default.createElement(Ke.Provider,{value:r},t.children):null},exports.__PRIVATE__=dt,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=st.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(M(JSON.stringify(o))),a=new ut(o,s);"production"!==process.env.NODE_ENV&&b(s);var i=new WeakMap,u=function(t){var n=Be(),r=c.default.useContext?c.default.useContext(Ke):void 0,l=i.get(n.styleSheet);if(void 0===l&&(l=n.styleSheet.allocateGSInstance(s),i.set(n.styleSheet,l)),"production"!==process.env.NODE_ENV&&c.default.Children.count(t.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.some(function(e){return"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."),("undefined"==typeof window||!n.styleSheet.server)&&function(t,n,r,o,s){if(a.isStatic)a.renderStyles(t,S,r,s);else{var i=e.__assign(e.__assign({},n),{theme:C(n,o,u.defaultProps)});a.renderStyles(t,i,r,s)}}(l,t,n.styleSheet,r,n.stylis),v||"function"!=typeof c.default.useLayoutEffect||c.default.useLayoutEffect(function(){return function(){a.removeStyles(l,n.styleSheet)}},[l,n.styleSheet]),v){var d=s+l,p="undefined"==typeof window?n.styleSheet.getTag().getGroup(me(d)):"";if(p){var f=T(k(p)>>>0),h="sc-global-".concat(s,"-").concat(l,"-").concat(f);return c.default.createElement("style",{key:h,"data-styled-global":s,precedence:"styled-components",href:h,children:p})}}return null};return c.default.memo(u)},exports.css=st,exports.default=ct,exports.isStyledComponent=te,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"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.");var o=re(st.apply(void 0,e.__spreadArray([t],n,!1))),s=M(o);return new ze(s,o)},exports.styled=ct,exports.useTheme=function(){var e=!v&&c.default.useContext?c.default.useContext(Ke):void 0;if(!e)throw ue(18);return e},exports.version=h,exports.withTheme=function(t){var n=c.default.forwardRef(function(n,r){var o=C(n,c.default.useContext?c.default.useContext(Ke):void 0,t.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 "'.concat(V(t),'"')),c.default.createElement(t,e.__assign(e.__assign({},n),{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(V(t),")"),Q(n,t)};
2
2
  //# sourceMappingURL=styled-components.browser.cjs.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as t}from"tslib";import n from"@emotion/is-prop-valid";import o,{createElement as r}from"react";import*as s from"stylis";import i from"@emotion/unitless";var a="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",c="active",u="data-styled-version",l="6.3.0",p="/*!sc*/\n",d="undefined"!=typeof window&&"undefined"!=typeof document,h=void 0===o.createContext,f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),m={},y=/invalid hook call/i,v=new Set,g=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You 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",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];y.test(t)?(a=!1,v.delete(s)):i.apply(void 0,e([t],n,!1))},"function"==typeof o.useState&&o.useState(null),a&&!v.has(s)&&(console.warn(s),v.add(s))}catch(e){y.test(e.message)&&v.delete(s)}finally{console.error=i}}},S=Object.freeze([]),w=Object.freeze({});function b(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme}var E=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),N=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,C=/(^-|-$)/g;function P(e){return e.replace(N,"-").replace(C,"")}var _=/(a)(d)/gi,I=function(e){return String.fromCharCode(e+(e>25?39:97))};function A(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=I(t%52)+n;return(I(t%52)+n).replace(_,"$1-$2")}var D,O=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},T=function(e){return O(5381,e)};function R(e){return A(T(e)>>>0)}function x(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function j(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var k="function"==typeof Symbol&&Symbol.for,M=k?Symbol.for("react.memo"):60115,V=k?Symbol.for("react.forward_ref"):60112,F={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},G=((D={})[V]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},D[M]=B,D);function $(e){return("type"in(t=e)&&t.type.$$typeof)===M?B:"$$typeof"in e?G[e.$$typeof]:F;var t}var z=Object.defineProperty,Y=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,U=Object.prototype;function J(e,t,n){if("string"!=typeof t){if(U){var o=H(t);o&&o!==U&&J(e,o,n)}var r=Y(t);W&&(r=r.concat(W(t)));for(var s=$(e),i=$(t),a=0;a<r.length;++a){var c=r[a];if(!(c in L||n&&n[c]||i&&c in i||s&&c in s)){var u=q(t,c);try{z(e,c,u)}catch(e){}}}}return e}function X(e){return"function"==typeof e}function Z(e){return"object"==typeof e&&"styledComponentId"in e}function K(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Q(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ee(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function te(e,t,n){if(void 0===n&&(n=!1),!n&&!ee(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=te(e[o],t[o]);else if(ee(t))for(var o in t)e[o]=te(e[o],t[o]);return e}function ne(e,t){Object.defineProperty(e,"toString",{value:t})}var oe="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 re(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function se(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];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#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(re.apply(void 0,e([oe[t]],n,!1)).trim())}var ie=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw se(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(p);return t},e}(),ae=1<<30,ce=new Map,ue=new Map,le=1,pe=function(e){if(ce.has(e))return ce.get(e);for(;ue.has(le);)le++;var t=le++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>ae))throw se(16,"".concat(t));return ce.set(e,t),ue.set(t,e),t},de=function(e,t){le=t+1,ce.set(e,t),ue.set(t,e)},he="style[".concat(a,"][").concat(u,'="').concat(l,'"]'),fe=new RegExp("^".concat(a,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),me=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o)},ye=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(p),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(fe);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(de(l,u),me(e,l,c[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},ve=function(e){for(var t=document.querySelectorAll(he),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(a)!==c&&(ye(e,r),r.parentNode&&r.parentNode.removeChild(r))}};function ge(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Se=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(a,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(a,c),o.setAttribute(u,l);var i=ge();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},we=function(){function e(e){this.element=Se(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw se(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),be=function(){function e(e){this.element=Se(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ee=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ne=d,Ce={isServer:!d,useCSSOMInjection:!f},Pe=function(){function e(e,n,o){void 0===e&&(e=w),void 0===n&&(n={});var r=this;this.options=t(t({},Ce),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&d&&Ne&&(Ne=!1,ve(this)),ne(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ue.get(e)}(n);if(void 0===r)return"continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var c="".concat(a,".g").concat(n,'[id="').concat(r,'"]'),u="";void 0!==s&&s.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),o+="".concat(i).concat(c,'{content:"').concat(u,'"}').concat(p)},s=0;s<n;s++)r(s);return o}(r)})}return e.registerId=function(e){return pe(e)},e.prototype.rehydrate=function(){!this.server&&d&&ve(this)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(t(t({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ee(n):t?new we(n):new be(n)}(this.options),new ie(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(pe(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(pe(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(pe(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),_e=/&/g,Ie=/^\s*\/\/.*$/gm;function Ae(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ae(e.children,t)),e})}function De(e){var t,n,o,r=void 0===e?w:e,i=r.options,a=void 0===i?w:i,c=r.plugins,u=void 0===c?S:c,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},p=u.slice();p.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(_e,n).replace(o,l))}),a.prefix&&p.push(s.prefixer),p.push(s.stringify);var d=function(e,r,i,c){void 0===r&&(r=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var u=e.replace(Ie,""),l=s.compile(i||r?"".concat(i," ").concat(r," { ").concat(u," }"):u);a.namespace&&(l=Ae(l,a.namespace));var d=[];return s.serialize(l,s.middleware(p.concat(s.rulesheet(function(e){return d.push(e)})))),d};return d.hash=u.length?u.reduce(function(e,t){return t.name||se(15),O(e,t.name)},5381).toString():"",d}var Oe=new Pe,Te=De(),Re={shouldForwardProp:void 0,styleSheet:Oe,stylis:Te},xe=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Re)}}:o.createContext(Re),je=xe.Consumer,ke=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0);function Me(){return!h&&o.useContext?o.useContext(xe):Re}function Ve(e){if(h||!o.useMemo)return e.children;var t=Me().styleSheet,n=o.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=o.useMemo(function(){return De({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),s=o.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return o.createElement(xe.Provider,{value:s},o.createElement(ke.Provider,{value:r},e.children))}var Fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Te);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ne(this,function(){throw se(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Te),this.name+e.hash},e}();function Le(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in i||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Be=function(e){return e>="A"&&e<="Z"};function Ge(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Be(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var $e=function(e){return null==e||!1===e||""===e},ze=function(t){var n=[];for(var o in t){var r=t[o];t.hasOwnProperty(o)&&!$e(r)&&(Array.isArray(r)&&r.isCss||X(r)?n.push("".concat(Ge(o),":"),r,";"):ee(r)?n.push.apply(n,e(e(["".concat(o," {")],ze(r),!1),["}"],!1)):n.push("".concat(Ge(o),": ").concat(Le(o,r),";")))}return n};function Ye(e,t,n,o){if($e(e))return[];if(Z(e))return[".".concat(e.styledComponentId)];if(X(e)){if(!X(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Fe||ee(r)||null===r||console.error("".concat(x(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.")),Ye(r,t,n,o)}var s;return e instanceof Fe?n?(e.inject(n,o),[e.getName(o)]):[e]:ee(e)?ze(e):Array.isArray(e)?Array.prototype.concat.apply(S,e.map(function(e){return Ye(e,t,n,o)})):[e.toString()]}function We(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(X(n)&&!Z(n))return!1}return!0}var qe=T(l),He=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&We(e),this.componentId=t,this.baseHash=O(qe,t),this.baseStyle=n,Pe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=K(o,this.staticRulesId);else{var r=Q(Ye(this.rules,e,t,n)),s=A(O(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}o=K(o,s),this.staticRulesId=s}else{for(var a=O(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(a=O(a,l));else if(l){var p=Q(Ye(l,e,t,n));a=O(a,p+u),c+=p}}if(c){var d=A(a>>>0);if(!t.hasNameForId(this.componentId,d)){var h=n(c,".".concat(d),void 0,this.componentId);t.insertRules(this.componentId,d,h)}o=K(o,d)}}return{className:o,css:"undefined"==typeof window?t.getTag().getGroup(pe(this.componentId)):""}},e}(),Ue=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0),Je=Ue.Consumer;function Xe(){var e=!h&&o.useContext?o.useContext(Ue):void 0;if(!e)throw se(18);return e}function Ze(e){if(h||!o.useContext||!o.useMemo)return e.children;var n=o.useContext(Ue),r=o.useMemo(function(){return function(e,n){if(!e)throw se(14);if(X(e)){var o=e(n);if("production"!==process.env.NODE_ENV&&(null===o||Array.isArray(o)||"object"!=typeof o))throw se(7);return o}if(Array.isArray(e)||"object"!=typeof e)throw se(8);return n?t(t({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?o.createElement(Ue.Provider,{value:r},e.children):null}var Ke={},Qe=new Set;function et(e,s,i){var a=Z(e),c=e,u=!j(e),p=s.attrs,d=void 0===p?S:p,f=s.componentId,m=void 0===f?function(e,t){var n="string"!=typeof e?"sc":P(e);Ke[n]=(Ke[n]||0)+1;var o="".concat(n,"-").concat(R(l+n+Ke[n]));return t?"".concat(t,"-").concat(o):o}(s.displayName,s.parentComponentId):f,y=s.displayName,v=void 0===y?function(e){return j(e)?"styled.".concat(e):"Styled(".concat(x(e),")")}(e):y,N=s.displayName&&s.componentId?"".concat(P(s.displayName),"-").concat(s.componentId):s.componentId||m,C=a&&c.attrs?c.attrs.concat(d).filter(Boolean):d,_=s.shouldForwardProp;if(a&&c.shouldForwardProp){var I=c.shouldForwardProp;if(s.shouldForwardProp){var A=s.shouldForwardProp;_=function(e,t){return I(e,t)&&A(e,t)}}else _=I}var D=new He(i,N,a?c.componentStyle:void 0);function O(e,s){return function(e,s,i){var a=e.attrs,c=e.componentStyle,u=e.defaultProps,l=e.foldedComponentIds,p=e.styledComponentId,d=e.target,f=o.useContext?o.useContext(Ue):void 0,m=Me(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(p);var v=b(s,f,u)||w,g=function(e,n,o){for(var r,s=t(t({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=X(r=e[i])?r(s):r;for(var c in a)"className"===c?s.className=K(s.className,a[c]):"style"===c?s.style=t(t({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=K(s.className,n.className)),s}(a,s,v),S=g.as||d,N={};for(var C in g)void 0===g[C]||"$"===C[0]||"as"===C||"theme"===C&&g.theme===v||("forwardedAs"===C?N.as=g.forwardedAs:y&&!y(C,S)||(N[C]=g[C],y||"development"!==process.env.NODE_ENV||n(C)||Qe.has(C)||!E.has(S)||(Qe.add(C),console.warn('styled-components: it looks like an unknown prop "'.concat(C,'" 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.)')))));var P=function(e,t){var n=Me(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(r.className),r}(c,g),_=P.className,I=P.css;"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(_);var A=K(l,p);_&&(A+=" "+_),g.className&&(A+=" "+g.className),N[j(S)&&!E.has(S)?"class":"className"]=A,i&&(N.ref=i);var D=r(S,N);return h&&I?o.createElement(o.Fragment,null,o.createElement("style",{precedence:"styled-components",href:"sc-".concat(p,"-").concat(_),children:I}),D):D}(T,e,s)}O.displayName=v;var T=o.forwardRef(O);return T.attrs=C,T.componentStyle=D,T.displayName=v,T.shouldForwardProp=_,T.foldedComponentIds=a?K(c.foldedComponentIds,c.styledComponentId):"",T.styledComponentId=N,T.target=a?c.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)te(e,r[o],!0);return e}({},c.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(g(v,N),T.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider 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={}}}}(v,N)),ne(T,function(){return".".concat(T.styledComponentId)}),u&&J(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function tt(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var nt=function(e){return Object.assign(e,{isCss:!0})};function ot(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(X(t)||ee(t))return nt(Ye(tt(S,e([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Ye(r):nt(Ye(tt(r,n)))}function rt(n,o,r){if(void 0===r&&(r=w),!o)throw se(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,ot.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return rt(n,o,t(t({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return rt(n,o,t(t({},r),e))},s}var st=function(e){return rt(et,e)},it=st;E.forEach(function(e){it[e]=st(e)});var at=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=We(e),Pe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,o){var r=o(Q(Ye(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,o){e>2&&Pe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},e}();function ct(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=ot.apply(void 0,e([n],r,!1)),a="sc-global-".concat(R(JSON.stringify(i))),c=new at(i,a);"production"!==process.env.NODE_ENV&&g(a);var u=new WeakMap,l=function(e){var n=Me(),r=o.useContext?o.useContext(Ue):void 0,s=u.get(n.styleSheet);if(void 0===s&&(s=n.styleSheet.allocateGSInstance(a),u.set(n.styleSheet,s)),"production"!==process.env.NODE_ENV&&o.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return"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."),("undefined"==typeof window||!n.styleSheet.server)&&function(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,m,o,s);else{var i=t(t({},n),{theme:b(n,r,l.defaultProps)});c.renderStyles(e,i,o,s)}}(s,e,n.styleSheet,r,n.stylis),h||"function"!=typeof o.useLayoutEffect||o.useLayoutEffect(function(){return function(){c.removeStyles(s,n.styleSheet)}},[s,n.styleSheet]),h){var p=a+s,d="undefined"==typeof window?n.styleSheet.getTag().getGroup(pe(p)):"";if(d){var f=A(T(d)>>>0),y="sc-global-".concat(a,"-").concat(s,"-").concat(f);return o.createElement("style",{key:y,"data-styled-global":a,precedence:"styled-components",href:y,children:d})}}return null};return o.memo(l)}function ut(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];"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.");var r=Q(ot.apply(void 0,e([t],n,!1))),s=R(r);return new Fe(s,r)}function lt(e){var n=o.forwardRef(function(n,r){var s=b(n,o.useContext?o.useContext(Ue):void 0,e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(x(e),'"')),o.createElement(e,t(t({},n),{theme:s,ref:r}))});return n.displayName="WithTheme(".concat(x(e),")"),J(n,e)}var pt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ge(),o=Q([n&&'nonce="'.concat(n,'"'),"".concat(a,'="true"'),"".concat(u,'="').concat(l,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw se(2);return e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)throw se(2);var r=e.instance.toString();if(!r)return[];var s=((n={})[a]="",n[u]=l,n.dangerouslySetInnerHTML={__html:r},n),i=ge();return i&&(s.nonce=i),[o.createElement("style",t({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Pe({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw se(2);return o.createElement(Ve,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw se(3)},e}(),dt={StyleSheet:Pe,mainSheet:Oe};"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");var ht="__sc-".concat(a,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[ht]||(window[ht]=0),1===window[ht]&&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[ht]+=1);export{pt as ServerStyleSheet,je as StyleSheetConsumer,xe as StyleSheetContext,Ve as StyleSheetManager,Je as ThemeConsumer,Ue as ThemeContext,Ze as ThemeProvider,dt as __PRIVATE__,ct as createGlobalStyle,ot as css,it as default,Z as isStyledComponent,ut as keyframes,it as styled,Xe as useTheme,l as version,lt as withTheme};
1
+ import{__spreadArray as e,__assign as t}from"tslib";import n from"@emotion/is-prop-valid";import o,{createElement as r}from"react";import*as s from"stylis";import i from"@emotion/unitless";var a="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",c="active",u="data-styled-version",l="6.3.1",p="/*!sc*/\n",d="undefined"!=typeof window&&"undefined"!=typeof document,h=void 0===o.createContext,f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),m={},y=/invalid hook call/i,v=new Set,g=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You 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",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];y.test(t)?(a=!1,v.delete(s)):i.apply(void 0,e([t],n,!1))},"function"==typeof o.useState&&o.useState(null),a&&!v.has(s)&&(console.warn(s),v.add(s))}catch(e){y.test(e.message)&&v.delete(s)}finally{console.error=i}}},S=Object.freeze([]),w=Object.freeze({});function b(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme}var E=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),N=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,C=/(^-|-$)/g;function P(e){return e.replace(N,"-").replace(C,"")}var _=/(a)(d)/gi,I=function(e){return String.fromCharCode(e+(e>25?39:97))};function A(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=I(t%52)+n;return(I(t%52)+n).replace(_,"$1-$2")}var D,O=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},T=function(e){return O(5381,e)};function R(e){return A(T(e)>>>0)}function x(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function j(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var k="function"==typeof Symbol&&Symbol.for,M=k?Symbol.for("react.memo"):60115,V=k?Symbol.for("react.forward_ref"):60112,F={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},G=((D={})[V]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},D[M]=B,D);function $(e){return("type"in(t=e)&&t.type.$$typeof)===M?B:"$$typeof"in e?G[e.$$typeof]:F;var t}var z=Object.defineProperty,Y=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,U=Object.prototype;function J(e,t,n){if("string"!=typeof t){if(U){var o=H(t);o&&o!==U&&J(e,o,n)}var r=Y(t);W&&(r=r.concat(W(t)));for(var s=$(e),i=$(t),a=0;a<r.length;++a){var c=r[a];if(!(c in L||n&&n[c]||i&&c in i||s&&c in s)){var u=q(t,c);try{z(e,c,u)}catch(e){}}}}return e}function X(e){return"function"==typeof e}function Z(e){return"object"==typeof e&&"styledComponentId"in e}function K(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Q(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ee(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function te(e,t,n){if(void 0===n&&(n=!1),!n&&!ee(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=te(e[o],t[o]);else if(ee(t))for(var o in t)e[o]=te(e[o],t[o]);return e}function ne(e,t){Object.defineProperty(e,"toString",{value:t})}var oe="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 re(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function se(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];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#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(re.apply(void 0,e([oe[t]],n,!1)).trim())}var ie=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw se(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(p);return t},e}(),ae=1<<30,ce=new Map,ue=new Map,le=1,pe=function(e){if(ce.has(e))return ce.get(e);for(;ue.has(le);)le++;var t=le++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>ae))throw se(16,"".concat(t));return ce.set(e,t),ue.set(t,e),t},de=function(e,t){le=t+1,ce.set(e,t),ue.set(t,e)},he="style[".concat(a,"][").concat(u,'="').concat(l,'"]'),fe=new RegExp("^".concat(a,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),me=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o)},ye=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(p),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(fe);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(de(l,u),me(e,l,c[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},ve=function(e){for(var t=document.querySelectorAll(he),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(a)!==c&&(ye(e,r),r.parentNode&&r.parentNode.removeChild(r))}};function ge(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Se=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(a,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(a,c),o.setAttribute(u,l);var i=ge();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},we=function(){function e(e){this.element=Se(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw se(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),be=function(){function e(e){this.element=Se(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ee=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ne=d,Ce={isServer:!d,useCSSOMInjection:!f},Pe=function(){function e(e,n,o){void 0===e&&(e=w),void 0===n&&(n={});var r=this;this.options=t(t({},Ce),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&d&&Ne&&(Ne=!1,ve(this)),ne(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ue.get(e)}(n);if(void 0===r)return"continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var c="".concat(a,".g").concat(n,'[id="').concat(r,'"]'),u="";void 0!==s&&s.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),o+="".concat(i).concat(c,'{content:"').concat(u,'"}').concat(p)},s=0;s<n;s++)r(s);return o}(r)})}return e.registerId=function(e){return pe(e)},e.prototype.rehydrate=function(){!this.server&&d&&ve(this)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(t(t({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ee(n):t?new we(n):new be(n)}(this.options),new ie(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(pe(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(pe(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(pe(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),_e=/&/g,Ie=/^\s*\/\/.*$/gm;function Ae(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ae(e.children,t)),e})}function De(e){var t,n,o,r=void 0===e?w:e,i=r.options,a=void 0===i?w:i,c=r.plugins,u=void 0===c?S:c,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},p=u.slice();p.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(_e,n).replace(o,l))}),a.prefix&&p.push(s.prefixer),p.push(s.stringify);var d=function(e,r,i,c){void 0===r&&(r=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var u=e.replace(Ie,""),l=s.compile(i||r?"".concat(i," ").concat(r," { ").concat(u," }"):u);a.namespace&&(l=Ae(l,a.namespace));var d=[];return s.serialize(l,s.middleware(p.concat(s.rulesheet(function(e){return d.push(e)})))),d};return d.hash=u.length?u.reduce(function(e,t){return t.name||se(15),O(e,t.name)},5381).toString():"",d}var Oe=new Pe,Te=De(),Re={shouldForwardProp:void 0,styleSheet:Oe,stylis:Te},xe=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Re)}}:o.createContext(Re),je=xe.Consumer,ke=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0);function Me(){return!h&&o.useContext?o.useContext(xe):Re}function Ve(e){if(h||!o.useMemo)return e.children;var t=Me().styleSheet,n=o.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=o.useMemo(function(){return De({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),s=o.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return o.createElement(xe.Provider,{value:s},o.createElement(ke.Provider,{value:r},e.children))}var Fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Te);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ne(this,function(){throw se(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Te),this.name+e.hash},e}();function Le(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in i||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Be=function(e){return e>="A"&&e<="Z"};function Ge(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Be(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var $e=function(e){return null==e||!1===e||""===e},ze=function(t){var n=[];for(var o in t){var r=t[o];t.hasOwnProperty(o)&&!$e(r)&&(Array.isArray(r)&&r.isCss||X(r)?n.push("".concat(Ge(o),":"),r,";"):ee(r)?n.push.apply(n,e(e(["".concat(o," {")],ze(r),!1),["}"],!1)):n.push("".concat(Ge(o),": ").concat(Le(o,r),";")))}return n};function Ye(e,t,n,o){if($e(e))return[];if(Z(e))return[".".concat(e.styledComponentId)];if(X(e)){if(!X(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Fe||ee(r)||null===r||console.error("".concat(x(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.")),Ye(r,t,n,o)}var s;return e instanceof Fe?n?(e.inject(n,o),[e.getName(o)]):[e]:ee(e)?ze(e):Array.isArray(e)?Array.prototype.concat.apply(S,e.map(function(e){return Ye(e,t,n,o)})):[e.toString()]}function We(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(X(n)&&!Z(n))return!1}return!0}var qe=T(l),He=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&We(e),this.componentId=t,this.baseHash=O(qe,t),this.baseStyle=n,Pe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=K(o,this.staticRulesId);else{var r=Q(Ye(this.rules,e,t,n)),s=A(O(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}o=K(o,s),this.staticRulesId=s}else{for(var a=O(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(a=O(a,l));else if(l){var p=Q(Ye(l,e,t,n));a=O(a,p+u),c+=p}}if(c){var d=A(a>>>0);if(!t.hasNameForId(this.componentId,d)){var h=n(c,".".concat(d),void 0,this.componentId);t.insertRules(this.componentId,d,h)}o=K(o,d)}}return{className:o,css:"undefined"==typeof window?t.getTag().getGroup(pe(this.componentId)):""}},e}(),Ue=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0),Je=Ue.Consumer;function Xe(){var e=!h&&o.useContext?o.useContext(Ue):void 0;if(!e)throw se(18);return e}function Ze(e){if(h||!o.useContext||!o.useMemo)return e.children;var n=o.useContext(Ue),r=o.useMemo(function(){return function(e,n){if(!e)throw se(14);if(X(e)){var o=e(n);if("production"!==process.env.NODE_ENV&&(null===o||Array.isArray(o)||"object"!=typeof o))throw se(7);return o}if(Array.isArray(e)||"object"!=typeof e)throw se(8);return n?t(t({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?o.createElement(Ue.Provider,{value:r},e.children):null}var Ke={},Qe=new Set;function et(e,s,i){var a=Z(e),c=e,u=!j(e),p=s.attrs,d=void 0===p?S:p,f=s.componentId,m=void 0===f?function(e,t){var n="string"!=typeof e?"sc":P(e);Ke[n]=(Ke[n]||0)+1;var o="".concat(n,"-").concat(R(l+n+Ke[n]));return t?"".concat(t,"-").concat(o):o}(s.displayName,s.parentComponentId):f,y=s.displayName,v=void 0===y?function(e){return j(e)?"styled.".concat(e):"Styled(".concat(x(e),")")}(e):y,N=s.displayName&&s.componentId?"".concat(P(s.displayName),"-").concat(s.componentId):s.componentId||m,C=a&&c.attrs?c.attrs.concat(d).filter(Boolean):d,_=s.shouldForwardProp;if(a&&c.shouldForwardProp){var I=c.shouldForwardProp;if(s.shouldForwardProp){var A=s.shouldForwardProp;_=function(e,t){return I(e,t)&&A(e,t)}}else _=I}var D=new He(i,N,a?c.componentStyle:void 0);function O(e,s){return function(e,s,i){var a=e.attrs,c=e.componentStyle,u=e.defaultProps,l=e.foldedComponentIds,p=e.styledComponentId,d=e.target,f=o.useContext?o.useContext(Ue):void 0,m=Me(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(p);var v=b(s,f,u)||w,g=function(e,n,o){for(var r,s=t(t({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=X(r=e[i])?r(s):r;for(var c in a)"className"===c?s.className=K(s.className,a[c]):"style"===c?s.style=t(t({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=K(s.className,n.className)),s}(a,s,v),S=g.as||d,N={};for(var C in g)void 0===g[C]||"$"===C[0]||"as"===C||"theme"===C&&g.theme===v||("forwardedAs"===C?N.as=g.forwardedAs:y&&!y(C,S)||(N[C]=g[C],y||"development"!==process.env.NODE_ENV||n(C)||Qe.has(C)||!E.has(S)||(Qe.add(C),console.warn('styled-components: it looks like an unknown prop "'.concat(C,'" 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.)')))));var P=function(e,t){var n=Me(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(r.className),r}(c,g),_=P.className,I=P.css;"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(_);var A=K(l,p);_&&(A+=" "+_),g.className&&(A+=" "+g.className),N[j(S)&&!E.has(S)?"class":"className"]=A,i&&(N.ref=i);var D=r(S,N);return h&&I?o.createElement(o.Fragment,null,o.createElement("style",{precedence:"styled-components",href:"sc-".concat(p,"-").concat(_),children:I}),D):D}(T,e,s)}O.displayName=v;var T=o.forwardRef(O);return T.attrs=C,T.componentStyle=D,T.displayName=v,T.shouldForwardProp=_,T.foldedComponentIds=a?K(c.foldedComponentIds,c.styledComponentId):"",T.styledComponentId=N,T.target=a?c.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)te(e,r[o],!0);return e}({},c.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(g(v,N),T.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider 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={}}}}(v,N)),ne(T,function(){return".".concat(T.styledComponentId)}),u&&J(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function tt(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var nt=function(e){return Object.assign(e,{isCss:!0})};function ot(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(X(t)||ee(t))return nt(Ye(tt(S,e([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Ye(r):nt(Ye(tt(r,n)))}function rt(n,o,r){if(void 0===r&&(r=w),!o)throw se(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,ot.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return rt(n,o,t(t({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return rt(n,o,t(t({},r),e))},s}var st=function(e){return rt(et,e)},it=st;E.forEach(function(e){it[e]=st(e)});var at=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=We(e),Pe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,o){var r=o(Q(Ye(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,o){e>2&&Pe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},e}();function ct(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=ot.apply(void 0,e([n],r,!1)),a="sc-global-".concat(R(JSON.stringify(i))),c=new at(i,a);"production"!==process.env.NODE_ENV&&g(a);var u=new WeakMap,l=function(e){var n=Me(),r=o.useContext?o.useContext(Ue):void 0,s=u.get(n.styleSheet);if(void 0===s&&(s=n.styleSheet.allocateGSInstance(a),u.set(n.styleSheet,s)),"production"!==process.env.NODE_ENV&&o.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return"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."),("undefined"==typeof window||!n.styleSheet.server)&&function(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,m,o,s);else{var i=t(t({},n),{theme:b(n,r,l.defaultProps)});c.renderStyles(e,i,o,s)}}(s,e,n.styleSheet,r,n.stylis),h||"function"!=typeof o.useLayoutEffect||o.useLayoutEffect(function(){return function(){c.removeStyles(s,n.styleSheet)}},[s,n.styleSheet]),h){var p=a+s,d="undefined"==typeof window?n.styleSheet.getTag().getGroup(pe(p)):"";if(d){var f=A(T(d)>>>0),y="sc-global-".concat(a,"-").concat(s,"-").concat(f);return o.createElement("style",{key:y,"data-styled-global":a,precedence:"styled-components",href:y,children:d})}}return null};return o.memo(l)}function ut(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];"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.");var r=Q(ot.apply(void 0,e([t],n,!1))),s=R(r);return new Fe(s,r)}function lt(e){var n=o.forwardRef(function(n,r){var s=b(n,o.useContext?o.useContext(Ue):void 0,e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(x(e),'"')),o.createElement(e,t(t({},n),{theme:s,ref:r}))});return n.displayName="WithTheme(".concat(x(e),")"),J(n,e)}var pt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ge(),o=Q([n&&'nonce="'.concat(n,'"'),"".concat(a,'="true"'),"".concat(u,'="').concat(l,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw se(2);return e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)throw se(2);var r=e.instance.toString();if(!r)return[];var s=((n={})[a]="",n[u]=l,n.dangerouslySetInnerHTML={__html:r},n),i=ge();return i&&(s.nonce=i),[o.createElement("style",t({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Pe({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw se(2);return o.createElement(Ve,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw se(3)},e}(),dt={StyleSheet:Pe,mainSheet:Oe};"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");var ht="__sc-".concat(a,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[ht]||(window[ht]=0),1===window[ht]&&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[ht]+=1);export{pt as ServerStyleSheet,je as StyleSheetConsumer,xe as StyleSheetContext,Ve as StyleSheetManager,Je as ThemeConsumer,Ue as ThemeContext,Ze as ThemeProvider,dt as __PRIVATE__,ct as createGlobalStyle,ot as css,it as default,Z as isStyledComponent,ut as keyframes,it as styled,Xe as useTheme,l as version,lt as withTheme};
2
2
  //# sourceMappingURL=styled-components.browser.esm.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@emotion/is-prop-valid"),n=require("react"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var a=/*#__PURE__*/s(t),c=/*#__PURE__*/s(n),u=/*#__PURE__*/i(r),l=/*#__PURE__*/s(o),d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",p="active",f="data-styled-version",h="6.3.0",m="/*!sc*/\n",y="undefined"!=typeof window&&"undefined"!=typeof document,v=void 0===c.default.createContext,g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),S={},w=/invalid hook call/i,_=new Set,b=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",o="The component ".concat(t).concat(r," has been created dynamically.\n")+"You 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",s=console.error;try{var i=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];w.test(t)?(i=!1,_.delete(o)):s.apply(void 0,e.__spreadArray([t],n,!1))},"function"==typeof c.default.useState&&c.default.useState(null),i&&!_.has(o)&&(console.warn(o),_.add(o))}catch(e){w.test(e.message)&&_.delete(o)}finally{console.error=s}}},E=Object.freeze([]),N=Object.freeze({});function C(e,t,n){return void 0===n&&(n=N),e.theme!==n.theme&&e.theme||t||n.theme}var P=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),A=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I=/(^-|-$)/g;function x(e){return e.replace(A,"-").replace(I,"")}var O=/(a)(d)/gi,T=function(e){return String.fromCharCode(e+(e>25?39:97))};function D(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=T(t%52)+n;return(T(t%52)+n).replace(O,"$1-$2")}var R,j=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},k=function(e){return j(5381,e)};function M(e){return D(k(e)>>>0)}function V(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function F(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var L="function"==typeof Symbol&&Symbol.for,z=L?Symbol.for("react.memo"):60115,B=L?Symbol.for("react.forward_ref"):60112,G={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$={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},Y=((R={})[B]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R[z]=q,R);function W(e){return("type"in(t=e)&&t.type.$$typeof)===z?q:"$$typeof"in e?Y[e.$$typeof]:G;var t}var H=Object.defineProperty,U=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,X=Object.getOwnPropertyDescriptor,Z=Object.getPrototypeOf,K=Object.prototype;function Q(e,t,n){if("string"!=typeof t){if(K){var r=Z(t);r&&r!==K&&Q(e,r,n)}var o=U(t);J&&(o=o.concat(J(t)));for(var s=W(e),i=W(t),a=0;a<o.length;++a){var c=o[a];if(!(c in $||n&&n[c]||i&&c in i||s&&c in s)){var u=X(t,c);try{H(e,c,u)}catch(e){}}}}return e}function ee(e){return"function"==typeof e}function te(e){return"object"==typeof e&&"styledComponentId"in e}function ne(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function re(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function oe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function se(e,t,n){if(void 0===n&&(n=!1),!n&&!oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=se(e[r],t[r]);else if(oe(t))for(var r in t)e[r]=se(e[r],t[r]);return e}function ie(e,t){Object.defineProperty(e,"toString",{value:t})}var ae="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 ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function ue(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];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#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ce.apply(void 0,e.__spreadArray([ae[t]],n,!1)).trim())}var le=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw ue(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(m);return t},e}(),de=1<<30,pe=new Map,fe=new Map,he=1,me=function(e){if(pe.has(e))return pe.get(e);for(;fe.has(he);)he++;var t=he++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>de))throw ue(16,"".concat(t));return pe.set(e,t),fe.set(t,e),t},ye=function(e,t){he=t+1,pe.set(e,t),fe.set(t,e)},ve="style[".concat(d,"][").concat(f,'="').concat(h,'"]'),ge=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},we=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(m),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(ge);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(ye(l,u),Se(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},_e=function(e){for(var t=document.querySelectorAll(ve),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==p&&(we(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function be(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ee=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(d,p),r.setAttribute(f,h);var i=be();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Ne=function(){function e(e){this.element=Ee(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw ue(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ce=function(){function e(e){this.element=Ee(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Pe=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ae=y,Ie={isServer:!y,useCSSOMInjection:!g},xe=function(){function t(t,n,r){void 0===t&&(t=N),void 0===n&&(n={});var o=this;this.options=e.__assign(e.__assign({},Ie),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&y&&Ae&&(Ae=!1,_e(this)),ie(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return fe.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var a="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(m)},s=0;s<n;s++)o(s);return r}(o)})}return t.registerId=function(e){return me(e)},t.prototype.rehydrate=function(){!this.server&&y&&_e(this)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Pe(n):t?new Ne(n):new Ce(n)}(this.options),new le(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(me(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(me(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(me(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),Oe=/&/g,Te=/^\s*\/\/.*$/gm;function De(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=De(e.children,t)),e})}function Re(e){var t,n,r,o=void 0===e?N:e,s=o.options,i=void 0===s?N:s,a=o.plugins,c=void 0===a?E:a,l=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=c.slice();d.push(function(e){e.type===u.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,n).replace(r,l))}),i.prefix&&d.push(u.prefixer),d.push(u.stringify);var p=function(e,o,s,a){void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(Te,""),l=u.compile(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);i.namespace&&(l=De(l,i.namespace));var p=[];return u.serialize(l,u.middleware(d.concat(u.rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||ue(15),j(e,t.name)},5381).toString():"",p}var je=new xe,ke=Re(),Me={shouldForwardProp:void 0,styleSheet:je,stylis:ke},Ve=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Me)}}:c.default.createContext(Me),Fe=Ve.Consumer,Le=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0);function ze(){return!v&&c.default.useContext?c.default.useContext(Ve):Me}function Be(e){if(v||!c.default.useMemo)return e.children;var t=ze().styleSheet,n=c.default.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=c.default.useMemo(function(){return Re({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=c.default.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return c.default.createElement(Ve.Provider,{value:o},c.default.createElement(Le.Provider,{value:r},e.children))}var Ge=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ke);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ie(this,function(){throw ue(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=ke),this.name+e.hash},e}();function $e(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in l.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var qe=function(e){return e>="A"&&e<="Z"};function Ye(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;qe(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var We=function(e){return null==e||!1===e||""===e},He=function(t){var n=[];for(var r in t){var o=t[r];t.hasOwnProperty(r)&&!We(o)&&(Array.isArray(o)&&o.isCss||ee(o)?n.push("".concat(Ye(r),":"),o,";"):oe(o)?n.push.apply(n,e.__spreadArray(e.__spreadArray(["".concat(r," {")],He(o),!1),["}"],!1)):n.push("".concat(Ye(r),": ").concat($e(r,o),";")))}return n};function Ue(e,t,n,r){if(We(e))return[];if(te(e))return[".".concat(e.styledComponentId)];if(ee(e)){if(!ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Ge||oe(o)||null===o||console.error("".concat(V(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.")),Ue(o,t,n,r)}var s;return e instanceof Ge?n?(e.inject(n,r),[e.getName(r)]):[e]:oe(e)?He(e):Array.isArray(e)?Array.prototype.concat.apply(E,e.map(function(e){return Ue(e,t,n,r)})):[e.toString()]}function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ee(n)&&!te(n))return!1}return!0}var Xe=k(h),Ze=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Je(e),this.componentId=t,this.baseHash=j(Xe,t),this.baseStyle=n,xe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ne(r,this.staticRulesId);else{var o=re(Ue(this.rules,e,t,n)),s=D(j(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=ne(r,s),this.staticRulesId=s}else{for(var a=j(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(a=j(a,l));else if(l){var d=re(Ue(l,e,t,n));a=j(a,d+u),c+=d}}if(c){var p=D(a>>>0);if(!t.hasNameForId(this.componentId,p)){var f=n(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}r=ne(r,p)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(me(this.componentId)):""}},e}(),Ke=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0),Qe=Ke.Consumer,et={},tt=new Set;function nt(t,r,o){var s=te(t),i=t,u=!F(t),l=r.attrs,d=void 0===l?E:l,p=r.componentId,f=void 0===p?function(e,t){var n="string"!=typeof e?"sc":x(e);et[n]=(et[n]||0)+1;var r="".concat(n,"-").concat(M(h+n+et[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):p,m=r.displayName,y=void 0===m?function(e){return F(e)?"styled.".concat(e):"Styled(".concat(V(e),")")}(t):m,g=r.displayName&&r.componentId?"".concat(x(r.displayName),"-").concat(r.componentId):r.componentId||f,S=s&&i.attrs?i.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(s&&i.shouldForwardProp){var _=i.shouldForwardProp;if(r.shouldForwardProp){var A=r.shouldForwardProp;w=function(e,t){return _(e,t)&&A(e,t)}}else w=_}var I=new Ze(o,g,s?i.componentStyle:void 0);function O(t,r){return function(t,r,o){var s=t.attrs,i=t.componentStyle,u=t.defaultProps,l=t.foldedComponentIds,d=t.styledComponentId,p=t.target,f=c.default.useContext?c.default.useContext(Ke):void 0,h=ze(),m=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(d);var y=C(r,f,u)||N,g=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),i=0;i<t.length;i+=1){var a=ee(o=t[i])?o(s):o;for(var c in a)"className"===c?s.className=ne(s.className,a[c]):"style"===c?s.style=e.__assign(e.__assign({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=ne(s.className,n.className)),s}(s,r,y),S=g.as||p,w={};for(var _ in g)void 0===g[_]||"$"===_[0]||"as"===_||"theme"===_&&g.theme===y||("forwardedAs"===_?w.as=g.forwardedAs:m&&!m(_,S)||(w[_]=g[_],m||"development"!==process.env.NODE_ENV||a.default(_)||tt.has(_)||!P.has(S)||(tt.add(_),console.warn('styled-components: it looks like an unknown prop "'.concat(_,'" 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.)')))));var b=function(e,t){var n=ze(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(r.className),r}(i,g),E=b.className,A=b.css;"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(E);var I=ne(l,d);E&&(I+=" "+E),g.className&&(I+=" "+g.className),w[F(S)&&!P.has(S)?"class":"className"]=I,o&&(w.ref=o);var x=n.createElement(S,w);return v&&A?c.default.createElement(c.default.Fragment,null,c.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(d,"-").concat(E),children:A}),x):x}(T,t,r)}O.displayName=y;var T=c.default.forwardRef(O);return T.attrs=S,T.componentStyle=I,T.displayName=y,T.shouldForwardProp=w,T.foldedComponentIds=s?ne(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=g,T.target=s?i.target:t,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)se(e,o[r],!0);return e}({},i.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(b(y,g),T.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider 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 />"),r=!0,n={}}}}(y,g)),ie(T,function(){return".".concat(T.styledComponentId)}),u&&Q(T,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function rt(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ot=function(e){return Object.assign(e,{isCss:!0})};function st(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(ee(t)||oe(t))return ot(Ue(rt(E,e.__spreadArray([t],n,!0))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Ue(o):ot(Ue(rt(o,n)))}function it(t,n,r){if(void 0===r&&(r=N),!n)throw ue(1,n);var o=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return t(n,r,st.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return it(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return it(t,n,e.__assign(e.__assign({},r),o))},o}var at=function(e){return it(nt,e)},ct=at;P.forEach(function(e){ct[e]=at(e)});var ut=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Je(e),xe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(re(Ue(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&xe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),lt=/^\s*<\/[a-z]/i,dt=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=be(),r=re([n&&'nonce="'.concat(n,'"'),"".concat(d,'="true"'),"".concat(f,'="').concat(h,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw ue(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw ue(2);var r=t.instance.toString();if(!r)return[];var o=((n={})[d]="",n[f]=h,n.dangerouslySetInnerHTML={__html:r},n),s=be();return s&&(o.nonce=s),[c.default.createElement("style",e.__assign({},o,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new xe({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw ue(2);return c.default.createElement(Be,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){if(y)throw ue(3);if(this.sealed)throw ue(2);this.seal();var t=require("stream").Transform,n=this.instance,r=this._emitSheetCSS,o=new t({transform:function(e,t,o){var s=e.toString(),i=r();if(n.clearTag(),lt.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),u=s.slice(a);this.push(c+i+u)}else this.push(i+s);o()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){o.emit("error",e)}),s.pipe(o)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(o);throw new Error("Unsupported stream type")},t}(),pt={StyleSheet:xe,mainSheet:je};"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");var ft="__sc-".concat(d,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[ft]||(window[ft]=0),1===window[ft]&&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[ft]+=1),exports.ServerStyleSheet=dt,exports.StyleSheetConsumer=Fe,exports.StyleSheetContext=Ve,exports.StyleSheetManager=Be,exports.ThemeConsumer=Qe,exports.ThemeContext=Ke,exports.ThemeProvider=function(t){if(v||!c.default.useContext||!c.default.useMemo)return t.children;var n=c.default.useContext(Ke),r=c.default.useMemo(function(){return function(t,n){if(!t)throw ue(14);if(ee(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw ue(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw ue(8);return n?e.__assign(e.__assign({},n),t):t}(t.theme,n)},[t.theme,n]);return t.children?c.default.createElement(Ke.Provider,{value:r},t.children):null},exports.__PRIVATE__=pt,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=st.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(M(JSON.stringify(o))),i=new ut(o,s);"production"!==process.env.NODE_ENV&&b(s);var a=new WeakMap,u=function(t){var n=ze(),r=c.default.useContext?c.default.useContext(Ke):void 0,l=a.get(n.styleSheet);if(void 0===l&&(l=n.styleSheet.allocateGSInstance(s),a.set(n.styleSheet,l)),"production"!==process.env.NODE_ENV&&c.default.Children.count(t.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.some(function(e){return"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."),("undefined"==typeof window||!n.styleSheet.server)&&function(t,n,r,o,s){if(i.isStatic)i.renderStyles(t,S,r,s);else{var a=e.__assign(e.__assign({},n),{theme:C(n,o,u.defaultProps)});i.renderStyles(t,a,r,s)}}(l,t,n.styleSheet,r,n.stylis),v||"function"!=typeof c.default.useLayoutEffect||c.default.useLayoutEffect(function(){return function(){i.removeStyles(l,n.styleSheet)}},[l,n.styleSheet]),v){var d=s+l,p="undefined"==typeof window?n.styleSheet.getTag().getGroup(me(d)):"";if(p){var f=D(k(p)>>>0),h="sc-global-".concat(s,"-").concat(l,"-").concat(f);return c.default.createElement("style",{key:h,"data-styled-global":s,precedence:"styled-components",href:h,children:p})}}return null};return c.default.memo(u)},exports.css=st,exports.default=ct,exports.isStyledComponent=te,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"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.");var o=re(st.apply(void 0,e.__spreadArray([t],n,!1))),s=M(o);return new Ge(s,o)},exports.styled=ct,exports.useTheme=function(){var e=!v&&c.default.useContext?c.default.useContext(Ke):void 0;if(!e)throw ue(18);return e},exports.version=h,exports.withTheme=function(t){var n=c.default.forwardRef(function(n,r){var o=C(n,c.default.useContext?c.default.useContext(Ke):void 0,t.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 "'.concat(V(t),'"')),c.default.createElement(t,e.__assign(e.__assign({},n),{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(V(t),")"),Q(n,t)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("@emotion/is-prop-valid"),n=require("react"),r=require("stylis"),o=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var a=/*#__PURE__*/s(t),c=/*#__PURE__*/s(n),u=/*#__PURE__*/i(r),l=/*#__PURE__*/s(o),d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",p="active",f="data-styled-version",h="6.3.1",m="/*!sc*/\n",y="undefined"!=typeof window&&"undefined"!=typeof document,v=void 0===c.default.createContext,g=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),S={},w=/invalid hook call/i,_=new Set,b=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",o="The component ".concat(t).concat(r," has been created dynamically.\n")+"You 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",s=console.error;try{var i=!0;console.error=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];w.test(t)?(i=!1,_.delete(o)):s.apply(void 0,e.__spreadArray([t],n,!1))},"function"==typeof c.default.useState&&c.default.useState(null),i&&!_.has(o)&&(console.warn(o),_.add(o))}catch(e){w.test(e.message)&&_.delete(o)}finally{console.error=s}}},E=Object.freeze([]),N=Object.freeze({});function C(e,t,n){return void 0===n&&(n=N),e.theme!==n.theme&&e.theme||t||n.theme}var P=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),A=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I=/(^-|-$)/g;function x(e){return e.replace(A,"-").replace(I,"")}var O=/(a)(d)/gi,T=function(e){return String.fromCharCode(e+(e>25?39:97))};function D(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=T(t%52)+n;return(T(t%52)+n).replace(O,"$1-$2")}var R,j=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},k=function(e){return j(5381,e)};function M(e){return D(k(e)>>>0)}function V(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function F(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var L="function"==typeof Symbol&&Symbol.for,z=L?Symbol.for("react.memo"):60115,B=L?Symbol.for("react.forward_ref"):60112,G={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},$={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},Y=((R={})[B]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},R[z]=q,R);function W(e){return("type"in(t=e)&&t.type.$$typeof)===z?q:"$$typeof"in e?Y[e.$$typeof]:G;var t}var H=Object.defineProperty,U=Object.getOwnPropertyNames,J=Object.getOwnPropertySymbols,X=Object.getOwnPropertyDescriptor,Z=Object.getPrototypeOf,K=Object.prototype;function Q(e,t,n){if("string"!=typeof t){if(K){var r=Z(t);r&&r!==K&&Q(e,r,n)}var o=U(t);J&&(o=o.concat(J(t)));for(var s=W(e),i=W(t),a=0;a<o.length;++a){var c=o[a];if(!(c in $||n&&n[c]||i&&c in i||s&&c in s)){var u=X(t,c);try{H(e,c,u)}catch(e){}}}}return e}function ee(e){return"function"==typeof e}function te(e){return"object"==typeof e&&"styledComponentId"in e}function ne(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function re(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function oe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function se(e,t,n){if(void 0===n&&(n=!1),!n&&!oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=se(e[r],t[r]);else if(oe(t))for(var r in t)e[r]=se(e[r],t[r]);return e}function ie(e,t){Object.defineProperty(e,"toString",{value:t})}var ae="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 ce(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function ue(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];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#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ce.apply(void 0,e.__spreadArray([ae[t]],n,!1)).trim())}var le=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw ue(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+="".concat(this.tag.getRule(s)).concat(m);return t},e}(),de=1<<30,pe=new Map,fe=new Map,he=1,me=function(e){if(pe.has(e))return pe.get(e);for(;fe.has(he);)he++;var t=he++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>de))throw ue(16,"".concat(t));return pe.set(e,t),fe.set(t,e),t},ye=function(e,t){he=t+1,pe.set(e,t),fe.set(t,e)},ve="style[".concat(d,"][").concat(f,'="').concat(h,'"]'),ge=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Se=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},we=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(m),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(ge);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(ye(l,u),Se(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},_e=function(e){for(var t=document.querySelectorAll(ve),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==p&&(we(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function be(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Ee=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(d,p),r.setAttribute(f,h);var i=be();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},Ne=function(){function e(e){this.element=Ee(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw ue(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ce=function(){function e(e){this.element=Ee(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Pe=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ae=y,Ie={isServer:!y,useCSSOMInjection:!g},xe=function(){function t(t,n,r){void 0===t&&(t=N),void 0===n&&(n={});var o=this;this.options=e.__assign(e.__assign({},Ie),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&y&&Ae&&(Ae=!1,_e(this)),ie(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return fe.get(e)}(n);if(void 0===o)return"continue";var s=e.names.get(o),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var a="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(m)},s=0;s<n;s++)o(s);return r}(o)})}return t.registerId=function(e){return me(e)},t.prototype.rehydrate=function(){!this.server&&y&&_e(this)},t.prototype.reconstructWithOptions=function(n,r){return void 0===r&&(r=!0),new t(e.__assign(e.__assign({},this.options),n),this.gs,r&&this.names||void 0)},t.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Pe(n):t?new Ne(n):new Ce(n)}(this.options),new le(e)));var e},t.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.prototype.registerName=function(e,t){if(me(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(me(e),n)},t.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.prototype.clearRules=function(e){this.getTag().clearGroup(me(e)),this.clearNames(e)},t.prototype.clearTag=function(){this.tag=void 0},t}(),Oe=/&/g,Te=/^\s*\/\/.*$/gm;function De(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=De(e.children,t)),e})}function Re(e){var t,n,r,o=void 0===e?N:e,s=o.options,i=void 0===s?N:s,a=o.plugins,c=void 0===a?E:a,l=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},d=c.slice();d.push(function(e){e.type===u.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,n).replace(r,l))}),i.prefix&&d.push(u.prefixer),d.push(u.stringify);var p=function(e,o,s,a){void 0===o&&(o=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(Te,""),l=u.compile(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);i.namespace&&(l=De(l,i.namespace));var p=[];return u.serialize(l,u.middleware(d.concat(u.rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||ue(15),j(e,t.name)},5381).toString():"",p}var je=new xe,ke=Re(),Me={shouldForwardProp:void 0,styleSheet:je,stylis:ke},Ve=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Me)}}:c.default.createContext(Me),Fe=Ve.Consumer,Le=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0);function ze(){return!v&&c.default.useContext?c.default.useContext(Ve):Me}function Be(e){if(v||!c.default.useMemo)return e.children;var t=ze().styleSheet,n=c.default.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=c.default.useMemo(function(){return Re({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),o=c.default.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return c.default.createElement(Ve.Provider,{value:o},c.default.createElement(Le.Provider,{value:r},e.children))}var Ge=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ke);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ie(this,function(){throw ue(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=ke),this.name+e.hash},e}();function $e(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in l.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var qe=function(e){return e>="A"&&e<="Z"};function Ye(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;qe(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var We=function(e){return null==e||!1===e||""===e},He=function(t){var n=[];for(var r in t){var o=t[r];t.hasOwnProperty(r)&&!We(o)&&(Array.isArray(o)&&o.isCss||ee(o)?n.push("".concat(Ye(r),":"),o,";"):oe(o)?n.push.apply(n,e.__spreadArray(e.__spreadArray(["".concat(r," {")],He(o),!1),["}"],!1)):n.push("".concat(Ye(r),": ").concat($e(r,o),";")))}return n};function Ue(e,t,n,r){if(We(e))return[];if(te(e))return[".".concat(e.styledComponentId)];if(ee(e)){if(!ee(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof Ge||oe(o)||null===o||console.error("".concat(V(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.")),Ue(o,t,n,r)}var s;return e instanceof Ge?n?(e.inject(n,r),[e.getName(r)]):[e]:oe(e)?He(e):Array.isArray(e)?Array.prototype.concat.apply(E,e.map(function(e){return Ue(e,t,n,r)})):[e.toString()]}function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ee(n)&&!te(n))return!1}return!0}var Xe=k(h),Ze=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Je(e),this.componentId=t,this.baseHash=j(Xe,t),this.baseStyle=n,xe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=ne(r,this.staticRulesId);else{var o=re(Ue(this.rules,e,t,n)),s=D(j(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}r=ne(r,s),this.staticRulesId=s}else{for(var a=j(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(a=j(a,l));else if(l){var d=re(Ue(l,e,t,n));a=j(a,d+u),c+=d}}if(c){var p=D(a>>>0);if(!t.hasNameForId(this.componentId,p)){var f=n(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,f)}r=ne(r,p)}}return{className:r,css:"undefined"==typeof window?t.getTag().getGroup(me(this.componentId)):""}},e}(),Ke=v?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:c.default.createContext(void 0),Qe=Ke.Consumer,et={},tt=new Set;function nt(t,r,o){var s=te(t),i=t,u=!F(t),l=r.attrs,d=void 0===l?E:l,p=r.componentId,f=void 0===p?function(e,t){var n="string"!=typeof e?"sc":x(e);et[n]=(et[n]||0)+1;var r="".concat(n,"-").concat(M(h+n+et[n]));return t?"".concat(t,"-").concat(r):r}(r.displayName,r.parentComponentId):p,m=r.displayName,y=void 0===m?function(e){return F(e)?"styled.".concat(e):"Styled(".concat(V(e),")")}(t):m,g=r.displayName&&r.componentId?"".concat(x(r.displayName),"-").concat(r.componentId):r.componentId||f,S=s&&i.attrs?i.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(s&&i.shouldForwardProp){var _=i.shouldForwardProp;if(r.shouldForwardProp){var A=r.shouldForwardProp;w=function(e,t){return _(e,t)&&A(e,t)}}else w=_}var I=new Ze(o,g,s?i.componentStyle:void 0);function O(t,r){return function(t,r,o){var s=t.attrs,i=t.componentStyle,u=t.defaultProps,l=t.foldedComponentIds,d=t.styledComponentId,p=t.target,f=c.default.useContext?c.default.useContext(Ke):void 0,h=ze(),m=t.shouldForwardProp||h.shouldForwardProp;"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(d);var y=C(r,f,u)||N,g=function(t,n,r){for(var o,s=e.__assign(e.__assign({},n),{className:void 0,theme:r}),i=0;i<t.length;i+=1){var a=ee(o=t[i])?o(s):o;for(var c in a)"className"===c?s.className=ne(s.className,a[c]):"style"===c?s.style=e.__assign(e.__assign({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=ne(s.className,n.className)),s}(s,r,y),S=g.as||p,w={};for(var _ in g)void 0===g[_]||"$"===_[0]||"as"===_||"theme"===_&&g.theme===y||("forwardedAs"===_?w.as=g.forwardedAs:m&&!m(_,S)||(w[_]=g[_],m||"development"!==process.env.NODE_ENV||a.default(_)||tt.has(_)||!P.has(S)||(tt.add(_),console.warn('styled-components: it looks like an unknown prop "'.concat(_,'" 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.)')))));var b=function(e,t){var n=ze(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&c.default.useDebugValue&&c.default.useDebugValue(r.className),r}(i,g),E=b.className,A=b.css;"production"!==process.env.NODE_ENV&&t.warnTooManyClasses&&t.warnTooManyClasses(E);var I=ne(l,d);E&&(I+=" "+E),g.className&&(I+=" "+g.className),w[F(S)&&!P.has(S)?"class":"className"]=I,o&&(w.ref=o);var x=n.createElement(S,w);return v&&A?c.default.createElement(c.default.Fragment,null,c.default.createElement("style",{precedence:"styled-components",href:"sc-".concat(d,"-").concat(E),children:A}),x):x}(T,t,r)}O.displayName=y;var T=c.default.forwardRef(O);return T.attrs=S,T.componentStyle=I,T.displayName=y,T.shouldForwardProp=w,T.foldedComponentIds=s?ne(i.foldedComponentIds,i.styledComponentId):"",T.styledComponentId=g,T.target=s?i.target:t,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)se(e,o[r],!0);return e}({},i.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(b(y,g),T.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider 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 />"),r=!0,n={}}}}(y,g)),ie(T,function(){return".".concat(T.styledComponentId)}),u&&Q(T,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function rt(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ot=function(e){return Object.assign(e,{isCss:!0})};function st(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(ee(t)||oe(t))return ot(Ue(rt(E,e.__spreadArray([t],n,!0))));var o=t;return 0===n.length&&1===o.length&&"string"==typeof o[0]?Ue(o):ot(Ue(rt(o,n)))}function it(t,n,r){if(void 0===r&&(r=N),!n)throw ue(1,n);var o=function(o){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return t(n,r,st.apply(void 0,e.__spreadArray([o],s,!1)))};return o.attrs=function(o){return it(t,n,e.__assign(e.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return it(t,n,e.__assign(e.__assign({},r),o))},o}var at=function(e){return it(nt,e)},ct=at;P.forEach(function(e){ct[e]=at(e)});var ut=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Je(e),xe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(re(Ue(this.rules,t,n,r)),""),s=this.componentId+e;n.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&xe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}(),lt=/^\s*<\/[a-z]/i,dt=function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=be(),r=re([n&&'nonce="'.concat(n,'"'),"".concat(d,'="true"'),"".concat(f,'="').concat(h,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(e,"</style>")},this.getStyleTags=function(){if(t.sealed)throw ue(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw ue(2);var r=t.instance.toString();if(!r)return[];var o=((n={})[d]="",n[f]=h,n.dangerouslySetInnerHTML={__html:r},n),s=be();return s&&(o.nonce=s),[c.default.createElement("style",e.__assign({},o,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new xe({isServer:!0}),this.sealed=!1}return t.prototype.collectStyles=function(e){if(this.sealed)throw ue(2);return c.default.createElement(Be,{sheet:this.instance},e)},t.prototype.interleaveWithNodeStream=function(e){if(y)throw ue(3);if(this.sealed)throw ue(2);this.seal();var t=require("stream").Transform,n=this.instance,r=this._emitSheetCSS,o=new t({transform:function(e,t,o){var s=e.toString(),i=r();if(n.clearTag(),lt.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),u=s.slice(a);this.push(c+i+u)}else this.push(i+s);o()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){o.emit("error",e)}),s.pipe(o)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(o);throw new Error("Unsupported stream type")},t}(),pt={StyleSheet:xe,mainSheet:je};"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");var ft="__sc-".concat(d,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[ft]||(window[ft]=0),1===window[ft]&&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[ft]+=1),exports.ServerStyleSheet=dt,exports.StyleSheetConsumer=Fe,exports.StyleSheetContext=Ve,exports.StyleSheetManager=Be,exports.ThemeConsumer=Qe,exports.ThemeContext=Ke,exports.ThemeProvider=function(t){if(v||!c.default.useContext||!c.default.useMemo)return t.children;var n=c.default.useContext(Ke),r=c.default.useMemo(function(){return function(t,n){if(!t)throw ue(14);if(ee(t)){var r=t(n);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw ue(7);return r}if(Array.isArray(t)||"object"!=typeof t)throw ue(8);return n?e.__assign(e.__assign({},n),t):t}(t.theme,n)},[t.theme,n]);return t.children?c.default.createElement(Ke.Provider,{value:r},t.children):null},exports.__PRIVATE__=pt,exports.createGlobalStyle=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=st.apply(void 0,e.__spreadArray([t],n,!1)),s="sc-global-".concat(M(JSON.stringify(o))),i=new ut(o,s);"production"!==process.env.NODE_ENV&&b(s);var a=new WeakMap,u=function(t){var n=ze(),r=c.default.useContext?c.default.useContext(Ke):void 0,l=a.get(n.styleSheet);if(void 0===l&&(l=n.styleSheet.allocateGSInstance(s),a.set(n.styleSheet,l)),"production"!==process.env.NODE_ENV&&c.default.Children.count(t.children)&&console.warn("The global style component ".concat(s," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&o.some(function(e){return"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."),("undefined"==typeof window||!n.styleSheet.server)&&function(t,n,r,o,s){if(i.isStatic)i.renderStyles(t,S,r,s);else{var a=e.__assign(e.__assign({},n),{theme:C(n,o,u.defaultProps)});i.renderStyles(t,a,r,s)}}(l,t,n.styleSheet,r,n.stylis),v||"function"!=typeof c.default.useLayoutEffect||c.default.useLayoutEffect(function(){return function(){i.removeStyles(l,n.styleSheet)}},[l,n.styleSheet]),v){var d=s+l,p="undefined"==typeof window?n.styleSheet.getTag().getGroup(me(d)):"";if(p){var f=D(k(p)>>>0),h="sc-global-".concat(s,"-").concat(l,"-").concat(f);return c.default.createElement("style",{key:h,"data-styled-global":s,precedence:"styled-components",href:h,children:p})}}return null};return c.default.memo(u)},exports.css=st,exports.default=ct,exports.isStyledComponent=te,exports.keyframes=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];"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.");var o=re(st.apply(void 0,e.__spreadArray([t],n,!1))),s=M(o);return new Ge(s,o)},exports.styled=ct,exports.useTheme=function(){var e=!v&&c.default.useContext?c.default.useContext(Ke):void 0;if(!e)throw ue(18);return e},exports.version=h,exports.withTheme=function(t){var n=c.default.forwardRef(function(n,r){var o=C(n,c.default.useContext?c.default.useContext(Ke):void 0,t.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 "'.concat(V(t),'"')),c.default.createElement(t,e.__assign(e.__assign({},n),{theme:o,ref:r}))});return n.displayName="WithTheme(".concat(V(t),")"),Q(n,t)};
2
2
  //# sourceMappingURL=styled-components.cjs.js.map
@@ -1,2 +1,2 @@
1
- import{__spreadArray as e,__assign as t}from"tslib";import n from"@emotion/is-prop-valid";import o,{createElement as r}from"react";import*as s from"stylis";import i from"@emotion/unitless";var a="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",c="active",u="data-styled-version",l="6.3.0",p="/*!sc*/\n",d="undefined"!=typeof window&&"undefined"!=typeof document,h=void 0===o.createContext,f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),m={},y=/invalid hook call/i,v=new Set,g=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You 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",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];y.test(t)?(a=!1,v.delete(s)):i.apply(void 0,e([t],n,!1))},"function"==typeof o.useState&&o.useState(null),a&&!v.has(s)&&(console.warn(s),v.add(s))}catch(e){y.test(e.message)&&v.delete(s)}finally{console.error=i}}},S=Object.freeze([]),w=Object.freeze({});function b(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme}var E=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),N=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,C=/(^-|-$)/g;function P(e){return e.replace(N,"-").replace(C,"")}var _=/(a)(d)/gi,I=function(e){return String.fromCharCode(e+(e>25?39:97))};function A(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=I(t%52)+n;return(I(t%52)+n).replace(_,"$1-$2")}var O,D=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},T=function(e){return D(5381,e)};function R(e){return A(T(e)>>>0)}function x(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function j(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var k="function"==typeof Symbol&&Symbol.for,M=k?Symbol.for("react.memo"):60115,V=k?Symbol.for("react.forward_ref"):60112,F={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z=((O={})[V]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},O[M]=B,O);function G(e){return("type"in(t=e)&&t.type.$$typeof)===M?B:"$$typeof"in e?z[e.$$typeof]:F;var t}var $=Object.defineProperty,Y=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,U=Object.prototype;function J(e,t,n){if("string"!=typeof t){if(U){var o=H(t);o&&o!==U&&J(e,o,n)}var r=Y(t);W&&(r=r.concat(W(t)));for(var s=G(e),i=G(t),a=0;a<r.length;++a){var c=r[a];if(!(c in L||n&&n[c]||i&&c in i||s&&c in s)){var u=q(t,c);try{$(e,c,u)}catch(e){}}}}return e}function X(e){return"function"==typeof e}function Z(e){return"object"==typeof e&&"styledComponentId"in e}function K(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Q(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ee(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function te(e,t,n){if(void 0===n&&(n=!1),!n&&!ee(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=te(e[o],t[o]);else if(ee(t))for(var o in t)e[o]=te(e[o],t[o]);return e}function ne(e,t){Object.defineProperty(e,"toString",{value:t})}var oe="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 re(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function se(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];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#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(re.apply(void 0,e([oe[t]],n,!1)).trim())}var ie=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw se(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(p);return t},e}(),ae=1<<30,ce=new Map,ue=new Map,le=1,pe=function(e){if(ce.has(e))return ce.get(e);for(;ue.has(le);)le++;var t=le++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>ae))throw se(16,"".concat(t));return ce.set(e,t),ue.set(t,e),t},de=function(e,t){le=t+1,ce.set(e,t),ue.set(t,e)},he="style[".concat(a,"][").concat(u,'="').concat(l,'"]'),fe=new RegExp("^".concat(a,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),me=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o)},ye=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(p),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(fe);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(de(l,u),me(e,l,c[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},ve=function(e){for(var t=document.querySelectorAll(he),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(a)!==c&&(ye(e,r),r.parentNode&&r.parentNode.removeChild(r))}};function ge(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Se=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(a,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(a,c),o.setAttribute(u,l);var i=ge();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},we=function(){function e(e){this.element=Se(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw se(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),be=function(){function e(e){this.element=Se(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ee=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ne=d,Ce={isServer:!d,useCSSOMInjection:!f},Pe=function(){function e(e,n,o){void 0===e&&(e=w),void 0===n&&(n={});var r=this;this.options=t(t({},Ce),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&d&&Ne&&(Ne=!1,ve(this)),ne(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ue.get(e)}(n);if(void 0===r)return"continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var c="".concat(a,".g").concat(n,'[id="').concat(r,'"]'),u="";void 0!==s&&s.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),o+="".concat(i).concat(c,'{content:"').concat(u,'"}').concat(p)},s=0;s<n;s++)r(s);return o}(r)})}return e.registerId=function(e){return pe(e)},e.prototype.rehydrate=function(){!this.server&&d&&ve(this)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(t(t({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ee(n):t?new we(n):new be(n)}(this.options),new ie(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(pe(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(pe(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(pe(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),_e=/&/g,Ie=/^\s*\/\/.*$/gm;function Ae(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ae(e.children,t)),e})}function Oe(e){var t,n,o,r=void 0===e?w:e,i=r.options,a=void 0===i?w:i,c=r.plugins,u=void 0===c?S:c,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},p=u.slice();p.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(_e,n).replace(o,l))}),a.prefix&&p.push(s.prefixer),p.push(s.stringify);var d=function(e,r,i,c){void 0===r&&(r=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var u=e.replace(Ie,""),l=s.compile(i||r?"".concat(i," ").concat(r," { ").concat(u," }"):u);a.namespace&&(l=Ae(l,a.namespace));var d=[];return s.serialize(l,s.middleware(p.concat(s.rulesheet(function(e){return d.push(e)})))),d};return d.hash=u.length?u.reduce(function(e,t){return t.name||se(15),D(e,t.name)},5381).toString():"",d}var De=new Pe,Te=Oe(),Re={shouldForwardProp:void 0,styleSheet:De,stylis:Te},xe=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Re)}}:o.createContext(Re),je=xe.Consumer,ke=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0);function Me(){return!h&&o.useContext?o.useContext(xe):Re}function Ve(e){if(h||!o.useMemo)return e.children;var t=Me().styleSheet,n=o.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=o.useMemo(function(){return Oe({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),s=o.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return o.createElement(xe.Provider,{value:s},o.createElement(ke.Provider,{value:r},e.children))}var Fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Te);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ne(this,function(){throw se(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Te),this.name+e.hash},e}();function Le(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in i||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Be=function(e){return e>="A"&&e<="Z"};function ze(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Be(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Ge=function(e){return null==e||!1===e||""===e},$e=function(t){var n=[];for(var o in t){var r=t[o];t.hasOwnProperty(o)&&!Ge(r)&&(Array.isArray(r)&&r.isCss||X(r)?n.push("".concat(ze(o),":"),r,";"):ee(r)?n.push.apply(n,e(e(["".concat(o," {")],$e(r),!1),["}"],!1)):n.push("".concat(ze(o),": ").concat(Le(o,r),";")))}return n};function Ye(e,t,n,o){if(Ge(e))return[];if(Z(e))return[".".concat(e.styledComponentId)];if(X(e)){if(!X(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Fe||ee(r)||null===r||console.error("".concat(x(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.")),Ye(r,t,n,o)}var s;return e instanceof Fe?n?(e.inject(n,o),[e.getName(o)]):[e]:ee(e)?$e(e):Array.isArray(e)?Array.prototype.concat.apply(S,e.map(function(e){return Ye(e,t,n,o)})):[e.toString()]}function We(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(X(n)&&!Z(n))return!1}return!0}var qe=T(l),He=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&We(e),this.componentId=t,this.baseHash=D(qe,t),this.baseStyle=n,Pe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=K(o,this.staticRulesId);else{var r=Q(Ye(this.rules,e,t,n)),s=A(D(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}o=K(o,s),this.staticRulesId=s}else{for(var a=D(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(a=D(a,l));else if(l){var p=Q(Ye(l,e,t,n));a=D(a,p+u),c+=p}}if(c){var d=A(a>>>0);if(!t.hasNameForId(this.componentId,d)){var h=n(c,".".concat(d),void 0,this.componentId);t.insertRules(this.componentId,d,h)}o=K(o,d)}}return{className:o,css:"undefined"==typeof window?t.getTag().getGroup(pe(this.componentId)):""}},e}(),Ue=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0),Je=Ue.Consumer;function Xe(){var e=!h&&o.useContext?o.useContext(Ue):void 0;if(!e)throw se(18);return e}function Ze(e){if(h||!o.useContext||!o.useMemo)return e.children;var n=o.useContext(Ue),r=o.useMemo(function(){return function(e,n){if(!e)throw se(14);if(X(e)){var o=e(n);if("production"!==process.env.NODE_ENV&&(null===o||Array.isArray(o)||"object"!=typeof o))throw se(7);return o}if(Array.isArray(e)||"object"!=typeof e)throw se(8);return n?t(t({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?o.createElement(Ue.Provider,{value:r},e.children):null}var Ke={},Qe=new Set;function et(e,s,i){var a=Z(e),c=e,u=!j(e),p=s.attrs,d=void 0===p?S:p,f=s.componentId,m=void 0===f?function(e,t){var n="string"!=typeof e?"sc":P(e);Ke[n]=(Ke[n]||0)+1;var o="".concat(n,"-").concat(R(l+n+Ke[n]));return t?"".concat(t,"-").concat(o):o}(s.displayName,s.parentComponentId):f,y=s.displayName,v=void 0===y?function(e){return j(e)?"styled.".concat(e):"Styled(".concat(x(e),")")}(e):y,N=s.displayName&&s.componentId?"".concat(P(s.displayName),"-").concat(s.componentId):s.componentId||m,C=a&&c.attrs?c.attrs.concat(d).filter(Boolean):d,_=s.shouldForwardProp;if(a&&c.shouldForwardProp){var I=c.shouldForwardProp;if(s.shouldForwardProp){var A=s.shouldForwardProp;_=function(e,t){return I(e,t)&&A(e,t)}}else _=I}var O=new He(i,N,a?c.componentStyle:void 0);function D(e,s){return function(e,s,i){var a=e.attrs,c=e.componentStyle,u=e.defaultProps,l=e.foldedComponentIds,p=e.styledComponentId,d=e.target,f=o.useContext?o.useContext(Ue):void 0,m=Me(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(p);var v=b(s,f,u)||w,g=function(e,n,o){for(var r,s=t(t({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=X(r=e[i])?r(s):r;for(var c in a)"className"===c?s.className=K(s.className,a[c]):"style"===c?s.style=t(t({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=K(s.className,n.className)),s}(a,s,v),S=g.as||d,N={};for(var C in g)void 0===g[C]||"$"===C[0]||"as"===C||"theme"===C&&g.theme===v||("forwardedAs"===C?N.as=g.forwardedAs:y&&!y(C,S)||(N[C]=g[C],y||"development"!==process.env.NODE_ENV||n(C)||Qe.has(C)||!E.has(S)||(Qe.add(C),console.warn('styled-components: it looks like an unknown prop "'.concat(C,'" 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.)')))));var P=function(e,t){var n=Me(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(r.className),r}(c,g),_=P.className,I=P.css;"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(_);var A=K(l,p);_&&(A+=" "+_),g.className&&(A+=" "+g.className),N[j(S)&&!E.has(S)?"class":"className"]=A,i&&(N.ref=i);var O=r(S,N);return h&&I?o.createElement(o.Fragment,null,o.createElement("style",{precedence:"styled-components",href:"sc-".concat(p,"-").concat(_),children:I}),O):O}(T,e,s)}D.displayName=v;var T=o.forwardRef(D);return T.attrs=C,T.componentStyle=O,T.displayName=v,T.shouldForwardProp=_,T.foldedComponentIds=a?K(c.foldedComponentIds,c.styledComponentId):"",T.styledComponentId=N,T.target=a?c.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)te(e,r[o],!0);return e}({},c.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(g(v,N),T.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider 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={}}}}(v,N)),ne(T,function(){return".".concat(T.styledComponentId)}),u&&J(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function tt(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var nt=function(e){return Object.assign(e,{isCss:!0})};function ot(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(X(t)||ee(t))return nt(Ye(tt(S,e([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Ye(r):nt(Ye(tt(r,n)))}function rt(n,o,r){if(void 0===r&&(r=w),!o)throw se(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,ot.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return rt(n,o,t(t({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return rt(n,o,t(t({},r),e))},s}var st=function(e){return rt(et,e)},it=st;E.forEach(function(e){it[e]=st(e)});var at=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=We(e),Pe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,o){var r=o(Q(Ye(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,o){e>2&&Pe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},e}();function ct(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=ot.apply(void 0,e([n],r,!1)),a="sc-global-".concat(R(JSON.stringify(i))),c=new at(i,a);"production"!==process.env.NODE_ENV&&g(a);var u=new WeakMap,l=function(e){var n=Me(),r=o.useContext?o.useContext(Ue):void 0,s=u.get(n.styleSheet);if(void 0===s&&(s=n.styleSheet.allocateGSInstance(a),u.set(n.styleSheet,s)),"production"!==process.env.NODE_ENV&&o.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return"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."),("undefined"==typeof window||!n.styleSheet.server)&&function(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,m,o,s);else{var i=t(t({},n),{theme:b(n,r,l.defaultProps)});c.renderStyles(e,i,o,s)}}(s,e,n.styleSheet,r,n.stylis),h||"function"!=typeof o.useLayoutEffect||o.useLayoutEffect(function(){return function(){c.removeStyles(s,n.styleSheet)}},[s,n.styleSheet]),h){var p=a+s,d="undefined"==typeof window?n.styleSheet.getTag().getGroup(pe(p)):"";if(d){var f=A(T(d)>>>0),y="sc-global-".concat(a,"-").concat(s,"-").concat(f);return o.createElement("style",{key:y,"data-styled-global":a,precedence:"styled-components",href:y,children:d})}}return null};return o.memo(l)}function ut(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];"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.");var r=Q(ot.apply(void 0,e([t],n,!1))),s=R(r);return new Fe(s,r)}function lt(e){var n=o.forwardRef(function(n,r){var s=b(n,o.useContext?o.useContext(Ue):void 0,e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(x(e),'"')),o.createElement(e,t(t({},n),{theme:s,ref:r}))});return n.displayName="WithTheme(".concat(x(e),")"),J(n,e)}var pt=/^\s*<\/[a-z]/i,dt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ge(),o=Q([n&&'nonce="'.concat(n,'"'),"".concat(a,'="true"'),"".concat(u,'="').concat(l,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw se(2);return e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)throw se(2);var r=e.instance.toString();if(!r)return[];var s=((n={})[a]="",n[u]=l,n.dangerouslySetInnerHTML={__html:r},n),i=ge();return i&&(s.nonce=i),[o.createElement("style",t({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Pe({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw se(2);return o.createElement(Ve,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){if(d)throw se(3);if(this.sealed)throw se(2);this.seal();var t=require("stream").Transform,n=this.instance,o=this._emitSheetCSS,r=new t({transform:function(e,t,r){var s=e.toString(),i=o();if(n.clearTag(),pt.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),u=s.slice(a);this.push(c+i+u)}else this.push(i+s);r()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){r.emit("error",e)}),s.pipe(r)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(r);throw new Error("Unsupported stream type")},e}(),ht={StyleSheet:Pe,mainSheet:De};"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");var ft="__sc-".concat(a,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[ft]||(window[ft]=0),1===window[ft]&&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[ft]+=1);export{dt as ServerStyleSheet,je as StyleSheetConsumer,xe as StyleSheetContext,Ve as StyleSheetManager,Je as ThemeConsumer,Ue as ThemeContext,Ze as ThemeProvider,ht as __PRIVATE__,ct as createGlobalStyle,ot as css,it as default,Z as isStyledComponent,ut as keyframes,it as styled,Xe as useTheme,l as version,lt as withTheme};
1
+ import{__spreadArray as e,__assign as t}from"tslib";import n from"@emotion/is-prop-valid";import o,{createElement as r}from"react";import*as s from"stylis";import i from"@emotion/unitless";var a="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",c="active",u="data-styled-version",l="6.3.1",p="/*!sc*/\n",d="undefined"!=typeof window&&"undefined"!=typeof document,h=void 0===o.createContext,f=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),m={},y=/invalid hook call/i,v=new Set,g=function(t,n){if("production"!==process.env.NODE_ENV){var r=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(r," has been created dynamically.\n")+"You 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",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];y.test(t)?(a=!1,v.delete(s)):i.apply(void 0,e([t],n,!1))},"function"==typeof o.useState&&o.useState(null),a&&!v.has(s)&&(console.warn(s),v.add(s))}catch(e){y.test(e.message)&&v.delete(s)}finally{console.error=i}}},S=Object.freeze([]),w=Object.freeze({});function b(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme}var E=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),N=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,C=/(^-|-$)/g;function P(e){return e.replace(N,"-").replace(C,"")}var _=/(a)(d)/gi,I=function(e){return String.fromCharCode(e+(e>25?39:97))};function A(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=I(t%52)+n;return(I(t%52)+n).replace(_,"$1-$2")}var O,D=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},T=function(e){return D(5381,e)};function R(e){return A(T(e)>>>0)}function x(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function j(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var k="function"==typeof Symbol&&Symbol.for,M=k?Symbol.for("react.memo"):60115,V=k?Symbol.for("react.forward_ref"):60112,F={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},L={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},B={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},z=((O={})[V]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},O[M]=B,O);function G(e){return("type"in(t=e)&&t.type.$$typeof)===M?B:"$$typeof"in e?z[e.$$typeof]:F;var t}var $=Object.defineProperty,Y=Object.getOwnPropertyNames,W=Object.getOwnPropertySymbols,q=Object.getOwnPropertyDescriptor,H=Object.getPrototypeOf,U=Object.prototype;function J(e,t,n){if("string"!=typeof t){if(U){var o=H(t);o&&o!==U&&J(e,o,n)}var r=Y(t);W&&(r=r.concat(W(t)));for(var s=G(e),i=G(t),a=0;a<r.length;++a){var c=r[a];if(!(c in L||n&&n[c]||i&&c in i||s&&c in s)){var u=q(t,c);try{$(e,c,u)}catch(e){}}}}return e}function X(e){return"function"==typeof e}function Z(e){return"object"==typeof e&&"styledComponentId"in e}function K(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Q(e,t){if(0===e.length)return"";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ee(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function te(e,t,n){if(void 0===n&&(n=!1),!n&&!ee(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=te(e[o],t[o]);else if(ee(t))for(var o in t)e[o]=te(e[o],t[o]);return e}function ne(e,t){Object.defineProperty(e,"toString",{value:t})}var oe="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 re(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function se(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];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#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(re.apply(void 0,e([oe[t]],n,!1)).trim())}var ie=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw se(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(p);return t},e}(),ae=1<<30,ce=new Map,ue=new Map,le=1,pe=function(e){if(ce.has(e))return ce.get(e);for(;ue.has(le);)le++;var t=le++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>ae))throw se(16,"".concat(t));return ce.set(e,t),ue.set(t,e),t},de=function(e,t){le=t+1,ce.set(e,t),ue.set(t,e)},he="style[".concat(a,"][").concat(u,'="').concat(l,'"]'),fe=new RegExp("^".concat(a,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),me=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o)},ye=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(p),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(fe);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(de(l,u),me(e,l,c[3]),e.getTag().insertRules(u,r)),r.length=0}else r.push(a)}}},ve=function(e){for(var t=document.querySelectorAll(he),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(a)!==c&&(ye(e,r),r.parentNode&&r.parentNode.removeChild(r))}};function ge(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var Se=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(a,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(a,c),o.setAttribute(u,l);var i=ge();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},we=function(){function e(e){this.element=Se(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw se(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),be=function(){function e(e){this.element=Se(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ee=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ne=d,Ce={isServer:!d,useCSSOMInjection:!f},Pe=function(){function e(e,n,o){void 0===e&&(e=w),void 0===n&&(n={});var r=this;this.options=t(t({},Ce),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&d&&Ne&&(Ne=!1,ve(this)),ne(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ue.get(e)}(n);if(void 0===r)return"continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||!s.size||0===i.length)return"continue";var c="".concat(a,".g").concat(n,'[id="').concat(r,'"]'),u="";void 0!==s&&s.forEach(function(e){e.length>0&&(u+="".concat(e,","))}),o+="".concat(i).concat(c,'{content:"').concat(u,'"}').concat(p)},s=0;s<n;s++)r(s);return o}(r)})}return e.registerId=function(e){return pe(e)},e.prototype.rehydrate=function(){!this.server&&d&&ve(this)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(t(t({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ee(n):t?new we(n):new be(n)}(this.options),new ie(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(pe(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(pe(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(pe(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),_e=/&/g,Ie=/^\s*\/\/.*$/gm;function Ae(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Ae(e.children,t)),e})}function Oe(e){var t,n,o,r=void 0===e?w:e,i=r.options,a=void 0===i?w:i,c=r.plugins,u=void 0===c?S:c,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},p=u.slice();p.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(_e,n).replace(o,l))}),a.prefix&&p.push(s.prefixer),p.push(s.stringify);var d=function(e,r,i,c){void 0===r&&(r=""),void 0===i&&(i=""),void 0===c&&(c="&"),t=c,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var u=e.replace(Ie,""),l=s.compile(i||r?"".concat(i," ").concat(r," { ").concat(u," }"):u);a.namespace&&(l=Ae(l,a.namespace));var d=[];return s.serialize(l,s.middleware(p.concat(s.rulesheet(function(e){return d.push(e)})))),d};return d.hash=u.length?u.reduce(function(e,t){return t.name||se(15),D(e,t.name)},5381).toString():"",d}var De=new Pe,Te=Oe(),Re={shouldForwardProp:void 0,styleSheet:De,stylis:Te},xe=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(Re)}}:o.createContext(Re),je=xe.Consumer,ke=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0);function Me(){return!h&&o.useContext?o.useContext(xe):Re}function Ve(e){if(h||!o.useMemo)return e.children;var t=Me().styleSheet,n=o.useMemo(function(){var n=t;return e.sheet?n=e.sheet:e.target&&(n=n.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(n=n.reconstructWithOptions({useCSSOMInjection:!1})),n},[e.disableCSSOMInjection,e.sheet,e.target,t]),r=o.useMemo(function(){return Oe({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:e.stylisPlugins})},[e.enableVendorPrefixes,e.namespace,e.stylisPlugins]),s=o.useMemo(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:n,stylis:r}},[e.shouldForwardProp,n,r]);return o.createElement(xe.Provider,{value:s},o.createElement(ke.Provider,{value:r},e.children))}var Fe=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Te);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ne(this,function(){throw se(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Te),this.name+e.hash},e}();function Le(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in i||e.startsWith("--")?String(t).trim():"".concat(t,"px")}var Be=function(e){return e>="A"&&e<="Z"};function ze(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Be(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Ge=function(e){return null==e||!1===e||""===e},$e=function(t){var n=[];for(var o in t){var r=t[o];t.hasOwnProperty(o)&&!Ge(r)&&(Array.isArray(r)&&r.isCss||X(r)?n.push("".concat(ze(o),":"),r,";"):ee(r)?n.push.apply(n,e(e(["".concat(o," {")],$e(r),!1),["}"],!1)):n.push("".concat(ze(o),": ").concat(Le(o,r),";")))}return n};function Ye(e,t,n,o){if(Ge(e))return[];if(Z(e))return[".".concat(e.styledComponentId)];if(X(e)){if(!X(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var r=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Fe||ee(r)||null===r||console.error("".concat(x(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.")),Ye(r,t,n,o)}var s;return e instanceof Fe?n?(e.inject(n,o),[e.getName(o)]):[e]:ee(e)?$e(e):Array.isArray(e)?Array.prototype.concat.apply(S,e.map(function(e){return Ye(e,t,n,o)})):[e.toString()]}function We(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(X(n)&&!Z(n))return!1}return!0}var qe=T(l),He=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&We(e),this.componentId=t,this.baseHash=D(qe,t),this.baseStyle=n,Pe.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n).className:"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=K(o,this.staticRulesId);else{var r=Q(Ye(this.rules,e,t,n)),s=A(D(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i)}o=K(o,s),this.staticRulesId=s}else{for(var a=D(this.baseHash,n.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l,"production"!==process.env.NODE_ENV&&(a=D(a,l));else if(l){var p=Q(Ye(l,e,t,n));a=D(a,p+u),c+=p}}if(c){var d=A(a>>>0);if(!t.hasNameForId(this.componentId,d)){var h=n(c,".".concat(d),void 0,this.componentId);t.insertRules(this.componentId,d,h)}o=K(o,d)}}return{className:o,css:"undefined"==typeof window?t.getTag().getGroup(pe(this.componentId)):""}},e}(),Ue=h?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0),Je=Ue.Consumer;function Xe(){var e=!h&&o.useContext?o.useContext(Ue):void 0;if(!e)throw se(18);return e}function Ze(e){if(h||!o.useContext||!o.useMemo)return e.children;var n=o.useContext(Ue),r=o.useMemo(function(){return function(e,n){if(!e)throw se(14);if(X(e)){var o=e(n);if("production"!==process.env.NODE_ENV&&(null===o||Array.isArray(o)||"object"!=typeof o))throw se(7);return o}if(Array.isArray(e)||"object"!=typeof e)throw se(8);return n?t(t({},n),e):e}(e.theme,n)},[e.theme,n]);return e.children?o.createElement(Ue.Provider,{value:r},e.children):null}var Ke={},Qe=new Set;function et(e,s,i){var a=Z(e),c=e,u=!j(e),p=s.attrs,d=void 0===p?S:p,f=s.componentId,m=void 0===f?function(e,t){var n="string"!=typeof e?"sc":P(e);Ke[n]=(Ke[n]||0)+1;var o="".concat(n,"-").concat(R(l+n+Ke[n]));return t?"".concat(t,"-").concat(o):o}(s.displayName,s.parentComponentId):f,y=s.displayName,v=void 0===y?function(e){return j(e)?"styled.".concat(e):"Styled(".concat(x(e),")")}(e):y,N=s.displayName&&s.componentId?"".concat(P(s.displayName),"-").concat(s.componentId):s.componentId||m,C=a&&c.attrs?c.attrs.concat(d).filter(Boolean):d,_=s.shouldForwardProp;if(a&&c.shouldForwardProp){var I=c.shouldForwardProp;if(s.shouldForwardProp){var A=s.shouldForwardProp;_=function(e,t){return I(e,t)&&A(e,t)}}else _=I}var O=new He(i,N,a?c.componentStyle:void 0);function D(e,s){return function(e,s,i){var a=e.attrs,c=e.componentStyle,u=e.defaultProps,l=e.foldedComponentIds,p=e.styledComponentId,d=e.target,f=o.useContext?o.useContext(Ue):void 0,m=Me(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(p);var v=b(s,f,u)||w,g=function(e,n,o){for(var r,s=t(t({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=X(r=e[i])?r(s):r;for(var c in a)"className"===c?s.className=K(s.className,a[c]):"style"===c?s.style=t(t({},s.style),a[c]):s[c]=a[c]}return"className"in n&&"string"==typeof n.className&&(s.className=K(s.className,n.className)),s}(a,s,v),S=g.as||d,N={};for(var C in g)void 0===g[C]||"$"===C[0]||"as"===C||"theme"===C&&g.theme===v||("forwardedAs"===C?N.as=g.forwardedAs:y&&!y(C,S)||(N[C]=g[C],y||"development"!==process.env.NODE_ENV||n(C)||Qe.has(C)||!E.has(S)||(Qe.add(C),console.warn('styled-components: it looks like an unknown prop "'.concat(C,'" 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.)')))));var P=function(e,t){var n=Me(),r=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return"production"!==process.env.NODE_ENV&&o.useDebugValue&&o.useDebugValue(r.className),r}(c,g),_=P.className,I=P.css;"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(_);var A=K(l,p);_&&(A+=" "+_),g.className&&(A+=" "+g.className),N[j(S)&&!E.has(S)?"class":"className"]=A,i&&(N.ref=i);var O=r(S,N);return h&&I?o.createElement(o.Fragment,null,o.createElement("style",{precedence:"styled-components",href:"sc-".concat(p,"-").concat(_),children:I}),O):O}(T,e,s)}D.displayName=v;var T=o.forwardRef(D);return T.attrs=C,T.componentStyle=O,T.displayName=v,T.shouldForwardProp=_,T.foldedComponentIds=a?K(c.foldedComponentIds,c.styledComponentId):"",T.styledComponentId=N,T.target=a?c.target:e,Object.defineProperty(T,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)te(e,r[o],!0);return e}({},c.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(g(v,N),T.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider 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={}}}}(v,N)),ne(T,function(){return".".concat(T.styledComponentId)}),u&&J(T,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),T}function tt(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var nt=function(e){return Object.assign(e,{isCss:!0})};function ot(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(X(t)||ee(t))return nt(Ye(tt(S,e([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Ye(r):nt(Ye(tt(r,n)))}function rt(n,o,r){if(void 0===r&&(r=w),!o)throw se(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,ot.apply(void 0,e([t],s,!1)))};return s.attrs=function(e){return rt(n,o,t(t({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return rt(n,o,t(t({},r),e))},s}var st=function(e){return rt(et,e)},it=st;E.forEach(function(e){it[e]=st(e)});var at=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=We(e),Pe.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,o){var r=o(Q(Ye(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,o){e>2&&Pe.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o)},e}();function ct(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=ot.apply(void 0,e([n],r,!1)),a="sc-global-".concat(R(JSON.stringify(i))),c=new at(i,a);"production"!==process.env.NODE_ENV&&g(a);var u=new WeakMap,l=function(e){var n=Me(),r=o.useContext?o.useContext(Ue):void 0,s=u.get(n.styleSheet);if(void 0===s&&(s=n.styleSheet.allocateGSInstance(a),u.set(n.styleSheet,s)),"production"!==process.env.NODE_ENV&&o.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process.env.NODE_ENV&&i.some(function(e){return"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."),("undefined"==typeof window||!n.styleSheet.server)&&function(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,m,o,s);else{var i=t(t({},n),{theme:b(n,r,l.defaultProps)});c.renderStyles(e,i,o,s)}}(s,e,n.styleSheet,r,n.stylis),h||"function"!=typeof o.useLayoutEffect||o.useLayoutEffect(function(){return function(){c.removeStyles(s,n.styleSheet)}},[s,n.styleSheet]),h){var p=a+s,d="undefined"==typeof window?n.styleSheet.getTag().getGroup(pe(p)):"";if(d){var f=A(T(d)>>>0),y="sc-global-".concat(a,"-").concat(s,"-").concat(f);return o.createElement("style",{key:y,"data-styled-global":a,precedence:"styled-components",href:y,children:d})}}return null};return o.memo(l)}function ut(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];"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.");var r=Q(ot.apply(void 0,e([t],n,!1))),s=R(r);return new Fe(s,r)}function lt(e){var n=o.forwardRef(function(n,r){var s=b(n,o.useContext?o.useContext(Ue):void 0,e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===s&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(x(e),'"')),o.createElement(e,t(t({},n),{theme:s,ref:r}))});return n.displayName="WithTheme(".concat(x(e),")"),J(n,e)}var pt=/^\s*<\/[a-z]/i,dt=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ge(),o=Q([n&&'nonce="'.concat(n,'"'),"".concat(a,'="true"'),"".concat(u,'="').concat(l,'"')].filter(Boolean)," ");return"<style ".concat(o,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw se(2);return e._emitSheetCSS()},this.getStyleElement=function(){var n;if(e.sealed)throw se(2);var r=e.instance.toString();if(!r)return[];var s=((n={})[a]="",n[u]=l,n.dangerouslySetInnerHTML={__html:r},n),i=ge();return i&&(s.nonce=i),[o.createElement("style",t({},s,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new Pe({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw se(2);return o.createElement(Ve,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){if(d)throw se(3);if(this.sealed)throw se(2);this.seal();var t=require("stream").Transform,n=this.instance,o=this._emitSheetCSS,r=new t({transform:function(e,t,r){var s=e.toString(),i=o();if(n.clearTag(),pt.test(s)){var a=s.indexOf(">")+1,c=s.slice(0,a),u=s.slice(a);this.push(c+i+u)}else this.push(i+s);r()}});if("on"in e&&"function"==typeof e.on&&"pipe"in e){var s=e;return s.on("error",function(e){r.emit("error",e)}),s.pipe(r)}if("pipe"in e&&"function"==typeof e.pipe)return e.pipe(r);throw new Error("Unsupported stream type")},e}(),ht={StyleSheet:Pe,mainSheet:De};"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");var ft="__sc-".concat(a,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[ft]||(window[ft]=0),1===window[ft]&&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[ft]+=1);export{dt as ServerStyleSheet,je as StyleSheetConsumer,xe as StyleSheetContext,Ve as StyleSheetManager,Je as ThemeConsumer,Ue as ThemeContext,Ze as ThemeProvider,ht as __PRIVATE__,ct as createGlobalStyle,ot as css,it as default,Z as isStyledComponent,ut as keyframes,it as styled,Xe as useTheme,l as version,lt as withTheme};
2
2
  //# sourceMappingURL=styled-components.esm.js.map
@@ -10,7 +10,7 @@
10
10
  'data-styled';
11
11
  var SC_ATTR_ACTIVE = 'active';
12
12
  var SC_ATTR_VERSION = 'data-styled-version';
13
- var SC_VERSION = "6.3.0";
13
+ var SC_VERSION = "6.3.1";
14
14
  var SPLITTER = '/*!sc*/\n';
15
15
  var IS_BROWSER = typeof window !== 'undefined' && typeof document !== 'undefined';
16
16
  /**
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).styled=t(e.React)}(this,function(e){"use strict";var t="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",r="active",n="data-styled-version",o="6.3.0",s="/*!sc*/\n",a="undefined"!=typeof window&&"undefined"!=typeof document,i=void 0===e.createContext,c=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),u={},l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function f(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var p=Object.freeze([]),h=Object.freeze({});function d(e,t){Object.defineProperty(e,"toString",{value:t})}function m(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var v=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw m(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=n;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),i=(s=0,t.length);s<i;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,a=n;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(s);return t},e}(),g=new Map,y=new Map,S=1,b=function(e){if(g.has(e))return g.get(e);for(;y.has(S);)S++;var t=S++;return g.set(e,t),y.set(t,e),t},w=function(e,t){S=t+1,g.set(e,t),y.set(t,e)},C="style[".concat(t,"][").concat(n,'="').concat(o,'"]'),x=new RegExp("^".concat(t,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),I=function(e,t,r){for(var n,o=r.split(","),s=0,a=o.length;s<a;s++)(n=o[s])&&e.registerName(t,n)},P=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(s),o=[],a=0,i=n.length;a<i;a++){var c=n[a].trim();if(c){var u=c.match(x);if(u){var l=0|parseInt(u[1],10),f=u[2];0!==l&&(w(f,l),I(e,f,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},A=function(e){for(var n=document.querySelectorAll(C),o=0,s=n.length;o<s;o++){var a=n[o];a&&a.getAttribute(t)!==r&&(P(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function E(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _=function(e){var s=document.head,a=e||s,i=document.createElement("style"),c=function(e){var r=Array.from(e.querySelectorAll("style[".concat(t,"]")));return r[r.length-1]}(a),u=void 0!==c?c.nextSibling:null;i.setAttribute(t,r),i.setAttribute(n,o);var l=E();return l&&i.setAttribute("nonce",l),a.insertBefore(i,u),i},R=function(){function e(e){this.element=_(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw m(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),$=function(){function e(e){this.element=_(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),N=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),k=a,O={isServer:!a,useCSSOMInjection:!c},T=function(){function e(e,r,n){void 0===e&&(e=h),void 0===r&&(r={});var o=this;this.options=l(l({},O),e),this.gs=r,this.names=new Map(n),this.server=!!e.isServer,!this.server&&a&&k&&(k=!1,A(this)),d(this,function(){return function(e){for(var r=e.getTag(),n=r.length,o="",a=function(n){var a=function(e){return y.get(e)}(n);if(void 0===a)return"continue";var i=e.names.get(a),c=r.getGroup(n);if(void 0===i||!i.size||0===c.length)return"continue";var u="".concat(t,".g").concat(n,'[id="').concat(a,'"]'),l="";void 0!==i&&i.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),o+="".concat(c).concat(u,'{content:"').concat(l,'"}').concat(s)},i=0;i<n;i++)a(i);return o}(o)})}return e.registerId=function(e){return b(e)},e.prototype.rehydrate=function(){!this.server&&a&&A(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(l(l({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new N(r):t?new R(r):new $(r)}(this.options),new v(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(b(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(b(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(b(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),j="-ms-",D="-moz-",F="-webkit-",M="comm",z="rule",G="decl",L="@keyframes",B=Math.abs,W=String.fromCharCode,Y=Object.assign;function q(e){return e.trim()}function H(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function U(e,t,r){return e.indexOf(t,r)}function J(e,t){return 0|e.charCodeAt(t)}function Z(e,t,r){return e.slice(t,r)}function K(e){return e.length}function Q(e){return e.length}function X(e,t){return t.push(e),e}function ee(e,t){return e.filter(function(e){return!H(e,t)})}var te=1,re=1,ne=0,oe=0,se=0,ae="";function ie(e,t,r,n,o,s,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:te,column:re,length:a,return:"",siblings:i}}function ce(e,t){return Y(ie("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=ce(e.root,{children:[e]});X(e,e.siblings)}function le(){return se=oe>0?J(ae,--oe):0,re--,10===se&&(re=1,te--),se}function fe(){return se=oe<ne?J(ae,oe++):0,re++,10===se&&(re=1,te++),se}function pe(){return J(ae,oe)}function he(){return oe}function de(e,t){return Z(ae,e,t)}function me(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ve(e){return q(de(oe-1,Se(91===e?e+2:40===e?e+1:e)))}function ge(e){for(;(se=pe())&&se<33;)fe();return me(e)>2||me(se)>3?"":" "}function ye(e,t){for(;--t&&fe()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return de(e,he()+(t<6&&32==pe()&&32==fe()))}function Se(e){for(;fe();)switch(se){case e:return oe;case 34:case 39:34!==e&&39!==e&&Se(se);break;case 40:41===e&&Se(e);break;case 92:fe()}return oe}function be(e,t){for(;fe()&&e+se!==57&&(e+se!==84||47!==pe()););return"/*"+de(t,oe-1)+"*"+W(47===e?e:fe())}function we(e){for(;!me(pe());)fe();return de(e,oe)}function Ce(e){return function(e){return ae="",e}(xe("",null,null,null,[""],e=function(e){return te=re=1,ne=K(ae=e),oe=0,[]}(e),0,[0],e))}function xe(e,t,r,n,o,s,a,i,c){for(var u=0,l=0,f=a,p=0,h=0,d=0,m=1,v=1,g=1,y=0,S="",b=o,w=s,C=n,x=S;v;)switch(d=y,y=fe()){case 40:if(108!=d&&58==J(x,f-1)){-1!=U(x+=V(ve(y),"&","&\f"),"&\f",B(u?i[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=ve(y);break;case 9:case 10:case 13:case 32:x+=ge(d);break;case 92:x+=ye(he()-1,7);continue;case 47:switch(pe()){case 42:case 47:X(Pe(be(fe(),he()),t,r,c),c),5!=me(d||1)&&5!=me(pe()||1)||!K(x)||" "===Z(x,-1,void 0)||(x+=" ");break;default:x+="/"}break;case 123*m:i[u++]=K(x)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:-1==g&&(x=V(x,/\f/g,"")),h>0&&(K(x)-f||0===m&&47===d)&&X(h>32?Ae(x+";",n,r,f-1,c):Ae(V(x," ","")+";",n,r,f-2,c),c);break;case 59:x+=";";default:if(X(C=Ie(x,t,r,u,l,o,i,S,b=[],w=[],f,s),s),123===y)if(0===l)xe(x,t,C,C,b,s,f,i,w);else{switch(p){case 99:if(110===J(x,3))break;case 108:if(97===J(x,2))break;default:l=0;case 100:case 109:case 115:}l?xe(e,C,C,n&&X(Ie(e,C,C,0,0,o,i,S,o,b=[],f,w),w),o,w,f,i,n?b:w):xe(x,C,C,C,[""],w,0,i,w)}}u=l=h=0,m=g=1,S=x="",f=a;break;case 58:f=1+K(x),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==le())continue;switch(x+=W(y),y*m){case 38:g=l>0?1:(x+="\f",-1);break;case 44:i[u++]=(K(x)-1)*g,g=1;break;case 64:45===pe()&&(x+=ve(fe())),p=pe(),l=f=K(S=x+=we(he())),y++;break;case 45:45===d&&2==K(x)&&(m=0)}}return s}function Ie(e,t,r,n,o,s,a,i,c,u,l,f){for(var p=o-1,h=0===o?s:[""],d=Q(h),m=0,v=0,g=0;m<n;++m)for(var y=0,S=Z(e,p+1,p=B(v=a[m])),b=e;y<d;++y)(b=q(v>0?h[y]+" "+S:V(S,/&\f/g,h[y])))&&(c[g++]=b);return ie(e,t,r,0===o?z:i,c,u,l,f)}function Pe(e,t,r,n){return ie(e,t,r,M,W(se),Z(e,2,-2),0,n)}function Ae(e,t,r,n,o){return ie(e,t,r,G,Z(e,0,n),Z(e,n+1,-1),n,o)}function Ee(e,t,r){switch(function(e,t){return 45^J(e,0)?(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3):0}(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return F+e+e;case 4855:return F+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+D+e+j+e+e;case 5936:switch(J(e,t+11)){case 114:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+j+e+e;case 6165:return F+e+j+"flex-"+e+e;case 5187:return F+e+V(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return F+e+j+"flex-item-"+V(e,/flex-|-self/g,"")+(H(e,/flex-|baseline/)?"":j+"grid-row-"+V(e,/flex-|-self/g,""))+e;case 4675:return F+e+j+"flex-line-pack"+V(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+j+V(e,"shrink","negative")+e;case 5292:return F+e+j+V(e,"basis","preferred-size")+e;case 6060:return F+"box-"+V(e,"-grow","")+F+e+j+V(e,"grow","positive")+e;case 4554:return F+V(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+j+"flex-pack:$3"),/space-between/,"justify")+F+e+e;case 4200:if(!H(e,/flex-|baseline/))return j+"grid-column-align"+Z(e,t)+e;break;case 2592:case 3360:return j+V(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,H(e.props,/grid-\w+-end/)})?~U(e+(r=r[t].value),"span",0)?e:j+V(e,"-start","")+e+j+"grid-row-span:"+(~U(r,"span",0)?H(r,/\d+/):+H(r,/\d+/)-+H(e,/\d+/))+";":j+V(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return H(e.props,/grid-\w+-start/)})?e:j+V(V(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(K(e)-1-t>6)switch(J(e,t+1)){case 109:if(45!==J(e,t+4))break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+D+(108==J(e,t+3)?"$3":"$2-$3"))+e;case 115:return~U(e,"stretch",0)?Ee(V(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return V(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,s,a,i){return j+r+":"+n+i+(o?j+r+"-span:"+(s?a:+a-+n)+i:"")+e});case 4949:if(121===J(e,t+6))return V(e,":",":"+F)+e;break;case 6444:switch(J(e,45===J(e,14)?18:11)){case 120:return V(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(45===J(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+j+"$2box$3")+e;case 100:return V(e,":",":"+j)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return V(e,"scroll-","scroll-snap-")+e}return e}function _e(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Re(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case G:return e.return=e.return||e.value;case M:return"";case L:return e.return=e.value+"{"+_e(e.children,n)+"}";case z:if(!K(e.value=e.props.join(",")))return""}return K(r=_e(e.children,n))?e.return=e.value+"{"+r+"}":""}function $e(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case G:return void(e.return=Ee(e.value,e.length,r));case L:return _e([ce(e,{value:V(e.value,"@","@"+F)})],n);case z:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(H(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ue(ce(e,{props:[V(t,/:(read-\w+)/,":-moz-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)});break;case"::placeholder":ue(ce(e,{props:[V(t,/:(plac\w+)/,":"+F+"input-$1")]})),ue(ce(e,{props:[V(t,/:(plac\w+)/,":-moz-$1")]})),ue(ce(e,{props:[V(t,/:(plac\w+)/,j+"input-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)})}return""})}}var Ne=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ke=function(e){return Ne(5381,e)},Oe=/&/g,Te=/^\s*\/\/.*$/gm;function je(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=je(e.children,t)),e})}function De(e){var t,r,n,o=void 0===e?h:e,s=o.options,a=void 0===s?h:s,i=o.plugins,c=void 0===i?p:i,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();l.push(function(e){e.type===z&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,r).replace(n,u))}),a.prefix&&l.push($e),l.push(Re);var f=function(e,o,s,i){void 0===o&&(o=""),void 0===s&&(s=""),void 0===i&&(i="&"),t=i,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var c=e.replace(Te,""),u=Ce(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);a.namespace&&(u=je(u,a.namespace));var f=[];return _e(u,function(e){var t=Q(e);return function(r,n,o,s){for(var a="",i=0;i<t;i++)a+=e[i](r,n,o,s)||"";return a}}(l.concat(function(e){e.root||(e=e.return)&&f.push(e)}))),f};return f.hash=c.length?c.reduce(function(e,t){return t.name||m(15),Ne(e,t.name)},5381).toString():"",f}var Fe=new T,Me=De(),ze={shouldForwardProp:void 0,styleSheet:Fe,stylis:Me},Ge=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(ze)}}:e.createContext(ze),Le=Ge.Consumer,Be=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0);function We(){return!i&&e.useContext?e.useContext(Ge):ze}function Ye(t){if(i||!e.useMemo)return t.children;var r=We().styleSheet,n=e.useMemo(function(){var e=r;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e},[t.disableCSSOMInjection,t.sheet,t.target,r]),o=e.useMemo(function(){return De({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:t.stylisPlugins})},[t.enableVendorPrefixes,t.namespace,t.stylisPlugins]),s=e.useMemo(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:n,stylis:o}},[t.shouldForwardProp,n,o]);return e.createElement(Ge.Provider,{value:s},e.createElement(Be.Provider,{value:o},t.children))}var qe=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Me);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,d(this,function(){throw m(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Me),this.name+e.hash},e}(),He={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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 He||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function Ue(e){return e.displayName||e.name||"Component"}var Je=function(e){return e>="A"&&e<="Z"};function Ze(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Je(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}function Ke(e){return"function"==typeof e}function Qe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xe(e){return"object"==typeof e&&"styledComponentId"in e}var et=function(e){return null==e||!1===e||""===e},tt=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!et(n)&&(Array.isArray(n)&&n.isCss||Ke(n)?t.push("".concat(Ze(r),":"),n,";"):Qe(n)?t.push.apply(t,f(f(["".concat(r," {")],tt(n),!1),["}"],!1)):t.push("".concat(Ze(r),": ").concat(Ve(r,n),";")))}return t};function rt(e,t,r,n){return et(e)?[]:Xe(e)?[".".concat(e.styledComponentId)]:Ke(e)?!Ke(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:rt(e(t),t,r,n):e instanceof qe?r?(e.inject(r,n),[e.getName(n)]):[e]:Qe(e)?tt(e):Array.isArray(e)?Array.prototype.concat.apply(p,e.map(function(e){return rt(e,t,r,n)})):[e.toString()];var o}function nt(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ke(r)&&!Xe(r))return!1}return!0}function ot(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function st(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}var at=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=nt(e),T.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(st(rt(this.rules,t,r,n)),""),s=this.componentId+e;r.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&T.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}(),it=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0),ct=it.Consumer;function ut(e,t,r){return void 0===r&&(r=h),e.theme!==r.theme&&e.theme||t||r.theme}var lt=/(a)(d)/gi,ft=function(e){return String.fromCharCode(e+(e>25?39:97))};function pt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ft(t%52)+r;return(ft(t%52)+r).replace(lt,"$1-$2")}function ht(e){return pt(ke(e)>>>0)}function dt(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var mt,vt=function(e){return Object.assign(e,{isCss:!0})};function gt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ke(e)||Qe(e))return vt(rt(dt(p,f([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?rt(n):vt(rt(dt(n,t)))}var yt="function"==typeof Symbol&&Symbol.for,St=yt?Symbol.for("react.memo"):60115,bt=yt?Symbol.for("react.forward_ref"):60112,wt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ct={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},It=((mt={})[bt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mt[St]=xt,mt);function Pt(e){return("type"in(t=e)&&t.type.$$typeof)===St?xt:"$$typeof"in e?It[e.$$typeof]:wt;var t}var At=Object.defineProperty,Et=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,Rt=Object.getOwnPropertyDescriptor,$t=Object.getPrototypeOf,Nt=Object.prototype;function kt(e,t,r){if("string"!=typeof t){if(Nt){var n=$t(t);n&&n!==Nt&&kt(e,n,r)}var o=Et(t);_t&&(o=o.concat(_t(t)));for(var s=Pt(e),a=Pt(t),i=0;i<o.length;++i){var c=o[i];if(!(c in Ct||r&&r[c]||a&&c in a||s&&c in s)){var u=Rt(t,c);try{At(e,c,u)}catch(e){}}}}return e}var Ot=function(){function r(){var r=this;this._emitSheetCSS=function(){var e=r.instance.toString();if(!e)return"";var s=E(),a=st([s&&'nonce="'.concat(s,'"'),"".concat(t,'="true"'),"".concat(n,'="').concat(o,'"')].filter(Boolean)," ");return"<style ".concat(a,">").concat(e,"</style>")},this.getStyleTags=function(){if(r.sealed)throw m(2);return r._emitSheetCSS()},this.getStyleElement=function(){var s;if(r.sealed)throw m(2);var a=r.instance.toString();if(!a)return[];var i=((s={})[t]="",s[n]=o,s.dangerouslySetInnerHTML={__html:a},s),c=E();return c&&(i.nonce=c),[e.createElement("style",l({},i,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new T({isServer:!0}),this.sealed=!1}return r.prototype.collectStyles=function(t){if(this.sealed)throw m(2);return e.createElement(Ye,{sheet:this.instance},t)},r.prototype.interleaveWithNodeStream=function(e){throw m(3)},r}(),Tt=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:Ot,StyleSheetConsumer:Le,StyleSheetContext:Ge,StyleSheetManager:Ye,ThemeConsumer:ct,ThemeContext:it,ThemeProvider:function(t){if(i||!e.useContext||!e.useMemo)return t.children;var r=e.useContext(it),n=e.useMemo(function(){return function(e,t){if(!e)throw m(14);if(Ke(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw m(8);return t?l(l({},t),e):e}(t.theme,r)},[t.theme,r]);return t.children?e.createElement(it.Provider,{value:n},t.children):null},__PRIVATE__:{StyleSheet:T,mainSheet:Fe},createGlobalStyle:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=gt.apply(void 0,f([t],r,!1)),s="sc-global-".concat(ht(JSON.stringify(o))),a=new at(o,s),c=new WeakMap,p=function(t){var r=We(),n=e.useContext?e.useContext(it):void 0,o=c.get(r.styleSheet);if(void 0===o&&(o=r.styleSheet.allocateGSInstance(s),c.set(r.styleSheet,o)),("undefined"==typeof window||!r.styleSheet.server)&&function(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,u,r,o);else{var s=l(l({},t),{theme:ut(t,n,p.defaultProps)});a.renderStyles(e,s,r,o)}}(o,t,r.styleSheet,n,r.stylis),i||"function"!=typeof e.useLayoutEffect||e.useLayoutEffect(function(){return function(){a.removeStyles(o,r.styleSheet)}},[o,r.styleSheet]),i){var f=s+o,h="undefined"==typeof window?r.styleSheet.getTag().getGroup(b(f)):"";if(h){var d=pt(ke(h)>>>0),m="sc-global-".concat(s,"-").concat(o,"-").concat(d);return e.createElement("style",{key:m,"data-styled-global":s,precedence:"styled-components",href:m,children:h})}}return null};return e.memo(p)},css:gt,isStyledComponent:Xe,keyframes:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=st(gt.apply(void 0,f([e],t,!1))),o=ht(n);return new qe(o,n)},useTheme:function(){var t=!i&&e.useContext?e.useContext(it):void 0;if(!t)throw m(18);return t},version:o,withTheme:function(t){var r=e.forwardRef(function(r,n){var o=ut(r,e.useContext?e.useContext(it):void 0,t.defaultProps);return e.createElement(t,l(l({},r),{theme:o,ref:n}))});return r.displayName="WithTheme(".concat(Ue(t),")"),kt(r,t)}}),jt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),Dt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ft=/(^-|-$)/g;function Mt(e){return e.replace(Dt,"-").replace(Ft,"")}function zt(e){return"string"==typeof e&&!0}function Gt(e,t,r){if(void 0===r&&(r=!1),!r&&!Qe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Gt(e[n],t[n]);else if(Qe(t))for(var n in t)e[n]=Gt(e[n],t[n]);return e}var Lt=ke(o),Bt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&nt(e),this.componentId=t,this.baseHash=Ne(Lt,t),this.baseStyle=r,T.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=ot(n,this.staticRulesId);else{var o=st(rt(this.rules,e,t,r)),s=pt(Ne(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=r(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}n=ot(n,s),this.staticRulesId=s}else{for(var i=Ne(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var f=st(rt(l,e,t,r));i=Ne(i,f+u),c+=f}}if(c){var p=pt(i>>>0);if(!t.hasNameForId(this.componentId,p)){var h=r(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,h)}n=ot(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(b(this.componentId)):""}},e}(),Wt={};function Yt(t,r,n){var s=Xe(t),a=t,c=!zt(t),u=r.attrs,f=void 0===u?p:u,m=r.componentId,v=void 0===m?function(e,t){var r="string"!=typeof e?"sc":Mt(e);Wt[r]=(Wt[r]||0)+1;var n="".concat(r,"-").concat(ht(o+r+Wt[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):m,g=r.displayName,y=void 0===g?function(e){return zt(e)?"styled.".concat(e):"Styled(".concat(Ue(e),")")}(t):g,S=r.displayName&&r.componentId?"".concat(Mt(r.displayName),"-").concat(r.componentId):r.componentId||v,b=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,w=r.shouldForwardProp;if(s&&a.shouldForwardProp){var C=a.shouldForwardProp;if(r.shouldForwardProp){var x=r.shouldForwardProp;w=function(e,t){return C(e,t)&&x(e,t)}}else w=C}var I=new Bt(n,S,s?a.componentStyle:void 0);function P(t,r){return function(t,r,n){var o=t.attrs,s=t.componentStyle,a=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,f=t.target,p=e.useContext?e.useContext(it):void 0,d=We(),m=t.shouldForwardProp||d.shouldForwardProp,v=ut(r,p,a)||h,g=function(e,t,r){for(var n,o=l(l({},t),{className:void 0,theme:r}),s=0;s<e.length;s+=1){var a=Ke(n=e[s])?n(o):n;for(var i in a)"className"===i?o.className=ot(o.className,a[i]):"style"===i?o.style=l(l({},o.style),a[i]):o[i]=a[i]}return"className"in t&&"string"==typeof t.className&&(o.className=ot(o.className,t.className)),o}(o,r,v),y=g.as||f,S={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?S.as=g.forwardedAs:m&&!m(b,y)||(S[b]=g[b]));var w=function(e,t){var r=We();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(s,g),C=w.className,x=w.css,I=ot(c,u);C&&(I+=" "+C),g.className&&(I+=" "+g.className),S[zt(y)&&!jt.has(y)?"class":"className"]=I,n&&(S.ref=n);var P=e.createElement(y,S);return i&&x?e.createElement(e.Fragment,null,e.createElement("style",{precedence:"styled-components",href:"sc-".concat(u,"-").concat(C),children:x}),P):P}(A,t,r)}P.displayName=y;var A=e.forwardRef(P);return A.attrs=b,A.componentStyle=I,A.displayName=y,A.shouldForwardProp=w,A.foldedComponentIds=s?ot(a.foldedComponentIds,a.styledComponentId):"",A.styledComponentId=S,A.target=s?a.target:t,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Gt(e,o[n],!0);return e}({},a.defaultProps,e):e}}),d(A,function(){return".".concat(A.styledComponentId)}),c&&kt(A,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function qt(e,t,r){if(void 0===r&&(r=h),!t)throw m(1,t);var n=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,gt.apply(void 0,f([n],o,!1)))};return n.attrs=function(n){return qt(e,t,l(l({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return qt(e,t,l(l({},r),n))},n}new Set;var Ht=function(e){return qt(Yt,e)},Vt=Ht;for(var Ut in jt.forEach(function(e){Vt[e]=Ht(e)}),Tt)Vt[Ut]=Tt[Ut];return Vt});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).styled=t(e.React)}(this,function(e){"use strict";var t="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",r="active",n="data-styled-version",o="6.3.1",s="/*!sc*/\n",a="undefined"!=typeof window&&"undefined"!=typeof document,i=void 0===e.createContext,c=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),u={},l=function(){return l=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},l.apply(this,arguments)};function f(e,t,r){if(r||2===arguments.length)for(var n,o=0,s=t.length;o<s;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var p=Object.freeze([]),h=Object.freeze({});function d(e,t){Object.defineProperty(e,"toString",{value:t})}function m(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var v=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)if((o<<=1)<0)throw m(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var s=n;s<o;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(e+1),i=(s=0,t.length);s<i;s++)this.tag.insertRule(a,t[s])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var o=r;o<n;o++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,a=n;a<o;a++)t+="".concat(this.tag.getRule(a)).concat(s);return t},e}(),g=new Map,y=new Map,S=1,b=function(e){if(g.has(e))return g.get(e);for(;y.has(S);)S++;var t=S++;return g.set(e,t),y.set(t,e),t},w=function(e,t){S=t+1,g.set(e,t),y.set(t,e)},C="style[".concat(t,"][").concat(n,'="').concat(o,'"]'),x=new RegExp("^".concat(t,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),I=function(e,t,r){for(var n,o=r.split(","),s=0,a=o.length;s<a;s++)(n=o[s])&&e.registerName(t,n)},P=function(e,t){for(var r,n=(null!==(r=t.textContent)&&void 0!==r?r:"").split(s),o=[],a=0,i=n.length;a<i;a++){var c=n[a].trim();if(c){var u=c.match(x);if(u){var l=0|parseInt(u[1],10),f=u[2];0!==l&&(w(f,l),I(e,f,u[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(c)}}},A=function(e){for(var n=document.querySelectorAll(C),o=0,s=n.length;o<s;o++){var a=n[o];a&&a.getAttribute(t)!==r&&(P(e,a),a.parentNode&&a.parentNode.removeChild(a))}};function E(){return"undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _=function(e){var s=document.head,a=e||s,i=document.createElement("style"),c=function(e){var r=Array.from(e.querySelectorAll("style[".concat(t,"]")));return r[r.length-1]}(a),u=void 0!==c?c.nextSibling:null;i.setAttribute(t,r),i.setAttribute(n,o);var l=E();return l&&i.setAttribute("nonce",l),a.insertBefore(i,u),i},R=function(){function e(e){this.element=_(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var o=t[r];if(o.ownerNode===e)return o}throw m(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),$=function(){function e(e){this.element=_(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),N=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),k=a,O={isServer:!a,useCSSOMInjection:!c},T=function(){function e(e,r,n){void 0===e&&(e=h),void 0===r&&(r={});var o=this;this.options=l(l({},O),e),this.gs=r,this.names=new Map(n),this.server=!!e.isServer,!this.server&&a&&k&&(k=!1,A(this)),d(this,function(){return function(e){for(var r=e.getTag(),n=r.length,o="",a=function(n){var a=function(e){return y.get(e)}(n);if(void 0===a)return"continue";var i=e.names.get(a),c=r.getGroup(n);if(void 0===i||!i.size||0===c.length)return"continue";var u="".concat(t,".g").concat(n,'[id="').concat(a,'"]'),l="";void 0!==i&&i.forEach(function(e){e.length>0&&(l+="".concat(e,","))}),o+="".concat(c).concat(u,'{content:"').concat(l,'"}').concat(s)},i=0;i<n;i++)a(i);return o}(o)})}return e.registerId=function(e){return b(e)},e.prototype.rehydrate=function(){!this.server&&a&&A(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(l(l({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new N(r):t?new R(r):new $(r)}(this.options),new v(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(b(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(b(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(b(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),j="-ms-",D="-moz-",F="-webkit-",M="comm",z="rule",G="decl",L="@keyframes",B=Math.abs,W=String.fromCharCode,Y=Object.assign;function q(e){return e.trim()}function H(e,t){return(e=t.exec(e))?e[0]:e}function V(e,t,r){return e.replace(t,r)}function U(e,t,r){return e.indexOf(t,r)}function J(e,t){return 0|e.charCodeAt(t)}function Z(e,t,r){return e.slice(t,r)}function K(e){return e.length}function Q(e){return e.length}function X(e,t){return t.push(e),e}function ee(e,t){return e.filter(function(e){return!H(e,t)})}var te=1,re=1,ne=0,oe=0,se=0,ae="";function ie(e,t,r,n,o,s,a,i){return{value:e,root:t,parent:r,type:n,props:o,children:s,line:te,column:re,length:a,return:"",siblings:i}}function ce(e,t){return Y(ie("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ue(e){for(;e.root;)e=ce(e.root,{children:[e]});X(e,e.siblings)}function le(){return se=oe>0?J(ae,--oe):0,re--,10===se&&(re=1,te--),se}function fe(){return se=oe<ne?J(ae,oe++):0,re++,10===se&&(re=1,te++),se}function pe(){return J(ae,oe)}function he(){return oe}function de(e,t){return Z(ae,e,t)}function me(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ve(e){return q(de(oe-1,Se(91===e?e+2:40===e?e+1:e)))}function ge(e){for(;(se=pe())&&se<33;)fe();return me(e)>2||me(se)>3?"":" "}function ye(e,t){for(;--t&&fe()&&!(se<48||se>102||se>57&&se<65||se>70&&se<97););return de(e,he()+(t<6&&32==pe()&&32==fe()))}function Se(e){for(;fe();)switch(se){case e:return oe;case 34:case 39:34!==e&&39!==e&&Se(se);break;case 40:41===e&&Se(e);break;case 92:fe()}return oe}function be(e,t){for(;fe()&&e+se!==57&&(e+se!==84||47!==pe()););return"/*"+de(t,oe-1)+"*"+W(47===e?e:fe())}function we(e){for(;!me(pe());)fe();return de(e,oe)}function Ce(e){return function(e){return ae="",e}(xe("",null,null,null,[""],e=function(e){return te=re=1,ne=K(ae=e),oe=0,[]}(e),0,[0],e))}function xe(e,t,r,n,o,s,a,i,c){for(var u=0,l=0,f=a,p=0,h=0,d=0,m=1,v=1,g=1,y=0,S="",b=o,w=s,C=n,x=S;v;)switch(d=y,y=fe()){case 40:if(108!=d&&58==J(x,f-1)){-1!=U(x+=V(ve(y),"&","&\f"),"&\f",B(u?i[u-1]:0))&&(g=-1);break}case 34:case 39:case 91:x+=ve(y);break;case 9:case 10:case 13:case 32:x+=ge(d);break;case 92:x+=ye(he()-1,7);continue;case 47:switch(pe()){case 42:case 47:X(Pe(be(fe(),he()),t,r,c),c),5!=me(d||1)&&5!=me(pe()||1)||!K(x)||" "===Z(x,-1,void 0)||(x+=" ");break;default:x+="/"}break;case 123*m:i[u++]=K(x)*g;case 125*m:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+l:-1==g&&(x=V(x,/\f/g,"")),h>0&&(K(x)-f||0===m&&47===d)&&X(h>32?Ae(x+";",n,r,f-1,c):Ae(V(x," ","")+";",n,r,f-2,c),c);break;case 59:x+=";";default:if(X(C=Ie(x,t,r,u,l,o,i,S,b=[],w=[],f,s),s),123===y)if(0===l)xe(x,t,C,C,b,s,f,i,w);else{switch(p){case 99:if(110===J(x,3))break;case 108:if(97===J(x,2))break;default:l=0;case 100:case 109:case 115:}l?xe(e,C,C,n&&X(Ie(e,C,C,0,0,o,i,S,o,b=[],f,w),w),o,w,f,i,n?b:w):xe(x,C,C,C,[""],w,0,i,w)}}u=l=h=0,m=g=1,S=x="",f=a;break;case 58:f=1+K(x),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==le())continue;switch(x+=W(y),y*m){case 38:g=l>0?1:(x+="\f",-1);break;case 44:i[u++]=(K(x)-1)*g,g=1;break;case 64:45===pe()&&(x+=ve(fe())),p=pe(),l=f=K(S=x+=we(he())),y++;break;case 45:45===d&&2==K(x)&&(m=0)}}return s}function Ie(e,t,r,n,o,s,a,i,c,u,l,f){for(var p=o-1,h=0===o?s:[""],d=Q(h),m=0,v=0,g=0;m<n;++m)for(var y=0,S=Z(e,p+1,p=B(v=a[m])),b=e;y<d;++y)(b=q(v>0?h[y]+" "+S:V(S,/&\f/g,h[y])))&&(c[g++]=b);return ie(e,t,r,0===o?z:i,c,u,l,f)}function Pe(e,t,r,n){return ie(e,t,r,M,W(se),Z(e,2,-2),0,n)}function Ae(e,t,r,n,o){return ie(e,t,r,G,Z(e,0,n),Z(e,n+1,-1),n,o)}function Ee(e,t,r){switch(function(e,t){return 45^J(e,0)?(((t<<2^J(e,0))<<2^J(e,1))<<2^J(e,2))<<2^J(e,3):0}(e,t)){case 5103:return F+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:case 6391:case 5879:case 5623:case 6135:case 4599:return F+e+e;case 4855:return F+e.replace("add","source-over").replace("substract","source-out").replace("intersect","source-in").replace("exclude","xor")+e;case 4789:return D+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+D+e+j+e+e;case 5936:switch(J(e,t+11)){case 114:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+j+V(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return F+e+j+e+e;case 6165:return F+e+j+"flex-"+e+e;case 5187:return F+e+V(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+j+"flex-$1$2")+e;case 5443:return F+e+j+"flex-item-"+V(e,/flex-|-self/g,"")+(H(e,/flex-|baseline/)?"":j+"grid-row-"+V(e,/flex-|-self/g,""))+e;case 4675:return F+e+j+"flex-line-pack"+V(e,/align-content|flex-|-self/g,"")+e;case 5548:return F+e+j+V(e,"shrink","negative")+e;case 5292:return F+e+j+V(e,"basis","preferred-size")+e;case 6060:return F+"box-"+V(e,"-grow","")+F+e+j+V(e,"grow","positive")+e;case 4554:return F+V(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return V(V(V(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return V(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return V(V(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+j+"flex-pack:$3"),/space-between/,"justify")+F+e+e;case 4200:if(!H(e,/flex-|baseline/))return j+"grid-column-align"+Z(e,t)+e;break;case 2592:case 3360:return j+V(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(e,r){return t=r,H(e.props,/grid-\w+-end/)})?~U(e+(r=r[t].value),"span",0)?e:j+V(e,"-start","")+e+j+"grid-row-span:"+(~U(r,"span",0)?H(r,/\d+/):+H(r,/\d+/)-+H(e,/\d+/))+";":j+V(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(e){return H(e.props,/grid-\w+-start/)})?e:j+V(V(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return V(e,/(.+)-inline(.+)/,F+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(K(e)-1-t>6)switch(J(e,t+1)){case 109:if(45!==J(e,t+4))break;case 102:return V(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+D+(108==J(e,t+3)?"$3":"$2-$3"))+e;case 115:return~U(e,"stretch",0)?Ee(V(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return V(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(t,r,n,o,s,a,i){return j+r+":"+n+i+(o?j+r+"-span:"+(s?a:+a-+n)+i:"")+e});case 4949:if(121===J(e,t+6))return V(e,":",":"+F)+e;break;case 6444:switch(J(e,45===J(e,14)?18:11)){case 120:return V(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+F+(45===J(e,14)?"inline-":"")+"box$3$1"+F+"$2$3$1"+j+"$2box$3")+e;case 100:return V(e,":",":"+j)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return V(e,"scroll-","scroll-snap-")+e}return e}function _e(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}function Re(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case"@namespace":case G:return e.return=e.return||e.value;case M:return"";case L:return e.return=e.value+"{"+_e(e.children,n)+"}";case z:if(!K(e.value=e.props.join(",")))return""}return K(r=_e(e.children,n))?e.return=e.value+"{"+r+"}":""}function $e(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case G:return void(e.return=Ee(e.value,e.length,r));case L:return _e([ce(e,{value:V(e.value,"@","@"+F)})],n);case z:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,function(t){switch(H(t,n=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ue(ce(e,{props:[V(t,/:(read-\w+)/,":-moz-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)});break;case"::placeholder":ue(ce(e,{props:[V(t,/:(plac\w+)/,":"+F+"input-$1")]})),ue(ce(e,{props:[V(t,/:(plac\w+)/,":-moz-$1")]})),ue(ce(e,{props:[V(t,/:(plac\w+)/,j+"input-$1")]})),ue(ce(e,{props:[t]})),Y(e,{props:ee(r,n)})}return""})}}var Ne=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},ke=function(e){return Ne(5381,e)},Oe=/&/g,Te=/^\s*\/\/.*$/gm;function je(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=je(e.children,t)),e})}function De(e){var t,r,n,o=void 0===e?h:e,s=o.options,a=void 0===s?h:s,i=o.plugins,c=void 0===i?p:i,u=function(e,n,o){return o.startsWith(r)&&o.endsWith(r)&&o.replaceAll(r,"").length>0?".".concat(t):e},l=c.slice();l.push(function(e){e.type===z&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Oe,r).replace(n,u))}),a.prefix&&l.push($e),l.push(Re);var f=function(e,o,s,i){void 0===o&&(o=""),void 0===s&&(s=""),void 0===i&&(i="&"),t=i,r=o,n=new RegExp("\\".concat(r,"\\b"),"g");var c=e.replace(Te,""),u=Ce(s||o?"".concat(s," ").concat(o," { ").concat(c," }"):c);a.namespace&&(u=je(u,a.namespace));var f=[];return _e(u,function(e){var t=Q(e);return function(r,n,o,s){for(var a="",i=0;i<t;i++)a+=e[i](r,n,o,s)||"";return a}}(l.concat(function(e){e.root||(e=e.return)&&f.push(e)}))),f};return f.hash=c.length?c.reduce(function(e,t){return t.name||m(15),Ne(e,t.name)},5381).toString():"",f}var Fe=new T,Me=De(),ze={shouldForwardProp:void 0,styleSheet:Fe,stylis:Me},Ge=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(ze)}}:e.createContext(ze),Le=Ge.Consumer,Be=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0);function We(){return!i&&e.useContext?e.useContext(Ge):ze}function Ye(t){if(i||!e.useMemo)return t.children;var r=We().styleSheet,n=e.useMemo(function(){var e=r;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e},[t.disableCSSOMInjection,t.sheet,t.target,r]),o=e.useMemo(function(){return De({options:{namespace:t.namespace,prefix:t.enableVendorPrefixes},plugins:t.stylisPlugins})},[t.enableVendorPrefixes,t.namespace,t.stylisPlugins]),s=e.useMemo(function(){return{shouldForwardProp:t.shouldForwardProp,styleSheet:n,stylis:o}},[t.shouldForwardProp,n,o]);return e.createElement(Ge.Provider,{value:s},e.createElement(Be.Provider,{value:o},t.children))}var qe=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Me);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,d(this,function(){throw m(12,String(r.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Me),this.name+e.hash},e}(),He={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,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 He||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function Ue(e){return e.displayName||e.name||"Component"}var Je=function(e){return e>="A"&&e<="Z"};function Ze(e){for(var t="",r=0;r<e.length;r++){var n=e[r];if(1===r&&"-"===n&&"-"===e[0])return e;Je(n)?t+="-"+n.toLowerCase():t+=n}return t.startsWith("ms-")?"-"+t:t}function Ke(e){return"function"==typeof e}function Qe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Xe(e){return"object"==typeof e&&"styledComponentId"in e}var et=function(e){return null==e||!1===e||""===e},tt=function(e){var t=[];for(var r in e){var n=e[r];e.hasOwnProperty(r)&&!et(n)&&(Array.isArray(n)&&n.isCss||Ke(n)?t.push("".concat(Ze(r),":"),n,";"):Qe(n)?t.push.apply(t,f(f(["".concat(r," {")],tt(n),!1),["}"],!1)):t.push("".concat(Ze(r),": ").concat(Ve(r,n),";")))}return t};function rt(e,t,r,n){return et(e)?[]:Xe(e)?[".".concat(e.styledComponentId)]:Ke(e)?!Ke(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:rt(e(t),t,r,n):e instanceof qe?r?(e.inject(r,n),[e.getName(n)]):[e]:Qe(e)?tt(e):Array.isArray(e)?Array.prototype.concat.apply(p,e.map(function(e){return rt(e,t,r,n)})):[e.toString()];var o}function nt(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(Ke(r)&&!Xe(r))return!1}return!0}function ot(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function st(e,t){if(0===e.length)return"";for(var r=e[0],n=1;n<e.length;n++)r+=t?t+e[n]:e[n];return r}var at=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=nt(e),T.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,r,n){var o=n(st(rt(this.rules,t,r,n)),""),s=this.componentId+e;r.insertRules(s,s,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,r,n){e>2&&T.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}(),it=i?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:e.createContext(void 0),ct=it.Consumer;function ut(e,t,r){return void 0===r&&(r=h),e.theme!==r.theme&&e.theme||t||r.theme}var lt=/(a)(d)/gi,ft=function(e){return String.fromCharCode(e+(e>25?39:97))};function pt(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=ft(t%52)+r;return(ft(t%52)+r).replace(lt,"$1-$2")}function ht(e){return pt(ke(e)>>>0)}function dt(e,t){for(var r=[e[0]],n=0,o=t.length;n<o;n+=1)r.push(t[n],e[n+1]);return r}var mt,vt=function(e){return Object.assign(e,{isCss:!0})};function gt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Ke(e)||Qe(e))return vt(rt(dt(p,f([e],t,!0))));var n=e;return 0===t.length&&1===n.length&&"string"==typeof n[0]?rt(n):vt(rt(dt(n,t)))}var yt="function"==typeof Symbol&&Symbol.for,St=yt?Symbol.for("react.memo"):60115,bt=yt?Symbol.for("react.forward_ref"):60112,wt={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ct={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},xt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},It=((mt={})[bt]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},mt[St]=xt,mt);function Pt(e){return("type"in(t=e)&&t.type.$$typeof)===St?xt:"$$typeof"in e?It[e.$$typeof]:wt;var t}var At=Object.defineProperty,Et=Object.getOwnPropertyNames,_t=Object.getOwnPropertySymbols,Rt=Object.getOwnPropertyDescriptor,$t=Object.getPrototypeOf,Nt=Object.prototype;function kt(e,t,r){if("string"!=typeof t){if(Nt){var n=$t(t);n&&n!==Nt&&kt(e,n,r)}var o=Et(t);_t&&(o=o.concat(_t(t)));for(var s=Pt(e),a=Pt(t),i=0;i<o.length;++i){var c=o[i];if(!(c in Ct||r&&r[c]||a&&c in a||s&&c in s)){var u=Rt(t,c);try{At(e,c,u)}catch(e){}}}}return e}var Ot=function(){function r(){var r=this;this._emitSheetCSS=function(){var e=r.instance.toString();if(!e)return"";var s=E(),a=st([s&&'nonce="'.concat(s,'"'),"".concat(t,'="true"'),"".concat(n,'="').concat(o,'"')].filter(Boolean)," ");return"<style ".concat(a,">").concat(e,"</style>")},this.getStyleTags=function(){if(r.sealed)throw m(2);return r._emitSheetCSS()},this.getStyleElement=function(){var s;if(r.sealed)throw m(2);var a=r.instance.toString();if(!a)return[];var i=((s={})[t]="",s[n]=o,s.dangerouslySetInnerHTML={__html:a},s),c=E();return c&&(i.nonce=c),[e.createElement("style",l({},i,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new T({isServer:!0}),this.sealed=!1}return r.prototype.collectStyles=function(t){if(this.sealed)throw m(2);return e.createElement(Ye,{sheet:this.instance},t)},r.prototype.interleaveWithNodeStream=function(e){throw m(3)},r}(),Tt=/*#__PURE__*/Object.freeze({__proto__:null,ServerStyleSheet:Ot,StyleSheetConsumer:Le,StyleSheetContext:Ge,StyleSheetManager:Ye,ThemeConsumer:ct,ThemeContext:it,ThemeProvider:function(t){if(i||!e.useContext||!e.useMemo)return t.children;var r=e.useContext(it),n=e.useMemo(function(){return function(e,t){if(!e)throw m(14);if(Ke(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw m(8);return t?l(l({},t),e):e}(t.theme,r)},[t.theme,r]);return t.children?e.createElement(it.Provider,{value:n},t.children):null},__PRIVATE__:{StyleSheet:T,mainSheet:Fe},createGlobalStyle:function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=gt.apply(void 0,f([t],r,!1)),s="sc-global-".concat(ht(JSON.stringify(o))),a=new at(o,s),c=new WeakMap,p=function(t){var r=We(),n=e.useContext?e.useContext(it):void 0,o=c.get(r.styleSheet);if(void 0===o&&(o=r.styleSheet.allocateGSInstance(s),c.set(r.styleSheet,o)),("undefined"==typeof window||!r.styleSheet.server)&&function(e,t,r,n,o){if(a.isStatic)a.renderStyles(e,u,r,o);else{var s=l(l({},t),{theme:ut(t,n,p.defaultProps)});a.renderStyles(e,s,r,o)}}(o,t,r.styleSheet,n,r.stylis),i||"function"!=typeof e.useLayoutEffect||e.useLayoutEffect(function(){return function(){a.removeStyles(o,r.styleSheet)}},[o,r.styleSheet]),i){var f=s+o,h="undefined"==typeof window?r.styleSheet.getTag().getGroup(b(f)):"";if(h){var d=pt(ke(h)>>>0),m="sc-global-".concat(s,"-").concat(o,"-").concat(d);return e.createElement("style",{key:m,"data-styled-global":s,precedence:"styled-components",href:m,children:h})}}return null};return e.memo(p)},css:gt,isStyledComponent:Xe,keyframes:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=st(gt.apply(void 0,f([e],t,!1))),o=ht(n);return new qe(o,n)},useTheme:function(){var t=!i&&e.useContext?e.useContext(it):void 0;if(!t)throw m(18);return t},version:o,withTheme:function(t){var r=e.forwardRef(function(r,n){var o=ut(r,e.useContext?e.useContext(it):void 0,t.defaultProps);return e.createElement(t,l(l({},r),{theme:o,ref:n}))});return r.displayName="WithTheme(".concat(Ue(t),")"),kt(r,t)}}),jt=new Set(["a","abbr","address","area","article","aside","audio","b","bdi","bdo","blockquote","body","button","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"]),Dt=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ft=/(^-|-$)/g;function Mt(e){return e.replace(Dt,"-").replace(Ft,"")}function zt(e){return"string"==typeof e&&!0}function Gt(e,t,r){if(void 0===r&&(r=!1),!r&&!Qe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)e[n]=Gt(e[n],t[n]);else if(Qe(t))for(var n in t)e[n]=Gt(e[n],t[n]);return e}var Lt=ke(o),Bt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&nt(e),this.componentId=t,this.baseHash=Ne(Lt,t),this.baseStyle=r,T.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var n=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r).className:"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))n=ot(n,this.staticRulesId);else{var o=st(rt(this.rules,e,t,r)),s=pt(Ne(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,s)){var a=r(o,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,a)}n=ot(n,s),this.staticRulesId=s}else{for(var i=Ne(this.baseHash,r.hash),c="",u=0;u<this.rules.length;u++){var l=this.rules[u];if("string"==typeof l)c+=l;else if(l){var f=st(rt(l,e,t,r));i=Ne(i,f+u),c+=f}}if(c){var p=pt(i>>>0);if(!t.hasNameForId(this.componentId,p)){var h=r(c,".".concat(p),void 0,this.componentId);t.insertRules(this.componentId,p,h)}n=ot(n,p)}}return{className:n,css:"undefined"==typeof window?t.getTag().getGroup(b(this.componentId)):""}},e}(),Wt={};function Yt(t,r,n){var s=Xe(t),a=t,c=!zt(t),u=r.attrs,f=void 0===u?p:u,m=r.componentId,v=void 0===m?function(e,t){var r="string"!=typeof e?"sc":Mt(e);Wt[r]=(Wt[r]||0)+1;var n="".concat(r,"-").concat(ht(o+r+Wt[r]));return t?"".concat(t,"-").concat(n):n}(r.displayName,r.parentComponentId):m,g=r.displayName,y=void 0===g?function(e){return zt(e)?"styled.".concat(e):"Styled(".concat(Ue(e),")")}(t):g,S=r.displayName&&r.componentId?"".concat(Mt(r.displayName),"-").concat(r.componentId):r.componentId||v,b=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,w=r.shouldForwardProp;if(s&&a.shouldForwardProp){var C=a.shouldForwardProp;if(r.shouldForwardProp){var x=r.shouldForwardProp;w=function(e,t){return C(e,t)&&x(e,t)}}else w=C}var I=new Bt(n,S,s?a.componentStyle:void 0);function P(t,r){return function(t,r,n){var o=t.attrs,s=t.componentStyle,a=t.defaultProps,c=t.foldedComponentIds,u=t.styledComponentId,f=t.target,p=e.useContext?e.useContext(it):void 0,d=We(),m=t.shouldForwardProp||d.shouldForwardProp,v=ut(r,p,a)||h,g=function(e,t,r){for(var n,o=l(l({},t),{className:void 0,theme:r}),s=0;s<e.length;s+=1){var a=Ke(n=e[s])?n(o):n;for(var i in a)"className"===i?o.className=ot(o.className,a[i]):"style"===i?o.style=l(l({},o.style),a[i]):o[i]=a[i]}return"className"in t&&"string"==typeof t.className&&(o.className=ot(o.className,t.className)),o}(o,r,v),y=g.as||f,S={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?S.as=g.forwardedAs:m&&!m(b,y)||(S[b]=g[b]));var w=function(e,t){var r=We();return e.generateAndInjectStyles(t,r.styleSheet,r.stylis)}(s,g),C=w.className,x=w.css,I=ot(c,u);C&&(I+=" "+C),g.className&&(I+=" "+g.className),S[zt(y)&&!jt.has(y)?"class":"className"]=I,n&&(S.ref=n);var P=e.createElement(y,S);return i&&x?e.createElement(e.Fragment,null,e.createElement("style",{precedence:"styled-components",href:"sc-".concat(u,"-").concat(C),children:x}),P):P}(A,t,r)}P.displayName=y;var A=e.forwardRef(P);return A.attrs=b,A.componentStyle=I,A.displayName=y,A.shouldForwardProp=w,A.foldedComponentIds=s?ot(a.foldedComponentIds,a.styledComponentId):"",A.styledComponentId=S,A.target=s?a.target:t,Object.defineProperty(A,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,o=t;n<o.length;n++)Gt(e,o[n],!0);return e}({},a.defaultProps,e):e}}),d(A,function(){return".".concat(A.styledComponentId)}),c&&kt(A,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),A}function qt(e,t,r){if(void 0===r&&(r=h),!t)throw m(1,t);var n=function(n){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];return e(t,r,gt.apply(void 0,f([n],o,!1)))};return n.attrs=function(n){return qt(e,t,l(l({},r),{attrs:Array.prototype.concat(r.attrs,n).filter(Boolean)}))},n.withConfig=function(n){return qt(e,t,l(l({},r),n))},n}new Set;var Ht=function(e){return qt(Yt,e)},Vt=Ht;for(var Ut in jt.forEach(function(e){Vt[e]=Ht(e)}),Tt)Vt[Ut]=Tt[Ut];return Vt});
2
2
  //# sourceMappingURL=styled-components.min.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("css-to-react-native"),t=require("postcss"),n=require("tslib"),r=require("react"),o=require("stylis"),i=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var c=/*#__PURE__*/s(e),u=/*#__PURE__*/s(r),l=/*#__PURE__*/a(o),p=/*#__PURE__*/s(i),f=Object.freeze([]),d=Object.freeze({}),h="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 y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function v(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(y.apply(void 0,n.__spreadArray([h[e]],t,!1)).trim())}function m(e,t){Object.defineProperty(e,"toString",{value:t})}var g="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",S="active",_="data-styled-version",w="6.3.0",b="/*!sc*/\n",E="undefined"!=typeof window&&"undefined"!=typeof document,P=void 0===u.default.createContext,A=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),C=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw v(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(b);return t},e}(),N=1<<30,T=new Map,O=new Map,x=1,D=function(e){if(T.has(e))return T.get(e);for(;O.has(x);)x++;var t=x++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>N))throw v(16,"".concat(t));return T.set(e,t),O.set(t,e),t},j=function(e,t){x=t+1,T.set(e,t),O.set(t,e)},R="style[".concat(g,"][").concat(_,'="').concat(w,'"]'),I=new RegExp("^".concat(g,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),z=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},B=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(b),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(I);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(j(l,u),z(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},L=function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(g)!==S&&(B(e,o),o.parentNode&&o.parentNode.removeChild(o))}},M=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(g,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(g,S),r.setAttribute(_,w);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},V=function(){function e(e){this.element=M(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw v(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),k=function(){function e(e){this.element=M(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),F=E,q={isServer:!E,useCSSOMInjection:!A},Y=function(){function e(e,t,r){void 0===e&&(e=d),void 0===t&&(t={});var o=this;this.options=n.__assign(n.__assign({},q),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&E&&F&&(F=!1,L(this)),m(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return O.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(g,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat(b)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return D(e)},e.prototype.rehydrate=function(){!this.server&&E&&L(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n.__assign(n.__assign({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new $(n):t?new V(n):new k(n)}(this.options),new C(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(D(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(D(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(D(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=/&/g,H=/^\s*\/\/.*$/gm;function U(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=U(e.children,t)),e})}var K=new Y,Z=function(){var e,t,n,r=d.options,o=void 0===r?d:r,i=d.plugins,s=void 0===i?f:i,a=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},c=s.slice();c.push(function(e){e.type===l.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(W,t).replace(n,a))}),o.prefix&&c.push(l.prefixer),c.push(l.stringify);var u=function(r,i,s,a){void 0===i&&(i=""),void 0===s&&(s=""),void 0===a&&(a="&"),e=a,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=r.replace(H,""),p=l.compile(s||i?"".concat(s," ").concat(i," { ").concat(u," }"):u);o.namespace&&(p=U(p,o.namespace));var f=[];return l.serialize(p,l.middleware(c.concat(l.rulesheet(function(e){return f.push(e)})))),f};return u.hash=s.length?s.reduce(function(e,t){return t.name||v(15),G(e,t.name)},5381).toString():"",u}(),J=(P||u.default.createContext({shouldForwardProp:void 0,styleSheet:K,stylis:Z}),P||u.default.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Z);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,m(this,function(){throw v(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Z),this.name+e.hash},e}());function Q(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in p.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function X(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var ee=function(e){return e>="A"&&e<="Z"};function te(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ee(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function ne(e){return"function"==typeof e}function re(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function oe(e){return"object"==typeof e&&"styledComponentId"in e}var ie=function(e){return null==e||!1===e||""===e},se=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!ie(o)&&(Array.isArray(o)&&o.isCss||ne(o)?t.push("".concat(te(r),":"),o,";"):re(o)?t.push.apply(t,n.__spreadArray(n.__spreadArray(["".concat(r," {")],se(o),!1),["}"],!1)):t.push("".concat(te(r),": ").concat(Q(r,o),";")))}return t};function ae(e,t,n,r){if(ie(e))return[];if(oe(e))return[".".concat(e.styledComponentId)];if(ne(e)){if(!ne(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof J||re(o)||null===o||console.error("".concat(X(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.")),ae(o,t,n,r)}var i;return e instanceof J?n?(e.inject(n,r),[e.getName(r)]):[e]:re(e)?se(e):Array.isArray(e)?Array.prototype.concat.apply(f,e.map(function(e){return ae(e,t,n,r)})):[e.toString()]}function ce(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ue=function(e){return Object.assign(e,{isCss:!0})};function le(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ne(e)||re(e))return ue(ae(ce(f,n.__spreadArray([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?ae(o):ue(ae(ce(o,t)))}function pe(e,t,r){if(void 0===r&&(r=d),!t)throw v(1,t);var o=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,r,le.apply(void 0,n.__spreadArray([o],i,!1)))};return o.attrs=function(o){return pe(e,t,n.__assign(n.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return pe(e,t,n.__assign(n.__assign({},r),o))},o}var fe,de=P?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:u.default.createContext(void 0),he=de.Consumer;function ye(e,t,n){return void 0===n&&(n=d),e.theme!==n.theme&&e.theme||t||n.theme}var ve="function"==typeof Symbol&&Symbol.for,me=ve?Symbol.for("react.memo"):60115,ge=ve?Symbol.for("react.forward_ref"):60112,Se={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},we={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},be=((fe={})[ge]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fe[me]=we,fe);function Ee(e){return("type"in(t=e)&&t.type.$$typeof)===me?we:"$$typeof"in e?be[e.$$typeof]:Se;var t}var Pe=Object.defineProperty,Ae=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Ne=Object.getOwnPropertyDescriptor,Te=Object.getPrototypeOf,Oe=Object.prototype;function xe(e,t,n){if("string"!=typeof t){if(Oe){var r=Te(t);r&&r!==Oe&&xe(e,r,n)}var o=Ae(t);Ce&&(o=o.concat(Ce(t)));for(var i=Ee(e),s=Ee(t),a=0;a<o.length;++a){var c=o[a];if(!(c in _e||n&&n[c]||s&&c in s||i&&c in i)){var u=Ne(t,c);try{Pe(e,c,u)}catch(e){}}}}return e}var De=/(a)(d)/gi,je=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}var Ie=["fit-content","min-content","max-content"],ze={};function Be(e,t,n){if(void 0===n&&(n=!1),!n&&!re(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Be(e[r],t[r]);else if(re(t))for(var r in t)e[r]=Be(e[r],t[r]);return e}var Le,Me,Ve=require("react-native"),ke=(Le=Ve.StyleSheet,Me=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var n=Re(ae(this.rules,e)),r=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=je(t%52)+n;return(je(t%52)+n).replace(De,"$1-$2")}(G(5381,n)>>>0);if(!ze[r]){var o=t.parse(n),i=[];o.each(function(e){if("decl"===e.type){if(Ie.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));i.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=c.default(i,["borderWidth","borderColor"]),a=Le.create({generated:s});ze[r]=a.generated}return ze[r]},e}(),function(e,t,o){var i=oe(e),s=e,a=t.displayName,c=void 0===a?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(X(e),")")}(e):a,l=t.attrs,p=void 0===l?f:l,h=i&&s.attrs?s.attrs.concat(p).filter(Boolean):p,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;y=function(e,t){return v(e,t)&&m(e,t)}}else y=v}var g=function(e,t){return function(e,t,o){var i=e.attrs,s=e.inlineStyle,a=e.defaultProps,c=e.shouldForwardProp,l=e.target,p=u.default.useContext?u.default.useContext(de):void 0,f=function(e,t,r){void 0===e&&(e=d);var o=n.__assign(n.__assign({},t),{theme:e}),i={};return r.forEach(function(e){var t,n=ne(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ye(t,p,a)||d,t,i),h=f[1],y=s.generateStyleObject(f[0]),v=o,m=h.as||t.as||l,g=h!==t?n.__assign(n.__assign({},t),h):t,S={};for(var _ in g)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?S.as=g[_]:c&&!c(_,m)||(S[_]=g[_]));return S.style=u.default.useMemo?u.default.useMemo(function(){return ne(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):ne(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,o&&(S.ref=v),r.createElement(m,S)}(S,e,t)};g.displayName=c;var S=u.default.forwardRef(g);return S.attrs=h,S.inlineStyle=new Me(i?s.inlineStyle.rules.concat(o):o),S.displayName=c,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=i?s.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Be(e,o[r],!0);return e}({},s.defaultProps,e):e}}),xe(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),$e=function(e){return pe(ke,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty($e,e,{enumerable:!0,configurable:!1,get:function(){if(e in Ve&&Ve[e])return $e(Ve[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})}),exports.ThemeConsumer=he,exports.ThemeContext=de,exports.ThemeProvider=function(e){if(P||!u.default.useContext||!u.default.useMemo)return e.children;var t=u.default.useContext(de),r=u.default.useMemo(function(){return function(e,t){if(!e)throw v(14);if(ne(e)){var r=e(t);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw v(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw v(8);return t?n.__assign(n.__assign({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?u.default.createElement(de.Provider,{value:r},e.children):null},exports.css=le,exports.default=$e,exports.isStyledComponent=oe,exports.styled=$e,exports.toStyleSheet=function(e){var n=Re(ae(e)),r=t.parse(n),o=[];r.each(function(e){"decl"===e.type?o.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var i=c.default(o,["borderWidth","borderColor"]);return Ve.StyleSheet.create({style:i}).style},exports.useTheme=function(){var e=!P&&u.default.useContext?u.default.useContext(de):void 0;if(!e)throw v(18);return e},exports.withTheme=function(e){var t=u.default.forwardRef(function(t,r){var o=ye(t,u.default.useContext?u.default.useContext(de):void 0,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 "'.concat(X(e),'"')),u.default.createElement(e,n.__assign(n.__assign({},t),{theme:o,ref:r}))});return t.displayName="WithTheme(".concat(X(e),")"),xe(t,e)};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("css-to-react-native"),t=require("postcss"),n=require("tslib"),r=require("react"),o=require("stylis"),i=require("@emotion/unitless");function s(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var c=/*#__PURE__*/s(e),u=/*#__PURE__*/s(r),l=/*#__PURE__*/a(o),p=/*#__PURE__*/s(i),f=Object.freeze([]),d=Object.freeze({}),h="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 y(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function v(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(y.apply(void 0,n.__spreadArray([h[e]],t,!1)).trim())}function m(e,t){Object.defineProperty(e,"toString",{value:t})}var g="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",S="active",_="data-styled-version",w="6.3.1",b="/*!sc*/\n",E="undefined"!=typeof window&&"undefined"!=typeof document,P=void 0===u.default.createContext,A=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),C=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw v(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(b);return t},e}(),N=1<<30,T=new Map,O=new Map,x=1,D=function(e){if(T.has(e))return T.get(e);for(;O.has(x);)x++;var t=x++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>N))throw v(16,"".concat(t));return T.set(e,t),O.set(t,e),t},j=function(e,t){x=t+1,T.set(e,t),O.set(t,e)},R="style[".concat(g,"][").concat(_,'="').concat(w,'"]'),I=new RegExp("^".concat(g,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),z=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},B=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(b),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(I);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(j(l,u),z(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},L=function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(g)!==S&&(B(e,o),o.parentNode&&o.parentNode.removeChild(o))}},M=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(g,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(g,S),r.setAttribute(_,w);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},V=function(){function e(e){this.element=M(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw v(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),k=function(){function e(e){this.element=M(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),$=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),F=E,q={isServer:!E,useCSSOMInjection:!A},Y=function(){function e(e,t,r){void 0===e&&(e=d),void 0===t&&(t={});var o=this;this.options=n.__assign(n.__assign({},q),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&E&&F&&(F=!1,L(this)),m(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return O.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(g,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat(b)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return D(e)},e.prototype.rehydrate=function(){!this.server&&E&&L(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(n.__assign(n.__assign({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new $(n):t?new V(n):new k(n)}(this.options),new C(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(D(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(D(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(D(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),G=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},W=/&/g,H=/^\s*\/\/.*$/gm;function U(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=U(e.children,t)),e})}var K=new Y,Z=function(){var e,t,n,r=d.options,o=void 0===r?d:r,i=d.plugins,s=void 0===i?f:i,a=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},c=s.slice();c.push(function(e){e.type===l.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(W,t).replace(n,a))}),o.prefix&&c.push(l.prefixer),c.push(l.stringify);var u=function(r,i,s,a){void 0===i&&(i=""),void 0===s&&(s=""),void 0===a&&(a="&"),e=a,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=r.replace(H,""),p=l.compile(s||i?"".concat(s," ").concat(i," { ").concat(u," }"):u);o.namespace&&(p=U(p,o.namespace));var f=[];return l.serialize(p,l.middleware(c.concat(l.rulesheet(function(e){return f.push(e)})))),f};return u.hash=s.length?s.reduce(function(e,t){return t.name||v(15),G(e,t.name)},5381).toString():"",u}(),J=(P||u.default.createContext({shouldForwardProp:void 0,styleSheet:K,stylis:Z}),P||u.default.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Z);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,m(this,function(){throw v(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=Z),this.name+e.hash},e}());function Q(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in p.default||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function X(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var ee=function(e){return e>="A"&&e<="Z"};function te(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;ee(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function ne(e){return"function"==typeof e}function re(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function oe(e){return"object"==typeof e&&"styledComponentId"in e}var ie=function(e){return null==e||!1===e||""===e},se=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!ie(o)&&(Array.isArray(o)&&o.isCss||ne(o)?t.push("".concat(te(r),":"),o,";"):re(o)?t.push.apply(t,n.__spreadArray(n.__spreadArray(["".concat(r," {")],se(o),!1),["}"],!1)):t.push("".concat(te(r),": ").concat(Q(r,o),";")))}return t};function ae(e,t,n,r){if(ie(e))return[];if(oe(e))return[".".concat(e.styledComponentId)];if(ne(e)){if(!ne(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof J||re(o)||null===o||console.error("".concat(X(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.")),ae(o,t,n,r)}var i;return e instanceof J?n?(e.inject(n,r),[e.getName(r)]):[e]:re(e)?se(e):Array.isArray(e)?Array.prototype.concat.apply(f,e.map(function(e){return ae(e,t,n,r)})):[e.toString()]}function ce(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ue=function(e){return Object.assign(e,{isCss:!0})};function le(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(ne(e)||re(e))return ue(ae(ce(f,n.__spreadArray([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?ae(o):ue(ae(ce(o,t)))}function pe(e,t,r){if(void 0===r&&(r=d),!t)throw v(1,t);var o=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,r,le.apply(void 0,n.__spreadArray([o],i,!1)))};return o.attrs=function(o){return pe(e,t,n.__assign(n.__assign({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return pe(e,t,n.__assign(n.__assign({},r),o))},o}var fe,de=P?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:u.default.createContext(void 0),he=de.Consumer;function ye(e,t,n){return void 0===n&&(n=d),e.theme!==n.theme&&e.theme||t||n.theme}var ve="function"==typeof Symbol&&Symbol.for,me=ve?Symbol.for("react.memo"):60115,ge=ve?Symbol.for("react.forward_ref"):60112,Se={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},_e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},we={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},be=((fe={})[ge]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},fe[me]=we,fe);function Ee(e){return("type"in(t=e)&&t.type.$$typeof)===me?we:"$$typeof"in e?be[e.$$typeof]:Se;var t}var Pe=Object.defineProperty,Ae=Object.getOwnPropertyNames,Ce=Object.getOwnPropertySymbols,Ne=Object.getOwnPropertyDescriptor,Te=Object.getPrototypeOf,Oe=Object.prototype;function xe(e,t,n){if("string"!=typeof t){if(Oe){var r=Te(t);r&&r!==Oe&&xe(e,r,n)}var o=Ae(t);Ce&&(o=o.concat(Ce(t)));for(var i=Ee(e),s=Ee(t),a=0;a<o.length;++a){var c=o[a];if(!(c in _e||n&&n[c]||s&&c in s||i&&c in i)){var u=Ne(t,c);try{Pe(e,c,u)}catch(e){}}}}return e}var De=/(a)(d)/gi,je=function(e){return String.fromCharCode(e+(e>25?39:97))};function Re(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}var Ie=["fit-content","min-content","max-content"],ze={};function Be(e,t,n){if(void 0===n&&(n=!1),!n&&!re(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Be(e[r],t[r]);else if(re(t))for(var r in t)e[r]=Be(e[r],t[r]);return e}var Le,Me,Ve=require("react-native"),ke=(Le=Ve.StyleSheet,Me=function(){function e(e){this.rules=e}return e.prototype.generateStyleObject=function(e){var n=Re(ae(this.rules,e)),r=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=je(t%52)+n;return(je(t%52)+n).replace(De,"$1-$2")}(G(5381,n)>>>0);if(!ze[r]){var o=t.parse(n),i=[];o.each(function(e){if("decl"===e.type){if(Ie.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));i.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=c.default(i,["borderWidth","borderColor"]),a=Le.create({generated:s});ze[r]=a.generated}return ze[r]},e}(),function(e,t,o){var i=oe(e),s=e,a=t.displayName,c=void 0===a?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(X(e),")")}(e):a,l=t.attrs,p=void 0===l?f:l,h=i&&s.attrs?s.attrs.concat(p).filter(Boolean):p,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var m=t.shouldForwardProp;y=function(e,t){return v(e,t)&&m(e,t)}}else y=v}var g=function(e,t){return function(e,t,o){var i=e.attrs,s=e.inlineStyle,a=e.defaultProps,c=e.shouldForwardProp,l=e.target,p=u.default.useContext?u.default.useContext(de):void 0,f=function(e,t,r){void 0===e&&(e=d);var o=n.__assign(n.__assign({},t),{theme:e}),i={};return r.forEach(function(e){var t,n=ne(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(ye(t,p,a)||d,t,i),h=f[1],y=s.generateStyleObject(f[0]),v=o,m=h.as||t.as||l,g=h!==t?n.__assign(n.__assign({},t),h):t,S={};for(var _ in g)"$"!==_[0]&&"as"!==_&&("forwardedAs"===_?S.as=g[_]:c&&!c(_,m)||(S[_]=g[_]));return S.style=u.default.useMemo?u.default.useMemo(function(){return ne(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):ne(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,o&&(S.ref=v),r.createElement(m,S)}(S,e,t)};g.displayName=c;var S=u.default.forwardRef(g);return S.attrs=h,S.inlineStyle=new Me(i?s.inlineStyle.rules.concat(o):o),S.displayName=c,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=i?s.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Be(e,o[r],!0);return e}({},s.defaultProps,e):e}}),xe(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),$e=function(e){return pe(ke,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty($e,e,{enumerable:!0,configurable:!1,get:function(){if(e in Ve&&Ve[e])return $e(Ve[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})}),exports.ThemeConsumer=he,exports.ThemeContext=de,exports.ThemeProvider=function(e){if(P||!u.default.useContext||!u.default.useMemo)return e.children;var t=u.default.useContext(de),r=u.default.useMemo(function(){return function(e,t){if(!e)throw v(14);if(ne(e)){var r=e(t);if("production"!==process.env.NODE_ENV&&(null===r||Array.isArray(r)||"object"!=typeof r))throw v(7);return r}if(Array.isArray(e)||"object"!=typeof e)throw v(8);return t?n.__assign(n.__assign({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?u.default.createElement(de.Provider,{value:r},e.children):null},exports.css=le,exports.default=$e,exports.isStyledComponent=oe,exports.styled=$e,exports.toStyleSheet=function(e){var n=Re(ae(e)),r=t.parse(n),o=[];r.each(function(e){"decl"===e.type?o.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var i=c.default(o,["borderWidth","borderColor"]);return Ve.StyleSheet.create({style:i}).style},exports.useTheme=function(){var e=!P&&u.default.useContext?u.default.useContext(de):void 0;if(!e)throw v(18);return e},exports.withTheme=function(e){var t=u.default.forwardRef(function(t,r){var o=ye(t,u.default.useContext?u.default.useContext(de):void 0,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 "'.concat(X(e),'"')),u.default.createElement(e,n.__assign(n.__assign({},t),{theme:o,ref:r}))});return t.displayName="WithTheme(".concat(X(e),")"),xe(t,e)};
2
2
  //# sourceMappingURL=styled-components.native.cjs.js.map
@@ -1,2 +1,2 @@
1
- import e from"css-to-react-native";import{parse as t}from"postcss";import{__spreadArray as n,__assign as r}from"tslib";import o,{createElement as i}from"react";import*as s from"stylis";import a from"@emotion/unitless";var c=Object.freeze([]),u=Object.freeze({}),l="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 p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(p.apply(void 0,n([l[e]],t,!1)).trim())}function f(e,t){Object.defineProperty(e,"toString",{value:t})}var d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",y="active",m="data-styled-version",v="6.3.0",g="/*!sc*/\n",S="undefined"!=typeof window&&"undefined"!=typeof document,w=void 0===o.createContext,b=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw h(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(g);return t},e}(),P=1<<30,A=new Map,C=new Map,_=1,N=function(e){if(A.has(e))return A.get(e);for(;C.has(_);)_++;var t=_++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>P))throw h(16,"".concat(t));return A.set(e,t),C.set(t,e),t},T=function(e,t){_=t+1,A.set(e,t),C.set(t,e)},D="style[".concat(d,"][").concat(m,'="').concat(v,'"]'),O=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),R=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},x=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(O);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(T(l,u),R(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},j=function(e){for(var t=document.querySelectorAll(D),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==y&&(x(e,o),o.parentNode&&o.parentNode.removeChild(o))}},I=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(d,y),r.setAttribute(m,v);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},B=function(){function e(e){this.element=I(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw h(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),z=function(){function e(e){this.element=I(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),L=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),V=S,k={isServer:!S,useCSSOMInjection:!b},$=function(){function e(e,t,n){void 0===e&&(e=u),void 0===t&&(t={});var o=this;this.options=r(r({},k),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&S&&V&&(V=!1,j(this)),f(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return C.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat(g)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return N(e)},e.prototype.rehydrate=function(){!this.server&&S&&j(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new L(n):t?new B(n):new z(n)}(this.options),new E(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(N(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(N(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},F=/&/g,Y=/^\s*\/\/.*$/gm;function G(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=G(e.children,t)),e})}var W=new $,q=function(){var e,t,n,r=u.options,o=void 0===r?u:r,i=u.plugins,a=void 0===i?c:i,l=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},p=a.slice();p.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(F,t).replace(n,l))}),o.prefix&&p.push(s.prefixer),p.push(s.stringify);var f=function(r,i,a,c){void 0===i&&(i=""),void 0===a&&(a=""),void 0===c&&(c="&"),e=c,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=r.replace(Y,""),l=s.compile(a||i?"".concat(a," ").concat(i," { ").concat(u," }"):u);o.namespace&&(l=G(l,o.namespace));var h=[];return s.serialize(l,s.middleware(p.concat(s.rulesheet(function(e){return h.push(e)})))),h};return f.hash=a.length?a.reduce(function(e,t){return t.name||h(15),M(e,t.name)},5381).toString():"",f}(),H=(w||o.createContext({shouldForwardProp:void 0,styleSheet:W,stylis:q}),w||o.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=q);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,f(this,function(){throw h(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=q),this.name+e.hash},e}());function U(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in a||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function K(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var Z=function(e){return e>="A"&&e<="Z"};function J(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Z(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function Q(e){return"function"==typeof e}function X(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ee(e){return"object"==typeof e&&"styledComponentId"in e}var te=function(e){return null==e||!1===e||""===e},ne=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!te(o)&&(Array.isArray(o)&&o.isCss||Q(o)?t.push("".concat(J(r),":"),o,";"):X(o)?t.push.apply(t,n(n(["".concat(r," {")],ne(o),!1),["}"],!1)):t.push("".concat(J(r),": ").concat(U(r,o),";")))}return t};function re(e,t,n,r){if(te(e))return[];if(ee(e))return[".".concat(e.styledComponentId)];if(Q(e)){if(!Q(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof H||X(o)||null===o||console.error("".concat(K(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.")),re(o,t,n,r)}var i;return e instanceof H?n?(e.inject(n,r),[e.getName(r)]):[e]:X(e)?ne(e):Array.isArray(e)?Array.prototype.concat.apply(c,e.map(function(e){return re(e,t,n,r)})):[e.toString()]}function oe(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ie=function(e){return Object.assign(e,{isCss:!0})};function se(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Q(e)||X(e))return ie(re(oe(c,n([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?re(o):ie(re(oe(o,t)))}function ae(e,t,o){if(void 0===o&&(o=u),!t)throw h(1,t);var i=function(r){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,o,se.apply(void 0,n([r],i,!1)))};return i.attrs=function(n){return ae(e,t,r(r({},o),{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i.withConfig=function(n){return ae(e,t,r(r({},o),n))},i}var ce,ue=w?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0),le=ue.Consumer;function pe(){var e=!w&&o.useContext?o.useContext(ue):void 0;if(!e)throw h(18);return e}function he(e){if(w||!o.useContext||!o.useMemo)return e.children;var t=o.useContext(ue),n=o.useMemo(function(){return function(e,t){if(!e)throw h(14);if(Q(e)){var n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw h(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw h(8);return t?r(r({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?o.createElement(ue.Provider,{value:n},e.children):null}function fe(e,t,n){return void 0===n&&(n=u),e.theme!==n.theme&&e.theme||t||n.theme}var de="function"==typeof Symbol&&Symbol.for,ye=de?Symbol.for("react.memo"):60115,me=de?Symbol.for("react.forward_ref"):60112,ve={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ge={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Se={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},we=((ce={})[me]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ce[ye]=Se,ce);function be(e){return("type"in(t=e)&&t.type.$$typeof)===ye?Se:"$$typeof"in e?we[e.$$typeof]:ve;var t}var Ee=Object.defineProperty,Pe=Object.getOwnPropertyNames,Ae=Object.getOwnPropertySymbols,Ce=Object.getOwnPropertyDescriptor,_e=Object.getPrototypeOf,Ne=Object.prototype;function Te(e,t,n){if("string"!=typeof t){if(Ne){var r=_e(t);r&&r!==Ne&&Te(e,r,n)}var o=Pe(t);Ae&&(o=o.concat(Ae(t)));for(var i=be(e),s=be(t),a=0;a<o.length;++a){var c=o[a];if(!(c in ge||n&&n[c]||s&&c in s||i&&c in i)){var u=Ce(t,c);try{Ee(e,c,u)}catch(e){}}}}return e}function De(e){var t=o.forwardRef(function(t,n){var i=fe(t,o.useContext?o.useContext(ue):void 0,e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===i&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(K(e),'"')),o.createElement(e,r(r({},t),{theme:i,ref:n}))});return t.displayName="WithTheme(".concat(K(e),")"),Te(t,e)}var Oe=/(a)(d)/gi,Re=function(e){return String.fromCharCode(e+(e>25?39:97))};function xe(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}var je=["fit-content","min-content","max-content"],Ie={};function Be(e,t,n){if(void 0===n&&(n=!1),!n&&!X(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Be(e[r],t[r]);else if(X(t))for(var r in t)e[r]=Be(e[r],t[r]);return e}var ze,Le,Ve=require("react-native"),ke=(ze=Ve.StyleSheet,Le=function(){function n(e){this.rules=e}return n.prototype.generateStyleObject=function(n){var r=xe(re(this.rules,n)),o=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Re(t%52)+n;return(Re(t%52)+n).replace(Oe,"$1-$2")}(M(5381,r)>>>0);if(!Ie[o]){var i=t(r),s=[];i.each(function(e){if("decl"===e.type){if(je.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));s.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var a=e(s,["borderWidth","borderColor"]),c=ze.create({generated:a});Ie[o]=c.generated}return Ie[o]},n}(),function(e,t,n){var s=ee(e),a=e,l=t.displayName,p=void 0===l?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(K(e),")")}(e):l,h=t.attrs,f=void 0===h?c:h,d=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,y=t.shouldForwardProp;if(s&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;y=function(e,t){return m(e,t)&&v(e,t)}}else y=m}var g=function(e,t){return function(e,t,n){var s=e.attrs,a=e.inlineStyle,c=e.defaultProps,l=e.shouldForwardProp,p=e.target,h=o.useContext?o.useContext(ue):void 0,f=function(e,t,n){void 0===e&&(e=u);var o=r(r({},t),{theme:e}),i={};return n.forEach(function(e){var t,n=Q(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(fe(t,h,c)||u,t,s),d=f[1],y=a.generateStyleObject(f[0]),m=n,v=d.as||t.as||p,g=d!==t?r(r({},t),d):t,S={};for(var w in g)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?S.as=g[w]:l&&!l(w,v)||(S[w]=g[w]));return S.style=o.useMemo?o.useMemo(function(){return Q(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):Q(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,n&&(S.ref=m),i(v,S)}(S,e,t)};g.displayName=p;var S=o.forwardRef(g);return S.attrs=d,S.inlineStyle=new Le(s?a.inlineStyle.rules.concat(n):n),S.displayName=p,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=s?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Be(e,o[r],!0);return e}({},a.defaultProps,e):e}}),Te(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),$e=function(e){return ae(ke,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty($e,e,{enumerable:!0,configurable:!1,get:function(){if(e in Ve&&Ve[e])return $e(Ve[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})});var Me=function(n){var r=xe(re(n)),o=t(r),i=[];o.each(function(e){"decl"===e.type?i.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=e(i,["borderWidth","borderColor"]);return Ve.StyleSheet.create({style:s}).style};export{le as ThemeConsumer,ue as ThemeContext,he as ThemeProvider,se as css,$e as default,ee as isStyledComponent,$e as styled,Me as toStyleSheet,pe as useTheme,De as withTheme};
1
+ import e from"css-to-react-native";import{parse as t}from"postcss";import{__spreadArray as n,__assign as r}from"tslib";import o,{createElement as i}from"react";import*as s from"stylis";import a from"@emotion/unitless";var c=Object.freeze([]),u=Object.freeze({}),l="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 p(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(e){n=n.replace(/%[a-z]/,e)}),n}function h(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];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#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(p.apply(void 0,n([l[e]],t,!1)).trim())}function f(e,t){Object.defineProperty(e,"toString",{value:t})}var d="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",y="active",m="data-styled-version",v="6.3.1",g="/*!sc*/\n",S="undefined"!=typeof window&&"undefined"!=typeof document,w=void 0===o.createContext,b=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw h(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var s=this.indexOfGroup(e+1),a=(i=0,t.length);i<a;i++)this.tag.insertRule(s,t[i])&&(this.groupSizes[e]++,s++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(g);return t},e}(),P=1<<30,A=new Map,C=new Map,_=1,N=function(e){if(A.has(e))return A.get(e);for(;C.has(_);)_++;var t=_++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>P))throw h(16,"".concat(t));return A.set(e,t),C.set(t,e),t},T=function(e,t){_=t+1,A.set(e,t),C.set(t,e)},D="style[".concat(d,"][").concat(m,'="').concat(v,'"]'),O=new RegExp("^".concat(d,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),R=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},x=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(O);if(c){var u=0|parseInt(c[1],10),l=c[2];0!==u&&(T(l,u),R(e,l,c[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(a)}}},j=function(e){for(var t=document.querySelectorAll(D),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(d)!==y&&(x(e,o),o.parentNode&&o.parentNode.removeChild(o))}},I=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(d,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(d,y),r.setAttribute(m,v);var s="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},B=function(){function e(e){this.element=I(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw h(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),z=function(){function e(e){this.element=I(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),L=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),V=S,k={isServer:!S,useCSSOMInjection:!b},$=function(){function e(e,t,n){void 0===e&&(e=u),void 0===t&&(t={});var o=this;this.options=r(r({},k),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&S&&V&&(V=!1,j(this)),f(this,function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return C.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),s=t.getGroup(n);if(void 0===i||!i.size||0===s.length)return"continue";var a="".concat(d,".g").concat(n,'[id="').concat(o,'"]'),c="";void 0!==i&&i.forEach(function(e){e.length>0&&(c+="".concat(e,","))}),r+="".concat(s).concat(a,'{content:"').concat(c,'"}').concat(g)},i=0;i<n;i++)o(i);return r}(o)})}return e.registerId=function(e){return N(e)},e.prototype.rehydrate=function(){!this.server&&S&&j(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new L(n):t?new B(n):new z(n)}(this.options),new E(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(N(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(N(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(N(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},F=/&/g,Y=/^\s*\/\/.*$/gm;function G(e,t){return e.map(function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return"".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=G(e.children,t)),e})}var W=new $,q=function(){var e,t,n,r=u.options,o=void 0===r?u:r,i=u.plugins,a=void 0===i?c:i,l=function(n,r,o){return o.startsWith(t)&&o.endsWith(t)&&o.replaceAll(t,"").length>0?".".concat(e):n},p=a.slice();p.push(function(e){e.type===s.RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(F,t).replace(n,l))}),o.prefix&&p.push(s.prefixer),p.push(s.stringify);var f=function(r,i,a,c){void 0===i&&(i=""),void 0===a&&(a=""),void 0===c&&(c="&"),e=c,t=i,n=new RegExp("\\".concat(t,"\\b"),"g");var u=r.replace(Y,""),l=s.compile(a||i?"".concat(a," ").concat(i," { ").concat(u," }"):u);o.namespace&&(l=G(l,o.namespace));var h=[];return s.serialize(l,s.middleware(p.concat(s.rulesheet(function(e){return h.push(e)})))),h};return f.hash=a.length?a.reduce(function(e,t){return t.name||h(15),M(e,t.name)},5381).toString():"",f}(),H=(w||o.createContext({shouldForwardProp:void 0,styleSheet:W,stylis:q}),w||o.createContext(void 0),function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=q);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,f(this,function(){throw h(12,String(n.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=q),this.name+e.hash},e}());function U(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||e in a||e.startsWith("--")?String(t).trim():"".concat(t,"px")}function K(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}var Z=function(e){return e>="A"&&e<="Z"};function J(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Z(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}function Q(e){return"function"==typeof e}function X(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ee(e){return"object"==typeof e&&"styledComponentId"in e}var te=function(e){return null==e||!1===e||""===e},ne=function(e){var t=[];for(var r in e){var o=e[r];e.hasOwnProperty(r)&&!te(o)&&(Array.isArray(o)&&o.isCss||Q(o)?t.push("".concat(J(r),":"),o,";"):X(o)?t.push.apply(t,n(n(["".concat(r," {")],ne(o),!1),["}"],!1)):t.push("".concat(J(r),": ").concat(U(r,o),";")))}return t};function re(e,t,n,r){if(te(e))return[];if(ee(e))return[".".concat(e.styledComponentId)];if(Q(e)){if(!Q(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof o||Array.isArray(o)||o instanceof H||X(o)||null===o||console.error("".concat(K(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.")),re(o,t,n,r)}var i;return e instanceof H?n?(e.inject(n,r),[e.getName(r)]):[e]:X(e)?ne(e):Array.isArray(e)?Array.prototype.concat.apply(c,e.map(function(e){return re(e,t,n,r)})):[e.toString()]}function oe(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var ie=function(e){return Object.assign(e,{isCss:!0})};function se(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(Q(e)||X(e))return ie(re(oe(c,n([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?re(o):ie(re(oe(o,t)))}function ae(e,t,o){if(void 0===o&&(o=u),!t)throw h(1,t);var i=function(r){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,o,se.apply(void 0,n([r],i,!1)))};return i.attrs=function(n){return ae(e,t,r(r({},o),{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i.withConfig=function(n){return ae(e,t,r(r({},o),n))},i}var ce,ue=w?{Provider:function(e){return e.children},Consumer:function(e){return(0,e.children)(void 0)}}:o.createContext(void 0),le=ue.Consumer;function pe(){var e=!w&&o.useContext?o.useContext(ue):void 0;if(!e)throw h(18);return e}function he(e){if(w||!o.useContext||!o.useMemo)return e.children;var t=o.useContext(ue),n=o.useMemo(function(){return function(e,t){if(!e)throw h(14);if(Q(e)){var n=e(t);if("production"!==process.env.NODE_ENV&&(null===n||Array.isArray(n)||"object"!=typeof n))throw h(7);return n}if(Array.isArray(e)||"object"!=typeof e)throw h(8);return t?r(r({},t),e):e}(e.theme,t)},[e.theme,t]);return e.children?o.createElement(ue.Provider,{value:n},e.children):null}function fe(e,t,n){return void 0===n&&(n=u),e.theme!==n.theme&&e.theme||t||n.theme}var de="function"==typeof Symbol&&Symbol.for,ye=de?Symbol.for("react.memo"):60115,me=de?Symbol.for("react.forward_ref"):60112,ve={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ge={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Se={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},we=((ce={})[me]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},ce[ye]=Se,ce);function be(e){return("type"in(t=e)&&t.type.$$typeof)===ye?Se:"$$typeof"in e?we[e.$$typeof]:ve;var t}var Ee=Object.defineProperty,Pe=Object.getOwnPropertyNames,Ae=Object.getOwnPropertySymbols,Ce=Object.getOwnPropertyDescriptor,_e=Object.getPrototypeOf,Ne=Object.prototype;function Te(e,t,n){if("string"!=typeof t){if(Ne){var r=_e(t);r&&r!==Ne&&Te(e,r,n)}var o=Pe(t);Ae&&(o=o.concat(Ae(t)));for(var i=be(e),s=be(t),a=0;a<o.length;++a){var c=o[a];if(!(c in ge||n&&n[c]||s&&c in s||i&&c in i)){var u=Ce(t,c);try{Ee(e,c,u)}catch(e){}}}}return e}function De(e){var t=o.forwardRef(function(t,n){var i=fe(t,o.useContext?o.useContext(ue):void 0,e.defaultProps);return"production"!==process.env.NODE_ENV&&void 0===i&&console.warn('[withTheme] You are not using a ThemeProvider nor passing a theme prop or a theme in defaultProps in component class "'.concat(K(e),'"')),o.createElement(e,r(r({},t),{theme:i,ref:n}))});return t.displayName="WithTheme(".concat(K(e),")"),Te(t,e)}var Oe=/(a)(d)/gi,Re=function(e){return String.fromCharCode(e+(e>25?39:97))};function xe(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}var je=["fit-content","min-content","max-content"],Ie={};function Be(e,t,n){if(void 0===n&&(n=!1),!n&&!X(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Be(e[r],t[r]);else if(X(t))for(var r in t)e[r]=Be(e[r],t[r]);return e}var ze,Le,Ve=require("react-native"),ke=(ze=Ve.StyleSheet,Le=function(){function n(e){this.rules=e}return n.prototype.generateStyleObject=function(n){var r=xe(re(this.rules,n)),o=function(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=Re(t%52)+n;return(Re(t%52)+n).replace(Oe,"$1-$2")}(M(5381,r)>>>0);if(!Ie[o]){var i=t(r),s=[];i.each(function(e){if("decl"===e.type){if(je.includes(e.value))return void("production"!==process.env.NODE_ENV&&console.warn('[styled-components/native] The value "'.concat(e.value,'" for property "').concat(e.prop,'" is not supported in React Native and will be ignored.')));s.push([e.prop,e.value])}else"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var a=e(s,["borderWidth","borderColor"]),c=ze.create({generated:a});Ie[o]=c.generated}return Ie[o]},n}(),function(e,t,n){var s=ee(e),a=e,l=t.displayName,p=void 0===l?function(e){return function(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}(e)?"styled.".concat(e):"Styled(".concat(K(e),")")}(e):l,h=t.attrs,f=void 0===h?c:h,d=s&&a.attrs?a.attrs.concat(f).filter(Boolean):f,y=t.shouldForwardProp;if(s&&a.shouldForwardProp){var m=a.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;y=function(e,t){return m(e,t)&&v(e,t)}}else y=m}var g=function(e,t){return function(e,t,n){var s=e.attrs,a=e.inlineStyle,c=e.defaultProps,l=e.shouldForwardProp,p=e.target,h=o.useContext?o.useContext(ue):void 0,f=function(e,t,n){void 0===e&&(e=u);var o=r(r({},t),{theme:e}),i={};return n.forEach(function(e){var t,n=Q(e)?e(o):e;for(t in n)o[t]=i[t]=n[t]}),[o,i]}(fe(t,h,c)||u,t,s),d=f[1],y=a.generateStyleObject(f[0]),m=n,v=d.as||t.as||p,g=d!==t?r(r({},t),d):t,S={};for(var w in g)"$"!==w[0]&&"as"!==w&&("forwardedAs"===w?S.as=g[w]:l&&!l(w,v)||(S[w]=g[w]));return S.style=o.useMemo?o.useMemo(function(){return Q(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y},[t.style,y]):Q(t.style)?function(e){return[y].concat(t.style(e))}:t.style?[y].concat(t.style):y,n&&(S.ref=m),i(v,S)}(S,e,t)};g.displayName=p;var S=o.forwardRef(g);return S.attrs=d,S.inlineStyle=new Le(s?a.inlineStyle.rules.concat(n):n),S.displayName=p,S.shouldForwardProp=y,S.styledComponentId=!0,S.target=s?a.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=s?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Be(e,o[r],!0);return e}({},a.defaultProps,e):e}}),Te(S,e,{attrs:!0,inlineStyle:!0,displayName:!0,shouldForwardProp:!0,target:!0}),S}),$e=function(e){return ae(ke,e)};["ActivityIndicator","Button","DatePickerIOS","DrawerLayoutAndroid","FlatList","Image","ImageBackground","KeyboardAvoidingView","Modal","Pressable","ProgressBarAndroid","ProgressViewIOS","RefreshControl","SafeAreaView","ScrollView","SectionList","Slider","Switch","Text","TextInput","TouchableHighlight","TouchableOpacity","View","VirtualizedList"].forEach(function(e){return Object.defineProperty($e,e,{enumerable:!0,configurable:!1,get:function(){if(e in Ve&&Ve[e])return $e(Ve[e]);throw new Error("".concat(e," is not available in the currently-installed version of react-native"))}})});var Me=function(n){var r=xe(re(n)),o=t(r),i=[];o.each(function(e){"decl"===e.type?i.push([e.prop,e.value]):"production"!==process.env.NODE_ENV&&"comment"!==e.type&&console.warn("Node of type ".concat(e.type," not supported as an inline style"))});var s=e(i,["borderWidth","borderColor"]);return Ve.StyleSheet.create({style:s}).style};export{le as ThemeConsumer,ue as ThemeContext,he as ThemeProvider,se as css,$e as default,ee as isStyledComponent,$e as styled,Me as toStyleSheet,pe as useTheme,De as withTheme};
2
2
  //# sourceMappingURL=styled-components.native.esm.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "styled-components",
3
- "version": "6.3.0",
3
+ "version": "6.3.1",
4
4
  "description": "CSS for the <Component> Age. Style components your way with speed, strong typing, and flexibility.",
5
5
  "publishConfig": {
6
6
  "access": "public"