@julien-wiegandt/open-ui 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app.d.ts +1 -1
- package/dist/components/button/index.d.ts +31 -3
- package/dist/components/button/style.d.ts +7 -0
- package/dist/components/chip/index.d.ts +30 -0
- package/dist/components/chip/style.d.ts +5 -0
- package/dist/components/common/index.d.ts +5 -0
- package/dist/components/common/types.d.ts +18 -0
- package/dist/components/divider/index.d.ts +6 -0
- package/dist/components/flex/index.d.ts +32 -0
- package/dist/components/flex/style.d.ts +2 -0
- package/dist/components/image/index.d.ts +12 -0
- package/dist/components/image/style.d.ts +7 -0
- package/dist/components/modal/index.d.ts +14 -0
- package/dist/components/number-select/index.d.ts +9 -0
- package/dist/components/progress-bar/index.d.ts +7 -0
- package/dist/components/select/index.d.ts +12 -0
- package/dist/components/text/index.d.ts +15 -0
- package/dist/components/text/styled.d.ts +13 -0
- package/dist/components/textarea/index.d.ts +11 -0
- package/dist/components/textarea/styled.d.ts +2 -0
- package/dist/components/textfield/index.d.ts +15 -0
- package/dist/components/textfield/styled.d.ts +2 -0
- package/dist/components/title/index.d.ts +6 -0
- package/dist/components/title/style.d.ts +7 -0
- package/dist/components/utils/get-color-variations.d.ts +11 -0
- package/dist/components/utils/get-text-color-based-on-background.d.ts +2 -0
- package/dist/hooks/use-responsive.d.ts +12 -0
- package/dist/index.d.ts +2 -0
- package/dist/open-ui.js +1554 -178
- package/dist/open-ui.umd.cjs +110 -4
- package/dist/theme/constants.d.ts +3 -0
- package/dist/theme/types.d.ts +18 -0
- package/dist/theme/use-theme.d.ts +15 -0
- package/dist/views/components/buttons/index.d.ts +1 -0
- package/dist/views/components/chips/index.d.ts +1 -0
- package/dist/views/components/flexs/index.d.ts +1 -0
- package/dist/views/components/progress-bars/index.d.ts +1 -0
- package/dist/views/components/textareas/index.d.ts +1 -0
- package/dist/views/components/textfields/index.d.ts +1 -0
- package/dist/views/components/texts/index.d.ts +1 -0
- package/dist/views/components/theme/index.d.ts +1 -0
- package/dist/views/components/titles/index.d.ts +1 -0
- package/package.json +5 -2
package/dist/open-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import se, { useState as ft, useEffect as ht, useMemo as Ft, useContext as zt, useDebugValue as mt, createElement as fr, useRef as hr, forwardRef as Mt } from "react";
|
|
2
|
+
var Ae = { exports: {} }, ye = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.js
|
|
@@ -9,29 +9,29 @@ var T = { exports: {} }, R = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
-
for (var
|
|
22
|
-
|
|
23
|
-
} else
|
|
24
|
-
return
|
|
25
|
-
$$typeof:
|
|
26
|
-
type:
|
|
27
|
-
key:
|
|
28
|
-
ref:
|
|
29
|
-
props:
|
|
12
|
+
var gt;
|
|
13
|
+
function mr() {
|
|
14
|
+
if (gt) return ye;
|
|
15
|
+
gt = 1;
|
|
16
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
17
|
+
function r(n, o, a) {
|
|
18
|
+
var s = null;
|
|
19
|
+
if (a !== void 0 && (s = "" + a), o.key !== void 0 && (s = "" + o.key), "key" in o) {
|
|
20
|
+
a = {};
|
|
21
|
+
for (var c in o)
|
|
22
|
+
c !== "key" && (a[c] = o[c]);
|
|
23
|
+
} else a = o;
|
|
24
|
+
return o = a.ref, {
|
|
25
|
+
$$typeof: e,
|
|
26
|
+
type: n,
|
|
27
|
+
key: s,
|
|
28
|
+
ref: o !== void 0 ? o : null,
|
|
29
|
+
props: a
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return ye.Fragment = t, ye.jsx = r, ye.jsxs = r, ye;
|
|
33
33
|
}
|
|
34
|
-
var
|
|
34
|
+
var ve = {};
|
|
35
35
|
/**
|
|
36
36
|
* @license React
|
|
37
37
|
* react-jsx-runtime.development.js
|
|
@@ -41,245 +41,1621 @@ var b = {};
|
|
|
41
41
|
* This source code is licensed under the MIT license found in the
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
function
|
|
48
|
-
if (
|
|
49
|
-
if (typeof
|
|
50
|
-
return
|
|
51
|
-
if (typeof
|
|
52
|
-
switch (
|
|
53
|
-
case
|
|
44
|
+
var yt;
|
|
45
|
+
function gr() {
|
|
46
|
+
return yt || (yt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
47
|
+
function e(i) {
|
|
48
|
+
if (i == null) return null;
|
|
49
|
+
if (typeof i == "function")
|
|
50
|
+
return i.$$typeof === He ? null : i.displayName || i.name || null;
|
|
51
|
+
if (typeof i == "string") return i;
|
|
52
|
+
switch (i) {
|
|
53
|
+
case x:
|
|
54
54
|
return "Fragment";
|
|
55
|
-
case
|
|
55
|
+
case C:
|
|
56
56
|
return "Profiler";
|
|
57
|
-
case
|
|
57
|
+
case I:
|
|
58
58
|
return "StrictMode";
|
|
59
|
-
case
|
|
59
|
+
case A:
|
|
60
60
|
return "Suspense";
|
|
61
|
-
case
|
|
61
|
+
case h:
|
|
62
62
|
return "SuspenseList";
|
|
63
63
|
case H:
|
|
64
64
|
return "Activity";
|
|
65
65
|
}
|
|
66
|
-
if (typeof
|
|
67
|
-
switch (typeof
|
|
66
|
+
if (typeof i == "object")
|
|
67
|
+
switch (typeof i.tag == "number" && console.error(
|
|
68
68
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
69
|
-
),
|
|
70
|
-
case
|
|
69
|
+
), i.$$typeof) {
|
|
70
|
+
case k:
|
|
71
71
|
return "Portal";
|
|
72
|
-
case
|
|
73
|
-
return (
|
|
74
|
-
case
|
|
75
|
-
return (
|
|
76
|
-
case
|
|
77
|
-
var
|
|
78
|
-
return
|
|
79
|
-
case
|
|
80
|
-
return
|
|
81
|
-
case
|
|
82
|
-
|
|
72
|
+
case S:
|
|
73
|
+
return (i.displayName || "Context") + ".Provider";
|
|
74
|
+
case _:
|
|
75
|
+
return (i._context.displayName || "Context") + ".Consumer";
|
|
76
|
+
case E:
|
|
77
|
+
var l = i.render;
|
|
78
|
+
return i = i.displayName, i || (i = l.displayName || l.name || "", i = i !== "" ? "ForwardRef(" + i + ")" : "ForwardRef"), i;
|
|
79
|
+
case p:
|
|
80
|
+
return l = i.displayName || null, l !== null ? l : e(i.type) || "Memo";
|
|
81
|
+
case Y:
|
|
82
|
+
l = i._payload, i = i._init;
|
|
83
83
|
try {
|
|
84
|
-
return
|
|
84
|
+
return e(i(l));
|
|
85
85
|
} catch {
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
function i
|
|
91
|
-
return "" +
|
|
90
|
+
function t(i) {
|
|
91
|
+
return "" + i;
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function r(i) {
|
|
94
94
|
try {
|
|
95
|
-
i
|
|
96
|
-
var
|
|
95
|
+
t(i);
|
|
96
|
+
var l = !1;
|
|
97
97
|
} catch {
|
|
98
|
-
|
|
98
|
+
l = !0;
|
|
99
99
|
}
|
|
100
|
-
if (
|
|
101
|
-
|
|
102
|
-
var
|
|
103
|
-
return
|
|
104
|
-
|
|
100
|
+
if (l) {
|
|
101
|
+
l = console;
|
|
102
|
+
var f = l.error, P = typeof Symbol == "function" && Symbol.toStringTag && i[Symbol.toStringTag] || i.constructor.name || "Object";
|
|
103
|
+
return f.call(
|
|
104
|
+
l,
|
|
105
105
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
106
|
-
|
|
107
|
-
), i
|
|
106
|
+
P
|
|
107
|
+
), t(i);
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (
|
|
112
|
-
if (typeof
|
|
110
|
+
function n(i) {
|
|
111
|
+
if (i === x) return "<>";
|
|
112
|
+
if (typeof i == "object" && i !== null && i.$$typeof === Y)
|
|
113
113
|
return "<...>";
|
|
114
114
|
try {
|
|
115
|
-
var
|
|
116
|
-
return
|
|
115
|
+
var l = e(i);
|
|
116
|
+
return l ? "<" + l + ">" : "<...>";
|
|
117
117
|
} catch {
|
|
118
118
|
return "<...>";
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
var
|
|
123
|
-
return
|
|
121
|
+
function o() {
|
|
122
|
+
var i = he.A;
|
|
123
|
+
return i === null ? null : i.getOwner();
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function a() {
|
|
126
126
|
return Error("react-stack-top-frame");
|
|
127
127
|
}
|
|
128
|
-
function
|
|
129
|
-
if (
|
|
130
|
-
var
|
|
131
|
-
if (
|
|
128
|
+
function s(i) {
|
|
129
|
+
if (ke.call(i, "key")) {
|
|
130
|
+
var l = Object.getOwnPropertyDescriptor(i, "key").get;
|
|
131
|
+
if (l && l.isReactWarning) return !1;
|
|
132
132
|
}
|
|
133
|
-
return
|
|
133
|
+
return i.key !== void 0;
|
|
134
134
|
}
|
|
135
|
-
function
|
|
136
|
-
function
|
|
137
|
-
|
|
135
|
+
function c(i, l) {
|
|
136
|
+
function f() {
|
|
137
|
+
Re || (Re = !0, console.error(
|
|
138
138
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
139
|
-
|
|
139
|
+
l
|
|
140
140
|
));
|
|
141
141
|
}
|
|
142
|
-
|
|
143
|
-
get:
|
|
142
|
+
f.isReactWarning = !0, Object.defineProperty(i, "key", {
|
|
143
|
+
get: f,
|
|
144
144
|
configurable: !0
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
var
|
|
149
|
-
return
|
|
147
|
+
function u() {
|
|
148
|
+
var i = e(this.type);
|
|
149
|
+
return _e[i] || (_e[i] = !0, console.error(
|
|
150
150
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
151
|
-
)),
|
|
151
|
+
)), i = this.props.ref, i !== void 0 ? i : null;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
154
|
-
return
|
|
155
|
-
$$typeof:
|
|
156
|
-
type:
|
|
157
|
-
key:
|
|
158
|
-
props:
|
|
159
|
-
_owner:
|
|
160
|
-
}, (
|
|
153
|
+
function b(i, l, f, P, M, j, W, U) {
|
|
154
|
+
return f = j.ref, i = {
|
|
155
|
+
$$typeof: y,
|
|
156
|
+
type: i,
|
|
157
|
+
key: l,
|
|
158
|
+
props: j,
|
|
159
|
+
_owner: M
|
|
160
|
+
}, (f !== void 0 ? f : null) !== null ? Object.defineProperty(i, "ref", {
|
|
161
161
|
enumerable: !1,
|
|
162
|
-
get:
|
|
163
|
-
}) : Object.defineProperty(
|
|
162
|
+
get: u
|
|
163
|
+
}) : Object.defineProperty(i, "ref", { enumerable: !1, value: null }), i._store = {}, Object.defineProperty(i._store, "validated", {
|
|
164
164
|
configurable: !1,
|
|
165
165
|
enumerable: !1,
|
|
166
166
|
writable: !0,
|
|
167
167
|
value: 0
|
|
168
|
-
}), Object.defineProperty(
|
|
168
|
+
}), Object.defineProperty(i, "_debugInfo", {
|
|
169
169
|
configurable: !1,
|
|
170
170
|
enumerable: !1,
|
|
171
171
|
writable: !0,
|
|
172
172
|
value: null
|
|
173
|
-
}), Object.defineProperty(
|
|
173
|
+
}), Object.defineProperty(i, "_debugStack", {
|
|
174
174
|
configurable: !1,
|
|
175
175
|
enumerable: !1,
|
|
176
176
|
writable: !0,
|
|
177
|
-
value:
|
|
178
|
-
}), Object.defineProperty(
|
|
177
|
+
value: W
|
|
178
|
+
}), Object.defineProperty(i, "_debugTask", {
|
|
179
179
|
configurable: !1,
|
|
180
180
|
enumerable: !1,
|
|
181
181
|
writable: !0,
|
|
182
|
-
value:
|
|
183
|
-
}), Object.freeze && (Object.freeze(
|
|
182
|
+
value: U
|
|
183
|
+
}), Object.freeze && (Object.freeze(i.props), Object.freeze(i)), i;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
var
|
|
187
|
-
if (
|
|
188
|
-
if (
|
|
189
|
-
if (
|
|
190
|
-
for (
|
|
191
|
-
|
|
192
|
-
Object.freeze && Object.freeze(
|
|
185
|
+
function v(i, l, f, P, M, j, W, U) {
|
|
186
|
+
var T = l.children;
|
|
187
|
+
if (T !== void 0)
|
|
188
|
+
if (P)
|
|
189
|
+
if (xe(T)) {
|
|
190
|
+
for (P = 0; P < T.length; P++)
|
|
191
|
+
m(T[P]);
|
|
192
|
+
Object.freeze && Object.freeze(T);
|
|
193
193
|
} else
|
|
194
194
|
console.error(
|
|
195
195
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
196
196
|
);
|
|
197
|
-
else
|
|
198
|
-
if (
|
|
199
|
-
|
|
200
|
-
var
|
|
201
|
-
return
|
|
197
|
+
else m(T);
|
|
198
|
+
if (ke.call(l, "key")) {
|
|
199
|
+
T = e(i);
|
|
200
|
+
var D = Object.keys(l).filter(function(oe) {
|
|
201
|
+
return oe !== "key";
|
|
202
202
|
});
|
|
203
|
-
|
|
203
|
+
P = 0 < D.length ? "{key: someKey, " + D.join(": ..., ") + ": ...}" : "{key: someKey}", z[T + P] || (D = 0 < D.length ? "{" + D.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
204
204
|
`A props object containing a "key" prop is being spread into JSX:
|
|
205
205
|
let props = %s;
|
|
206
206
|
<%s {...props} />
|
|
207
207
|
React keys must be passed directly to JSX without using spread:
|
|
208
208
|
let props = %s;
|
|
209
209
|
<%s key={someKey} {...props} />`,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
),
|
|
210
|
+
P,
|
|
211
|
+
T,
|
|
212
|
+
D,
|
|
213
|
+
T
|
|
214
|
+
), z[T + P] = !0);
|
|
215
215
|
}
|
|
216
|
-
if (
|
|
217
|
-
|
|
218
|
-
for (var
|
|
219
|
-
|
|
220
|
-
} else
|
|
221
|
-
return
|
|
222
|
-
|
|
223
|
-
typeof
|
|
224
|
-
),
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
216
|
+
if (T = null, f !== void 0 && (r(f), T = "" + f), s(l) && (r(l.key), T = "" + l.key), "key" in l) {
|
|
217
|
+
f = {};
|
|
218
|
+
for (var J in l)
|
|
219
|
+
J !== "key" && (f[J] = l[J]);
|
|
220
|
+
} else f = l;
|
|
221
|
+
return T && c(
|
|
222
|
+
f,
|
|
223
|
+
typeof i == "function" ? i.displayName || i.name || "Unknown" : i
|
|
224
|
+
), b(
|
|
225
|
+
i,
|
|
226
|
+
T,
|
|
227
|
+
j,
|
|
228
|
+
M,
|
|
229
|
+
o(),
|
|
230
|
+
f,
|
|
231
|
+
W,
|
|
232
|
+
U
|
|
233
233
|
);
|
|
234
234
|
}
|
|
235
|
-
function
|
|
236
|
-
typeof
|
|
235
|
+
function m(i) {
|
|
236
|
+
typeof i == "object" && i !== null && i.$$typeof === y && i._store && (i._store.validated = 1);
|
|
237
237
|
}
|
|
238
|
-
var
|
|
238
|
+
var g = se, y = Symbol.for("react.transitional.element"), k = Symbol.for("react.portal"), x = Symbol.for("react.fragment"), I = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), _ = Symbol.for("react.consumer"), S = Symbol.for("react.context"), E = Symbol.for("react.forward_ref"), A = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), H = Symbol.for("react.activity"), He = Symbol.for("react.client.reference"), he = g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ke = Object.prototype.hasOwnProperty, xe = Array.isArray, me = console.createTask ? console.createTask : function() {
|
|
239
239
|
return null;
|
|
240
240
|
};
|
|
241
|
-
|
|
242
|
-
react_stack_bottom_frame: function(
|
|
243
|
-
return
|
|
241
|
+
g = {
|
|
242
|
+
react_stack_bottom_frame: function(i) {
|
|
243
|
+
return i();
|
|
244
244
|
}
|
|
245
245
|
};
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
)(),
|
|
250
|
-
|
|
251
|
-
var
|
|
252
|
-
return
|
|
253
|
-
|
|
254
|
-
r,
|
|
255
|
-
t,
|
|
256
|
-
!1,
|
|
257
|
-
n,
|
|
246
|
+
var Re, _e = {}, ne = g.react_stack_bottom_frame.bind(
|
|
247
|
+
g,
|
|
248
|
+
a
|
|
249
|
+
)(), ge = me(n(a)), z = {};
|
|
250
|
+
ve.Fragment = x, ve.jsx = function(i, l, f, P, M) {
|
|
251
|
+
var j = 1e4 > he.recentlyCreatedOwnerStacks++;
|
|
252
|
+
return v(
|
|
253
|
+
i,
|
|
258
254
|
l,
|
|
259
|
-
|
|
260
|
-
|
|
255
|
+
f,
|
|
256
|
+
!1,
|
|
257
|
+
P,
|
|
258
|
+
M,
|
|
259
|
+
j ? Error("react-stack-top-frame") : ne,
|
|
260
|
+
j ? me(n(i)) : ge
|
|
261
261
|
);
|
|
262
|
-
},
|
|
263
|
-
var
|
|
264
|
-
return
|
|
265
|
-
|
|
266
|
-
r,
|
|
267
|
-
t,
|
|
268
|
-
!0,
|
|
269
|
-
n,
|
|
262
|
+
}, ve.jsxs = function(i, l, f, P, M) {
|
|
263
|
+
var j = 1e4 > he.recentlyCreatedOwnerStacks++;
|
|
264
|
+
return v(
|
|
265
|
+
i,
|
|
270
266
|
l,
|
|
271
|
-
|
|
272
|
-
|
|
267
|
+
f,
|
|
268
|
+
!0,
|
|
269
|
+
P,
|
|
270
|
+
M,
|
|
271
|
+
j ? Error("react-stack-top-frame") : ne,
|
|
272
|
+
j ? me(n(i)) : ge
|
|
273
273
|
);
|
|
274
274
|
};
|
|
275
|
-
})()),
|
|
275
|
+
})()), ve;
|
|
276
|
+
}
|
|
277
|
+
var vt;
|
|
278
|
+
function yr() {
|
|
279
|
+
return vt || (vt = 1, process.env.NODE_ENV === "production" ? Ae.exports = mr() : Ae.exports = gr()), Ae.exports;
|
|
280
|
+
}
|
|
281
|
+
var Ee = yr();
|
|
282
|
+
const Ue = {
|
|
283
|
+
sm: 480,
|
|
284
|
+
lg: 1024,
|
|
285
|
+
xl: 1280
|
|
286
|
+
}, vr = () => {
|
|
287
|
+
const [e, t] = ft(void 0), [r, n] = ft("sm");
|
|
288
|
+
ht(() => {
|
|
289
|
+
const u = () => {
|
|
290
|
+
t(window.innerWidth);
|
|
291
|
+
};
|
|
292
|
+
return u(), window.addEventListener("resize", u), () => {
|
|
293
|
+
window.removeEventListener("resize", u);
|
|
294
|
+
};
|
|
295
|
+
}, []), ht(() => {
|
|
296
|
+
typeof e == "number" && (e >= Ue.xl ? n("xl") : e >= Ue.lg ? n("lg") : e >= Ue.sm ? n("md") : n("sm"));
|
|
297
|
+
}, [e]);
|
|
298
|
+
const { isMobile: o, isTablet: a, isLaptop: s, isDesktop: c } = Ft(() => ({
|
|
299
|
+
isMobile: r === "sm",
|
|
300
|
+
isTablet: r === "md",
|
|
301
|
+
isLaptop: r === "lg",
|
|
302
|
+
isDesktop: r === "xl"
|
|
303
|
+
}), [r]);
|
|
304
|
+
return { width: e, breakpoint: r, isMobile: o, isTablet: a, isLaptop: s, isDesktop: c };
|
|
305
|
+
};
|
|
306
|
+
var F = function() {
|
|
307
|
+
return F = Object.assign || function(t) {
|
|
308
|
+
for (var r, n = 1, o = arguments.length; n < o; n++) {
|
|
309
|
+
r = arguments[n];
|
|
310
|
+
for (var a in r) Object.prototype.hasOwnProperty.call(r, a) && (t[a] = r[a]);
|
|
311
|
+
}
|
|
312
|
+
return t;
|
|
313
|
+
}, F.apply(this, arguments);
|
|
314
|
+
};
|
|
315
|
+
function ie(e, t, r) {
|
|
316
|
+
if (r || arguments.length === 2) for (var n = 0, o = t.length, a; n < o; n++)
|
|
317
|
+
(a || !(n in t)) && (a || (a = Array.prototype.slice.call(t, 0, n)), a[n] = t[n]);
|
|
318
|
+
return e.concat(a || Array.prototype.slice.call(t));
|
|
319
|
+
}
|
|
320
|
+
function br(e) {
|
|
321
|
+
var t = /* @__PURE__ */ Object.create(null);
|
|
322
|
+
return function(r) {
|
|
323
|
+
return t[r] === void 0 && (t[r] = e(r)), t[r];
|
|
324
|
+
};
|
|
325
|
+
}
|
|
326
|
+
var wr = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/, Sr = /* @__PURE__ */ br(
|
|
327
|
+
function(e) {
|
|
328
|
+
return wr.test(e) || e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && e.charCodeAt(2) < 91;
|
|
329
|
+
}
|
|
330
|
+
/* Z+1 */
|
|
331
|
+
), R = "-ms-", Se = "-moz-", w = "-webkit-", Lt = "comm", Le = "rule", st = "decl", Er = "@import", Yt = "@keyframes", kr = "@layer", Vt = Math.abs, it = String.fromCharCode, Ke = Object.assign;
|
|
332
|
+
function xr(e, t) {
|
|
333
|
+
return $(e, 0) ^ 45 ? (((t << 2 ^ $(e, 0)) << 2 ^ $(e, 1)) << 2 ^ $(e, 2)) << 2 ^ $(e, 3) : 0;
|
|
334
|
+
}
|
|
335
|
+
function Bt(e) {
|
|
336
|
+
return e.trim();
|
|
337
|
+
}
|
|
338
|
+
function G(e, t) {
|
|
339
|
+
return (e = t.exec(e)) ? e[0] : e;
|
|
340
|
+
}
|
|
341
|
+
function d(e, t, r) {
|
|
342
|
+
return e.replace(t, r);
|
|
343
|
+
}
|
|
344
|
+
function Ne(e, t, r) {
|
|
345
|
+
return e.indexOf(t, r);
|
|
346
|
+
}
|
|
347
|
+
function $(e, t) {
|
|
348
|
+
return e.charCodeAt(t) | 0;
|
|
349
|
+
}
|
|
350
|
+
function ce(e, t, r) {
|
|
351
|
+
return e.slice(t, r);
|
|
352
|
+
}
|
|
353
|
+
function B(e) {
|
|
354
|
+
return e.length;
|
|
355
|
+
}
|
|
356
|
+
function Wt(e) {
|
|
357
|
+
return e.length;
|
|
358
|
+
}
|
|
359
|
+
function we(e, t) {
|
|
360
|
+
return t.push(e), e;
|
|
361
|
+
}
|
|
362
|
+
function Rr(e, t) {
|
|
363
|
+
return e.map(t).join("");
|
|
364
|
+
}
|
|
365
|
+
function bt(e, t) {
|
|
366
|
+
return e.filter(function(r) {
|
|
367
|
+
return !G(r, t);
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
var Ye = 1, ue = 1, Gt = 0, L = 0, O = 0, fe = "";
|
|
371
|
+
function Ve(e, t, r, n, o, a, s, c) {
|
|
372
|
+
return { value: e, root: t, parent: r, type: n, props: o, children: a, line: Ye, column: ue, length: s, return: "", siblings: c };
|
|
373
|
+
}
|
|
374
|
+
function X(e, t) {
|
|
375
|
+
return Ke(Ve("", null, null, "", null, null, 0, e.siblings), e, { length: -e.length }, t);
|
|
376
|
+
}
|
|
377
|
+
function ae(e) {
|
|
378
|
+
for (; e.root; )
|
|
379
|
+
e = X(e.root, { children: [e] });
|
|
380
|
+
we(e, e.siblings);
|
|
381
|
+
}
|
|
382
|
+
function _r() {
|
|
383
|
+
return O;
|
|
384
|
+
}
|
|
385
|
+
function Ar() {
|
|
386
|
+
return O = L > 0 ? $(fe, --L) : 0, ue--, O === 10 && (ue = 1, Ye--), O;
|
|
387
|
+
}
|
|
388
|
+
function V() {
|
|
389
|
+
return O = L < Gt ? $(fe, L++) : 0, ue++, O === 10 && (ue = 1, Ye++), O;
|
|
390
|
+
}
|
|
391
|
+
function Q() {
|
|
392
|
+
return $(fe, L);
|
|
393
|
+
}
|
|
394
|
+
function $e() {
|
|
395
|
+
return L;
|
|
396
|
+
}
|
|
397
|
+
function Be(e, t) {
|
|
398
|
+
return ce(fe, e, t);
|
|
399
|
+
}
|
|
400
|
+
function Qe(e) {
|
|
401
|
+
switch (e) {
|
|
402
|
+
// \0 \t \n \r \s whitespace token
|
|
403
|
+
case 0:
|
|
404
|
+
case 9:
|
|
405
|
+
case 10:
|
|
406
|
+
case 13:
|
|
407
|
+
case 32:
|
|
408
|
+
return 5;
|
|
409
|
+
// ! + , / > @ ~ isolate token
|
|
410
|
+
case 33:
|
|
411
|
+
case 43:
|
|
412
|
+
case 44:
|
|
413
|
+
case 47:
|
|
414
|
+
case 62:
|
|
415
|
+
case 64:
|
|
416
|
+
case 126:
|
|
417
|
+
// ; { } breakpoint token
|
|
418
|
+
case 59:
|
|
419
|
+
case 123:
|
|
420
|
+
case 125:
|
|
421
|
+
return 4;
|
|
422
|
+
// : accompanied token
|
|
423
|
+
case 58:
|
|
424
|
+
return 3;
|
|
425
|
+
// " ' ( [ opening delimit token
|
|
426
|
+
case 34:
|
|
427
|
+
case 39:
|
|
428
|
+
case 40:
|
|
429
|
+
case 91:
|
|
430
|
+
return 2;
|
|
431
|
+
// ) ] closing delimit token
|
|
432
|
+
case 41:
|
|
433
|
+
case 93:
|
|
434
|
+
return 1;
|
|
435
|
+
}
|
|
436
|
+
return 0;
|
|
437
|
+
}
|
|
438
|
+
function Tr(e) {
|
|
439
|
+
return Ye = ue = 1, Gt = B(fe = e), L = 0, [];
|
|
440
|
+
}
|
|
441
|
+
function Cr(e) {
|
|
442
|
+
return fe = "", e;
|
|
443
|
+
}
|
|
444
|
+
function qe(e) {
|
|
445
|
+
return Bt(Be(L - 1, et(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
|
|
446
|
+
}
|
|
447
|
+
function Pr(e) {
|
|
448
|
+
for (; (O = Q()) && O < 33; )
|
|
449
|
+
V();
|
|
450
|
+
return Qe(e) > 2 || Qe(O) > 3 ? "" : " ";
|
|
451
|
+
}
|
|
452
|
+
function Or(e, t) {
|
|
453
|
+
for (; --t && V() && !(O < 48 || O > 102 || O > 57 && O < 65 || O > 70 && O < 97); )
|
|
454
|
+
;
|
|
455
|
+
return Be(e, $e() + (t < 6 && Q() == 32 && V() == 32));
|
|
456
|
+
}
|
|
457
|
+
function et(e) {
|
|
458
|
+
for (; V(); )
|
|
459
|
+
switch (O) {
|
|
460
|
+
// ] ) " '
|
|
461
|
+
case e:
|
|
462
|
+
return L;
|
|
463
|
+
// " '
|
|
464
|
+
case 34:
|
|
465
|
+
case 39:
|
|
466
|
+
e !== 34 && e !== 39 && et(O);
|
|
467
|
+
break;
|
|
468
|
+
// (
|
|
469
|
+
case 40:
|
|
470
|
+
e === 41 && et(e);
|
|
471
|
+
break;
|
|
472
|
+
// \
|
|
473
|
+
case 92:
|
|
474
|
+
V();
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
return L;
|
|
478
|
+
}
|
|
479
|
+
function Nr(e, t) {
|
|
480
|
+
for (; V() && e + O !== 57; )
|
|
481
|
+
if (e + O === 84 && Q() === 47)
|
|
482
|
+
break;
|
|
483
|
+
return "/*" + Be(t, L - 1) + "*" + it(e === 47 ? e : V());
|
|
484
|
+
}
|
|
485
|
+
function $r(e) {
|
|
486
|
+
for (; !Qe(Q()); )
|
|
487
|
+
V();
|
|
488
|
+
return Be(e, L);
|
|
489
|
+
}
|
|
490
|
+
function Ir(e) {
|
|
491
|
+
return Cr(Ie("", null, null, null, [""], e = Tr(e), 0, [0], e));
|
|
492
|
+
}
|
|
493
|
+
function Ie(e, t, r, n, o, a, s, c, u) {
|
|
494
|
+
for (var b = 0, v = 0, m = s, g = 0, y = 0, k = 0, x = 1, I = 1, C = 1, _ = 0, S = "", E = o, A = a, h = n, p = S; I; )
|
|
495
|
+
switch (k = _, _ = V()) {
|
|
496
|
+
// (
|
|
497
|
+
case 40:
|
|
498
|
+
if (k != 108 && $(p, m - 1) == 58) {
|
|
499
|
+
Ne(p += d(qe(_), "&", "&\f"), "&\f", Vt(b ? c[b - 1] : 0)) != -1 && (C = -1);
|
|
500
|
+
break;
|
|
501
|
+
}
|
|
502
|
+
// " ' [
|
|
503
|
+
case 34:
|
|
504
|
+
case 39:
|
|
505
|
+
case 91:
|
|
506
|
+
p += qe(_);
|
|
507
|
+
break;
|
|
508
|
+
// \t \n \r \s
|
|
509
|
+
case 9:
|
|
510
|
+
case 10:
|
|
511
|
+
case 13:
|
|
512
|
+
case 32:
|
|
513
|
+
p += Pr(k);
|
|
514
|
+
break;
|
|
515
|
+
// \
|
|
516
|
+
case 92:
|
|
517
|
+
p += Or($e() - 1, 7);
|
|
518
|
+
continue;
|
|
519
|
+
// /
|
|
520
|
+
case 47:
|
|
521
|
+
switch (Q()) {
|
|
522
|
+
case 42:
|
|
523
|
+
case 47:
|
|
524
|
+
we(jr(Nr(V(), $e()), t, r, u), u);
|
|
525
|
+
break;
|
|
526
|
+
default:
|
|
527
|
+
p += "/";
|
|
528
|
+
}
|
|
529
|
+
break;
|
|
530
|
+
// {
|
|
531
|
+
case 123 * x:
|
|
532
|
+
c[b++] = B(p) * C;
|
|
533
|
+
// } ; \0
|
|
534
|
+
case 125 * x:
|
|
535
|
+
case 59:
|
|
536
|
+
case 0:
|
|
537
|
+
switch (_) {
|
|
538
|
+
// \0 }
|
|
539
|
+
case 0:
|
|
540
|
+
case 125:
|
|
541
|
+
I = 0;
|
|
542
|
+
// ;
|
|
543
|
+
case 59 + v:
|
|
544
|
+
C == -1 && (p = d(p, /\f/g, "")), y > 0 && B(p) - m && we(y > 32 ? St(p + ";", n, r, m - 1, u) : St(d(p, " ", "") + ";", n, r, m - 2, u), u);
|
|
545
|
+
break;
|
|
546
|
+
// @ ;
|
|
547
|
+
case 59:
|
|
548
|
+
p += ";";
|
|
549
|
+
// { rule/at-rule
|
|
550
|
+
default:
|
|
551
|
+
if (we(h = wt(p, t, r, b, v, o, c, S, E = [], A = [], m, a), a), _ === 123)
|
|
552
|
+
if (v === 0)
|
|
553
|
+
Ie(p, t, h, h, E, a, m, c, A);
|
|
554
|
+
else
|
|
555
|
+
switch (g === 99 && $(p, 3) === 110 ? 100 : g) {
|
|
556
|
+
// d l m s
|
|
557
|
+
case 100:
|
|
558
|
+
case 108:
|
|
559
|
+
case 109:
|
|
560
|
+
case 115:
|
|
561
|
+
Ie(e, h, h, n && we(wt(e, h, h, 0, 0, o, c, S, o, E = [], m, A), A), o, A, m, c, n ? E : A);
|
|
562
|
+
break;
|
|
563
|
+
default:
|
|
564
|
+
Ie(p, h, h, h, [""], A, 0, c, A);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
b = v = y = 0, x = C = 1, S = p = "", m = s;
|
|
568
|
+
break;
|
|
569
|
+
// :
|
|
570
|
+
case 58:
|
|
571
|
+
m = 1 + B(p), y = k;
|
|
572
|
+
default:
|
|
573
|
+
if (x < 1) {
|
|
574
|
+
if (_ == 123)
|
|
575
|
+
--x;
|
|
576
|
+
else if (_ == 125 && x++ == 0 && Ar() == 125)
|
|
577
|
+
continue;
|
|
578
|
+
}
|
|
579
|
+
switch (p += it(_), _ * x) {
|
|
580
|
+
// &
|
|
581
|
+
case 38:
|
|
582
|
+
C = v > 0 ? 1 : (p += "\f", -1);
|
|
583
|
+
break;
|
|
584
|
+
// ,
|
|
585
|
+
case 44:
|
|
586
|
+
c[b++] = (B(p) - 1) * C, C = 1;
|
|
587
|
+
break;
|
|
588
|
+
// @
|
|
589
|
+
case 64:
|
|
590
|
+
Q() === 45 && (p += qe(V())), g = Q(), v = m = B(S = p += $r($e())), _++;
|
|
591
|
+
break;
|
|
592
|
+
// -
|
|
593
|
+
case 45:
|
|
594
|
+
k === 45 && B(p) == 2 && (x = 0);
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
return a;
|
|
598
|
+
}
|
|
599
|
+
function wt(e, t, r, n, o, a, s, c, u, b, v, m) {
|
|
600
|
+
for (var g = o - 1, y = o === 0 ? a : [""], k = Wt(y), x = 0, I = 0, C = 0; x < n; ++x)
|
|
601
|
+
for (var _ = 0, S = ce(e, g + 1, g = Vt(I = s[x])), E = e; _ < k; ++_)
|
|
602
|
+
(E = Bt(I > 0 ? y[_] + " " + S : d(S, /&\f/g, y[_]))) && (u[C++] = E);
|
|
603
|
+
return Ve(e, t, r, o === 0 ? Le : c, u, b, v, m);
|
|
604
|
+
}
|
|
605
|
+
function jr(e, t, r, n) {
|
|
606
|
+
return Ve(e, t, r, Lt, it(_r()), ce(e, 2, -2), 0, n);
|
|
607
|
+
}
|
|
608
|
+
function St(e, t, r, n, o) {
|
|
609
|
+
return Ve(e, t, r, st, ce(e, 0, n), ce(e, n + 1, -1), n, o);
|
|
610
|
+
}
|
|
611
|
+
function Ht(e, t, r) {
|
|
612
|
+
switch (xr(e, t)) {
|
|
613
|
+
// color-adjust
|
|
614
|
+
case 5103:
|
|
615
|
+
return w + "print-" + e + e;
|
|
616
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
617
|
+
case 5737:
|
|
618
|
+
case 4201:
|
|
619
|
+
case 3177:
|
|
620
|
+
case 3433:
|
|
621
|
+
case 1641:
|
|
622
|
+
case 4457:
|
|
623
|
+
case 2921:
|
|
624
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
625
|
+
case 5572:
|
|
626
|
+
case 6356:
|
|
627
|
+
case 5844:
|
|
628
|
+
case 3191:
|
|
629
|
+
case 6645:
|
|
630
|
+
case 3005:
|
|
631
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
632
|
+
case 6391:
|
|
633
|
+
case 5879:
|
|
634
|
+
case 5623:
|
|
635
|
+
case 6135:
|
|
636
|
+
case 4599:
|
|
637
|
+
case 4855:
|
|
638
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
639
|
+
case 4215:
|
|
640
|
+
case 6389:
|
|
641
|
+
case 5109:
|
|
642
|
+
case 5365:
|
|
643
|
+
case 5621:
|
|
644
|
+
case 3829:
|
|
645
|
+
return w + e + e;
|
|
646
|
+
// tab-size
|
|
647
|
+
case 4789:
|
|
648
|
+
return Se + e + e;
|
|
649
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
650
|
+
case 5349:
|
|
651
|
+
case 4246:
|
|
652
|
+
case 4810:
|
|
653
|
+
case 6968:
|
|
654
|
+
case 2756:
|
|
655
|
+
return w + e + Se + e + R + e + e;
|
|
656
|
+
// writing-mode
|
|
657
|
+
case 5936:
|
|
658
|
+
switch ($(e, t + 11)) {
|
|
659
|
+
// vertical-l(r)
|
|
660
|
+
case 114:
|
|
661
|
+
return w + e + R + d(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
662
|
+
// vertical-r(l)
|
|
663
|
+
case 108:
|
|
664
|
+
return w + e + R + d(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
665
|
+
// horizontal(-)tb
|
|
666
|
+
case 45:
|
|
667
|
+
return w + e + R + d(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
668
|
+
}
|
|
669
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
670
|
+
case 6828:
|
|
671
|
+
case 4268:
|
|
672
|
+
case 2903:
|
|
673
|
+
return w + e + R + e + e;
|
|
674
|
+
// order
|
|
675
|
+
case 6165:
|
|
676
|
+
return w + e + R + "flex-" + e + e;
|
|
677
|
+
// align-items
|
|
678
|
+
case 5187:
|
|
679
|
+
return w + e + d(e, /(\w+).+(:[^]+)/, w + "box-$1$2" + R + "flex-$1$2") + e;
|
|
680
|
+
// align-self
|
|
681
|
+
case 5443:
|
|
682
|
+
return w + e + R + "flex-item-" + d(e, /flex-|-self/g, "") + (G(e, /flex-|baseline/) ? "" : R + "grid-row-" + d(e, /flex-|-self/g, "")) + e;
|
|
683
|
+
// align-content
|
|
684
|
+
case 4675:
|
|
685
|
+
return w + e + R + "flex-line-pack" + d(e, /align-content|flex-|-self/g, "") + e;
|
|
686
|
+
// flex-shrink
|
|
687
|
+
case 5548:
|
|
688
|
+
return w + e + R + d(e, "shrink", "negative") + e;
|
|
689
|
+
// flex-basis
|
|
690
|
+
case 5292:
|
|
691
|
+
return w + e + R + d(e, "basis", "preferred-size") + e;
|
|
692
|
+
// flex-grow
|
|
693
|
+
case 6060:
|
|
694
|
+
return w + "box-" + d(e, "-grow", "") + w + e + R + d(e, "grow", "positive") + e;
|
|
695
|
+
// transition
|
|
696
|
+
case 4554:
|
|
697
|
+
return w + d(e, /([^-])(transform)/g, "$1" + w + "$2") + e;
|
|
698
|
+
// cursor
|
|
699
|
+
case 6187:
|
|
700
|
+
return d(d(d(e, /(zoom-|grab)/, w + "$1"), /(image-set)/, w + "$1"), e, "") + e;
|
|
701
|
+
// background, background-image
|
|
702
|
+
case 5495:
|
|
703
|
+
case 3959:
|
|
704
|
+
return d(e, /(image-set\([^]*)/, w + "$1$`$1");
|
|
705
|
+
// justify-content
|
|
706
|
+
case 4968:
|
|
707
|
+
return d(d(e, /(.+:)(flex-)?(.*)/, w + "box-pack:$3" + R + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + w + e + e;
|
|
708
|
+
// justify-self
|
|
709
|
+
case 4200:
|
|
710
|
+
if (!G(e, /flex-|baseline/)) return R + "grid-column-align" + ce(e, t) + e;
|
|
711
|
+
break;
|
|
712
|
+
// grid-template-(columns|rows)
|
|
713
|
+
case 2592:
|
|
714
|
+
case 3360:
|
|
715
|
+
return R + d(e, "template-", "") + e;
|
|
716
|
+
// grid-(row|column)-start
|
|
717
|
+
case 4384:
|
|
718
|
+
case 3616:
|
|
719
|
+
return r && r.some(function(n, o) {
|
|
720
|
+
return t = o, G(n.props, /grid-\w+-end/);
|
|
721
|
+
}) ? ~Ne(e + (r = r[t].value), "span", 0) ? e : R + d(e, "-start", "") + e + R + "grid-row-span:" + (~Ne(r, "span", 0) ? G(r, /\d+/) : +G(r, /\d+/) - +G(e, /\d+/)) + ";" : R + d(e, "-start", "") + e;
|
|
722
|
+
// grid-(row|column)-end
|
|
723
|
+
case 4896:
|
|
724
|
+
case 4128:
|
|
725
|
+
return r && r.some(function(n) {
|
|
726
|
+
return G(n.props, /grid-\w+-start/);
|
|
727
|
+
}) ? e : R + d(d(e, "-end", "-span"), "span ", "") + e;
|
|
728
|
+
// (margin|padding)-inline-(start|end)
|
|
729
|
+
case 4095:
|
|
730
|
+
case 3583:
|
|
731
|
+
case 4068:
|
|
732
|
+
case 2532:
|
|
733
|
+
return d(e, /(.+)-inline(.+)/, w + "$1$2") + e;
|
|
734
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
735
|
+
case 8116:
|
|
736
|
+
case 7059:
|
|
737
|
+
case 5753:
|
|
738
|
+
case 5535:
|
|
739
|
+
case 5445:
|
|
740
|
+
case 5701:
|
|
741
|
+
case 4933:
|
|
742
|
+
case 4677:
|
|
743
|
+
case 5533:
|
|
744
|
+
case 5789:
|
|
745
|
+
case 5021:
|
|
746
|
+
case 4765:
|
|
747
|
+
if (B(e) - 1 - t > 6)
|
|
748
|
+
switch ($(e, t + 1)) {
|
|
749
|
+
// (m)ax-content, (m)in-content
|
|
750
|
+
case 109:
|
|
751
|
+
if ($(e, t + 4) !== 45)
|
|
752
|
+
break;
|
|
753
|
+
// (f)ill-available, (f)it-content
|
|
754
|
+
case 102:
|
|
755
|
+
return d(e, /(.+:)(.+)-([^]+)/, "$1" + w + "$2-$3$1" + Se + ($(e, t + 3) == 108 ? "$3" : "$2-$3")) + e;
|
|
756
|
+
// (s)tretch
|
|
757
|
+
case 115:
|
|
758
|
+
return ~Ne(e, "stretch", 0) ? Ht(d(e, "stretch", "fill-available"), t, r) + e : e;
|
|
759
|
+
}
|
|
760
|
+
break;
|
|
761
|
+
// grid-(column|row)
|
|
762
|
+
case 5152:
|
|
763
|
+
case 5920:
|
|
764
|
+
return d(e, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function(n, o, a, s, c, u, b) {
|
|
765
|
+
return R + o + ":" + a + b + (s ? R + o + "-span:" + (c ? u : +u - +a) + b : "") + e;
|
|
766
|
+
});
|
|
767
|
+
// position: sticky
|
|
768
|
+
case 4949:
|
|
769
|
+
if ($(e, t + 6) === 121)
|
|
770
|
+
return d(e, ":", ":" + w) + e;
|
|
771
|
+
break;
|
|
772
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
773
|
+
case 6444:
|
|
774
|
+
switch ($(e, $(e, 14) === 45 ? 18 : 11)) {
|
|
775
|
+
// (inline-)?fle(x)
|
|
776
|
+
case 120:
|
|
777
|
+
return d(e, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, "$1" + w + ($(e, 14) === 45 ? "inline-" : "") + "box$3$1" + w + "$2$3$1" + R + "$2box$3") + e;
|
|
778
|
+
// (inline-)?gri(d)
|
|
779
|
+
case 100:
|
|
780
|
+
return d(e, ":", ":" + R) + e;
|
|
781
|
+
}
|
|
782
|
+
break;
|
|
783
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
784
|
+
case 5719:
|
|
785
|
+
case 2647:
|
|
786
|
+
case 2135:
|
|
787
|
+
case 3927:
|
|
788
|
+
case 2391:
|
|
789
|
+
return d(e, "scroll-", "scroll-snap-") + e;
|
|
790
|
+
}
|
|
791
|
+
return e;
|
|
792
|
+
}
|
|
793
|
+
function Fe(e, t) {
|
|
794
|
+
for (var r = "", n = 0; n < e.length; n++)
|
|
795
|
+
r += t(e[n], n, e, t) || "";
|
|
796
|
+
return r;
|
|
797
|
+
}
|
|
798
|
+
function Dr(e, t, r, n) {
|
|
799
|
+
switch (e.type) {
|
|
800
|
+
case kr:
|
|
801
|
+
if (e.children.length) break;
|
|
802
|
+
case Er:
|
|
803
|
+
case st:
|
|
804
|
+
return e.return = e.return || e.value;
|
|
805
|
+
case Lt:
|
|
806
|
+
return "";
|
|
807
|
+
case Yt:
|
|
808
|
+
return e.return = e.value + "{" + Fe(e.children, n) + "}";
|
|
809
|
+
case Le:
|
|
810
|
+
if (!B(e.value = e.props.join(","))) return "";
|
|
811
|
+
}
|
|
812
|
+
return B(r = Fe(e.children, n)) ? e.return = e.value + "{" + r + "}" : "";
|
|
813
|
+
}
|
|
814
|
+
function Fr(e) {
|
|
815
|
+
var t = Wt(e);
|
|
816
|
+
return function(r, n, o, a) {
|
|
817
|
+
for (var s = "", c = 0; c < t; c++)
|
|
818
|
+
s += e[c](r, n, o, a) || "";
|
|
819
|
+
return s;
|
|
820
|
+
};
|
|
821
|
+
}
|
|
822
|
+
function zr(e) {
|
|
823
|
+
return function(t) {
|
|
824
|
+
t.root || (t = t.return) && e(t);
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
function Mr(e, t, r, n) {
|
|
828
|
+
if (e.length > -1 && !e.return)
|
|
829
|
+
switch (e.type) {
|
|
830
|
+
case st:
|
|
831
|
+
e.return = Ht(e.value, e.length, r);
|
|
832
|
+
return;
|
|
833
|
+
case Yt:
|
|
834
|
+
return Fe([X(e, { value: d(e.value, "@", "@" + w) })], n);
|
|
835
|
+
case Le:
|
|
836
|
+
if (e.length)
|
|
837
|
+
return Rr(r = e.props, function(o) {
|
|
838
|
+
switch (G(o, n = /(::plac\w+|:read-\w+)/)) {
|
|
839
|
+
// :read-(only|write)
|
|
840
|
+
case ":read-only":
|
|
841
|
+
case ":read-write":
|
|
842
|
+
ae(X(e, { props: [d(o, /:(read-\w+)/, ":" + Se + "$1")] })), ae(X(e, { props: [o] })), Ke(e, { props: bt(r, n) });
|
|
843
|
+
break;
|
|
844
|
+
// :placeholder
|
|
845
|
+
case "::placeholder":
|
|
846
|
+
ae(X(e, { props: [d(o, /:(plac\w+)/, ":" + w + "input-$1")] })), ae(X(e, { props: [d(o, /:(plac\w+)/, ":" + Se + "$1")] })), ae(X(e, { props: [d(o, /:(plac\w+)/, R + "input-$1")] })), ae(X(e, { props: [o] })), Ke(e, { props: bt(r, n) });
|
|
847
|
+
break;
|
|
848
|
+
}
|
|
849
|
+
return "";
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
var Lr = {
|
|
854
|
+
animationIterationCount: 1,
|
|
855
|
+
aspectRatio: 1,
|
|
856
|
+
borderImageOutset: 1,
|
|
857
|
+
borderImageSlice: 1,
|
|
858
|
+
borderImageWidth: 1,
|
|
859
|
+
boxFlex: 1,
|
|
860
|
+
boxFlexGroup: 1,
|
|
861
|
+
boxOrdinalGroup: 1,
|
|
862
|
+
columnCount: 1,
|
|
863
|
+
columns: 1,
|
|
864
|
+
flex: 1,
|
|
865
|
+
flexGrow: 1,
|
|
866
|
+
flexPositive: 1,
|
|
867
|
+
flexShrink: 1,
|
|
868
|
+
flexNegative: 1,
|
|
869
|
+
flexOrder: 1,
|
|
870
|
+
gridRow: 1,
|
|
871
|
+
gridRowEnd: 1,
|
|
872
|
+
gridRowSpan: 1,
|
|
873
|
+
gridRowStart: 1,
|
|
874
|
+
gridColumn: 1,
|
|
875
|
+
gridColumnEnd: 1,
|
|
876
|
+
gridColumnSpan: 1,
|
|
877
|
+
gridColumnStart: 1,
|
|
878
|
+
msGridRow: 1,
|
|
879
|
+
msGridRowSpan: 1,
|
|
880
|
+
msGridColumn: 1,
|
|
881
|
+
msGridColumnSpan: 1,
|
|
882
|
+
fontWeight: 1,
|
|
883
|
+
lineHeight: 1,
|
|
884
|
+
opacity: 1,
|
|
885
|
+
order: 1,
|
|
886
|
+
orphans: 1,
|
|
887
|
+
tabSize: 1,
|
|
888
|
+
widows: 1,
|
|
889
|
+
zIndex: 1,
|
|
890
|
+
zoom: 1,
|
|
891
|
+
WebkitLineClamp: 1,
|
|
892
|
+
// SVG-related properties
|
|
893
|
+
fillOpacity: 1,
|
|
894
|
+
floodOpacity: 1,
|
|
895
|
+
stopOpacity: 1,
|
|
896
|
+
strokeDasharray: 1,
|
|
897
|
+
strokeDashoffset: 1,
|
|
898
|
+
strokeMiterlimit: 1,
|
|
899
|
+
strokeOpacity: 1,
|
|
900
|
+
strokeWidth: 1
|
|
901
|
+
}, te = typeof process < "u" && process.env !== void 0 && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled", Ut = "active", qt = "data-styled-version", We = "6.1.19", ct = `/*!sc*/
|
|
902
|
+
`, ze = typeof window < "u" && typeof document < "u", Yr = !!(typeof SC_DISABLE_SPEEDY == "boolean" ? SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== void 0 && process.env.REACT_APP_SC_DISABLE_SPEEDY !== "" ? process.env.REACT_APP_SC_DISABLE_SPEEDY !== "false" && process.env.REACT_APP_SC_DISABLE_SPEEDY : typeof process < "u" && process.env !== void 0 && process.env.SC_DISABLE_SPEEDY !== void 0 && process.env.SC_DISABLE_SPEEDY !== "" ? process.env.SC_DISABLE_SPEEDY !== "false" && process.env.SC_DISABLE_SPEEDY : process.env.NODE_ENV !== "production"), Et = /invalid hook call/i, Te = /* @__PURE__ */ new Set(), Vr = function(e, t) {
|
|
903
|
+
if (process.env.NODE_ENV !== "production") {
|
|
904
|
+
var r = t ? ' with the id of "'.concat(t, '"') : "", n = "The component ".concat(e).concat(r, ` has been created dynamically.
|
|
905
|
+
`) + `You may see this warning because you've called styled inside another component.
|
|
906
|
+
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
907
|
+
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
908
|
+
`, o = console.error;
|
|
909
|
+
try {
|
|
910
|
+
var a = !0;
|
|
911
|
+
console.error = function(s) {
|
|
912
|
+
for (var c = [], u = 1; u < arguments.length; u++) c[u - 1] = arguments[u];
|
|
913
|
+
Et.test(s) ? (a = !1, Te.delete(n)) : o.apply(void 0, ie([s], c, !1));
|
|
914
|
+
}, hr(), a && !Te.has(n) && (console.warn(n), Te.add(n));
|
|
915
|
+
} catch (s) {
|
|
916
|
+
Et.test(s.message) && Te.delete(n);
|
|
917
|
+
} finally {
|
|
918
|
+
console.error = o;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
}, Ge = Object.freeze([]), le = Object.freeze({});
|
|
922
|
+
function Br(e, t, r) {
|
|
923
|
+
return r === void 0 && (r = le), e.theme !== r.theme && e.theme || t || r.theme;
|
|
924
|
+
}
|
|
925
|
+
var tt = /* @__PURE__ */ new Set(["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "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", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "tr", "track", "u", "ul", "use", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"]), Wr = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Gr = /(^-|-$)/g;
|
|
926
|
+
function kt(e) {
|
|
927
|
+
return e.replace(Wr, "-").replace(Gr, "");
|
|
928
|
+
}
|
|
929
|
+
var Hr = /(a)(d)/gi, Ce = 52, xt = function(e) {
|
|
930
|
+
return String.fromCharCode(e + (e > 25 ? 39 : 97));
|
|
931
|
+
};
|
|
932
|
+
function rt(e) {
|
|
933
|
+
var t, r = "";
|
|
934
|
+
for (t = Math.abs(e); t > Ce; t = t / Ce | 0) r = xt(t % Ce) + r;
|
|
935
|
+
return (xt(t % Ce) + r).replace(Hr, "$1-$2");
|
|
936
|
+
}
|
|
937
|
+
var Xe, Xt = 5381, Z = function(e, t) {
|
|
938
|
+
for (var r = t.length; r; ) e = 33 * e ^ t.charCodeAt(--r);
|
|
939
|
+
return e;
|
|
940
|
+
}, Jt = function(e) {
|
|
941
|
+
return Z(Xt, e);
|
|
942
|
+
};
|
|
943
|
+
function Ur(e) {
|
|
944
|
+
return rt(Jt(e) >>> 0);
|
|
945
|
+
}
|
|
946
|
+
function Zt(e) {
|
|
947
|
+
return process.env.NODE_ENV !== "production" && typeof e == "string" && e || e.displayName || e.name || "Component";
|
|
948
|
+
}
|
|
949
|
+
function Je(e) {
|
|
950
|
+
return typeof e == "string" && (process.env.NODE_ENV === "production" || e.charAt(0) === e.charAt(0).toLowerCase());
|
|
951
|
+
}
|
|
952
|
+
var Kt = typeof Symbol == "function" && Symbol.for, Qt = Kt ? Symbol.for("react.memo") : 60115, qr = Kt ? Symbol.for("react.forward_ref") : 60112, Xr = { childContextTypes: !0, contextType: !0, contextTypes: !0, defaultProps: !0, displayName: !0, getDefaultProps: !0, getDerivedStateFromError: !0, getDerivedStateFromProps: !0, mixins: !0, propTypes: !0, type: !0 }, Jr = { name: !0, length: !0, prototype: !0, caller: !0, callee: !0, arguments: !0, arity: !0 }, er = { $$typeof: !0, compare: !0, defaultProps: !0, displayName: !0, propTypes: !0, type: !0 }, Zr = ((Xe = {})[qr] = { $$typeof: !0, render: !0, defaultProps: !0, displayName: !0, propTypes: !0 }, Xe[Qt] = er, Xe);
|
|
953
|
+
function Rt(e) {
|
|
954
|
+
return ("type" in (t = e) && t.type.$$typeof) === Qt ? er : "$$typeof" in e ? Zr[e.$$typeof] : Xr;
|
|
955
|
+
var t;
|
|
956
|
+
}
|
|
957
|
+
var Kr = Object.defineProperty, Qr = Object.getOwnPropertyNames, _t = Object.getOwnPropertySymbols, en = Object.getOwnPropertyDescriptor, tn = Object.getPrototypeOf, At = Object.prototype;
|
|
958
|
+
function tr(e, t, r) {
|
|
959
|
+
if (typeof t != "string") {
|
|
960
|
+
if (At) {
|
|
961
|
+
var n = tn(t);
|
|
962
|
+
n && n !== At && tr(e, n, r);
|
|
963
|
+
}
|
|
964
|
+
var o = Qr(t);
|
|
965
|
+
_t && (o = o.concat(_t(t)));
|
|
966
|
+
for (var a = Rt(e), s = Rt(t), c = 0; c < o.length; ++c) {
|
|
967
|
+
var u = o[c];
|
|
968
|
+
if (!(u in Jr || r && r[u] || s && u in s || a && u in a)) {
|
|
969
|
+
var b = en(t, u);
|
|
970
|
+
try {
|
|
971
|
+
Kr(e, u, b);
|
|
972
|
+
} catch {
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
return e;
|
|
978
|
+
}
|
|
979
|
+
function pe(e) {
|
|
980
|
+
return typeof e == "function";
|
|
981
|
+
}
|
|
982
|
+
function ut(e) {
|
|
983
|
+
return typeof e == "object" && "styledComponentId" in e;
|
|
984
|
+
}
|
|
985
|
+
function K(e, t) {
|
|
986
|
+
return e && t ? "".concat(e, " ").concat(t) : e || t || "";
|
|
987
|
+
}
|
|
988
|
+
function Tt(e, t) {
|
|
989
|
+
if (e.length === 0) return "";
|
|
990
|
+
for (var r = e[0], n = 1; n < e.length; n++) r += e[n];
|
|
991
|
+
return r;
|
|
992
|
+
}
|
|
993
|
+
function de(e) {
|
|
994
|
+
return e !== null && typeof e == "object" && e.constructor.name === Object.name && !("props" in e && e.$$typeof);
|
|
995
|
+
}
|
|
996
|
+
function nt(e, t, r) {
|
|
997
|
+
if (r === void 0 && (r = !1), !r && !de(e) && !Array.isArray(e)) return t;
|
|
998
|
+
if (Array.isArray(t)) for (var n = 0; n < t.length; n++) e[n] = nt(e[n], t[n]);
|
|
999
|
+
else if (de(t)) for (var n in t) e[n] = nt(e[n], t[n]);
|
|
1000
|
+
return e;
|
|
1001
|
+
}
|
|
1002
|
+
function lt(e, t) {
|
|
1003
|
+
Object.defineProperty(e, "toString", { value: t });
|
|
1004
|
+
}
|
|
1005
|
+
var rn = process.env.NODE_ENV !== "production" ? { 1: `Cannot create styled-component for component: %s.
|
|
1006
|
+
|
|
1007
|
+
`, 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.
|
|
1008
|
+
|
|
1009
|
+
- Are you trying to reuse it across renders?
|
|
1010
|
+
- Are you accidentally calling collectStyles twice?
|
|
1011
|
+
|
|
1012
|
+
`, 3: `Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
|
|
1013
|
+
|
|
1014
|
+
`, 4: `The \`StyleSheetManager\` expects a valid target or sheet prop!
|
|
1015
|
+
|
|
1016
|
+
- Does this error occur on the client and is your target falsy?
|
|
1017
|
+
- Does this error occur on the server and is the sheet falsy?
|
|
1018
|
+
|
|
1019
|
+
`, 5: `The clone method cannot be used on the client!
|
|
1020
|
+
|
|
1021
|
+
- Are you running in a client-like environment on the server?
|
|
1022
|
+
- Are you trying to run SSR on the client?
|
|
1023
|
+
|
|
1024
|
+
`, 6: `Trying to insert a new style tag, but the given Node is unmounted!
|
|
1025
|
+
|
|
1026
|
+
- Are you using a custom target that isn't mounted?
|
|
1027
|
+
- Does your document not have a valid head element?
|
|
1028
|
+
- Have you accidentally removed a style tag manually?
|
|
1029
|
+
|
|
1030
|
+
`, 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.
|
|
1031
|
+
|
|
1032
|
+
`, 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
|
|
1033
|
+
|
|
1034
|
+
`, 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.
|
|
1035
|
+
|
|
1036
|
+
`, 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.
|
|
1037
|
+
|
|
1038
|
+
`, 14: `ThemeProvider: "theme" prop is required.
|
|
1039
|
+
|
|
1040
|
+
`, 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.
|
|
1041
|
+
You may only create up to 1,073,741,824 components. If you're creating components dynamically,
|
|
1042
|
+
as for instance in your render method then you may be running into this limitation.
|
|
1043
|
+
|
|
1044
|
+
`, 17: `CSSStyleSheet could not be found on HTMLStyleElement.
|
|
1045
|
+
Has styled-components' style tag been unmounted or altered by another script?
|
|
1046
|
+
`, 18: "ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`" } : {};
|
|
1047
|
+
function nn() {
|
|
1048
|
+
for (var e = [], t = 0; t < arguments.length; t++) e[t] = arguments[t];
|
|
1049
|
+
for (var r = e[0], n = [], o = 1, a = e.length; o < a; o += 1) n.push(e[o]);
|
|
1050
|
+
return n.forEach(function(s) {
|
|
1051
|
+
r = r.replace(/%[a-z]/, s);
|
|
1052
|
+
}), r;
|
|
1053
|
+
}
|
|
1054
|
+
function re(e) {
|
|
1055
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1056
|
+
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#".concat(e, " for more information.").concat(t.length > 0 ? " Args: ".concat(t.join(", ")) : "")) : new Error(nn.apply(void 0, ie([rn[e]], t, !1)).trim());
|
|
1057
|
+
}
|
|
1058
|
+
var on = (function() {
|
|
1059
|
+
function e(t) {
|
|
1060
|
+
this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = t;
|
|
1061
|
+
}
|
|
1062
|
+
return e.prototype.indexOfGroup = function(t) {
|
|
1063
|
+
for (var r = 0, n = 0; n < t; n++) r += this.groupSizes[n];
|
|
1064
|
+
return r;
|
|
1065
|
+
}, e.prototype.insertRules = function(t, r) {
|
|
1066
|
+
if (t >= this.groupSizes.length) {
|
|
1067
|
+
for (var n = this.groupSizes, o = n.length, a = o; t >= a; ) if ((a <<= 1) < 0) throw re(16, "".concat(t));
|
|
1068
|
+
this.groupSizes = new Uint32Array(a), this.groupSizes.set(n), this.length = a;
|
|
1069
|
+
for (var s = o; s < a; s++) this.groupSizes[s] = 0;
|
|
1070
|
+
}
|
|
1071
|
+
for (var c = this.indexOfGroup(t + 1), u = (s = 0, r.length); s < u; s++) this.tag.insertRule(c, r[s]) && (this.groupSizes[t]++, c++);
|
|
1072
|
+
}, e.prototype.clearGroup = function(t) {
|
|
1073
|
+
if (t < this.length) {
|
|
1074
|
+
var r = this.groupSizes[t], n = this.indexOfGroup(t), o = n + r;
|
|
1075
|
+
this.groupSizes[t] = 0;
|
|
1076
|
+
for (var a = n; a < o; a++) this.tag.deleteRule(n);
|
|
1077
|
+
}
|
|
1078
|
+
}, e.prototype.getGroup = function(t) {
|
|
1079
|
+
var r = "";
|
|
1080
|
+
if (t >= this.length || this.groupSizes[t] === 0) return r;
|
|
1081
|
+
for (var n = this.groupSizes[t], o = this.indexOfGroup(t), a = o + n, s = o; s < a; s++) r += "".concat(this.tag.getRule(s)).concat(ct);
|
|
1082
|
+
return r;
|
|
1083
|
+
}, e;
|
|
1084
|
+
})(), an = 1 << 30, je = /* @__PURE__ */ new Map(), Me = /* @__PURE__ */ new Map(), De = 1, Pe = function(e) {
|
|
1085
|
+
if (je.has(e)) return je.get(e);
|
|
1086
|
+
for (; Me.has(De); ) De++;
|
|
1087
|
+
var t = De++;
|
|
1088
|
+
if (process.env.NODE_ENV !== "production" && ((0 | t) < 0 || t > an)) throw re(16, "".concat(t));
|
|
1089
|
+
return je.set(e, t), Me.set(t, e), t;
|
|
1090
|
+
}, sn = function(e, t) {
|
|
1091
|
+
De = t + 1, je.set(e, t), Me.set(t, e);
|
|
1092
|
+
}, cn = "style[".concat(te, "][").concat(qt, '="').concat(We, '"]'), un = new RegExp("^".concat(te, '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')), ln = function(e, t, r) {
|
|
1093
|
+
for (var n, o = r.split(","), a = 0, s = o.length; a < s; a++) (n = o[a]) && e.registerName(t, n);
|
|
1094
|
+
}, pn = function(e, t) {
|
|
1095
|
+
for (var r, n = ((r = t.textContent) !== null && r !== void 0 ? r : "").split(ct), o = [], a = 0, s = n.length; a < s; a++) {
|
|
1096
|
+
var c = n[a].trim();
|
|
1097
|
+
if (c) {
|
|
1098
|
+
var u = c.match(un);
|
|
1099
|
+
if (u) {
|
|
1100
|
+
var b = 0 | parseInt(u[1], 10), v = u[2];
|
|
1101
|
+
b !== 0 && (sn(v, b), ln(e, v, u[3]), e.getTag().insertRules(b, o)), o.length = 0;
|
|
1102
|
+
} else o.push(c);
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
}, Ct = function(e) {
|
|
1106
|
+
for (var t = document.querySelectorAll(cn), r = 0, n = t.length; r < n; r++) {
|
|
1107
|
+
var o = t[r];
|
|
1108
|
+
o && o.getAttribute(te) !== Ut && (pn(e, o), o.parentNode && o.parentNode.removeChild(o));
|
|
1109
|
+
}
|
|
1110
|
+
};
|
|
1111
|
+
function dn() {
|
|
1112
|
+
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : null;
|
|
1113
|
+
}
|
|
1114
|
+
var rr = function(e) {
|
|
1115
|
+
var t = document.head, r = e || t, n = document.createElement("style"), o = (function(c) {
|
|
1116
|
+
var u = Array.from(c.querySelectorAll("style[".concat(te, "]")));
|
|
1117
|
+
return u[u.length - 1];
|
|
1118
|
+
})(r), a = o !== void 0 ? o.nextSibling : null;
|
|
1119
|
+
n.setAttribute(te, Ut), n.setAttribute(qt, We);
|
|
1120
|
+
var s = dn();
|
|
1121
|
+
return s && n.setAttribute("nonce", s), r.insertBefore(n, a), n;
|
|
1122
|
+
}, fn = (function() {
|
|
1123
|
+
function e(t) {
|
|
1124
|
+
this.element = rr(t), this.element.appendChild(document.createTextNode("")), this.sheet = (function(r) {
|
|
1125
|
+
if (r.sheet) return r.sheet;
|
|
1126
|
+
for (var n = document.styleSheets, o = 0, a = n.length; o < a; o++) {
|
|
1127
|
+
var s = n[o];
|
|
1128
|
+
if (s.ownerNode === r) return s;
|
|
1129
|
+
}
|
|
1130
|
+
throw re(17);
|
|
1131
|
+
})(this.element), this.length = 0;
|
|
1132
|
+
}
|
|
1133
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1134
|
+
try {
|
|
1135
|
+
return this.sheet.insertRule(r, t), this.length++, !0;
|
|
1136
|
+
} catch {
|
|
1137
|
+
return !1;
|
|
1138
|
+
}
|
|
1139
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1140
|
+
this.sheet.deleteRule(t), this.length--;
|
|
1141
|
+
}, e.prototype.getRule = function(t) {
|
|
1142
|
+
var r = this.sheet.cssRules[t];
|
|
1143
|
+
return r && r.cssText ? r.cssText : "";
|
|
1144
|
+
}, e;
|
|
1145
|
+
})(), hn = (function() {
|
|
1146
|
+
function e(t) {
|
|
1147
|
+
this.element = rr(t), this.nodes = this.element.childNodes, this.length = 0;
|
|
1148
|
+
}
|
|
1149
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1150
|
+
if (t <= this.length && t >= 0) {
|
|
1151
|
+
var n = document.createTextNode(r);
|
|
1152
|
+
return this.element.insertBefore(n, this.nodes[t] || null), this.length++, !0;
|
|
1153
|
+
}
|
|
1154
|
+
return !1;
|
|
1155
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1156
|
+
this.element.removeChild(this.nodes[t]), this.length--;
|
|
1157
|
+
}, e.prototype.getRule = function(t) {
|
|
1158
|
+
return t < this.length ? this.nodes[t].textContent : "";
|
|
1159
|
+
}, e;
|
|
1160
|
+
})(), mn = (function() {
|
|
1161
|
+
function e(t) {
|
|
1162
|
+
this.rules = [], this.length = 0;
|
|
1163
|
+
}
|
|
1164
|
+
return e.prototype.insertRule = function(t, r) {
|
|
1165
|
+
return t <= this.length && (this.rules.splice(t, 0, r), this.length++, !0);
|
|
1166
|
+
}, e.prototype.deleteRule = function(t) {
|
|
1167
|
+
this.rules.splice(t, 1), this.length--;
|
|
1168
|
+
}, e.prototype.getRule = function(t) {
|
|
1169
|
+
return t < this.length ? this.rules[t] : "";
|
|
1170
|
+
}, e;
|
|
1171
|
+
})(), Pt = ze, gn = { isServer: !ze, useCSSOMInjection: !Yr }, nr = (function() {
|
|
1172
|
+
function e(t, r, n) {
|
|
1173
|
+
t === void 0 && (t = le), r === void 0 && (r = {});
|
|
1174
|
+
var o = this;
|
|
1175
|
+
this.options = F(F({}, gn), t), this.gs = r, this.names = new Map(n), this.server = !!t.isServer, !this.server && ze && Pt && (Pt = !1, Ct(this)), lt(this, function() {
|
|
1176
|
+
return (function(a) {
|
|
1177
|
+
for (var s = a.getTag(), c = s.length, u = "", b = function(m) {
|
|
1178
|
+
var g = (function(C) {
|
|
1179
|
+
return Me.get(C);
|
|
1180
|
+
})(m);
|
|
1181
|
+
if (g === void 0) return "continue";
|
|
1182
|
+
var y = a.names.get(g), k = s.getGroup(m);
|
|
1183
|
+
if (y === void 0 || !y.size || k.length === 0) return "continue";
|
|
1184
|
+
var x = "".concat(te, ".g").concat(m, '[id="').concat(g, '"]'), I = "";
|
|
1185
|
+
y !== void 0 && y.forEach(function(C) {
|
|
1186
|
+
C.length > 0 && (I += "".concat(C, ","));
|
|
1187
|
+
}), u += "".concat(k).concat(x, '{content:"').concat(I, '"}').concat(ct);
|
|
1188
|
+
}, v = 0; v < c; v++) b(v);
|
|
1189
|
+
return u;
|
|
1190
|
+
})(o);
|
|
1191
|
+
});
|
|
1192
|
+
}
|
|
1193
|
+
return e.registerId = function(t) {
|
|
1194
|
+
return Pe(t);
|
|
1195
|
+
}, e.prototype.rehydrate = function() {
|
|
1196
|
+
!this.server && ze && Ct(this);
|
|
1197
|
+
}, e.prototype.reconstructWithOptions = function(t, r) {
|
|
1198
|
+
return r === void 0 && (r = !0), new e(F(F({}, this.options), t), this.gs, r && this.names || void 0);
|
|
1199
|
+
}, e.prototype.allocateGSInstance = function(t) {
|
|
1200
|
+
return this.gs[t] = (this.gs[t] || 0) + 1;
|
|
1201
|
+
}, e.prototype.getTag = function() {
|
|
1202
|
+
return this.tag || (this.tag = (t = (function(r) {
|
|
1203
|
+
var n = r.useCSSOMInjection, o = r.target;
|
|
1204
|
+
return r.isServer ? new mn(o) : n ? new fn(o) : new hn(o);
|
|
1205
|
+
})(this.options), new on(t)));
|
|
1206
|
+
var t;
|
|
1207
|
+
}, e.prototype.hasNameForId = function(t, r) {
|
|
1208
|
+
return this.names.has(t) && this.names.get(t).has(r);
|
|
1209
|
+
}, e.prototype.registerName = function(t, r) {
|
|
1210
|
+
if (Pe(t), this.names.has(t)) this.names.get(t).add(r);
|
|
1211
|
+
else {
|
|
1212
|
+
var n = /* @__PURE__ */ new Set();
|
|
1213
|
+
n.add(r), this.names.set(t, n);
|
|
1214
|
+
}
|
|
1215
|
+
}, e.prototype.insertRules = function(t, r, n) {
|
|
1216
|
+
this.registerName(t, r), this.getTag().insertRules(Pe(t), n);
|
|
1217
|
+
}, e.prototype.clearNames = function(t) {
|
|
1218
|
+
this.names.has(t) && this.names.get(t).clear();
|
|
1219
|
+
}, e.prototype.clearRules = function(t) {
|
|
1220
|
+
this.getTag().clearGroup(Pe(t)), this.clearNames(t);
|
|
1221
|
+
}, e.prototype.clearTag = function() {
|
|
1222
|
+
this.tag = void 0;
|
|
1223
|
+
}, e;
|
|
1224
|
+
})(), yn = /&/g, vn = /^\s*\/\/.*$/gm;
|
|
1225
|
+
function or(e, t) {
|
|
1226
|
+
return e.map(function(r) {
|
|
1227
|
+
return r.type === "rule" && (r.value = "".concat(t, " ").concat(r.value), r.value = r.value.replaceAll(",", ",".concat(t, " ")), r.props = r.props.map(function(n) {
|
|
1228
|
+
return "".concat(t, " ").concat(n);
|
|
1229
|
+
})), Array.isArray(r.children) && r.type !== "@keyframes" && (r.children = or(r.children, t)), r;
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
function bn(e) {
|
|
1233
|
+
var t, r, n, o = le, a = o.options, s = a === void 0 ? le : a, c = o.plugins, u = c === void 0 ? Ge : c, b = function(g, y, k) {
|
|
1234
|
+
return k.startsWith(r) && k.endsWith(r) && k.replaceAll(r, "").length > 0 ? ".".concat(t) : g;
|
|
1235
|
+
}, v = u.slice();
|
|
1236
|
+
v.push(function(g) {
|
|
1237
|
+
g.type === Le && g.value.includes("&") && (g.props[0] = g.props[0].replace(yn, r).replace(n, b));
|
|
1238
|
+
}), s.prefix && v.push(Mr), v.push(Dr);
|
|
1239
|
+
var m = function(g, y, k, x) {
|
|
1240
|
+
y === void 0 && (y = ""), k === void 0 && (k = ""), x === void 0 && (x = "&"), t = x, r = y, n = new RegExp("\\".concat(r, "\\b"), "g");
|
|
1241
|
+
var I = g.replace(vn, ""), C = Ir(k || y ? "".concat(k, " ").concat(y, " { ").concat(I, " }") : I);
|
|
1242
|
+
s.namespace && (C = or(C, s.namespace));
|
|
1243
|
+
var _ = [];
|
|
1244
|
+
return Fe(C, Fr(v.concat(zr(function(S) {
|
|
1245
|
+
return _.push(S);
|
|
1246
|
+
})))), _;
|
|
1247
|
+
};
|
|
1248
|
+
return m.hash = u.length ? u.reduce(function(g, y) {
|
|
1249
|
+
return y.name || re(15), Z(g, y.name);
|
|
1250
|
+
}, Xt).toString() : "", m;
|
|
1251
|
+
}
|
|
1252
|
+
var wn = new nr(), ot = bn(), ar = se.createContext({ shouldForwardProp: void 0, styleSheet: wn, stylis: ot });
|
|
1253
|
+
ar.Consumer;
|
|
1254
|
+
se.createContext(void 0);
|
|
1255
|
+
function Ot() {
|
|
1256
|
+
return zt(ar);
|
|
1257
|
+
}
|
|
1258
|
+
var Nt = (function() {
|
|
1259
|
+
function e(t, r) {
|
|
1260
|
+
var n = this;
|
|
1261
|
+
this.inject = function(o, a) {
|
|
1262
|
+
a === void 0 && (a = ot);
|
|
1263
|
+
var s = n.name + a.hash;
|
|
1264
|
+
o.hasNameForId(n.id, s) || o.insertRules(n.id, s, a(n.rules, s, "@keyframes"));
|
|
1265
|
+
}, this.name = t, this.id = "sc-keyframes-".concat(t), this.rules = r, lt(this, function() {
|
|
1266
|
+
throw re(12, String(n.name));
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
return e.prototype.getName = function(t) {
|
|
1270
|
+
return t === void 0 && (t = ot), this.name + t.hash;
|
|
1271
|
+
}, e;
|
|
1272
|
+
})(), Sn = function(e) {
|
|
1273
|
+
return e >= "A" && e <= "Z";
|
|
1274
|
+
};
|
|
1275
|
+
function $t(e) {
|
|
1276
|
+
for (var t = "", r = 0; r < e.length; r++) {
|
|
1277
|
+
var n = e[r];
|
|
1278
|
+
if (r === 1 && n === "-" && e[0] === "-") return e;
|
|
1279
|
+
Sn(n) ? t += "-" + n.toLowerCase() : t += n;
|
|
1280
|
+
}
|
|
1281
|
+
return t.startsWith("ms-") ? "-" + t : t;
|
|
1282
|
+
}
|
|
1283
|
+
var sr = function(e) {
|
|
1284
|
+
return e == null || e === !1 || e === "";
|
|
1285
|
+
}, ir = function(e) {
|
|
1286
|
+
var t, r, n = [];
|
|
1287
|
+
for (var o in e) {
|
|
1288
|
+
var a = e[o];
|
|
1289
|
+
e.hasOwnProperty(o) && !sr(a) && (Array.isArray(a) && a.isCss || pe(a) ? n.push("".concat($t(o), ":"), a, ";") : de(a) ? n.push.apply(n, ie(ie(["".concat(o, " {")], ir(a), !1), ["}"], !1)) : n.push("".concat($t(o), ": ").concat((t = o, (r = a) == null || typeof r == "boolean" || r === "" ? "" : typeof r != "number" || r === 0 || t in Lr || t.startsWith("--") ? String(r).trim() : "".concat(r, "px")), ";")));
|
|
1290
|
+
}
|
|
1291
|
+
return n;
|
|
1292
|
+
};
|
|
1293
|
+
function ee(e, t, r, n) {
|
|
1294
|
+
if (sr(e)) return [];
|
|
1295
|
+
if (ut(e)) return [".".concat(e.styledComponentId)];
|
|
1296
|
+
if (pe(e)) {
|
|
1297
|
+
if (!pe(a = e) || a.prototype && a.prototype.isReactComponent || !t) return [e];
|
|
1298
|
+
var o = e(t);
|
|
1299
|
+
return process.env.NODE_ENV === "production" || typeof o != "object" || Array.isArray(o) || o instanceof Nt || de(o) || o === null || console.error("".concat(Zt(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.")), ee(o, t, r, n);
|
|
1300
|
+
}
|
|
1301
|
+
var a;
|
|
1302
|
+
return e instanceof Nt ? r ? (e.inject(r, n), [e.getName(n)]) : [e] : de(e) ? ir(e) : Array.isArray(e) ? Array.prototype.concat.apply(Ge, e.map(function(s) {
|
|
1303
|
+
return ee(s, t, r, n);
|
|
1304
|
+
})) : [e.toString()];
|
|
1305
|
+
}
|
|
1306
|
+
function En(e) {
|
|
1307
|
+
for (var t = 0; t < e.length; t += 1) {
|
|
1308
|
+
var r = e[t];
|
|
1309
|
+
if (pe(r) && !ut(r)) return !1;
|
|
1310
|
+
}
|
|
1311
|
+
return !0;
|
|
1312
|
+
}
|
|
1313
|
+
var kn = Jt(We), xn = (function() {
|
|
1314
|
+
function e(t, r, n) {
|
|
1315
|
+
this.rules = t, this.staticRulesId = "", this.isStatic = process.env.NODE_ENV === "production" && (n === void 0 || n.isStatic) && En(t), this.componentId = r, this.baseHash = Z(kn, r), this.baseStyle = n, nr.registerId(r);
|
|
1316
|
+
}
|
|
1317
|
+
return e.prototype.generateAndInjectStyles = function(t, r, n) {
|
|
1318
|
+
var o = this.baseStyle ? this.baseStyle.generateAndInjectStyles(t, r, n) : "";
|
|
1319
|
+
if (this.isStatic && !n.hash) if (this.staticRulesId && r.hasNameForId(this.componentId, this.staticRulesId)) o = K(o, this.staticRulesId);
|
|
1320
|
+
else {
|
|
1321
|
+
var a = Tt(ee(this.rules, t, r, n)), s = rt(Z(this.baseHash, a) >>> 0);
|
|
1322
|
+
if (!r.hasNameForId(this.componentId, s)) {
|
|
1323
|
+
var c = n(a, ".".concat(s), void 0, this.componentId);
|
|
1324
|
+
r.insertRules(this.componentId, s, c);
|
|
1325
|
+
}
|
|
1326
|
+
o = K(o, s), this.staticRulesId = s;
|
|
1327
|
+
}
|
|
1328
|
+
else {
|
|
1329
|
+
for (var u = Z(this.baseHash, n.hash), b = "", v = 0; v < this.rules.length; v++) {
|
|
1330
|
+
var m = this.rules[v];
|
|
1331
|
+
if (typeof m == "string") b += m, process.env.NODE_ENV !== "production" && (u = Z(u, m));
|
|
1332
|
+
else if (m) {
|
|
1333
|
+
var g = Tt(ee(m, t, r, n));
|
|
1334
|
+
u = Z(u, g + v), b += g;
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
if (b) {
|
|
1338
|
+
var y = rt(u >>> 0);
|
|
1339
|
+
r.hasNameForId(this.componentId, y) || r.insertRules(this.componentId, y, n(b, ".".concat(y), void 0, this.componentId)), o = K(o, y);
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
return o;
|
|
1343
|
+
}, e;
|
|
1344
|
+
})(), pt = se.createContext(void 0);
|
|
1345
|
+
pt.Consumer;
|
|
1346
|
+
function Rn() {
|
|
1347
|
+
var e = zt(pt);
|
|
1348
|
+
if (!e) throw re(18);
|
|
1349
|
+
return e;
|
|
1350
|
+
}
|
|
1351
|
+
var Ze = {}, It = /* @__PURE__ */ new Set();
|
|
1352
|
+
function _n(e, t, r) {
|
|
1353
|
+
var n = ut(e), o = e, a = !Je(e), s = t.attrs, c = s === void 0 ? Ge : s, u = t.componentId, b = u === void 0 ? (function(E, A) {
|
|
1354
|
+
var h = typeof E != "string" ? "sc" : kt(E);
|
|
1355
|
+
Ze[h] = (Ze[h] || 0) + 1;
|
|
1356
|
+
var p = "".concat(h, "-").concat(Ur(We + h + Ze[h]));
|
|
1357
|
+
return A ? "".concat(A, "-").concat(p) : p;
|
|
1358
|
+
})(t.displayName, t.parentComponentId) : u, v = t.displayName, m = v === void 0 ? (function(E) {
|
|
1359
|
+
return Je(E) ? "styled.".concat(E) : "Styled(".concat(Zt(E), ")");
|
|
1360
|
+
})(e) : v, g = t.displayName && t.componentId ? "".concat(kt(t.displayName), "-").concat(t.componentId) : t.componentId || b, y = n && o.attrs ? o.attrs.concat(c).filter(Boolean) : c, k = t.shouldForwardProp;
|
|
1361
|
+
if (n && o.shouldForwardProp) {
|
|
1362
|
+
var x = o.shouldForwardProp;
|
|
1363
|
+
if (t.shouldForwardProp) {
|
|
1364
|
+
var I = t.shouldForwardProp;
|
|
1365
|
+
k = function(E, A) {
|
|
1366
|
+
return x(E, A) && I(E, A);
|
|
1367
|
+
};
|
|
1368
|
+
} else k = x;
|
|
1369
|
+
}
|
|
1370
|
+
var C = new xn(r, g, n ? o.componentStyle : void 0);
|
|
1371
|
+
function _(E, A) {
|
|
1372
|
+
return (function(h, p, Y) {
|
|
1373
|
+
var H = h.attrs, He = h.componentStyle, he = h.defaultProps, ke = h.foldedComponentIds, xe = h.styledComponentId, me = h.target, Re = se.useContext(pt), _e = Ot(), ne = h.shouldForwardProp || _e.shouldForwardProp;
|
|
1374
|
+
process.env.NODE_ENV !== "production" && mt(xe);
|
|
1375
|
+
var ge = Br(p, Re, he) || le, z = (function(j, W, U) {
|
|
1376
|
+
for (var T, D = F(F({}, W), { className: void 0, theme: U }), J = 0; J < j.length; J += 1) {
|
|
1377
|
+
var oe = pe(T = j[J]) ? T(D) : T;
|
|
1378
|
+
for (var q in oe) D[q] = q === "className" ? K(D[q], oe[q]) : q === "style" ? F(F({}, D[q]), oe[q]) : oe[q];
|
|
1379
|
+
}
|
|
1380
|
+
return W.className && (D.className = K(D.className, W.className)), D;
|
|
1381
|
+
})(H, p, ge), i = z.as || me, l = {};
|
|
1382
|
+
for (var f in z) z[f] === void 0 || f[0] === "$" || f === "as" || f === "theme" && z.theme === ge || (f === "forwardedAs" ? l.as = z.forwardedAs : ne && !ne(f, i) || (l[f] = z[f], ne || process.env.NODE_ENV !== "development" || Sr(f) || It.has(f) || !tt.has(i) || (It.add(f), console.warn('styled-components: it looks like an unknown prop "'.concat(f, '" 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.)')))));
|
|
1383
|
+
var P = (function(j, W) {
|
|
1384
|
+
var U = Ot(), T = j.generateAndInjectStyles(W, U.styleSheet, U.stylis);
|
|
1385
|
+
return process.env.NODE_ENV !== "production" && mt(T), T;
|
|
1386
|
+
})(He, z);
|
|
1387
|
+
process.env.NODE_ENV !== "production" && h.warnTooManyClasses && h.warnTooManyClasses(P);
|
|
1388
|
+
var M = K(ke, xe);
|
|
1389
|
+
return P && (M += " " + P), z.className && (M += " " + z.className), l[Je(i) && !tt.has(i) ? "class" : "className"] = M, Y && (l.ref = Y), fr(i, l);
|
|
1390
|
+
})(S, E, A);
|
|
1391
|
+
}
|
|
1392
|
+
_.displayName = m;
|
|
1393
|
+
var S = se.forwardRef(_);
|
|
1394
|
+
return S.attrs = y, S.componentStyle = C, S.displayName = m, S.shouldForwardProp = k, S.foldedComponentIds = n ? K(o.foldedComponentIds, o.styledComponentId) : "", S.styledComponentId = g, S.target = n ? o.target : e, Object.defineProperty(S, "defaultProps", { get: function() {
|
|
1395
|
+
return this._foldedDefaultProps;
|
|
1396
|
+
}, set: function(E) {
|
|
1397
|
+
this._foldedDefaultProps = n ? (function(A) {
|
|
1398
|
+
for (var h = [], p = 1; p < arguments.length; p++) h[p - 1] = arguments[p];
|
|
1399
|
+
for (var Y = 0, H = h; Y < H.length; Y++) nt(A, H[Y], !0);
|
|
1400
|
+
return A;
|
|
1401
|
+
})({}, o.defaultProps, E) : E;
|
|
1402
|
+
} }), process.env.NODE_ENV !== "production" && (Vr(m, g), S.warnTooManyClasses = /* @__PURE__ */ (function(E, A) {
|
|
1403
|
+
var h = {}, p = !1;
|
|
1404
|
+
return function(Y) {
|
|
1405
|
+
if (!p && (h[Y] = !0, Object.keys(h).length >= 200)) {
|
|
1406
|
+
var H = A ? ' with the id of "'.concat(A, '"') : "";
|
|
1407
|
+
console.warn("Over ".concat(200, " classes were generated for component ").concat(E).concat(H, `.
|
|
1408
|
+
`) + `Consider using the attrs method, together with a style object for frequently changed styles.
|
|
1409
|
+
Example:
|
|
1410
|
+
const Component = styled.div.attrs(props => ({
|
|
1411
|
+
style: {
|
|
1412
|
+
background: props.background,
|
|
1413
|
+
},
|
|
1414
|
+
}))\`width: 100%;\`
|
|
1415
|
+
|
|
1416
|
+
<Component />`), p = !0, h = {};
|
|
1417
|
+
}
|
|
1418
|
+
};
|
|
1419
|
+
})(m, g)), lt(S, function() {
|
|
1420
|
+
return ".".concat(S.styledComponentId);
|
|
1421
|
+
}), a && tr(S, e, { attrs: !0, componentStyle: !0, displayName: !0, foldedComponentIds: !0, shouldForwardProp: !0, styledComponentId: !0, target: !0 }), S;
|
|
1422
|
+
}
|
|
1423
|
+
function jt(e, t) {
|
|
1424
|
+
for (var r = [e[0]], n = 0, o = t.length; n < o; n += 1) r.push(t[n], e[n + 1]);
|
|
1425
|
+
return r;
|
|
276
1426
|
}
|
|
277
|
-
var
|
|
278
|
-
|
|
279
|
-
|
|
1427
|
+
var Dt = function(e) {
|
|
1428
|
+
return Object.assign(e, { isCss: !0 });
|
|
1429
|
+
};
|
|
1430
|
+
function An(e) {
|
|
1431
|
+
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
1432
|
+
if (pe(e) || de(e)) return Dt(ee(jt(Ge, ie([e], t, !0))));
|
|
1433
|
+
var n = e;
|
|
1434
|
+
return t.length === 0 && n.length === 1 && typeof n[0] == "string" ? ee(n) : Dt(ee(jt(n, t)));
|
|
280
1435
|
}
|
|
281
|
-
|
|
282
|
-
|
|
1436
|
+
function at(e, t, r) {
|
|
1437
|
+
if (r === void 0 && (r = le), !t) throw re(1, t);
|
|
1438
|
+
var n = function(o) {
|
|
1439
|
+
for (var a = [], s = 1; s < arguments.length; s++) a[s - 1] = arguments[s];
|
|
1440
|
+
return e(t, r, An.apply(void 0, ie([o], a, !1)));
|
|
1441
|
+
};
|
|
1442
|
+
return n.attrs = function(o) {
|
|
1443
|
+
return at(e, t, F(F({}, r), { attrs: Array.prototype.concat(r.attrs, o).filter(Boolean) }));
|
|
1444
|
+
}, n.withConfig = function(o) {
|
|
1445
|
+
return at(e, t, F(F({}, r), o));
|
|
1446
|
+
}, n;
|
|
1447
|
+
}
|
|
1448
|
+
var cr = function(e) {
|
|
1449
|
+
return at(_n, e);
|
|
1450
|
+
}, dt = cr;
|
|
1451
|
+
tt.forEach(function(e) {
|
|
1452
|
+
dt[e] = cr(e);
|
|
1453
|
+
});
|
|
1454
|
+
process.env.NODE_ENV !== "production" && typeof navigator < "u" && navigator.product === "ReactNative" && console.warn(`It looks like you've imported 'styled-components' on React Native.
|
|
1455
|
+
Perhaps you're looking to import 'styled-components/native'?
|
|
1456
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);
|
|
1457
|
+
var Oe = "__sc-".concat(te, "__");
|
|
1458
|
+
process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "test" && typeof window < "u" && (window[Oe] || (window[Oe] = 0), window[Oe] === 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.
|
|
1459
|
+
|
|
1460
|
+
See https://s-c.sh/2BAXzed for more info.`), window[Oe] += 1);
|
|
1461
|
+
const N = (e) => typeof e == "number" ? `${e / 2}rem` : e, ur = (e) => {
|
|
1462
|
+
const { m: t, mt: r, mr: n, mb: o, ml: a, mx: s, my: c } = e;
|
|
1463
|
+
return [
|
|
1464
|
+
t && `margin: ${N(t)};`,
|
|
1465
|
+
r && `margin-top: ${N(r)};`,
|
|
1466
|
+
n && `margin-right: ${N(n)};`,
|
|
1467
|
+
o && `margin-bottom: ${N(o)};`,
|
|
1468
|
+
a && `margin-left: ${N(a)};`,
|
|
1469
|
+
s && `margin-left: ${N(s)};`,
|
|
1470
|
+
s && `margin-right: ${N(s)};`,
|
|
1471
|
+
c && `margin-top: ${N(c)};`,
|
|
1472
|
+
c && `margin-bottom: ${N(c)};`
|
|
1473
|
+
].filter(Boolean).join(" ");
|
|
1474
|
+
}, lr = (e) => {
|
|
1475
|
+
const { p: t, pt: r, pr: n, pb: o, pl: a, px: s, py: c } = e;
|
|
1476
|
+
return [
|
|
1477
|
+
t && `padding: ${N(t)};`,
|
|
1478
|
+
r && `padding-top: ${N(r)};`,
|
|
1479
|
+
n && `padding-right: ${N(n)};`,
|
|
1480
|
+
o && `padding-bottom: ${N(o)};`,
|
|
1481
|
+
a && `padding-left: ${N(a)};`,
|
|
1482
|
+
s && `padding-left: ${N(s)};`,
|
|
1483
|
+
s && `padding-right: ${N(s)};`,
|
|
1484
|
+
c && `padding-top: ${N(c)};`,
|
|
1485
|
+
c && `padding-bottom: ${N(c)};`
|
|
1486
|
+
].filter(Boolean).join(" ");
|
|
1487
|
+
}, Tn = (e, t) => t === "sm" ? `${Number(e) / (8 / 7)}px` : `${e}px`, Cn = (e) => {
|
|
1488
|
+
switch (e) {
|
|
1489
|
+
case "regular":
|
|
1490
|
+
return "400";
|
|
1491
|
+
case "medium":
|
|
1492
|
+
return "500";
|
|
1493
|
+
case "semibold":
|
|
1494
|
+
return "600";
|
|
1495
|
+
case "bold":
|
|
1496
|
+
return "700";
|
|
1497
|
+
default:
|
|
1498
|
+
return "400";
|
|
1499
|
+
}
|
|
1500
|
+
}, Pn = dt.p`
|
|
1501
|
+
font-family: ${({ theme: e }) => e.text.fontFamily};
|
|
1502
|
+
margin: 0;
|
|
1503
|
+
color: ${({ color: e }) => e};
|
|
1504
|
+
${({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s }) => ur({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s })};
|
|
1505
|
+
${({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s }) => lr({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s })};
|
|
1506
|
+
font-weight: ${({ weight: e }) => Cn(e)};
|
|
1507
|
+
font-size: ${({ size: e, breakpoint: t }) => e && Tn(e, t)};
|
|
1508
|
+
width: ${({ width: e }) => e};
|
|
1509
|
+
height: ${({ height: e }) => e};
|
|
1510
|
+
text-align: ${({ align: e }) => e};
|
|
1511
|
+
`, pr = Mt(
|
|
1512
|
+
({ children: e, ...t }, r) => {
|
|
1513
|
+
const { breakpoint: n } = vr();
|
|
1514
|
+
return /* @__PURE__ */ Ee.jsx(Pn, { ref: r, ...t, breakpoint: n, children: e });
|
|
1515
|
+
}
|
|
1516
|
+
);
|
|
1517
|
+
pr.displayName = "Text";
|
|
1518
|
+
const be = ({
|
|
1519
|
+
color: e,
|
|
1520
|
+
theme: t
|
|
1521
|
+
}) => ({
|
|
1522
|
+
contained: {
|
|
1523
|
+
bgColor: t.palette[e].main,
|
|
1524
|
+
border: "2px solid transparent",
|
|
1525
|
+
color: "#FFFFFF",
|
|
1526
|
+
onHover: {
|
|
1527
|
+
opacity: 0.75
|
|
1528
|
+
},
|
|
1529
|
+
onActive: {
|
|
1530
|
+
transform: "scale(0.95)"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
outlined: {
|
|
1534
|
+
bgColor: "#FFFFFF",
|
|
1535
|
+
border: `2px solid ${t.palette[e].main}`,
|
|
1536
|
+
color: t.palette[e].main,
|
|
1537
|
+
onHover: {
|
|
1538
|
+
opacity: 0.75
|
|
1539
|
+
},
|
|
1540
|
+
onActive: {
|
|
1541
|
+
transform: "scale(0.95)"
|
|
1542
|
+
}
|
|
1543
|
+
},
|
|
1544
|
+
text: {
|
|
1545
|
+
bgColor: "transparent",
|
|
1546
|
+
border: "2px solid transparent",
|
|
1547
|
+
color: t.palette[e].main,
|
|
1548
|
+
onActive: {
|
|
1549
|
+
transform: "scale(0.95)"
|
|
1550
|
+
},
|
|
1551
|
+
onHover: {
|
|
1552
|
+
backgroundColor: `${t.palette[e].main}22`
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
}), dr = {
|
|
1556
|
+
sm: {
|
|
1557
|
+
padding: "4px 0.75rem",
|
|
1558
|
+
fontSize: "12"
|
|
1559
|
+
},
|
|
1560
|
+
md: {
|
|
1561
|
+
padding: "6px 1rem",
|
|
1562
|
+
fontSize: "14"
|
|
1563
|
+
},
|
|
1564
|
+
lg: {
|
|
1565
|
+
padding: "8px 1.5rem",
|
|
1566
|
+
fontSize: "16"
|
|
1567
|
+
}
|
|
1568
|
+
}, On = dt.button`
|
|
1569
|
+
all: unset;
|
|
1570
|
+
cursor: ${({ disabled: e }) => e ? "default" : "pointer"};
|
|
1571
|
+
padding: ${({ size: e }) => dr[e ?? "md"].padding};
|
|
1572
|
+
display: flex;
|
|
1573
|
+
align-items: center;
|
|
1574
|
+
height: fit-content;
|
|
1575
|
+
gap: ${({ gap: e }) => e ? N(e) : "8px"};
|
|
1576
|
+
transition: all 0.25s ease;
|
|
1577
|
+
background-color: ${({ bgcolor: e, variant: t, color: r, theme: n }) => e ?? be({ color: r, theme: n })[t].bgColor};
|
|
1578
|
+
border: ${({ variant: e, color: t, theme: r }) => be({ color: t, theme: r })[e].border};
|
|
1579
|
+
border-radius: ${({ theme: e }) => e.radius};
|
|
1580
|
+
${({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s }) => ur({ m: e, mb: t, ml: r, mr: n, mt: o, mx: a, my: s })};
|
|
1581
|
+
${({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s }) => lr({ p: e, pb: t, pl: r, pr: n, pt: o, px: a, py: s })};
|
|
1582
|
+
opacity: ${({ disabled: e }) => e ? 0.6 : 1};
|
|
1583
|
+
position: relative;
|
|
1584
|
+
color: ${({ txtColor: e, color: t, variant: r, theme: n }) => e ?? be({ color: t, theme: n })[r].color};
|
|
1585
|
+
|
|
1586
|
+
p,
|
|
1587
|
+
h1,
|
|
1588
|
+
h2,
|
|
1589
|
+
h3,
|
|
1590
|
+
h4,
|
|
1591
|
+
h5,
|
|
1592
|
+
h6 {
|
|
1593
|
+
opacity: ${({ loading: e }) => e ? 0 : 1};
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
&:hover {
|
|
1597
|
+
${({ variant: e, color: t, theme: r }) => be({ color: t, theme: r })[e].onHover}
|
|
1598
|
+
opacity: ${({ disabled: e }) => e && 0.6};
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
&:active {
|
|
1602
|
+
${({ variant: e, color: t, theme: r }) => be({ color: t, theme: r })[e].onActive}
|
|
1603
|
+
}
|
|
1604
|
+
`, Nn = Mt(
|
|
1605
|
+
({ label: e, startIcon: t, endIcon: r, ...n }, o) => {
|
|
1606
|
+
const a = Ft(() => ({
|
|
1607
|
+
...{
|
|
1608
|
+
size: "sm"
|
|
1609
|
+
},
|
|
1610
|
+
...n
|
|
1611
|
+
}), [n]);
|
|
1612
|
+
return /* @__PURE__ */ Ee.jsxs(
|
|
1613
|
+
On,
|
|
1614
|
+
{
|
|
1615
|
+
ref: o,
|
|
1616
|
+
...a,
|
|
1617
|
+
disabled: n.loading || n.disabled,
|
|
1618
|
+
children: [
|
|
1619
|
+
t,
|
|
1620
|
+
/* @__PURE__ */ Ee.jsx(pr, { size: dr[a.size ?? "sm"].fontSize, children: e }),
|
|
1621
|
+
r
|
|
1622
|
+
]
|
|
1623
|
+
}
|
|
1624
|
+
);
|
|
1625
|
+
}
|
|
1626
|
+
);
|
|
1627
|
+
Nn.displayName = "Button";
|
|
1628
|
+
const In = ({ color: e, value: t, height: r }) => {
|
|
1629
|
+
const n = Rn();
|
|
1630
|
+
return /* @__PURE__ */ Ee.jsx(
|
|
1631
|
+
"div",
|
|
1632
|
+
{
|
|
1633
|
+
style: {
|
|
1634
|
+
width: "100%",
|
|
1635
|
+
position: "relative",
|
|
1636
|
+
backgroundColor: n.palette[e].light,
|
|
1637
|
+
borderRadius: "8px",
|
|
1638
|
+
height: r ?? "8px",
|
|
1639
|
+
border: `2px solid ${n.palette[e].light}`
|
|
1640
|
+
},
|
|
1641
|
+
children: /* @__PURE__ */ Ee.jsx(
|
|
1642
|
+
"div",
|
|
1643
|
+
{
|
|
1644
|
+
style: {
|
|
1645
|
+
position: "absolute",
|
|
1646
|
+
top: "0",
|
|
1647
|
+
left: "0",
|
|
1648
|
+
height: "100%",
|
|
1649
|
+
width: `${t > 100 ? 100 : t}%`,
|
|
1650
|
+
backgroundColor: n.palette[e].main,
|
|
1651
|
+
borderRadius: "8px"
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
)
|
|
1655
|
+
}
|
|
1656
|
+
);
|
|
1657
|
+
};
|
|
283
1658
|
export {
|
|
284
|
-
|
|
1659
|
+
Nn as Button,
|
|
1660
|
+
In as ProgressBar
|
|
285
1661
|
};
|