@harpercollins/harpercollins-design-system 1.29.2 → 1.29.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/dist/cjs/components/data-display/ChipIcon/ChipIcon.cjs +2 -2
  2. package/dist/cjs/components/data-display/Heading/Heading.cjs +1 -1
  3. package/dist/cjs/components/data-display/Icon/Icon.cjs +3 -3
  4. package/dist/cjs/components/data-display/ReadMore/ReadMore.cjs +4 -4
  5. package/dist/cjs/components/data-display/StatusIcon/StatusIcon.cjs +2 -2
  6. package/dist/cjs/components/data-display/Table/FilterChipsSection.cjs +2 -2
  7. package/dist/cjs/components/data-display/Table/StickyHorizontalScrollbar.cjs +3 -3
  8. package/dist/cjs/components/data-display/Table/Table.cjs +1 -1
  9. package/dist/cjs/components/data-display/Table/Table.styles.cjs +5 -5
  10. package/dist/cjs/components/data-display/Table/TableToolbar.cjs +3 -3
  11. package/dist/cjs/components/data-display/Table/filters/FilterComponents.cjs +4 -4
  12. package/dist/cjs/components/data-display/TextBlock/TextBlock.cjs +7 -7
  13. package/dist/cjs/components/data-display/Tooltip/Tooltip.cjs +2 -2
  14. package/dist/cjs/components/feedback/LoadingSpinner/LoadingSpinner.cjs +3 -3
  15. package/dist/cjs/components/feedback/ProgressBar/ProgressBar.cjs +4 -4
  16. package/dist/cjs/components/feedback/ToastMessages/ToastMessages.cjs +4 -4
  17. package/dist/cjs/components/global/AppBar/AppBar.cjs +8 -8
  18. package/dist/cjs/components/global/AppBar/NavigationProgress.cjs +4 -4
  19. package/dist/cjs/components/global/ErrorFallback/FullPageErrorFallback.cjs +3 -3
  20. package/dist/cjs/components/global/Footer/Footer.cjs +3 -3
  21. package/dist/cjs/components/global/Layout/Layout.cjs +3 -3
  22. package/dist/cjs/components/global/Logo/Logo.cjs +4 -4
  23. package/dist/cjs/components/global/Logo/LogoMini.cjs +2 -2
  24. package/dist/cjs/components/inputs/Autocomplete/AutocompleteSelectMultiple/AutocompleteSelectMultiple.cjs +2 -2
  25. package/dist/cjs/components/inputs/DatePicker/DatePicker.cjs +2 -2
  26. package/dist/cjs/components/inputs/DateTimeInput/DateTimeInput.cjs +4 -4
  27. package/dist/cjs/components/inputs/Input/Input.cjs +2 -2
  28. package/dist/cjs/components/navigation/Breadcrumb/Breadcrumb.cjs +4 -4
  29. package/dist/cjs/components/navigation/Drawer/Drawer.cjs +18 -18
  30. package/dist/cjs/components/navigation/Menu/MenuHeading.cjs +1 -1
  31. package/dist/cjs/components/navigation/Menu/MenuItem.cjs +1 -1
  32. package/dist/cjs/components/navigation/PrimaryNavigation/PrimaryNavigation.cjs +3 -3
  33. package/dist/cjs/components/surfaces/Accordion/Accordion.cjs +1 -1
  34. package/dist/cjs/components/surfaces/AccordionLegacy/Accordion.cjs +5 -5
  35. package/dist/cjs/index.cjs +2 -1
  36. package/dist/cjs/node_modules/.pnpm/@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useSlider/useSlider.cjs +1 -1
  37. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/MenuItem/MenuItem.cjs +1 -1
  38. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Modal/Modal.cjs +1 -1
  39. package/dist/cjs/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/className/index.cjs +1 -1
  40. package/dist/esm/components/data-display/ChipIcon/ChipIcon.js +1 -1
  41. package/dist/esm/components/data-display/Heading/Heading.js +1 -1
  42. package/dist/esm/components/data-display/Icon/Icon.js +4 -4
  43. package/dist/esm/components/data-display/ReadMore/ReadMore.js +1 -1
  44. package/dist/esm/components/data-display/StatusIcon/StatusIcon.js +5 -5
  45. package/dist/esm/components/data-display/Table/FilterChipsSection.js +1 -1
  46. package/dist/esm/components/data-display/Table/StickyHorizontalScrollbar.js +1 -1
  47. package/dist/esm/components/data-display/Table/Table.js +4 -4
  48. package/dist/esm/components/data-display/Table/Table.styles.js +1 -1
  49. package/dist/esm/components/data-display/Table/TableBody.js +1 -1
  50. package/dist/esm/components/data-display/Table/TableToolbar.js +1 -1
  51. package/dist/esm/components/data-display/Table/filters/FilterComponents.js +10 -10
  52. package/dist/esm/components/data-display/TextBlock/TextBlock.js +4 -4
  53. package/dist/esm/components/data-display/Tooltip/Tooltip.js +3 -3
  54. package/dist/esm/components/feedback/LoadingSpinner/LoadingSpinner.js +5 -5
  55. package/dist/esm/components/feedback/ProgressBar/ProgressBar.js +3 -3
  56. package/dist/esm/components/feedback/ToastMessages/ToastMessages.js +1 -1
  57. package/dist/esm/components/global/AppBar/AppBar.js +1 -1
  58. package/dist/esm/components/global/AppBar/NavigationProgress.js +1 -1
  59. package/dist/esm/components/global/ErrorFallback/FullPageErrorFallback.js +1 -1
  60. package/dist/esm/components/global/Footer/Footer.js +1 -1
  61. package/dist/esm/components/global/Layout/Layout.js +1 -1
  62. package/dist/esm/components/global/Logo/Logo.js +9 -9
  63. package/dist/esm/components/global/Logo/LogoMini.js +7 -7
  64. package/dist/esm/components/inputs/Autocomplete/AutocompleteSelectMultiple/AutocompleteSelectMultiple.js +1 -1
  65. package/dist/esm/components/inputs/DatePicker/DatePicker.js +1 -1
  66. package/dist/esm/components/inputs/DateTimeInput/DateTimeInput.js +1 -1
  67. package/dist/esm/components/inputs/Input/Input.js +1 -1
  68. package/dist/esm/components/navigation/Breadcrumb/Breadcrumb.js +1 -1
  69. package/dist/esm/components/navigation/Drawer/Drawer.js +16 -16
  70. package/dist/esm/components/navigation/Menu/MenuHeading.js +1 -1
  71. package/dist/esm/components/navigation/Menu/MenuItem.js +1 -1
  72. package/dist/esm/components/navigation/PrimaryNavigation/PrimaryNavigation.js +27 -27
  73. package/dist/esm/components/surfaces/Accordion/Accordion.js +3 -3
  74. package/dist/esm/components/surfaces/AccordionLegacy/Accordion.js +1 -1
  75. package/dist/esm/contexts/NavigationProgressContext.js +5 -5
  76. package/dist/esm/index.js +196 -194
  77. package/dist/esm/node_modules/.pnpm/@mui_base@5.0.0-beta.40-1_@types_react@18.3.28_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@mui/base/useSlider/useSlider.js +4 -4
  78. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Autocomplete/Autocomplete.js +1 -1
  79. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/MenuItem/MenuItem.js +12 -12
  80. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Modal/Modal.js +1 -1
  81. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/Switch/switchClasses.js +3 -3
  82. package/dist/esm/node_modules/.pnpm/@mui_joy@5.0.0-beta.52_@emotion_react@11.14.0_@types_react@18.3.28_react@18.3.1__@emoti_58201694b486b0db36cbf79098c4edaa/node_modules/@mui/joy/className/index.js +3 -3
  83. package/package.json +10 -3
  84. package/dist/cjs/assets/harpercollins-design-system.css +0 -1
  85. package/dist/cjs/node_modules/.pnpm/styled-components@6.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.cjs +0 -82
  86. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.cjs +0 -1
  87. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Middleware.cjs +0 -1
  88. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.cjs +0 -1
  89. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Prefixer.cjs +0 -1
  90. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.cjs +0 -1
  91. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.cjs +0 -1
  92. package/dist/cjs/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.cjs +0 -1
  93. package/dist/esm/assets/harpercollins-design-system.css +0 -1
  94. package/dist/esm/node_modules/.pnpm/styled-components@6.4.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js +0 -721
  95. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Enum.js +0 -13
  96. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Middleware.js +0 -49
  97. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Parser.js +0 -136
  98. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Prefixer.js +0 -189
  99. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Serializer.js +0 -28
  100. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Tokenizer.js +0 -147
  101. package/dist/esm/node_modules/.pnpm/stylis@4.3.6/node_modules/stylis/src/Utility.js +0 -56
@@ -1,721 +0,0 @@
1
- import pt from "../../../../@emotion_is-prop-valid@1.4.0/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js";
2
- import O, { createElement as ft } from "react";
3
- import { RULESET as mt } from "../../../../stylis@4.3.6/node_modules/stylis/src/Enum.js";
4
- import { prefixer as yt, middleware as gt, rulesheet as vt } from "../../../../stylis@4.3.6/node_modules/stylis/src/Middleware.js";
5
- import { stringify as St, serialize as bt } from "../../../../stylis@4.3.6/node_modules/stylis/src/Serializer.js";
6
- import { compile as wt } from "../../../../stylis@4.3.6/node_modules/stylis/src/Parser.js";
7
- var fe, me;
8
- const F = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", qe = "active", We = "data-styled-version", ae = "6.4.1", _e = `/*!sc*/
9
- `, Z = typeof window < "u" && typeof document < "u";
10
- function Re(e) {
11
- if (typeof process < "u" && process.env !== void 0) {
12
- const t = process.env[e];
13
- if (t !== void 0 && t !== "") return t !== "false";
14
- }
15
- }
16
- const Nt = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : (me = (fe = Re("REACT_APP_SC_DISABLE_SPEEDY")) !== null && fe !== void 0 ? fe : Re("SC_DISABLE_SPEEDY")) !== null && me !== void 0 ? me : typeof process > "u" || process.env === void 0 || process.env.NODE_ENV !== "production"), He = "sc-keyframes-", Ct = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
17
-
18
- `, 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.
19
-
20
- - Are you trying to reuse it across renders?
21
- - Are you accidentally calling collectStyles twice?
22
-
23
- `, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
24
-
25
- `, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
26
-
27
- - Does this error occur on the client and is your target falsy?
28
- - Does this error occur on the server and is the sheet falsy?
29
-
30
- `, 5: `The clone method cannot be used on the client!
31
-
32
- - Are you running in a client-like environment on the server?
33
- - Are you trying to run SSR on the client?
34
-
35
- `, 6: `Trying to insert a new style tag, but the given Node is unmounted!
36
-
37
- - Are you using a custom target that isn't mounted?
38
- - Does your document not have a valid head element?
39
- - Have you accidentally removed a style tag manually?
40
-
41
- `, 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.
42
-
43
- `, 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
44
-
45
- `, 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.
46
-
47
- `, 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://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://styled-components.com/docs/advanced#referring-to-other-components for more details.
48
-
49
- `, 14: `ThemeProvider: "theme" prop is required.
50
-
51
- `, 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.
52
- You may only create up to 1,073,741,824 components. If you're creating components dynamically,
53
- as for instance in your render method then you may be running into this limitation.
54
-
55
- `, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
56
- Has styled-components' style tag been unmounted or altered by another script?
57
-
58
- `, 18: `Accessing \`useTheme\` hook outside of a \`<ThemeProvider>\` element.
59
-
60
- \`\`\`jsx
61
- import { useTheme } from 'styled-components';
62
- export function StyledCompoent({ children }) {
63
- const theme = useTheme();
64
- return <div style={{ width: theme.sizes.full }}>{children}</div>;
65
- }
66
-
67
- import { StyledComponent } from './StyledComponent';
68
- import { theme } from './theme';
69
- export function App() {
70
- return (
71
- <ThemeProvider theme={theme}>
72
- <StyledComponent />
73
- </ThemeProvider>
74
- );
75
- }
76
- \`\`\`
77
-
78
- If you need access to the theme in an uncertain composition scenario, \`React.useContext(ThemeContext)\` will not emit an error if there is no \`ThemeProvider\` ancestor.
79
- ` } : {};
80
- function Y(e, ...t) {
81
- return process.env.NODE_ENV === "production" ? new Error(`An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#${e} for more information.${t.length > 0 ? ` Args: ${t.join(", ")}` : ""}`) : new Error((function(...n) {
82
- let o = n[0];
83
- const r = [];
84
- for (let s = 1, a = n.length; s < a; s += 1) r.push(n[s]);
85
- return r.forEach((s) => {
86
- o = o.replace(/%[a-z]/, s);
87
- }), o;
88
- })(Ct[e], ...t).trim());
89
- }
90
- const At = 1 << 30;
91
- let oe = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), re = 1;
92
- const K = (e) => {
93
- if (oe.has(e)) return oe.get(e);
94
- for (; ie.has(re); ) re++;
95
- const t = re++;
96
- if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > At)) throw Y(16, `${t}`);
97
- return oe.set(e, t), ie.set(t, e), t;
98
- }, Ot = (e) => ie.get(e), Et = (e, t) => {
99
- re = t + 1, oe.set(e, t), ie.set(t, e);
100
- }, je = /invalid hook call/i, te = /* @__PURE__ */ new Set(), _t = (e, t) => {
101
- if (process.env.NODE_ENV !== "production") {
102
- const n = `The component ${e}${t ? ` with the id of "${t}"` : ""} has been created dynamically.
103
- You may see this warning because you've called styled inside another component.
104
- To resolve this only create new StyledComponents outside of any render method and function component.
105
- See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
106
- `, o = console.error;
107
- try {
108
- let r = !0;
109
- console.error = (s, ...a) => {
110
- je.test(s) ? (r = !1, te.delete(n)) : o(s, ...a);
111
- }, typeof O.useState == "function" && O.useState(null), r && !te.has(n) && (console.warn(n), te.add(n));
112
- } catch (r) {
113
- je.test(r.message) && te.delete(n);
114
- } finally {
115
- console.error = o;
116
- }
117
- }
118
- }, Ie = Object.freeze([]), H = Object.freeze({});
119
- function It(e, t, n = H) {
120
- return e.theme !== n.theme && e.theme || t || n.theme;
121
- }
122
- const Pt = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, kt = /(^-|-$)/g;
123
- function Ye(e) {
124
- return e.replace(Pt, "-").replace(kt, "");
125
- }
126
- const xt = /(a)(d)/gi, Te = (e) => String.fromCharCode(e + (e > 25 ? 39 : 97));
127
- function Pe(e) {
128
- let t, n = "";
129
- for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = Te(t % 52) + n;
130
- return (Te(t % 52) + n).replace(xt, "$1-$2");
131
- }
132
- const be = 5381, G = (e, t) => {
133
- let n = t.length;
134
- for (; n; ) e = 33 * e ^ t.charCodeAt(--n);
135
- return e;
136
- }, Ue = (e) => G(be, e);
137
- function Je(e) {
138
- return Pe(Ue(e) >>> 0);
139
- }
140
- function ke(e) {
141
- return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
142
- }
143
- function se(e) {
144
- return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
145
- }
146
- function Rt(e) {
147
- return se(e) ? `styled.${e}` : `Styled(${ke(e)})`;
148
- }
149
- const Ke = /* @__PURE__ */ Symbol.for("react.memo"), jt = /* @__PURE__ */ Symbol.for("react.forward_ref"), Tt = { contextType: !0, defaultProps: !0, displayName: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, propTypes: !0, type: !0 }, $t = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, Xe = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Dt = { [jt]: { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, [Ke]: Xe };
150
- function $e(e) {
151
- return ("type" in (t = e) && t.type.$$typeof) === Ke ? Xe : "$$typeof" in e ? Dt[e.$$typeof] : Tt;
152
- var t;
153
- }
154
- const Vt = Object.defineProperty, zt = Object.getOwnPropertyNames, Gt = Object.getOwnPropertySymbols, Mt = Object.getOwnPropertyDescriptor, Ft = Object.getPrototypeOf, Bt = Object.prototype;
155
- function Ze(e, t, n) {
156
- if (typeof t != "string") {
157
- const o = Ft(t);
158
- o && o !== Bt && Ze(e, o, n);
159
- const r = zt(t).concat(Gt(t)), s = $e(e), a = $e(t);
160
- for (let c = 0; c < r.length; ++c) {
161
- const i = r[c];
162
- if (!(i in $t || n && n[i] || a && i in a || s && i in s)) {
163
- const d = Mt(t, i);
164
- try {
165
- Vt(e, i, d);
166
- } catch {
167
- }
168
- }
169
- }
170
- }
171
- return e;
172
- }
173
- function ce(e) {
174
- return typeof e == "function";
175
- }
176
- function Qe(e) {
177
- return typeof e == "object" && "styledComponentId" in e;
178
- }
179
- function X(e, t) {
180
- return e && t ? e + " " + t : e || t || "";
181
- }
182
- function we(e, t) {
183
- return e.join("");
184
- }
185
- function B(e) {
186
- return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
187
- }
188
- function Ne(e, t, n = !1) {
189
- if (!n && !B(e) && !Array.isArray(e)) return t;
190
- if (Array.isArray(t)) for (let o = 0; o < t.length; o++) e[o] = Ne(e[o], t[o]);
191
- else if (B(t)) for (const o in t) e[o] = Ne(e[o], t[o]);
192
- return e;
193
- }
194
- function xe(e, t) {
195
- Object.defineProperty(e, "toString", { value: t });
196
- }
197
- const Lt = class {
198
- constructor(e) {
199
- this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e, this._cGroup = 0, this._cIndex = 0;
200
- }
201
- indexOfGroup(e) {
202
- if (e === this._cGroup) return this._cIndex;
203
- let t = this._cIndex;
204
- if (e > this._cGroup) for (let n = this._cGroup; n < e; n++) t += this.groupSizes[n];
205
- else for (let n = this._cGroup - 1; n >= e; n--) t -= this.groupSizes[n];
206
- return this._cGroup = e, this._cIndex = t, t;
207
- }
208
- insertRules(e, t) {
209
- if (e >= this.groupSizes.length) {
210
- const r = this.groupSizes, s = r.length;
211
- let a = s;
212
- for (; e >= a; ) if (a <<= 1, a < 0) throw Y(16, `${e}`);
213
- this.groupSizes = new Uint32Array(a), this.groupSizes.set(r), this.length = a;
214
- for (let c = s; c < a; c++) this.groupSizes[c] = 0;
215
- }
216
- let n = this.indexOfGroup(e + 1), o = 0;
217
- for (let r = 0, s = t.length; r < s; r++) this.tag.insertRule(n, t[r]) && (this.groupSizes[e]++, n++, o++);
218
- o > 0 && this._cGroup > e && (this._cIndex += o);
219
- }
220
- clearGroup(e) {
221
- if (e < this.length) {
222
- const t = this.groupSizes[e], n = this.indexOfGroup(e), o = n + t;
223
- this.groupSizes[e] = 0;
224
- for (let r = n; r < o; r++) this.tag.deleteRule(n);
225
- t > 0 && this._cGroup > e && (this._cIndex -= t);
226
- }
227
- }
228
- getGroup(e) {
229
- let t = "";
230
- if (e >= this.length || this.groupSizes[e] === 0) return t;
231
- const n = this.groupSizes[e], o = this.indexOfGroup(e), r = o + n;
232
- for (let s = o; s < r; s++) t += this.tag.getRule(s) + _e;
233
- return t;
234
- }
235
- }, qt = `style[${F}][${We}="${ae}"]`, Wt = new RegExp(`^${F}\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)`), De = (e) => typeof ShadowRoot < "u" && e instanceof ShadowRoot || "host" in e && e.nodeType === 11, Ce = (e) => {
236
- if (!e) return document;
237
- if (De(e)) return e;
238
- if ("getRootNode" in e) {
239
- const t = e.getRootNode();
240
- if (De(t)) return t;
241
- }
242
- return document;
243
- }, Ht = (e, t, n) => {
244
- const o = n.split(",");
245
- let r;
246
- for (let s = 0, a = o.length; s < a; s++) (r = o[s]) && e.registerName(t, r);
247
- }, Yt = (e, t) => {
248
- var n;
249
- const o = ((n = t.textContent) !== null && n !== void 0 ? n : "").split(_e), r = [];
250
- for (let s = 0, a = o.length; s < a; s++) {
251
- const c = o[s].trim();
252
- if (!c) continue;
253
- const i = c.match(Wt);
254
- if (i) {
255
- const d = 0 | parseInt(i[1], 10), h = i[2];
256
- d !== 0 && (Et(h, d), Ht(e, h, i[3]), e.getTag().insertRules(d, r)), r.length = 0;
257
- } else r.push(c);
258
- }
259
- }, ye = (e) => {
260
- const t = Ce(e.options.target).querySelectorAll(qt);
261
- for (let n = 0, o = t.length; n < o; n++) {
262
- const r = t[n];
263
- r && r.getAttribute(F) !== qe && (Yt(e, r), r.parentNode && r.parentNode.removeChild(r));
264
- }
265
- };
266
- let J = !1;
267
- function Ut() {
268
- if (J !== !1) return J;
269
- if (typeof document < "u") {
270
- const e = document.head.querySelector('meta[property="csp-nonce"]');
271
- if (e) return J = e.nonce || e.getAttribute("content") || void 0;
272
- const t = document.head.querySelector('meta[name="sc-nonce"]');
273
- if (t) return J = t.getAttribute("content") || void 0;
274
- }
275
- return J = typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
276
- }
277
- const et = (e, t) => {
278
- const n = document.head, o = e || n, r = document.createElement("style"), s = ((i) => {
279
- const d = Array.from(i.querySelectorAll(`style[${F}]`));
280
- return d[d.length - 1];
281
- })(o), a = s !== void 0 ? s.nextSibling : null;
282
- r.setAttribute(F, qe), r.setAttribute(We, ae);
283
- const c = t || Ut();
284
- return c && r.setAttribute("nonce", c), o.insertBefore(r, a), r;
285
- }, Jt = class {
286
- constructor(e, t) {
287
- this.element = et(e, t), this.element.appendChild(document.createTextNode("")), this.sheet = ((n) => {
288
- var o;
289
- if (n.sheet) return n.sheet;
290
- const r = (o = n.getRootNode().styleSheets) !== null && o !== void 0 ? o : document.styleSheets;
291
- for (let s = 0, a = r.length; s < a; s++) {
292
- const c = r[s];
293
- if (c.ownerNode === n) return c;
294
- }
295
- throw Y(17);
296
- })(this.element), this.length = 0;
297
- }
298
- insertRule(e, t) {
299
- try {
300
- return this.sheet.insertRule(t, e), this.length++, !0;
301
- } catch {
302
- return !1;
303
- }
304
- }
305
- deleteRule(e) {
306
- this.sheet.deleteRule(e), this.length--;
307
- }
308
- getRule(e) {
309
- const t = this.sheet.cssRules[e];
310
- return t && t.cssText ? t.cssText : "";
311
- }
312
- }, Kt = class {
313
- constructor(e, t) {
314
- this.element = et(e, t), this.nodes = this.element.childNodes, this.length = 0;
315
- }
316
- insertRule(e, t) {
317
- if (e <= this.length && e >= 0) {
318
- const n = document.createTextNode(t);
319
- return this.element.insertBefore(n, this.nodes[e] || null), this.length++, !0;
320
- }
321
- return !1;
322
- }
323
- deleteRule(e) {
324
- this.element.removeChild(this.nodes[e]), this.length--;
325
- }
326
- getRule(e) {
327
- return e < this.length ? this.nodes[e].textContent : "";
328
- }
329
- };
330
- let Ve = Z;
331
- const Xt = { isServer: !Z, useCSSOMInjection: !Nt };
332
- class le {
333
- static registerId(t) {
334
- return K(t);
335
- }
336
- constructor(t = H, n = {}, o) {
337
- this.options = Object.assign(Object.assign({}, Xt), t), this.gs = n, this.keyframeIds = /* @__PURE__ */ new Set(), this.names = new Map(o), this.server = !!t.isServer, !this.server && Z && Ve && (Ve = !1, ye(this)), xe(this, () => ((r) => {
338
- const s = r.getTag(), { length: a } = s;
339
- let c = "";
340
- for (let i = 0; i < a; i++) {
341
- const d = Ot(i);
342
- if (d === void 0) continue;
343
- const h = r.names.get(d);
344
- if (h === void 0 || !h.size) continue;
345
- const m = s.getGroup(i);
346
- if (m.length === 0) continue;
347
- const f = F + ".g" + i + '[id="' + d + '"]';
348
- let I = "";
349
- for (const p of h) p.length > 0 && (I += p + ",");
350
- c += m + f + '{content:"' + I + '"}' + _e;
351
- }
352
- return c;
353
- })(this));
354
- }
355
- rehydrate() {
356
- !this.server && Z && ye(this);
357
- }
358
- reconstructWithOptions(t, n = !0) {
359
- const o = new le(Object.assign(Object.assign({}, this.options), t), this.gs, n && this.names || void 0);
360
- return o.keyframeIds = new Set(this.keyframeIds), !this.server && Z && t.target !== this.options.target && Ce(this.options.target) !== Ce(t.target) && ye(o), o;
361
- }
362
- allocateGSInstance(t) {
363
- return this.gs[t] = (this.gs[t] || 0) + 1;
364
- }
365
- getTag() {
366
- return this.tag || (this.tag = (t = (({ useCSSOMInjection: n, target: o, nonce: r }) => n ? new Jt(o, r) : new Kt(o, r))(this.options), new Lt(t)));
367
- var t;
368
- }
369
- hasNameForId(t, n) {
370
- var o, r;
371
- return (r = (o = this.names.get(t)) === null || o === void 0 ? void 0 : o.has(n)) !== null && r !== void 0 && r;
372
- }
373
- registerName(t, n) {
374
- K(t), t.startsWith(He) && this.keyframeIds.add(t);
375
- const o = this.names.get(t);
376
- o ? o.add(n) : this.names.set(t, /* @__PURE__ */ new Set([n]));
377
- }
378
- insertRules(t, n, o) {
379
- this.registerName(t, n), this.getTag().insertRules(K(t), o);
380
- }
381
- clearNames(t) {
382
- this.names.has(t) && this.names.get(t).clear();
383
- }
384
- clearRules(t) {
385
- this.getTag().clearGroup(K(t)), this.clearNames(t);
386
- }
387
- clearTag() {
388
- this.tag = void 0;
389
- }
390
- }
391
- const tt = /* @__PURE__ */ new WeakSet(), Zt = { animationIterationCount: 1, aspectRatio: 1, borderImageOutset: 1, borderImageSlice: 1, borderImageWidth: 1, columnCount: 1, columns: 1, flex: 1, flexGrow: 1, flexShrink: 1, gridRow: 1, gridRowEnd: 1, gridRowSpan: 1, gridRowStart: 1, gridColumn: 1, gridColumnEnd: 1, gridColumnSpan: 1, gridColumnStart: 1, fontWeight: 1, lineHeight: 1, opacity: 1, order: 1, orphans: 1, scale: 1, tabSize: 1, widows: 1, zIndex: 1, zoom: 1, WebkitLineClamp: 1, fillOpacity: 1, floodOpacity: 1, stopOpacity: 1, strokeDasharray: 1, strokeDashoffset: 1, strokeMiterlimit: 1, strokeOpacity: 1, strokeWidth: 1 };
392
- function Qt(e, t) {
393
- return t == null || typeof t == "boolean" || t === "" ? "" : typeof t != "number" || t === 0 || e in Zt || e.startsWith("--") ? String(t).trim() : t + "px";
394
- }
395
- const z = 47;
396
- function ze(e) {
397
- if (e.charCodeAt(0) === 45 && e.charCodeAt(1) === 45) return e;
398
- let t = "";
399
- for (let n = 0; n < e.length; n++) {
400
- const o = e.charCodeAt(n);
401
- t += o >= 65 && o <= 90 ? "-" + String.fromCharCode(o + 32) : e[n];
402
- }
403
- return t.startsWith("ms-") ? "-" + t : t;
404
- }
405
- const nt = /* @__PURE__ */ Symbol.for("sc-keyframes");
406
- function Ae(e) {
407
- return typeof e == "object" && e !== null && nt in e;
408
- }
409
- function ot(e) {
410
- return ce(e) && !(e.prototype && e.prototype.isReactComponent);
411
- }
412
- const rt = (e) => e == null || e === !1 || e === "", en = /* @__PURE__ */ Symbol.for("react.client.reference");
413
- function Ge(e) {
414
- return e.$$typeof === en;
415
- }
416
- function Me(e) {
417
- const t = e.$$id, n = (t && t.includes("#") ? t.split("#").pop() : t) || e.name || "unknown";
418
- console.warn(`Interpolating a client component (${n}) as a selector is not supported in server components. The component selector pattern requires access to the component's internal class name, which is not available across the server/client boundary. Use a plain CSS class selector instead.`);
419
- }
420
- function st(e, t) {
421
- for (const n in e) {
422
- const o = e[n];
423
- e.hasOwnProperty(n) && !rt(o) && (Array.isArray(o) && tt.has(o) || ce(o) ? t.push(ze(n) + ":", o, ";") : B(o) ? (t.push(n + " {"), st(o, t), t.push("}")) : t.push(ze(n) + ": " + Qt(n, o) + ";"));
424
- }
425
- }
426
- function M(e, t, n, o, r = []) {
427
- if (rt(e)) return r;
428
- const s = typeof e;
429
- if (s === "string") return r.push(e), r;
430
- if (s === "function") {
431
- if (Ge(e)) return process.env.NODE_ENV !== "production" && Me(e), r;
432
- if (ot(e) && t) {
433
- const a = e(t);
434
- return process.env.NODE_ENV === "production" || typeof a != "object" || Array.isArray(a) || Ae(a) || B(a) || a === null || console.error(`${ke(e)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), M(a, t, n, o, r);
435
- }
436
- return r.push(e), r;
437
- }
438
- if (Array.isArray(e)) {
439
- for (let a = 0; a < e.length; a++) M(e[a], t, n, o, r);
440
- return r;
441
- }
442
- return Qe(e) ? (r.push(`.${e.styledComponentId}`), r) : Ae(e) ? (n ? (e.inject(n, o), r.push(e.getName(o))) : r.push(e), r) : Ge(e) ? (process.env.NODE_ENV !== "production" && Me(e), r) : B(e) ? (st(e, r), r) : (r.push(e.toString()), r);
443
- }
444
- const tn = Ue(ae);
445
- class nn {
446
- constructor(t, n, o) {
447
- this.rules = t, this.componentId = n, this.baseHash = G(tn, n), this.baseStyle = o, le.registerId(n);
448
- }
449
- generateAndInjectStyles(t, n, o) {
450
- let r = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, n, o) : "";
451
- {
452
- let s = "";
453
- for (let a = 0; a < this.rules.length; a++) {
454
- const c = this.rules[a];
455
- if (typeof c == "string") s += c;
456
- else if (c) if (ot(c)) {
457
- const i = c(t);
458
- typeof i == "string" ? s += i : i != null && i !== !1 && (process.env.NODE_ENV === "production" || typeof i != "object" || Array.isArray(i) || Ae(i) || B(i) || console.error(`${ke(c)} is not a styled component and cannot be referred to via component selector. See https://styled-components.com/docs/advanced#referring-to-other-components for more details.`), s += we(M(i, t, n, o)));
459
- } else s += we(M(c, t, n, o));
460
- }
461
- if (s) {
462
- this.dynamicNameCache || (this.dynamicNameCache = /* @__PURE__ */ new Map());
463
- const a = o.hash ? o.hash + s : s;
464
- let c = this.dynamicNameCache.get(a);
465
- if (!c) {
466
- if (c = Pe(G(G(this.baseHash, o.hash), s) >>> 0), this.dynamicNameCache.size >= 200) {
467
- const i = this.dynamicNameCache.keys().next().value;
468
- i !== void 0 && this.dynamicNameCache.delete(i);
469
- }
470
- this.dynamicNameCache.set(a, c);
471
- }
472
- if (!n.hasNameForId(this.componentId, c)) {
473
- const i = o(s, "." + c, void 0, this.componentId);
474
- n.insertRules(this.componentId, c, i);
475
- }
476
- r = X(r, c);
477
- }
478
- }
479
- return r;
480
- }
481
- }
482
- const on = /&/g;
483
- function it(e, t) {
484
- let n = 0;
485
- for (; --t >= 0 && e.charCodeAt(t) === 92; ) n++;
486
- return !(1 & ~n);
487
- }
488
- function ge(e) {
489
- const t = e.length;
490
- let n = "", o = 0, r = 0, s = 0, a = !1, c = !1;
491
- for (let i = 0; i < t; i++) {
492
- const d = e.charCodeAt(i);
493
- if (s !== 0 || a || d !== z || e.charCodeAt(i + 1) !== 42) if (a) d === 42 && e.charCodeAt(i + 1) === z && (a = !1, i++);
494
- else if (d !== 34 && d !== 39 || it(e, i)) {
495
- if (s === 0) if (d === 123) r++;
496
- else if (d === 125) {
497
- if (r--, r < 0) {
498
- c = !0;
499
- let h = i + 1;
500
- for (; h < t; ) {
501
- const m = e.charCodeAt(h);
502
- if (m === 59 || m === 10) break;
503
- h++;
504
- }
505
- h < t && e.charCodeAt(h) === 59 && h++, r = 0, i = h - 1, o = h;
506
- continue;
507
- }
508
- r === 0 && (n += e.substring(o, i + 1), o = i + 1);
509
- } else d === 59 && r === 0 && (n += e.substring(o, i + 1), o = i + 1);
510
- } else s === 0 ? s = d : s === d && (s = 0);
511
- else a = !0, i++;
512
- }
513
- return c || r !== 0 || s !== 0 ? (o < t && r === 0 && s === 0 && (n += e.substring(o)), n) : e;
514
- }
515
- function at(e, t) {
516
- const n = t + " ", o = "," + n;
517
- for (let r = 0; r < e.length; r++) {
518
- const s = e[r];
519
- if (s.type === "rule") {
520
- s.value = (n + s.value).replaceAll(",", o);
521
- const a = s.props, c = [];
522
- for (let i = 0; i < a.length; i++) c[i] = n + a[i];
523
- s.props = c;
524
- }
525
- Array.isArray(s.children) && s.type !== "@keyframes" && at(s.children, t);
526
- }
527
- return e;
528
- }
529
- function rn({ options: e = H, plugins: t = Ie } = H) {
530
- let n, o, r;
531
- const s = (f, I, p) => p.startsWith(o) && p.endsWith(o) && p.replaceAll(o, "").length > 0 ? `.${n}` : f, a = t.slice();
532
- a.push((f) => {
533
- f.type === mt && f.value.includes("&") && (r || (r = new RegExp(`\\${o}\\b`, "g")), f.props[0] = f.props[0].replace(on, o).replace(r, s));
534
- }), e.prefix && a.push(yt), a.push(St);
535
- let c = [];
536
- const i = gt(a.concat(vt((f) => c.push(f)))), d = (f, I = "", p = "", E = "&") => {
537
- n = E, o = I, r = void 0;
538
- const C = (function(l) {
539
- const j = l.indexOf("//") !== -1, ue = l.indexOf("}") !== -1;
540
- if (!j && !ue) return l;
541
- if (!j) return ge(l);
542
- const _ = l.length;
543
- let T = "", P = 0, u = 0, $ = 0, L = 0, A = 0, U = !1;
544
- for (; u < _; ) {
545
- const v = l.charCodeAt(u);
546
- if (v !== 34 && v !== 39 || it(l, u)) if ($ === 0) if (v === z && u + 1 < _ && l.charCodeAt(u + 1) === 42) {
547
- for (u += 2; u + 1 < _ && (l.charCodeAt(u) !== 42 || l.charCodeAt(u + 1) !== z); ) u++;
548
- u += 2;
549
- } else if (v !== 40) if (v !== 41) if (L > 0) u++;
550
- else if (v === 42 && u + 1 < _ && l.charCodeAt(u + 1) === z) T += l.substring(P, u), u += 2, P = u, U = !0;
551
- else if (v === z && u + 1 < _ && l.charCodeAt(u + 1) === z) {
552
- for (T += l.substring(P, u); u < _ && l.charCodeAt(u) !== 10; ) u++;
553
- P = u, U = !0;
554
- } else v === 123 ? A++ : v === 125 && A--, u++;
555
- else L > 0 && L--, u++;
556
- else L++, u++;
557
- else u++;
558
- else $ === 0 ? $ = v : $ === v && ($ = 0), u++;
559
- }
560
- return U ? (P < _ && (T += l.substring(P)), A === 0 ? T : ge(T)) : A === 0 ? l : ge(l);
561
- })(f);
562
- let g = wt(p || I ? p + " " + I + " { " + C + " }" : C);
563
- return e.namespace && (g = at(g, e.namespace)), c = [], bt(g, i), c;
564
- }, h = e;
565
- let m = be;
566
- for (let f = 0; f < t.length; f++) t[f].name || Y(15), m = G(m, t[f].name);
567
- return h?.namespace && (m = G(m, h.namespace)), h?.prefix && (m = G(m, "p")), d.hash = m !== be ? m.toString() : "", d;
568
- }
569
- const sn = new le(), Oe = rn(), ct = O.createContext({ shouldForwardProp: void 0, styleSheet: sn, stylis: Oe, stylisPlugins: void 0 });
570
- ct.Consumer;
571
- function an() {
572
- return O.useContext(ct);
573
- }
574
- const lt = O.createContext(void 0);
575
- lt.Consumer;
576
- const Fe = Object.prototype.hasOwnProperty, ve = {};
577
- function cn(e, t) {
578
- const n = typeof e != "string" ? "sc" : Ye(e);
579
- ve[n] = (ve[n] || 0) + 1;
580
- const o = n + "-" + Je(ae + n + ve[n]);
581
- return t ? t + "-" + o : o;
582
- }
583
- let Se;
584
- function ln(e, t, n) {
585
- const o = Qe(e), r = e, s = !se(e), { attrs: a = Ie, componentId: c = cn(t.displayName, t.parentComponentId), displayName: i = Rt(e) } = t, d = t.displayName && t.componentId ? Ye(t.displayName) + "-" + t.componentId : t.componentId || c, h = o && r.attrs ? r.attrs.concat(a).filter(Boolean) : a;
586
- let { shouldForwardProp: m } = t;
587
- if (o && r.shouldForwardProp) {
588
- const E = r.shouldForwardProp;
589
- if (t.shouldForwardProp) {
590
- const C = t.shouldForwardProp;
591
- m = (g, l) => E(g, l) && C(g, l);
592
- } else m = E;
593
- }
594
- const f = new nn(n, d, o ? r.componentStyle : void 0);
595
- function I(E, C) {
596
- return (function(g, l, j) {
597
- const { attrs: ue, componentStyle: _, defaultProps: T, foldedComponentIds: P, styledComponentId: u, target: $ } = g, L = O.useContext(lt), A = an(), U = g.shouldForwardProp || A.shouldForwardProp;
598
- process.env.NODE_ENV !== "production" && O.useDebugValue && O.useDebugValue(u);
599
- const v = It(l, L, T) || H;
600
- let k, q;
601
- {
602
- const x = O.useRef(null), w = x.current;
603
- if (w !== null && w[1] === v && w[2] === A.styleSheet && w[3] === A.stylis && w[7] === _ && (function(W, N, b) {
604
- const y = W, S = N;
605
- let D = 0;
606
- for (const V in S) if (Fe.call(S, V) && (D++, y[V] !== S[V])) return !1;
607
- return D === b;
608
- })(w[0], l, w[4])) k = w[5], q = w[6];
609
- else {
610
- k = (function(N, b, y) {
611
- const S = Object.assign(Object.assign({}, b), { className: void 0, theme: y }), D = N.length > 1;
612
- for (let V = 0; V < N.length; V++) {
613
- const pe = N[V], ee = ce(pe) ? pe(D ? Object.assign({}, S) : S) : pe;
614
- for (const R in ee) R === "className" ? S.className = X(S.className, ee[R]) : R === "style" ? S.style = Object.assign(Object.assign({}, S.style), ee[R]) : R in b && b[R] === void 0 || (S[R] = ee[R]);
615
- }
616
- return "className" in b && typeof b.className == "string" && (S.className = X(S.className, b.className)), S;
617
- })(ue, l, v), q = (function(N, b, y, S) {
618
- const D = N.generateAndInjectStyles(b, y, S);
619
- return process.env.NODE_ENV !== "production" && O.useDebugValue && O.useDebugValue(D), D;
620
- })(_, k, A.styleSheet, A.stylis);
621
- let W = 0;
622
- for (const N in l) Fe.call(l, N) && W++;
623
- x.current = [l, v, A.styleSheet, A.stylis, W, k, q, _];
624
- }
625
- }
626
- process.env.NODE_ENV !== "production" && g.warnTooManyClasses && g.warnTooManyClasses(q);
627
- const Q = k.as || $, de = (function(x, w, W, N) {
628
- const b = {};
629
- for (const y in x) x[y] === void 0 || y[0] === "$" || y === "as" || y === "theme" && x.theme === W || (y === "forwardedAs" ? b.as = x.forwardedAs : N && !N(y, w) || (b[y] = x[y], N || process.env.NODE_ENV !== "development" || pt(y) || (Se || (Se = /* @__PURE__ */ new Set())).has(y) || !se(w) || w.includes("-") || (Se.add(y), console.warn(`styled-components: it looks like an unknown prop "${y}" 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.)`))));
630
- return b;
631
- })(k, Q, v, U);
632
- let he = X(P, u);
633
- return q && (he += " " + q), k.className && (he += " " + k.className), de[se(Q) && Q.includes("-") ? "class" : "className"] = he, j && (de.ref = j), ft(Q, de);
634
- })(p, E, C);
635
- }
636
- I.displayName = i;
637
- let p = O.forwardRef(I);
638
- return p.attrs = h, p.componentStyle = f, p.displayName = i, p.shouldForwardProp = m, p.foldedComponentIds = o ? X(r.foldedComponentIds, r.styledComponentId) : "", p.styledComponentId = d, p.target = o ? r.target : e, Object.defineProperty(p, "defaultProps", { get() {
639
- return this._foldedDefaultProps;
640
- }, set(E) {
641
- this._foldedDefaultProps = o ? (function(C, ...g) {
642
- for (const l of g) Ne(C, l, !0);
643
- return C;
644
- })({}, r.defaultProps, E) : E;
645
- } }), process.env.NODE_ENV !== "production" && (_t(i, d), p.warnTooManyClasses = /* @__PURE__ */ ((E, C) => {
646
- let g = {}, l = !1;
647
- return (j) => {
648
- !l && (g[j] = !0, Object.keys(g).length >= 200) && (console.warn(`Over 200 classes were generated for component ${E}${C ? ` with the id of "${C}"` : ""}.
649
- Consider using the attrs method, together with a style object for frequently changed styles.
650
- Example:
651
- const Component = styled.div.attrs(props => ({
652
- style: {
653
- background: props.background,
654
- },
655
- }))\`width: 100%;\`
656
-
657
- <Component />`), l = !0, g = {});
658
- };
659
- })(i, d)), xe(p, () => `.${p.styledComponentId}`), s && Ze(p, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), p;
660
- }
661
- var un = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "bdi", "bdo", "blockquote", "body", "button", "br", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "main", "map", "mark", "menu", "meter", "nav", "object", "ol", "optgroup", "option", "output", "p", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "search", "section", "select", "slot", "small", "span", "strong", "sub", "summary", "sup", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "tr", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "filter", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "switch", "symbol", "text", "textPath", "tspan", "use"]);
662
- function Be(e, t) {
663
- const n = [e[0]];
664
- for (let o = 0, r = t.length; o < r; o += 1) n.push(t[o], e[o + 1]);
665
- return n;
666
- }
667
- const Le = (e) => (tt.add(e), e);
668
- function ut(e, ...t) {
669
- if (ce(e) || B(e)) return Le(M(Be(Ie, [e, ...t])));
670
- const n = e;
671
- return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? M(n) : Le(M(Be(n, t)));
672
- }
673
- function Ee(e, t, n = H) {
674
- if (!t) throw Y(1, t);
675
- const o = (r, ...s) => e(t, n, ut(r, ...s));
676
- return o.attrs = (r) => Ee(e, t, Object.assign(Object.assign({}, n), { attrs: Array.prototype.concat(n.attrs, r).filter(Boolean) })), o.withConfig = (r) => Ee(e, t, Object.assign(Object.assign({}, n), r)), o;
677
- }
678
- const dt = (e) => Ee(ln, e), dn = dt;
679
- un.forEach((e) => {
680
- dn[e] = dt(e);
681
- });
682
- var ht;
683
- class hn {
684
- constructor(t, n) {
685
- this[ht] = !0, this.inject = (o, r = Oe) => {
686
- const s = this.getName(r);
687
- if (!o.hasNameForId(this.id, s)) {
688
- const a = r(this.rules, s, "@keyframes");
689
- o.insertRules(this.id, s, a);
690
- }
691
- }, this.name = t, this.id = He + t, this.rules = n, K(this.id), xe(this, () => {
692
- throw Y(12, String(this.name));
693
- });
694
- }
695
- getName(t = Oe) {
696
- return t.hash ? this.name + Pe(+t.hash >>> 0) : this.name;
697
- }
698
- }
699
- function Sn(e, ...t) {
700
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");
701
- const n = we(ut(e, ...t)), o = Je(n);
702
- return new hn(o, n);
703
- }
704
- ht = nt;
705
- process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
706
- Perhaps you're looking to import 'styled-components/native'?
707
- Read more about this at https://styled-components.com/docs/basics#react-native`);
708
- const ne = `__sc-${F}__`;
709
- process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[ne] || (window[ne] = 0), window[ne] === 1 && 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.
710
-
711
- See https://styled-components.com/docs/faqs#why-am-i-getting-a-warning-about-several-instances-of-module-on-the-page for more info.`), window[ne] += 1);
712
- export {
713
- ct as StyleSheetContext,
714
- lt as ThemeContext,
715
- ut as css,
716
- dn as default,
717
- Qe as isStyledComponent,
718
- Sn as keyframes,
719
- dn as styled,
720
- ae as version
721
- };