font-controls 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/font-controls.js +1113 -1464
- package/dist/font-controls.umd.cjs +15 -23
- package/package.json +7 -7
package/dist/font-controls.js
CHANGED
|
@@ -1,634 +1,283 @@
|
|
|
1
|
-
import Ie, { useState as
|
|
2
|
-
import
|
|
3
|
-
function
|
|
1
|
+
import Ie, { useState as me, useEffect as Xe } from "react";
|
|
2
|
+
import st from "react-dom";
|
|
3
|
+
function St(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var Me = { exports: {} }, de = {};
|
|
7
7
|
/**
|
|
8
8
|
* @license React
|
|
9
|
-
* react-jsx-runtime.production.
|
|
9
|
+
* react-jsx-runtime.production.js
|
|
10
10
|
*
|
|
11
|
-
* Copyright (c)
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
15
|
*/
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
|
|
20
|
-
var e =
|
|
21
|
-
function
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
var qe;
|
|
17
|
+
function xt() {
|
|
18
|
+
if (qe) return de;
|
|
19
|
+
qe = 1;
|
|
20
|
+
var e = Symbol.for("react.transitional.element"), t = Symbol.for("react.fragment");
|
|
21
|
+
function r(o, a, i) {
|
|
22
|
+
var d = null;
|
|
23
|
+
if (i !== void 0 && (d = "" + i), a.key !== void 0 && (d = "" + a.key), "key" in a) {
|
|
24
|
+
i = {};
|
|
25
|
+
for (var u in a)
|
|
26
|
+
u !== "key" && (i[u] = a[u]);
|
|
27
|
+
} else i = a;
|
|
28
|
+
return a = i.ref, {
|
|
29
|
+
$$typeof: e,
|
|
30
|
+
type: o,
|
|
31
|
+
key: d,
|
|
32
|
+
ref: a !== void 0 ? a : null,
|
|
33
|
+
props: i
|
|
34
|
+
};
|
|
27
35
|
}
|
|
28
|
-
return
|
|
36
|
+
return de.Fragment = t, de.jsx = r, de.jsxs = r, de;
|
|
29
37
|
}
|
|
30
|
-
var
|
|
38
|
+
var pe = {};
|
|
31
39
|
/**
|
|
32
40
|
* @license React
|
|
33
41
|
* react-jsx-runtime.development.js
|
|
34
42
|
*
|
|
35
|
-
* Copyright (c)
|
|
43
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
36
44
|
*
|
|
37
45
|
* This source code is licensed under the MIT license found in the
|
|
38
46
|
* LICENSE file in the root directory of this source tree.
|
|
39
47
|
*/
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
return
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
if (
|
|
46
|
-
return null;
|
|
47
|
-
|
|
48
|
-
return typeof s == "function" ? s : null;
|
|
49
|
-
}
|
|
50
|
-
var x = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function b(n) {
|
|
52
|
-
{
|
|
53
|
-
for (var s = arguments.length, v = new Array(s > 1 ? s - 1 : 0), E = 1; E < s; E++)
|
|
54
|
-
v[E - 1] = arguments[E];
|
|
55
|
-
C("error", n, v);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function C(n, s, v) {
|
|
59
|
-
{
|
|
60
|
-
var E = x.ReactDebugCurrentFrame, W = E.getStackAddendum();
|
|
61
|
-
W !== "" && (s += "%s", v = v.concat([W]));
|
|
62
|
-
var B = v.map(function(F) {
|
|
63
|
-
return String(F);
|
|
64
|
-
});
|
|
65
|
-
B.unshift("Warning: " + s), Function.prototype.apply.call(console[n], console, B);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
var S = !1, i = !1, k = !1, Z = !1, Q = !1, G;
|
|
69
|
-
G = Symbol.for("react.module.reference");
|
|
70
|
-
function J(n) {
|
|
71
|
-
return !!(typeof n == "string" || typeof n == "function" || n === o || n === u || Q || n === a || n === m || n === g || Z || n === Y || S || i || k || typeof n == "object" && n !== null && (n.$$typeof === A || n.$$typeof === T || n.$$typeof === p || n.$$typeof === c || n.$$typeof === d || // This needs to include all possible module reference object
|
|
72
|
-
// types supported by any Flight configuration anywhere since
|
|
73
|
-
// we don't know which Flight build this will end up being used
|
|
74
|
-
// with.
|
|
75
|
-
n.$$typeof === G || n.getModuleId !== void 0));
|
|
76
|
-
}
|
|
77
|
-
function me(n, s, v) {
|
|
78
|
-
var E = n.displayName;
|
|
79
|
-
if (E)
|
|
80
|
-
return E;
|
|
81
|
-
var W = s.displayName || s.name || "";
|
|
82
|
-
return W !== "" ? v + "(" + W + ")" : v;
|
|
83
|
-
}
|
|
84
|
-
function be(n) {
|
|
85
|
-
return n.displayName || "Context";
|
|
86
|
-
}
|
|
87
|
-
function ne(n) {
|
|
88
|
-
if (n == null)
|
|
89
|
-
return null;
|
|
90
|
-
if (typeof n.tag == "number" && b("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof n == "function")
|
|
91
|
-
return n.displayName || n.name || null;
|
|
92
|
-
if (typeof n == "string")
|
|
93
|
-
return n;
|
|
48
|
+
var Be;
|
|
49
|
+
function Tt() {
|
|
50
|
+
return Be || (Be = 1, process.env.NODE_ENV !== "production" && function() {
|
|
51
|
+
function e(n) {
|
|
52
|
+
if (n == null) return null;
|
|
53
|
+
if (typeof n == "function")
|
|
54
|
+
return n.$$typeof === ne ? null : n.displayName || n.name || null;
|
|
55
|
+
if (typeof n == "string") return n;
|
|
94
56
|
switch (n) {
|
|
95
|
-
case
|
|
57
|
+
case T:
|
|
96
58
|
return "Fragment";
|
|
97
|
-
case
|
|
98
|
-
return "Portal";
|
|
99
|
-
case u:
|
|
59
|
+
case x:
|
|
100
60
|
return "Profiler";
|
|
101
|
-
case
|
|
61
|
+
case _:
|
|
102
62
|
return "StrictMode";
|
|
103
|
-
case
|
|
63
|
+
case R:
|
|
104
64
|
return "Suspense";
|
|
105
|
-
case
|
|
65
|
+
case L:
|
|
106
66
|
return "SuspenseList";
|
|
67
|
+
case W:
|
|
68
|
+
return "Activity";
|
|
107
69
|
}
|
|
108
70
|
if (typeof n == "object")
|
|
109
|
-
switch (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
return
|
|
116
|
-
case
|
|
117
|
-
return
|
|
118
|
-
case
|
|
119
|
-
var
|
|
120
|
-
return
|
|
121
|
-
case
|
|
122
|
-
|
|
71
|
+
switch (typeof n.tag == "number" && console.error(
|
|
72
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
73
|
+
), n.$$typeof) {
|
|
74
|
+
case $:
|
|
75
|
+
return "Portal";
|
|
76
|
+
case S:
|
|
77
|
+
return n.displayName || "Context";
|
|
78
|
+
case E:
|
|
79
|
+
return (n._context.displayName || "Context") + ".Consumer";
|
|
80
|
+
case s:
|
|
81
|
+
var f = n.render;
|
|
82
|
+
return n = n.displayName, n || (n = f.displayName || f.name || "", n = n !== "" ? "ForwardRef(" + n + ")" : "ForwardRef"), n;
|
|
83
|
+
case U:
|
|
84
|
+
return f = n.displayName || null, f !== null ? f : e(n.type) || "Memo";
|
|
85
|
+
case Y:
|
|
86
|
+
f = n._payload, n = n._init;
|
|
123
87
|
try {
|
|
124
|
-
return
|
|
88
|
+
return e(n(f));
|
|
125
89
|
} catch {
|
|
126
|
-
return null;
|
|
127
90
|
}
|
|
128
|
-
}
|
|
129
91
|
}
|
|
130
92
|
return null;
|
|
131
93
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
135
|
-
j.__reactDisabledLog = !0;
|
|
136
|
-
function w() {
|
|
137
|
-
{
|
|
138
|
-
if (he === 0) {
|
|
139
|
-
ee = console.log, le = console.info, ve = console.warn, Se = console.error, l = console.group, y = console.groupCollapsed, O = console.groupEnd;
|
|
140
|
-
var n = {
|
|
141
|
-
configurable: !0,
|
|
142
|
-
enumerable: !0,
|
|
143
|
-
value: j,
|
|
144
|
-
writable: !0
|
|
145
|
-
};
|
|
146
|
-
Object.defineProperties(console, {
|
|
147
|
-
info: n,
|
|
148
|
-
log: n,
|
|
149
|
-
warn: n,
|
|
150
|
-
error: n,
|
|
151
|
-
group: n,
|
|
152
|
-
groupCollapsed: n,
|
|
153
|
-
groupEnd: n
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
he++;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function $() {
|
|
160
|
-
{
|
|
161
|
-
if (he--, he === 0) {
|
|
162
|
-
var n = {
|
|
163
|
-
configurable: !0,
|
|
164
|
-
enumerable: !0,
|
|
165
|
-
writable: !0
|
|
166
|
-
};
|
|
167
|
-
Object.defineProperties(console, {
|
|
168
|
-
log: K({}, n, {
|
|
169
|
-
value: ee
|
|
170
|
-
}),
|
|
171
|
-
info: K({}, n, {
|
|
172
|
-
value: le
|
|
173
|
-
}),
|
|
174
|
-
warn: K({}, n, {
|
|
175
|
-
value: ve
|
|
176
|
-
}),
|
|
177
|
-
error: K({}, n, {
|
|
178
|
-
value: Se
|
|
179
|
-
}),
|
|
180
|
-
group: K({}, n, {
|
|
181
|
-
value: l
|
|
182
|
-
}),
|
|
183
|
-
groupCollapsed: K({}, n, {
|
|
184
|
-
value: y
|
|
185
|
-
}),
|
|
186
|
-
groupEnd: K({}, n, {
|
|
187
|
-
value: O
|
|
188
|
-
})
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
he < 0 && b("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
var P = x.ReactCurrentDispatcher, R;
|
|
195
|
-
function D(n, s, v) {
|
|
196
|
-
{
|
|
197
|
-
if (R === void 0)
|
|
198
|
-
try {
|
|
199
|
-
throw Error();
|
|
200
|
-
} catch (W) {
|
|
201
|
-
var E = W.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
-
R = E && E[1] || "";
|
|
203
|
-
}
|
|
204
|
-
return `
|
|
205
|
-
` + R + n;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
var I = !1, N;
|
|
209
|
-
{
|
|
210
|
-
var te = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
-
N = new te();
|
|
94
|
+
function t(n) {
|
|
95
|
+
return "" + n;
|
|
212
96
|
}
|
|
213
|
-
function
|
|
214
|
-
if (!n || I)
|
|
215
|
-
return "";
|
|
216
|
-
{
|
|
217
|
-
var v = N.get(n);
|
|
218
|
-
if (v !== void 0)
|
|
219
|
-
return v;
|
|
220
|
-
}
|
|
221
|
-
var E;
|
|
222
|
-
I = !0;
|
|
223
|
-
var W = Error.prepareStackTrace;
|
|
224
|
-
Error.prepareStackTrace = void 0;
|
|
225
|
-
var B;
|
|
226
|
-
B = P.current, P.current = null, w();
|
|
97
|
+
function r(n) {
|
|
227
98
|
try {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
if (Object.defineProperty(F.prototype, "props", {
|
|
233
|
-
set: function() {
|
|
234
|
-
throw Error();
|
|
235
|
-
}
|
|
236
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
|
-
try {
|
|
238
|
-
Reflect.construct(F, []);
|
|
239
|
-
} catch (se) {
|
|
240
|
-
E = se;
|
|
241
|
-
}
|
|
242
|
-
Reflect.construct(n, [], F);
|
|
243
|
-
} else {
|
|
244
|
-
try {
|
|
245
|
-
F.call();
|
|
246
|
-
} catch (se) {
|
|
247
|
-
E = se;
|
|
248
|
-
}
|
|
249
|
-
n.call(F.prototype);
|
|
250
|
-
}
|
|
251
|
-
} else {
|
|
252
|
-
try {
|
|
253
|
-
throw Error();
|
|
254
|
-
} catch (se) {
|
|
255
|
-
E = se;
|
|
256
|
-
}
|
|
257
|
-
n();
|
|
258
|
-
}
|
|
259
|
-
} catch (se) {
|
|
260
|
-
if (se && E && typeof se.stack == "string") {
|
|
261
|
-
for (var M = se.stack.split(`
|
|
262
|
-
`), oe = E.stack.split(`
|
|
263
|
-
`), H = M.length - 1, z = oe.length - 1; H >= 1 && z >= 0 && M[H] !== oe[z]; )
|
|
264
|
-
z--;
|
|
265
|
-
for (; H >= 1 && z >= 0; H--, z--)
|
|
266
|
-
if (M[H] !== oe[z]) {
|
|
267
|
-
if (H !== 1 || z !== 1)
|
|
268
|
-
do
|
|
269
|
-
if (H--, z--, z < 0 || M[H] !== oe[z]) {
|
|
270
|
-
var de = `
|
|
271
|
-
` + M[H].replace(" at new ", " at ");
|
|
272
|
-
return n.displayName && de.includes("<anonymous>") && (de = de.replace("<anonymous>", n.displayName)), typeof n == "function" && N.set(n, de), de;
|
|
273
|
-
}
|
|
274
|
-
while (H >= 1 && z >= 0);
|
|
275
|
-
break;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
} finally {
|
|
279
|
-
I = !1, P.current = B, $(), Error.prepareStackTrace = W;
|
|
280
|
-
}
|
|
281
|
-
var Re = n ? n.displayName || n.name : "", _e = Re ? D(Re) : "";
|
|
282
|
-
return typeof n == "function" && N.set(n, _e), _e;
|
|
283
|
-
}
|
|
284
|
-
function fe(n, s, v) {
|
|
285
|
-
return h(n, !1);
|
|
286
|
-
}
|
|
287
|
-
function we(n) {
|
|
288
|
-
var s = n.prototype;
|
|
289
|
-
return !!(s && s.isReactComponent);
|
|
290
|
-
}
|
|
291
|
-
function Te(n, s, v) {
|
|
292
|
-
if (n == null)
|
|
293
|
-
return "";
|
|
294
|
-
if (typeof n == "function")
|
|
295
|
-
return h(n, we(n));
|
|
296
|
-
if (typeof n == "string")
|
|
297
|
-
return D(n);
|
|
298
|
-
switch (n) {
|
|
299
|
-
case m:
|
|
300
|
-
return D("Suspense");
|
|
301
|
-
case g:
|
|
302
|
-
return D("SuspenseList");
|
|
303
|
-
}
|
|
304
|
-
if (typeof n == "object")
|
|
305
|
-
switch (n.$$typeof) {
|
|
306
|
-
case d:
|
|
307
|
-
return fe(n.render);
|
|
308
|
-
case T:
|
|
309
|
-
return Te(n.type, s, v);
|
|
310
|
-
case A: {
|
|
311
|
-
var E = n, W = E._payload, B = E._init;
|
|
312
|
-
try {
|
|
313
|
-
return Te(B(W), s, v);
|
|
314
|
-
} catch {
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
return "";
|
|
319
|
-
}
|
|
320
|
-
var Oe = Object.prototype.hasOwnProperty, dt = {}, pt = x.ReactDebugCurrentFrame;
|
|
321
|
-
function ke(n) {
|
|
322
|
-
if (n) {
|
|
323
|
-
var s = n._owner, v = Te(n.type, n._source, s ? s.type : null);
|
|
324
|
-
pt.setExtraStackFrame(v);
|
|
325
|
-
} else
|
|
326
|
-
pt.setExtraStackFrame(null);
|
|
327
|
-
}
|
|
328
|
-
function nr(n, s, v, E, W) {
|
|
329
|
-
{
|
|
330
|
-
var B = Function.call.bind(Oe);
|
|
331
|
-
for (var F in n)
|
|
332
|
-
if (B(n, F)) {
|
|
333
|
-
var M = void 0;
|
|
334
|
-
try {
|
|
335
|
-
if (typeof n[F] != "function") {
|
|
336
|
-
var oe = Error((E || "React class") + ": " + v + " type `" + F + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[F] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
-
throw oe.name = "Invariant Violation", oe;
|
|
338
|
-
}
|
|
339
|
-
M = n[F](s, F, E, v, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
-
} catch (H) {
|
|
341
|
-
M = H;
|
|
342
|
-
}
|
|
343
|
-
M && !(M instanceof Error) && (ke(W), b("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", E || "React class", v, F, typeof M), ke(null)), M instanceof Error && !(M.message in dt) && (dt[M.message] = !0, ke(W), b("Failed %s type: %s", v, M.message), ke(null));
|
|
344
|
-
}
|
|
99
|
+
t(n);
|
|
100
|
+
var f = !1;
|
|
101
|
+
} catch {
|
|
102
|
+
f = !0;
|
|
345
103
|
}
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
return v;
|
|
104
|
+
if (f) {
|
|
105
|
+
f = console;
|
|
106
|
+
var y = f.error, m = typeof Symbol == "function" && Symbol.toStringTag && n[Symbol.toStringTag] || n.constructor.name || "Object";
|
|
107
|
+
return y.call(
|
|
108
|
+
f,
|
|
109
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
110
|
+
m
|
|
111
|
+
), t(n);
|
|
355
112
|
}
|
|
356
113
|
}
|
|
357
|
-
function
|
|
114
|
+
function o(n) {
|
|
115
|
+
if (n === T) return "<>";
|
|
116
|
+
if (typeof n == "object" && n !== null && n.$$typeof === Y)
|
|
117
|
+
return "<...>";
|
|
358
118
|
try {
|
|
359
|
-
|
|
119
|
+
var f = e(n);
|
|
120
|
+
return f ? "<" + f + ">" : "<...>";
|
|
360
121
|
} catch {
|
|
361
|
-
return
|
|
122
|
+
return "<...>";
|
|
362
123
|
}
|
|
363
124
|
}
|
|
364
|
-
function
|
|
365
|
-
|
|
125
|
+
function a() {
|
|
126
|
+
var n = oe.A;
|
|
127
|
+
return n === null ? null : n.getOwner();
|
|
366
128
|
}
|
|
367
|
-
function
|
|
368
|
-
|
|
369
|
-
return b("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(n)), ht(n);
|
|
370
|
-
}
|
|
371
|
-
var gt = x.ReactCurrentOwner, sr = {
|
|
372
|
-
key: !0,
|
|
373
|
-
ref: !0,
|
|
374
|
-
__self: !0,
|
|
375
|
-
__source: !0
|
|
376
|
-
}, yt, mt;
|
|
377
|
-
function lr(n) {
|
|
378
|
-
if (Oe.call(n, "ref")) {
|
|
379
|
-
var s = Object.getOwnPropertyDescriptor(n, "ref").get;
|
|
380
|
-
if (s && s.isReactWarning)
|
|
381
|
-
return !1;
|
|
382
|
-
}
|
|
383
|
-
return n.ref !== void 0;
|
|
129
|
+
function i() {
|
|
130
|
+
return Error("react-stack-top-frame");
|
|
384
131
|
}
|
|
385
|
-
function
|
|
386
|
-
if (
|
|
387
|
-
var
|
|
388
|
-
if (
|
|
389
|
-
return !1;
|
|
132
|
+
function d(n) {
|
|
133
|
+
if (ae.call(n, "key")) {
|
|
134
|
+
var f = Object.getOwnPropertyDescriptor(n, "key").get;
|
|
135
|
+
if (f && f.isReactWarning) return !1;
|
|
390
136
|
}
|
|
391
137
|
return n.key !== void 0;
|
|
392
138
|
}
|
|
393
|
-
function
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
yt || (yt = !0, b("%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://reactjs.org/link/special-props)", s));
|
|
400
|
-
};
|
|
401
|
-
v.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
402
|
-
get: v,
|
|
403
|
-
configurable: !0
|
|
404
|
-
});
|
|
139
|
+
function u(n, f) {
|
|
140
|
+
function y() {
|
|
141
|
+
X || (X = !0, console.error(
|
|
142
|
+
"%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)",
|
|
143
|
+
f
|
|
144
|
+
));
|
|
405
145
|
}
|
|
146
|
+
y.isReactWarning = !0, Object.defineProperty(n, "key", {
|
|
147
|
+
get: y,
|
|
148
|
+
configurable: !0
|
|
149
|
+
});
|
|
406
150
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
v.isReactWarning = !0, Object.defineProperty(n, "ref", {
|
|
413
|
-
get: v,
|
|
414
|
-
configurable: !0
|
|
415
|
-
});
|
|
416
|
-
}
|
|
151
|
+
function h() {
|
|
152
|
+
var n = e(this.type);
|
|
153
|
+
return V[n] || (V[n] = !0, console.error(
|
|
154
|
+
"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."
|
|
155
|
+
)), n = this.props.ref, n !== void 0 ? n : null;
|
|
417
156
|
}
|
|
418
|
-
|
|
419
|
-
var
|
|
420
|
-
|
|
421
|
-
$$typeof:
|
|
422
|
-
// Built-in properties that belong on the element
|
|
157
|
+
function g(n, f, y, m, j, w) {
|
|
158
|
+
var b = y.ref;
|
|
159
|
+
return n = {
|
|
160
|
+
$$typeof: I,
|
|
423
161
|
type: n,
|
|
424
|
-
key:
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
162
|
+
key: f,
|
|
163
|
+
props: y,
|
|
164
|
+
_owner: m
|
|
165
|
+
}, (b !== void 0 ? b : null) !== null ? Object.defineProperty(n, "ref", {
|
|
166
|
+
enumerable: !1,
|
|
167
|
+
get: h
|
|
168
|
+
}) : Object.defineProperty(n, "ref", { enumerable: !1, value: null }), n._store = {}, Object.defineProperty(n._store, "validated", {
|
|
431
169
|
configurable: !1,
|
|
432
170
|
enumerable: !1,
|
|
433
171
|
writable: !0,
|
|
434
|
-
value:
|
|
435
|
-
}), Object.defineProperty(
|
|
172
|
+
value: 0
|
|
173
|
+
}), Object.defineProperty(n, "_debugInfo", {
|
|
436
174
|
configurable: !1,
|
|
437
175
|
enumerable: !1,
|
|
438
|
-
writable: !
|
|
439
|
-
value:
|
|
440
|
-
}), Object.defineProperty(
|
|
176
|
+
writable: !0,
|
|
177
|
+
value: null
|
|
178
|
+
}), Object.defineProperty(n, "_debugStack", {
|
|
441
179
|
configurable: !1,
|
|
442
180
|
enumerable: !1,
|
|
443
|
-
writable: !
|
|
444
|
-
value:
|
|
445
|
-
}), Object.
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
}
|
|
473
|
-
var Be;
|
|
474
|
-
Be = !1;
|
|
475
|
-
function Ve(n) {
|
|
476
|
-
return typeof n == "object" && n !== null && n.$$typeof === t;
|
|
477
|
-
}
|
|
478
|
-
function St() {
|
|
479
|
-
{
|
|
480
|
-
if (qe.current) {
|
|
481
|
-
var n = ne(qe.current.type);
|
|
482
|
-
if (n)
|
|
483
|
-
return `
|
|
484
|
-
|
|
485
|
-
Check the render method of \`` + n + "`.";
|
|
486
|
-
}
|
|
487
|
-
return "";
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
function vr(n) {
|
|
491
|
-
return "";
|
|
492
|
-
}
|
|
493
|
-
var xt = {};
|
|
494
|
-
function gr(n) {
|
|
495
|
-
{
|
|
496
|
-
var s = St();
|
|
497
|
-
if (!s) {
|
|
498
|
-
var v = typeof n == "string" ? n : n.displayName || n.name;
|
|
499
|
-
v && (s = `
|
|
500
|
-
|
|
501
|
-
Check the top-level render call using <` + v + ">.");
|
|
502
|
-
}
|
|
503
|
-
return s;
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
function Et(n, s) {
|
|
507
|
-
{
|
|
508
|
-
if (!n._store || n._store.validated || n.key != null)
|
|
509
|
-
return;
|
|
510
|
-
n._store.validated = !0;
|
|
511
|
-
var v = gr(s);
|
|
512
|
-
if (xt[v])
|
|
513
|
-
return;
|
|
514
|
-
xt[v] = !0;
|
|
515
|
-
var E = "";
|
|
516
|
-
n && n._owner && n._owner !== qe.current && (E = " It was passed a child from " + ne(n._owner.type) + "."), Pe(n), b('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', v, E), Pe(null);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
function Tt(n, s) {
|
|
520
|
-
{
|
|
521
|
-
if (typeof n != "object")
|
|
522
|
-
return;
|
|
523
|
-
if (Xe(n))
|
|
524
|
-
for (var v = 0; v < n.length; v++) {
|
|
525
|
-
var E = n[v];
|
|
526
|
-
Ve(E) && Et(E, s);
|
|
527
|
-
}
|
|
528
|
-
else if (Ve(n))
|
|
529
|
-
n._store && (n._store.validated = !0);
|
|
530
|
-
else if (n) {
|
|
531
|
-
var W = _(n);
|
|
532
|
-
if (typeof W == "function" && W !== n.entries)
|
|
533
|
-
for (var B = W.call(n), F; !(F = B.next()).done; )
|
|
534
|
-
Ve(F.value) && Et(F.value, s);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
function yr(n) {
|
|
539
|
-
{
|
|
540
|
-
var s = n.type;
|
|
541
|
-
if (s == null || typeof s == "string")
|
|
542
|
-
return;
|
|
543
|
-
var v;
|
|
544
|
-
if (typeof s == "function")
|
|
545
|
-
v = s.propTypes;
|
|
546
|
-
else if (typeof s == "object" && (s.$$typeof === d || // Note: Memo only checks outer props here.
|
|
547
|
-
// Inner props are checked in the reconciler.
|
|
548
|
-
s.$$typeof === T))
|
|
549
|
-
v = s.propTypes;
|
|
550
|
-
else
|
|
551
|
-
return;
|
|
552
|
-
if (v) {
|
|
553
|
-
var E = ne(s);
|
|
554
|
-
nr(v, n.props, "prop", E, n);
|
|
555
|
-
} else if (s.PropTypes !== void 0 && !Be) {
|
|
556
|
-
Be = !0;
|
|
557
|
-
var W = ne(s);
|
|
558
|
-
b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", W || "Unknown");
|
|
559
|
-
}
|
|
560
|
-
typeof s.getDefaultProps == "function" && !s.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
function mr(n) {
|
|
564
|
-
{
|
|
565
|
-
for (var s = Object.keys(n.props), v = 0; v < s.length; v++) {
|
|
566
|
-
var E = s[v];
|
|
567
|
-
if (E !== "children" && E !== "key") {
|
|
568
|
-
Pe(n), b("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", E), Pe(null);
|
|
569
|
-
break;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
n.ref !== null && (Pe(n), b("Invalid attribute `ref` supplied to `React.Fragment`."), Pe(null));
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
var _t = {};
|
|
576
|
-
function Ct(n, s, v, E, W, B) {
|
|
577
|
-
{
|
|
578
|
-
var F = J(n);
|
|
579
|
-
if (!F) {
|
|
580
|
-
var M = "";
|
|
581
|
-
(n === void 0 || typeof n == "object" && n !== null && Object.keys(n).length === 0) && (M += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
582
|
-
var oe = vr();
|
|
583
|
-
oe ? M += oe : M += St();
|
|
584
|
-
var H;
|
|
585
|
-
n === null ? H = "null" : Xe(n) ? H = "array" : n !== void 0 && n.$$typeof === t ? (H = "<" + (ne(n.type) || "Unknown") + " />", M = " Did you accidentally export a JSX literal instead of a component?") : H = typeof n, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, M);
|
|
586
|
-
}
|
|
587
|
-
var z = hr(n, s, v, W, B);
|
|
588
|
-
if (z == null)
|
|
589
|
-
return z;
|
|
590
|
-
if (F) {
|
|
591
|
-
var de = s.children;
|
|
592
|
-
if (de !== void 0)
|
|
593
|
-
if (E)
|
|
594
|
-
if (Xe(de)) {
|
|
595
|
-
for (var Re = 0; Re < de.length; Re++)
|
|
596
|
-
Tt(de[Re], n);
|
|
597
|
-
Object.freeze && Object.freeze(de);
|
|
598
|
-
} else
|
|
599
|
-
b("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
600
|
-
else
|
|
601
|
-
Tt(de, n);
|
|
602
|
-
}
|
|
603
|
-
if (Oe.call(s, "key")) {
|
|
604
|
-
var _e = ne(n), se = Object.keys(s).filter(function(_r) {
|
|
605
|
-
return _r !== "key";
|
|
606
|
-
}), He = se.length > 0 ? "{key: someKey, " + se.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
607
|
-
if (!_t[_e + He]) {
|
|
608
|
-
var Tr = se.length > 0 ? "{" + se.join(": ..., ") + ": ...}" : "{}";
|
|
609
|
-
b(`A props object containing a "key" prop is being spread into JSX:
|
|
181
|
+
writable: !0,
|
|
182
|
+
value: j
|
|
183
|
+
}), Object.defineProperty(n, "_debugTask", {
|
|
184
|
+
configurable: !1,
|
|
185
|
+
enumerable: !1,
|
|
186
|
+
writable: !0,
|
|
187
|
+
value: w
|
|
188
|
+
}), Object.freeze && (Object.freeze(n.props), Object.freeze(n)), n;
|
|
189
|
+
}
|
|
190
|
+
function v(n, f, y, m, j, w) {
|
|
191
|
+
var b = f.children;
|
|
192
|
+
if (b !== void 0)
|
|
193
|
+
if (m)
|
|
194
|
+
if (K(b)) {
|
|
195
|
+
for (m = 0; m < b.length; m++)
|
|
196
|
+
P(b[m]);
|
|
197
|
+
Object.freeze && Object.freeze(b);
|
|
198
|
+
} else
|
|
199
|
+
console.error(
|
|
200
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
201
|
+
);
|
|
202
|
+
else P(b);
|
|
203
|
+
if (ae.call(f, "key")) {
|
|
204
|
+
b = e(n);
|
|
205
|
+
var C = Object.keys(f).filter(function(O) {
|
|
206
|
+
return O !== "key";
|
|
207
|
+
});
|
|
208
|
+
m = 0 < C.length ? "{key: someKey, " + C.join(": ..., ") + ": ...}" : "{key: someKey}", l[b + m] || (C = 0 < C.length ? "{" + C.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
209
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
610
210
|
let props = %s;
|
|
611
211
|
<%s {...props} />
|
|
612
212
|
React keys must be passed directly to JSX without using spread:
|
|
613
213
|
let props = %s;
|
|
614
|
-
<%s key={someKey} {...props} />`,
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
214
|
+
<%s key={someKey} {...props} />`,
|
|
215
|
+
m,
|
|
216
|
+
b,
|
|
217
|
+
C,
|
|
218
|
+
b
|
|
219
|
+
), l[b + m] = !0);
|
|
618
220
|
}
|
|
221
|
+
if (b = null, y !== void 0 && (r(y), b = "" + y), d(f) && (r(f.key), b = "" + f.key), "key" in f) {
|
|
222
|
+
y = {};
|
|
223
|
+
for (var D in f)
|
|
224
|
+
D !== "key" && (y[D] = f[D]);
|
|
225
|
+
} else y = f;
|
|
226
|
+
return b && u(
|
|
227
|
+
y,
|
|
228
|
+
typeof n == "function" ? n.displayName || n.name || "Unknown" : n
|
|
229
|
+
), g(
|
|
230
|
+
n,
|
|
231
|
+
b,
|
|
232
|
+
y,
|
|
233
|
+
a(),
|
|
234
|
+
j,
|
|
235
|
+
w
|
|
236
|
+
);
|
|
619
237
|
}
|
|
620
|
-
function
|
|
621
|
-
|
|
238
|
+
function P(n) {
|
|
239
|
+
A(n) ? n._store && (n._store.validated = 1) : typeof n == "object" && n !== null && n.$$typeof === Y && (n._payload.status === "fulfilled" ? A(n._payload.value) && n._payload.value._store && (n._payload.value._store.validated = 1) : n._store && (n._store.validated = 1));
|
|
622
240
|
}
|
|
623
|
-
function
|
|
624
|
-
return
|
|
241
|
+
function A(n) {
|
|
242
|
+
return typeof n == "object" && n !== null && n.$$typeof === I;
|
|
625
243
|
}
|
|
626
|
-
var
|
|
627
|
-
|
|
628
|
-
|
|
244
|
+
var N = Ie, I = Symbol.for("react.transitional.element"), $ = Symbol.for("react.portal"), T = Symbol.for("react.fragment"), _ = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), E = Symbol.for("react.consumer"), S = Symbol.for("react.context"), s = Symbol.for("react.forward_ref"), R = Symbol.for("react.suspense"), L = Symbol.for("react.suspense_list"), U = Symbol.for("react.memo"), Y = Symbol.for("react.lazy"), W = Symbol.for("react.activity"), ne = Symbol.for("react.client.reference"), oe = N.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ae = Object.prototype.hasOwnProperty, K = Array.isArray, se = console.createTask ? console.createTask : function() {
|
|
245
|
+
return null;
|
|
246
|
+
};
|
|
247
|
+
N = {
|
|
248
|
+
react_stack_bottom_frame: function(n) {
|
|
249
|
+
return n();
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
var X, V = {}, Q = N.react_stack_bottom_frame.bind(
|
|
253
|
+
N,
|
|
254
|
+
i
|
|
255
|
+
)(), ie = se(o(i)), l = {};
|
|
256
|
+
pe.Fragment = T, pe.jsx = function(n, f, y) {
|
|
257
|
+
var m = 1e4 > oe.recentlyCreatedOwnerStacks++;
|
|
258
|
+
return v(
|
|
259
|
+
n,
|
|
260
|
+
f,
|
|
261
|
+
y,
|
|
262
|
+
!1,
|
|
263
|
+
m ? Error("react-stack-top-frame") : Q,
|
|
264
|
+
m ? se(o(n)) : ie
|
|
265
|
+
);
|
|
266
|
+
}, pe.jsxs = function(n, f, y) {
|
|
267
|
+
var m = 1e4 > oe.recentlyCreatedOwnerStacks++;
|
|
268
|
+
return v(
|
|
269
|
+
n,
|
|
270
|
+
f,
|
|
271
|
+
y,
|
|
272
|
+
!0,
|
|
273
|
+
m ? Error("react-stack-top-frame") : Q,
|
|
274
|
+
m ? se(o(n)) : ie
|
|
275
|
+
);
|
|
276
|
+
};
|
|
277
|
+
}()), pe;
|
|
629
278
|
}
|
|
630
|
-
process.env.NODE_ENV === "production" ?
|
|
631
|
-
var
|
|
279
|
+
process.env.NODE_ENV === "production" ? Me.exports = xt() : Me.exports = Tt();
|
|
280
|
+
var c = Me.exports, be = { exports: {} }, it = {}, ke = { exports: {} }, ye = { exports: {} }, M = {};
|
|
632
281
|
/** @license React v16.13.1
|
|
633
282
|
* react-is.production.min.js
|
|
634
283
|
*
|
|
@@ -637,73 +286,73 @@ var f = at.exports, Ye = { exports: {} }, qt = {}, it = { exports: {} }, $e = {
|
|
|
637
286
|
* This source code is licensed under the MIT license found in the
|
|
638
287
|
* LICENSE file in the root directory of this source tree.
|
|
639
288
|
*/
|
|
640
|
-
var
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
643
|
-
|
|
644
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108,
|
|
645
|
-
function
|
|
646
|
-
if (typeof
|
|
647
|
-
var
|
|
648
|
-
switch (
|
|
289
|
+
var He;
|
|
290
|
+
function Et() {
|
|
291
|
+
if (He) return M;
|
|
292
|
+
He = 1;
|
|
293
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, P = e ? Symbol.for("react.suspense") : 60113, A = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
294
|
+
function E(s) {
|
|
295
|
+
if (typeof s == "object" && s !== null) {
|
|
296
|
+
var R = s.$$typeof;
|
|
297
|
+
switch (R) {
|
|
649
298
|
case t:
|
|
650
|
-
switch (
|
|
651
|
-
case
|
|
652
|
-
case
|
|
299
|
+
switch (s = s.type, s) {
|
|
300
|
+
case h:
|
|
301
|
+
case g:
|
|
653
302
|
case o:
|
|
654
|
-
case
|
|
303
|
+
case i:
|
|
655
304
|
case a:
|
|
656
|
-
case
|
|
657
|
-
return
|
|
305
|
+
case P:
|
|
306
|
+
return s;
|
|
658
307
|
default:
|
|
659
|
-
switch (
|
|
660
|
-
case
|
|
661
|
-
case
|
|
662
|
-
case
|
|
663
|
-
case
|
|
664
|
-
case
|
|
665
|
-
return
|
|
308
|
+
switch (s = s && s.$$typeof, s) {
|
|
309
|
+
case u:
|
|
310
|
+
case v:
|
|
311
|
+
case I:
|
|
312
|
+
case N:
|
|
313
|
+
case d:
|
|
314
|
+
return s;
|
|
666
315
|
default:
|
|
667
|
-
return
|
|
316
|
+
return R;
|
|
668
317
|
}
|
|
669
318
|
}
|
|
670
319
|
case r:
|
|
671
|
-
return
|
|
320
|
+
return R;
|
|
672
321
|
}
|
|
673
322
|
}
|
|
674
323
|
}
|
|
675
|
-
function S(
|
|
676
|
-
return
|
|
324
|
+
function S(s) {
|
|
325
|
+
return E(s) === g;
|
|
677
326
|
}
|
|
678
|
-
return
|
|
679
|
-
return S(
|
|
680
|
-
},
|
|
681
|
-
return
|
|
682
|
-
},
|
|
683
|
-
return
|
|
684
|
-
},
|
|
685
|
-
return typeof
|
|
686
|
-
},
|
|
687
|
-
return
|
|
688
|
-
},
|
|
689
|
-
return
|
|
690
|
-
},
|
|
691
|
-
return
|
|
692
|
-
},
|
|
693
|
-
return
|
|
694
|
-
},
|
|
695
|
-
return
|
|
696
|
-
},
|
|
697
|
-
return
|
|
698
|
-
},
|
|
699
|
-
return
|
|
700
|
-
},
|
|
701
|
-
return
|
|
702
|
-
},
|
|
703
|
-
return typeof
|
|
704
|
-
},
|
|
327
|
+
return M.AsyncMode = h, M.ConcurrentMode = g, M.ContextConsumer = u, M.ContextProvider = d, M.Element = t, M.ForwardRef = v, M.Fragment = o, M.Lazy = I, M.Memo = N, M.Portal = r, M.Profiler = i, M.StrictMode = a, M.Suspense = P, M.isAsyncMode = function(s) {
|
|
328
|
+
return S(s) || E(s) === h;
|
|
329
|
+
}, M.isConcurrentMode = S, M.isContextConsumer = function(s) {
|
|
330
|
+
return E(s) === u;
|
|
331
|
+
}, M.isContextProvider = function(s) {
|
|
332
|
+
return E(s) === d;
|
|
333
|
+
}, M.isElement = function(s) {
|
|
334
|
+
return typeof s == "object" && s !== null && s.$$typeof === t;
|
|
335
|
+
}, M.isForwardRef = function(s) {
|
|
336
|
+
return E(s) === v;
|
|
337
|
+
}, M.isFragment = function(s) {
|
|
338
|
+
return E(s) === o;
|
|
339
|
+
}, M.isLazy = function(s) {
|
|
340
|
+
return E(s) === I;
|
|
341
|
+
}, M.isMemo = function(s) {
|
|
342
|
+
return E(s) === N;
|
|
343
|
+
}, M.isPortal = function(s) {
|
|
344
|
+
return E(s) === r;
|
|
345
|
+
}, M.isProfiler = function(s) {
|
|
346
|
+
return E(s) === i;
|
|
347
|
+
}, M.isStrictMode = function(s) {
|
|
348
|
+
return E(s) === a;
|
|
349
|
+
}, M.isSuspense = function(s) {
|
|
350
|
+
return E(s) === P;
|
|
351
|
+
}, M.isValidElementType = function(s) {
|
|
352
|
+
return typeof s == "string" || typeof s == "function" || s === o || s === g || s === i || s === a || s === P || s === A || typeof s == "object" && s !== null && (s.$$typeof === I || s.$$typeof === N || s.$$typeof === d || s.$$typeof === u || s.$$typeof === v || s.$$typeof === T || s.$$typeof === _ || s.$$typeof === x || s.$$typeof === $);
|
|
353
|
+
}, M.typeOf = E, M;
|
|
705
354
|
}
|
|
706
|
-
var
|
|
355
|
+
var k = {};
|
|
707
356
|
/** @license React v16.13.1
|
|
708
357
|
* react-is.development.js
|
|
709
358
|
*
|
|
@@ -712,195 +361,195 @@ var U = {};
|
|
|
712
361
|
* This source code is licensed under the MIT license found in the
|
|
713
362
|
* LICENSE file in the root directory of this source tree.
|
|
714
363
|
*/
|
|
715
|
-
var
|
|
716
|
-
function
|
|
717
|
-
return
|
|
718
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108,
|
|
719
|
-
function
|
|
720
|
-
return typeof
|
|
721
|
-
|
|
722
|
-
}
|
|
723
|
-
function S(
|
|
724
|
-
if (typeof
|
|
725
|
-
var
|
|
726
|
-
switch (
|
|
364
|
+
var ze;
|
|
365
|
+
function _t() {
|
|
366
|
+
return ze || (ze = 1, process.env.NODE_ENV !== "production" && function() {
|
|
367
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, o = e ? Symbol.for("react.fragment") : 60107, a = e ? Symbol.for("react.strict_mode") : 60108, i = e ? Symbol.for("react.profiler") : 60114, d = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, h = e ? Symbol.for("react.async_mode") : 60111, g = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, P = e ? Symbol.for("react.suspense") : 60113, A = e ? Symbol.for("react.suspense_list") : 60120, N = e ? Symbol.for("react.memo") : 60115, I = e ? Symbol.for("react.lazy") : 60116, $ = e ? Symbol.for("react.block") : 60121, T = e ? Symbol.for("react.fundamental") : 60117, _ = e ? Symbol.for("react.responder") : 60118, x = e ? Symbol.for("react.scope") : 60119;
|
|
368
|
+
function E(p) {
|
|
369
|
+
return typeof p == "string" || typeof p == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
370
|
+
p === o || p === g || p === i || p === a || p === P || p === A || typeof p == "object" && p !== null && (p.$$typeof === I || p.$$typeof === N || p.$$typeof === d || p.$$typeof === u || p.$$typeof === v || p.$$typeof === T || p.$$typeof === _ || p.$$typeof === x || p.$$typeof === $);
|
|
371
|
+
}
|
|
372
|
+
function S(p) {
|
|
373
|
+
if (typeof p == "object" && p !== null) {
|
|
374
|
+
var ee = p.$$typeof;
|
|
375
|
+
switch (ee) {
|
|
727
376
|
case t:
|
|
728
|
-
var
|
|
729
|
-
switch (
|
|
730
|
-
case
|
|
731
|
-
case
|
|
377
|
+
var ge = p.type;
|
|
378
|
+
switch (ge) {
|
|
379
|
+
case h:
|
|
380
|
+
case g:
|
|
732
381
|
case o:
|
|
733
|
-
case
|
|
382
|
+
case i:
|
|
734
383
|
case a:
|
|
735
|
-
case
|
|
736
|
-
return
|
|
384
|
+
case P:
|
|
385
|
+
return ge;
|
|
737
386
|
default:
|
|
738
|
-
var
|
|
739
|
-
switch (
|
|
740
|
-
case
|
|
741
|
-
case
|
|
742
|
-
case
|
|
743
|
-
case
|
|
744
|
-
case
|
|
745
|
-
return
|
|
387
|
+
var Ue = ge && ge.$$typeof;
|
|
388
|
+
switch (Ue) {
|
|
389
|
+
case u:
|
|
390
|
+
case v:
|
|
391
|
+
case I:
|
|
392
|
+
case N:
|
|
393
|
+
case d:
|
|
394
|
+
return Ue;
|
|
746
395
|
default:
|
|
747
|
-
return
|
|
396
|
+
return ee;
|
|
748
397
|
}
|
|
749
398
|
}
|
|
750
399
|
case r:
|
|
751
|
-
return
|
|
400
|
+
return ee;
|
|
752
401
|
}
|
|
753
402
|
}
|
|
754
403
|
}
|
|
755
|
-
var
|
|
756
|
-
function
|
|
757
|
-
return
|
|
404
|
+
var s = h, R = g, L = u, U = d, Y = t, W = v, ne = o, oe = I, ae = N, K = r, se = i, X = a, V = P, Q = !1;
|
|
405
|
+
function ie(p) {
|
|
406
|
+
return Q || (Q = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), l(p) || S(p) === h;
|
|
758
407
|
}
|
|
759
|
-
function l(
|
|
760
|
-
return S(
|
|
408
|
+
function l(p) {
|
|
409
|
+
return S(p) === g;
|
|
761
410
|
}
|
|
762
|
-
function
|
|
763
|
-
return S(
|
|
411
|
+
function n(p) {
|
|
412
|
+
return S(p) === u;
|
|
764
413
|
}
|
|
765
|
-
function
|
|
766
|
-
return S(
|
|
414
|
+
function f(p) {
|
|
415
|
+
return S(p) === d;
|
|
767
416
|
}
|
|
768
|
-
function
|
|
769
|
-
return typeof
|
|
417
|
+
function y(p) {
|
|
418
|
+
return typeof p == "object" && p !== null && p.$$typeof === t;
|
|
770
419
|
}
|
|
771
|
-
function
|
|
772
|
-
return S(
|
|
420
|
+
function m(p) {
|
|
421
|
+
return S(p) === v;
|
|
773
422
|
}
|
|
774
|
-
function
|
|
775
|
-
return S(
|
|
423
|
+
function j(p) {
|
|
424
|
+
return S(p) === o;
|
|
776
425
|
}
|
|
777
|
-
function
|
|
778
|
-
return S(
|
|
426
|
+
function w(p) {
|
|
427
|
+
return S(p) === I;
|
|
779
428
|
}
|
|
780
|
-
function
|
|
781
|
-
return S(
|
|
429
|
+
function b(p) {
|
|
430
|
+
return S(p) === N;
|
|
782
431
|
}
|
|
783
|
-
function
|
|
784
|
-
return S(
|
|
432
|
+
function C(p) {
|
|
433
|
+
return S(p) === r;
|
|
785
434
|
}
|
|
786
|
-
function
|
|
787
|
-
return S(
|
|
435
|
+
function D(p) {
|
|
436
|
+
return S(p) === i;
|
|
788
437
|
}
|
|
789
|
-
function
|
|
790
|
-
return S(
|
|
438
|
+
function O(p) {
|
|
439
|
+
return S(p) === a;
|
|
791
440
|
}
|
|
792
|
-
function
|
|
793
|
-
return S(
|
|
441
|
+
function z(p) {
|
|
442
|
+
return S(p) === P;
|
|
794
443
|
}
|
|
795
|
-
|
|
796
|
-
}()),
|
|
444
|
+
k.AsyncMode = s, k.ConcurrentMode = R, k.ContextConsumer = L, k.ContextProvider = U, k.Element = Y, k.ForwardRef = W, k.Fragment = ne, k.Lazy = oe, k.Memo = ae, k.Portal = K, k.Profiler = se, k.StrictMode = X, k.Suspense = V, k.isAsyncMode = ie, k.isConcurrentMode = l, k.isContextConsumer = n, k.isContextProvider = f, k.isElement = y, k.isForwardRef = m, k.isFragment = j, k.isLazy = w, k.isMemo = b, k.isPortal = C, k.isProfiler = D, k.isStrictMode = O, k.isSuspense = z, k.isValidElementType = E, k.typeOf = S;
|
|
445
|
+
}()), k;
|
|
797
446
|
}
|
|
798
|
-
var
|
|
799
|
-
function
|
|
800
|
-
return
|
|
447
|
+
var Ve;
|
|
448
|
+
function lt() {
|
|
449
|
+
return Ve || (Ve = 1, process.env.NODE_ENV === "production" ? ye.exports = Et() : ye.exports = _t()), ye.exports;
|
|
801
450
|
}
|
|
802
451
|
/*
|
|
803
452
|
object-assign
|
|
804
453
|
(c) Sindre Sorhus
|
|
805
454
|
@license MIT
|
|
806
455
|
*/
|
|
807
|
-
var
|
|
808
|
-
function
|
|
809
|
-
if (
|
|
810
|
-
|
|
456
|
+
var Ee, Ge;
|
|
457
|
+
function wt() {
|
|
458
|
+
if (Ge) return Ee;
|
|
459
|
+
Ge = 1;
|
|
811
460
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
812
|
-
function o(
|
|
813
|
-
if (
|
|
461
|
+
function o(i) {
|
|
462
|
+
if (i == null)
|
|
814
463
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
815
|
-
return Object(
|
|
464
|
+
return Object(i);
|
|
816
465
|
}
|
|
817
466
|
function a() {
|
|
818
467
|
try {
|
|
819
468
|
if (!Object.assign)
|
|
820
469
|
return !1;
|
|
821
|
-
var
|
|
822
|
-
if (
|
|
470
|
+
var i = new String("abc");
|
|
471
|
+
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
823
472
|
return !1;
|
|
824
|
-
for (var
|
|
825
|
-
|
|
826
|
-
var
|
|
827
|
-
return
|
|
473
|
+
for (var d = {}, u = 0; u < 10; u++)
|
|
474
|
+
d["_" + String.fromCharCode(u)] = u;
|
|
475
|
+
var h = Object.getOwnPropertyNames(d).map(function(v) {
|
|
476
|
+
return d[v];
|
|
828
477
|
});
|
|
829
|
-
if (
|
|
478
|
+
if (h.join("") !== "0123456789")
|
|
830
479
|
return !1;
|
|
831
|
-
var
|
|
832
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
833
|
-
|
|
834
|
-
}), Object.keys(Object.assign({},
|
|
480
|
+
var g = {};
|
|
481
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(v) {
|
|
482
|
+
g[v] = v;
|
|
483
|
+
}), Object.keys(Object.assign({}, g)).join("") === "abcdefghijklmnopqrst";
|
|
835
484
|
} catch {
|
|
836
485
|
return !1;
|
|
837
486
|
}
|
|
838
487
|
}
|
|
839
|
-
return
|
|
840
|
-
for (var
|
|
841
|
-
|
|
842
|
-
for (var
|
|
843
|
-
t.call(
|
|
488
|
+
return Ee = a() ? Object.assign : function(i, d) {
|
|
489
|
+
for (var u, h = o(i), g, v = 1; v < arguments.length; v++) {
|
|
490
|
+
u = Object(arguments[v]);
|
|
491
|
+
for (var P in u)
|
|
492
|
+
t.call(u, P) && (h[P] = u[P]);
|
|
844
493
|
if (e) {
|
|
845
|
-
|
|
846
|
-
for (var A = 0; A <
|
|
847
|
-
r.call(
|
|
494
|
+
g = e(u);
|
|
495
|
+
for (var A = 0; A < g.length; A++)
|
|
496
|
+
r.call(u, g[A]) && (h[g[A]] = u[g[A]]);
|
|
848
497
|
}
|
|
849
498
|
}
|
|
850
|
-
return
|
|
851
|
-
},
|
|
499
|
+
return h;
|
|
500
|
+
}, Ee;
|
|
852
501
|
}
|
|
853
|
-
var
|
|
854
|
-
function
|
|
855
|
-
if (
|
|
856
|
-
|
|
502
|
+
var _e, Je;
|
|
503
|
+
function Fe() {
|
|
504
|
+
if (Je) return _e;
|
|
505
|
+
Je = 1;
|
|
857
506
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
858
|
-
return
|
|
507
|
+
return _e = e, _e;
|
|
859
508
|
}
|
|
860
|
-
var
|
|
861
|
-
function
|
|
862
|
-
return
|
|
509
|
+
var we, Ke;
|
|
510
|
+
function ct() {
|
|
511
|
+
return Ke || (Ke = 1, we = Function.call.bind(Object.prototype.hasOwnProperty)), we;
|
|
863
512
|
}
|
|
864
|
-
var
|
|
865
|
-
function
|
|
866
|
-
if (
|
|
867
|
-
|
|
513
|
+
var Ce, Ze;
|
|
514
|
+
function Ct() {
|
|
515
|
+
if (Ze) return Ce;
|
|
516
|
+
Ze = 1;
|
|
868
517
|
var e = function() {
|
|
869
518
|
};
|
|
870
519
|
if (process.env.NODE_ENV !== "production") {
|
|
871
|
-
var t =
|
|
872
|
-
e = function(
|
|
873
|
-
var
|
|
874
|
-
typeof console < "u" && console.error(
|
|
520
|
+
var t = Fe(), r = {}, o = ct();
|
|
521
|
+
e = function(i) {
|
|
522
|
+
var d = "Warning: " + i;
|
|
523
|
+
typeof console < "u" && console.error(d);
|
|
875
524
|
try {
|
|
876
|
-
throw new Error(
|
|
525
|
+
throw new Error(d);
|
|
877
526
|
} catch {
|
|
878
527
|
}
|
|
879
528
|
};
|
|
880
529
|
}
|
|
881
|
-
function a(
|
|
530
|
+
function a(i, d, u, h, g) {
|
|
882
531
|
if (process.env.NODE_ENV !== "production") {
|
|
883
|
-
for (var
|
|
884
|
-
if (o(
|
|
885
|
-
var
|
|
532
|
+
for (var v in i)
|
|
533
|
+
if (o(i, v)) {
|
|
534
|
+
var P;
|
|
886
535
|
try {
|
|
887
|
-
if (typeof
|
|
536
|
+
if (typeof i[v] != "function") {
|
|
888
537
|
var A = Error(
|
|
889
|
-
(
|
|
538
|
+
(h || "React class") + ": " + u + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
890
539
|
);
|
|
891
540
|
throw A.name = "Invariant Violation", A;
|
|
892
541
|
}
|
|
893
|
-
|
|
894
|
-
} catch (
|
|
895
|
-
|
|
542
|
+
P = i[v](d, v, h, u, null, t);
|
|
543
|
+
} catch (I) {
|
|
544
|
+
P = I;
|
|
896
545
|
}
|
|
897
|
-
if (
|
|
898
|
-
(
|
|
899
|
-
),
|
|
900
|
-
r[
|
|
901
|
-
var
|
|
546
|
+
if (P && !(P instanceof Error) && e(
|
|
547
|
+
(h || "React class") + ": type specification of " + u + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof P + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
548
|
+
), P instanceof Error && !(P.message in r)) {
|
|
549
|
+
r[P.message] = !0;
|
|
550
|
+
var N = g ? g() : "";
|
|
902
551
|
e(
|
|
903
|
-
"Failed " +
|
|
552
|
+
"Failed " + u + " type: " + P.message + (N ?? "")
|
|
904
553
|
);
|
|
905
554
|
}
|
|
906
555
|
}
|
|
@@ -908,256 +557,256 @@ function Dr() {
|
|
|
908
557
|
}
|
|
909
558
|
return a.resetWarningCache = function() {
|
|
910
559
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
911
|
-
},
|
|
560
|
+
}, Ce = a, Ce;
|
|
912
561
|
}
|
|
913
|
-
var
|
|
914
|
-
function
|
|
915
|
-
if (
|
|
916
|
-
|
|
917
|
-
var e =
|
|
562
|
+
var Pe, Qe;
|
|
563
|
+
function Pt() {
|
|
564
|
+
if (Qe) return Pe;
|
|
565
|
+
Qe = 1;
|
|
566
|
+
var e = lt(), t = wt(), r = Fe(), o = ct(), a = Ct(), i = function() {
|
|
918
567
|
};
|
|
919
|
-
process.env.NODE_ENV !== "production" && (
|
|
920
|
-
var
|
|
921
|
-
typeof console < "u" && console.error(
|
|
568
|
+
process.env.NODE_ENV !== "production" && (i = function(u) {
|
|
569
|
+
var h = "Warning: " + u;
|
|
570
|
+
typeof console < "u" && console.error(h);
|
|
922
571
|
try {
|
|
923
|
-
throw new Error(
|
|
572
|
+
throw new Error(h);
|
|
924
573
|
} catch {
|
|
925
574
|
}
|
|
926
575
|
});
|
|
927
|
-
function
|
|
576
|
+
function d() {
|
|
928
577
|
return null;
|
|
929
578
|
}
|
|
930
|
-
return
|
|
931
|
-
var
|
|
932
|
-
function
|
|
933
|
-
var
|
|
934
|
-
if (typeof
|
|
935
|
-
return
|
|
936
|
-
}
|
|
937
|
-
var A = "<<anonymous>>",
|
|
938
|
-
array:
|
|
939
|
-
bigint:
|
|
940
|
-
bool:
|
|
941
|
-
func:
|
|
942
|
-
number:
|
|
943
|
-
object:
|
|
944
|
-
string:
|
|
945
|
-
symbol:
|
|
946
|
-
any:
|
|
947
|
-
arrayOf:
|
|
579
|
+
return Pe = function(u, h) {
|
|
580
|
+
var g = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
|
581
|
+
function P(l) {
|
|
582
|
+
var n = l && (g && l[g] || l[v]);
|
|
583
|
+
if (typeof n == "function")
|
|
584
|
+
return n;
|
|
585
|
+
}
|
|
586
|
+
var A = "<<anonymous>>", N = {
|
|
587
|
+
array: _("array"),
|
|
588
|
+
bigint: _("bigint"),
|
|
589
|
+
bool: _("boolean"),
|
|
590
|
+
func: _("function"),
|
|
591
|
+
number: _("number"),
|
|
592
|
+
object: _("object"),
|
|
593
|
+
string: _("string"),
|
|
594
|
+
symbol: _("symbol"),
|
|
595
|
+
any: x(),
|
|
596
|
+
arrayOf: E,
|
|
948
597
|
element: S(),
|
|
949
|
-
elementType:
|
|
950
|
-
instanceOf:
|
|
951
|
-
node:
|
|
952
|
-
objectOf:
|
|
953
|
-
oneOf:
|
|
954
|
-
oneOfType:
|
|
955
|
-
shape:
|
|
956
|
-
exact:
|
|
598
|
+
elementType: s(),
|
|
599
|
+
instanceOf: R,
|
|
600
|
+
node: W(),
|
|
601
|
+
objectOf: U,
|
|
602
|
+
oneOf: L,
|
|
603
|
+
oneOfType: Y,
|
|
604
|
+
shape: oe,
|
|
605
|
+
exact: ae
|
|
957
606
|
};
|
|
958
|
-
function
|
|
959
|
-
return l ===
|
|
607
|
+
function I(l, n) {
|
|
608
|
+
return l === n ? l !== 0 || 1 / l === 1 / n : l !== l && n !== n;
|
|
960
609
|
}
|
|
961
|
-
function
|
|
962
|
-
this.message = l, this.data =
|
|
610
|
+
function $(l, n) {
|
|
611
|
+
this.message = l, this.data = n && typeof n == "object" ? n : {}, this.stack = "";
|
|
963
612
|
}
|
|
964
|
-
|
|
965
|
-
function
|
|
613
|
+
$.prototype = Error.prototype;
|
|
614
|
+
function T(l) {
|
|
966
615
|
if (process.env.NODE_ENV !== "production")
|
|
967
|
-
var
|
|
968
|
-
function j
|
|
969
|
-
if (
|
|
970
|
-
if (
|
|
971
|
-
var
|
|
616
|
+
var n = {}, f = 0;
|
|
617
|
+
function y(j, w, b, C, D, O, z) {
|
|
618
|
+
if (C = C || A, O = O || b, z !== r) {
|
|
619
|
+
if (h) {
|
|
620
|
+
var p = new Error(
|
|
972
621
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
973
622
|
);
|
|
974
|
-
throw
|
|
623
|
+
throw p.name = "Invariant Violation", p;
|
|
975
624
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
976
|
-
var
|
|
977
|
-
!
|
|
978
|
-
|
|
979
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
980
|
-
),
|
|
625
|
+
var ee = C + ":" + b;
|
|
626
|
+
!n[ee] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
627
|
+
f < 3 && (i(
|
|
628
|
+
"You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + C + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
629
|
+
), n[ee] = !0, f++);
|
|
981
630
|
}
|
|
982
631
|
}
|
|
983
|
-
return
|
|
632
|
+
return w[b] == null ? j ? w[b] === null ? new $("The " + D + " `" + O + "` is marked as required " + ("in `" + C + "`, but its value is `null`.")) : new $("The " + D + " `" + O + "` is marked as required in " + ("`" + C + "`, but its value is `undefined`.")) : null : l(w, b, C, D, O);
|
|
984
633
|
}
|
|
985
|
-
var
|
|
986
|
-
return
|
|
987
|
-
}
|
|
988
|
-
function
|
|
989
|
-
function
|
|
990
|
-
var
|
|
991
|
-
if (
|
|
992
|
-
var
|
|
993
|
-
return new
|
|
994
|
-
"Invalid " +
|
|
634
|
+
var m = y.bind(null, !1);
|
|
635
|
+
return m.isRequired = y.bind(null, !0), m;
|
|
636
|
+
}
|
|
637
|
+
function _(l) {
|
|
638
|
+
function n(f, y, m, j, w, b) {
|
|
639
|
+
var C = f[y], D = X(C);
|
|
640
|
+
if (D !== l) {
|
|
641
|
+
var O = V(C);
|
|
642
|
+
return new $(
|
|
643
|
+
"Invalid " + j + " `" + w + "` of type " + ("`" + O + "` supplied to `" + m + "`, expected ") + ("`" + l + "`."),
|
|
995
644
|
{ expectedType: l }
|
|
996
645
|
);
|
|
997
646
|
}
|
|
998
647
|
return null;
|
|
999
648
|
}
|
|
1000
|
-
return
|
|
649
|
+
return T(n);
|
|
1001
650
|
}
|
|
1002
|
-
function
|
|
1003
|
-
return
|
|
651
|
+
function x() {
|
|
652
|
+
return T(d);
|
|
1004
653
|
}
|
|
1005
|
-
function
|
|
1006
|
-
function
|
|
654
|
+
function E(l) {
|
|
655
|
+
function n(f, y, m, j, w) {
|
|
1007
656
|
if (typeof l != "function")
|
|
1008
|
-
return new
|
|
1009
|
-
var
|
|
1010
|
-
if (!Array.isArray(
|
|
1011
|
-
var
|
|
1012
|
-
return new
|
|
657
|
+
return new $("Property `" + w + "` of component `" + m + "` has invalid PropType notation inside arrayOf.");
|
|
658
|
+
var b = f[y];
|
|
659
|
+
if (!Array.isArray(b)) {
|
|
660
|
+
var C = X(b);
|
|
661
|
+
return new $("Invalid " + j + " `" + w + "` of type " + ("`" + C + "` supplied to `" + m + "`, expected an array."));
|
|
1013
662
|
}
|
|
1014
|
-
for (var
|
|
1015
|
-
var
|
|
1016
|
-
if (
|
|
1017
|
-
return
|
|
663
|
+
for (var D = 0; D < b.length; D++) {
|
|
664
|
+
var O = l(b, D, m, j, w + "[" + D + "]", r);
|
|
665
|
+
if (O instanceof Error)
|
|
666
|
+
return O;
|
|
1018
667
|
}
|
|
1019
668
|
return null;
|
|
1020
669
|
}
|
|
1021
|
-
return
|
|
670
|
+
return T(n);
|
|
1022
671
|
}
|
|
1023
672
|
function S() {
|
|
1024
|
-
function l(
|
|
1025
|
-
var
|
|
1026
|
-
if (!
|
|
1027
|
-
var
|
|
1028
|
-
return new
|
|
673
|
+
function l(n, f, y, m, j) {
|
|
674
|
+
var w = n[f];
|
|
675
|
+
if (!u(w)) {
|
|
676
|
+
var b = X(w);
|
|
677
|
+
return new $("Invalid " + m + " `" + j + "` of type " + ("`" + b + "` supplied to `" + y + "`, expected a single ReactElement."));
|
|
1029
678
|
}
|
|
1030
679
|
return null;
|
|
1031
680
|
}
|
|
1032
|
-
return
|
|
1033
|
-
}
|
|
1034
|
-
function
|
|
1035
|
-
function l(
|
|
1036
|
-
var
|
|
1037
|
-
if (!e.isValidElementType(
|
|
1038
|
-
var
|
|
1039
|
-
return new
|
|
681
|
+
return T(l);
|
|
682
|
+
}
|
|
683
|
+
function s() {
|
|
684
|
+
function l(n, f, y, m, j) {
|
|
685
|
+
var w = n[f];
|
|
686
|
+
if (!e.isValidElementType(w)) {
|
|
687
|
+
var b = X(w);
|
|
688
|
+
return new $("Invalid " + m + " `" + j + "` of type " + ("`" + b + "` supplied to `" + y + "`, expected a single ReactElement type."));
|
|
1040
689
|
}
|
|
1041
690
|
return null;
|
|
1042
691
|
}
|
|
1043
|
-
return
|
|
692
|
+
return T(l);
|
|
1044
693
|
}
|
|
1045
|
-
function
|
|
1046
|
-
function
|
|
1047
|
-
if (!(
|
|
1048
|
-
var
|
|
1049
|
-
return new
|
|
694
|
+
function R(l) {
|
|
695
|
+
function n(f, y, m, j, w) {
|
|
696
|
+
if (!(f[y] instanceof l)) {
|
|
697
|
+
var b = l.name || A, C = ie(f[y]);
|
|
698
|
+
return new $("Invalid " + j + " `" + w + "` of type " + ("`" + C + "` supplied to `" + m + "`, expected ") + ("instance of `" + b + "`."));
|
|
1050
699
|
}
|
|
1051
700
|
return null;
|
|
1052
701
|
}
|
|
1053
|
-
return
|
|
702
|
+
return T(n);
|
|
1054
703
|
}
|
|
1055
|
-
function
|
|
704
|
+
function L(l) {
|
|
1056
705
|
if (!Array.isArray(l))
|
|
1057
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ?
|
|
706
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
1058
707
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
1059
|
-
) :
|
|
1060
|
-
function
|
|
1061
|
-
for (var
|
|
1062
|
-
if (
|
|
708
|
+
) : i("Invalid argument supplied to oneOf, expected an array.")), d;
|
|
709
|
+
function n(f, y, m, j, w) {
|
|
710
|
+
for (var b = f[y], C = 0; C < l.length; C++)
|
|
711
|
+
if (I(b, l[C]))
|
|
1063
712
|
return null;
|
|
1064
|
-
var
|
|
1065
|
-
var
|
|
1066
|
-
return
|
|
713
|
+
var D = JSON.stringify(l, function(z, p) {
|
|
714
|
+
var ee = V(p);
|
|
715
|
+
return ee === "symbol" ? String(p) : p;
|
|
1067
716
|
});
|
|
1068
|
-
return new
|
|
717
|
+
return new $("Invalid " + j + " `" + w + "` of value `" + String(b) + "` " + ("supplied to `" + m + "`, expected one of " + D + "."));
|
|
1069
718
|
}
|
|
1070
|
-
return
|
|
719
|
+
return T(n);
|
|
1071
720
|
}
|
|
1072
|
-
function
|
|
1073
|
-
function
|
|
721
|
+
function U(l) {
|
|
722
|
+
function n(f, y, m, j, w) {
|
|
1074
723
|
if (typeof l != "function")
|
|
1075
|
-
return new
|
|
1076
|
-
var
|
|
1077
|
-
if (
|
|
1078
|
-
return new
|
|
1079
|
-
for (var
|
|
1080
|
-
if (o(
|
|
1081
|
-
var
|
|
1082
|
-
if (
|
|
1083
|
-
return
|
|
724
|
+
return new $("Property `" + w + "` of component `" + m + "` has invalid PropType notation inside objectOf.");
|
|
725
|
+
var b = f[y], C = X(b);
|
|
726
|
+
if (C !== "object")
|
|
727
|
+
return new $("Invalid " + j + " `" + w + "` of type " + ("`" + C + "` supplied to `" + m + "`, expected an object."));
|
|
728
|
+
for (var D in b)
|
|
729
|
+
if (o(b, D)) {
|
|
730
|
+
var O = l(b, D, m, j, w + "." + D, r);
|
|
731
|
+
if (O instanceof Error)
|
|
732
|
+
return O;
|
|
1084
733
|
}
|
|
1085
734
|
return null;
|
|
1086
735
|
}
|
|
1087
|
-
return
|
|
736
|
+
return T(n);
|
|
1088
737
|
}
|
|
1089
|
-
function
|
|
738
|
+
function Y(l) {
|
|
1090
739
|
if (!Array.isArray(l))
|
|
1091
|
-
return process.env.NODE_ENV !== "production" &&
|
|
1092
|
-
for (var
|
|
1093
|
-
var
|
|
1094
|
-
if (typeof
|
|
1095
|
-
return
|
|
1096
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
1097
|
-
),
|
|
740
|
+
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), d;
|
|
741
|
+
for (var n = 0; n < l.length; n++) {
|
|
742
|
+
var f = l[n];
|
|
743
|
+
if (typeof f != "function")
|
|
744
|
+
return i(
|
|
745
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Q(f) + " at index " + n + "."
|
|
746
|
+
), d;
|
|
1098
747
|
}
|
|
1099
|
-
function
|
|
1100
|
-
for (var
|
|
1101
|
-
var
|
|
1102
|
-
if (
|
|
748
|
+
function y(m, j, w, b, C) {
|
|
749
|
+
for (var D = [], O = 0; O < l.length; O++) {
|
|
750
|
+
var z = l[O], p = z(m, j, w, b, C, r);
|
|
751
|
+
if (p == null)
|
|
1103
752
|
return null;
|
|
1104
|
-
|
|
753
|
+
p.data && o(p.data, "expectedType") && D.push(p.data.expectedType);
|
|
1105
754
|
}
|
|
1106
|
-
var
|
|
1107
|
-
return new
|
|
755
|
+
var ee = D.length > 0 ? ", expected one of type [" + D.join(", ") + "]" : "";
|
|
756
|
+
return new $("Invalid " + b + " `" + C + "` supplied to " + ("`" + w + "`" + ee + "."));
|
|
1108
757
|
}
|
|
1109
|
-
return
|
|
758
|
+
return T(y);
|
|
1110
759
|
}
|
|
1111
|
-
function
|
|
1112
|
-
function l(
|
|
1113
|
-
return K(
|
|
760
|
+
function W() {
|
|
761
|
+
function l(n, f, y, m, j) {
|
|
762
|
+
return K(n[f]) ? null : new $("Invalid " + m + " `" + j + "` supplied to " + ("`" + y + "`, expected a ReactNode."));
|
|
1114
763
|
}
|
|
1115
|
-
return
|
|
764
|
+
return T(l);
|
|
1116
765
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return new
|
|
1119
|
-
(l || "React class") + ": " +
|
|
766
|
+
function ne(l, n, f, y, m) {
|
|
767
|
+
return new $(
|
|
768
|
+
(l || "React class") + ": " + n + " type `" + f + "." + y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + m + "`."
|
|
1120
769
|
);
|
|
1121
770
|
}
|
|
1122
|
-
function
|
|
1123
|
-
function
|
|
1124
|
-
var
|
|
1125
|
-
if (
|
|
1126
|
-
return new
|
|
1127
|
-
for (var
|
|
1128
|
-
var
|
|
1129
|
-
if (typeof
|
|
1130
|
-
return
|
|
1131
|
-
var
|
|
1132
|
-
if (
|
|
1133
|
-
return
|
|
771
|
+
function oe(l) {
|
|
772
|
+
function n(f, y, m, j, w) {
|
|
773
|
+
var b = f[y], C = X(b);
|
|
774
|
+
if (C !== "object")
|
|
775
|
+
return new $("Invalid " + j + " `" + w + "` of type `" + C + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
776
|
+
for (var D in l) {
|
|
777
|
+
var O = l[D];
|
|
778
|
+
if (typeof O != "function")
|
|
779
|
+
return ne(m, j, w, D, V(O));
|
|
780
|
+
var z = O(b, D, m, j, w + "." + D, r);
|
|
781
|
+
if (z)
|
|
782
|
+
return z;
|
|
1134
783
|
}
|
|
1135
784
|
return null;
|
|
1136
785
|
}
|
|
1137
|
-
return
|
|
1138
|
-
}
|
|
1139
|
-
function
|
|
1140
|
-
function
|
|
1141
|
-
var
|
|
1142
|
-
if (
|
|
1143
|
-
return new
|
|
1144
|
-
var
|
|
1145
|
-
for (var
|
|
1146
|
-
var
|
|
1147
|
-
if (o(l,
|
|
1148
|
-
return
|
|
1149
|
-
if (!
|
|
1150
|
-
return new
|
|
1151
|
-
"Invalid " +
|
|
786
|
+
return T(n);
|
|
787
|
+
}
|
|
788
|
+
function ae(l) {
|
|
789
|
+
function n(f, y, m, j, w) {
|
|
790
|
+
var b = f[y], C = X(b);
|
|
791
|
+
if (C !== "object")
|
|
792
|
+
return new $("Invalid " + j + " `" + w + "` of type `" + C + "` " + ("supplied to `" + m + "`, expected `object`."));
|
|
793
|
+
var D = t({}, f[y], l);
|
|
794
|
+
for (var O in D) {
|
|
795
|
+
var z = l[O];
|
|
796
|
+
if (o(l, O) && typeof z != "function")
|
|
797
|
+
return ne(m, j, w, O, V(z));
|
|
798
|
+
if (!z)
|
|
799
|
+
return new $(
|
|
800
|
+
"Invalid " + j + " `" + w + "` key `" + O + "` supplied to `" + m + "`.\nBad object: " + JSON.stringify(f[y], null, " ") + `
|
|
1152
801
|
Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
1153
802
|
);
|
|
1154
|
-
var
|
|
1155
|
-
if (
|
|
1156
|
-
return
|
|
803
|
+
var p = z(b, O, m, j, w + "." + O, r);
|
|
804
|
+
if (p)
|
|
805
|
+
return p;
|
|
1157
806
|
}
|
|
1158
807
|
return null;
|
|
1159
808
|
}
|
|
1160
|
-
return
|
|
809
|
+
return T(n);
|
|
1161
810
|
}
|
|
1162
811
|
function K(l) {
|
|
1163
812
|
switch (typeof l) {
|
|
@@ -1170,19 +819,19 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1170
819
|
case "object":
|
|
1171
820
|
if (Array.isArray(l))
|
|
1172
821
|
return l.every(K);
|
|
1173
|
-
if (l === null ||
|
|
822
|
+
if (l === null || u(l))
|
|
1174
823
|
return !0;
|
|
1175
|
-
var
|
|
1176
|
-
if (
|
|
1177
|
-
var
|
|
1178
|
-
if (
|
|
1179
|
-
for (; !(
|
|
1180
|
-
if (!K(
|
|
824
|
+
var n = P(l);
|
|
825
|
+
if (n) {
|
|
826
|
+
var f = n.call(l), y;
|
|
827
|
+
if (n !== l.entries) {
|
|
828
|
+
for (; !(y = f.next()).done; )
|
|
829
|
+
if (!K(y.value))
|
|
1181
830
|
return !1;
|
|
1182
831
|
} else
|
|
1183
|
-
for (; !(
|
|
1184
|
-
var
|
|
1185
|
-
if (
|
|
832
|
+
for (; !(y = f.next()).done; ) {
|
|
833
|
+
var m = y.value;
|
|
834
|
+
if (m && !K(m[1]))
|
|
1186
835
|
return !1;
|
|
1187
836
|
}
|
|
1188
837
|
} else
|
|
@@ -1192,57 +841,57 @@ Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
|
|
|
1192
841
|
return !1;
|
|
1193
842
|
}
|
|
1194
843
|
}
|
|
1195
|
-
function
|
|
1196
|
-
return l === "symbol" ? !0 :
|
|
844
|
+
function se(l, n) {
|
|
845
|
+
return l === "symbol" ? !0 : n ? n["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && n instanceof Symbol : !1;
|
|
1197
846
|
}
|
|
1198
|
-
function
|
|
1199
|
-
var
|
|
1200
|
-
return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" :
|
|
847
|
+
function X(l) {
|
|
848
|
+
var n = typeof l;
|
|
849
|
+
return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : se(n, l) ? "symbol" : n;
|
|
1201
850
|
}
|
|
1202
|
-
function
|
|
851
|
+
function V(l) {
|
|
1203
852
|
if (typeof l > "u" || l === null)
|
|
1204
853
|
return "" + l;
|
|
1205
|
-
var
|
|
1206
|
-
if (
|
|
854
|
+
var n = X(l);
|
|
855
|
+
if (n === "object") {
|
|
1207
856
|
if (l instanceof Date)
|
|
1208
857
|
return "date";
|
|
1209
858
|
if (l instanceof RegExp)
|
|
1210
859
|
return "regexp";
|
|
1211
860
|
}
|
|
1212
|
-
return
|
|
861
|
+
return n;
|
|
1213
862
|
}
|
|
1214
|
-
function
|
|
1215
|
-
var
|
|
1216
|
-
switch (
|
|
863
|
+
function Q(l) {
|
|
864
|
+
var n = V(l);
|
|
865
|
+
switch (n) {
|
|
1217
866
|
case "array":
|
|
1218
867
|
case "object":
|
|
1219
|
-
return "an " +
|
|
868
|
+
return "an " + n;
|
|
1220
869
|
case "boolean":
|
|
1221
870
|
case "date":
|
|
1222
871
|
case "regexp":
|
|
1223
|
-
return "a " +
|
|
872
|
+
return "a " + n;
|
|
1224
873
|
default:
|
|
1225
|
-
return
|
|
874
|
+
return n;
|
|
1226
875
|
}
|
|
1227
876
|
}
|
|
1228
|
-
function
|
|
877
|
+
function ie(l) {
|
|
1229
878
|
return !l.constructor || !l.constructor.name ? A : l.constructor.name;
|
|
1230
879
|
}
|
|
1231
|
-
return
|
|
1232
|
-
},
|
|
880
|
+
return N.checkPropTypes = a, N.resetWarningCache = a.resetWarningCache, N.PropTypes = N, N;
|
|
881
|
+
}, Pe;
|
|
1233
882
|
}
|
|
1234
|
-
var
|
|
1235
|
-
function
|
|
1236
|
-
if (
|
|
1237
|
-
|
|
1238
|
-
var e =
|
|
883
|
+
var je, et;
|
|
884
|
+
function jt() {
|
|
885
|
+
if (et) return je;
|
|
886
|
+
et = 1;
|
|
887
|
+
var e = Fe();
|
|
1239
888
|
function t() {
|
|
1240
889
|
}
|
|
1241
890
|
function r() {
|
|
1242
891
|
}
|
|
1243
|
-
return r.resetWarningCache = t,
|
|
1244
|
-
function o(
|
|
1245
|
-
if (
|
|
892
|
+
return r.resetWarningCache = t, je = function() {
|
|
893
|
+
function o(d, u, h, g, v, P) {
|
|
894
|
+
if (P !== e) {
|
|
1246
895
|
var A = new Error(
|
|
1247
896
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
1248
897
|
);
|
|
@@ -1253,7 +902,7 @@ function Mr() {
|
|
|
1253
902
|
function a() {
|
|
1254
903
|
return o;
|
|
1255
904
|
}
|
|
1256
|
-
var
|
|
905
|
+
var i = {
|
|
1257
906
|
array: o,
|
|
1258
907
|
bigint: o,
|
|
1259
908
|
bool: o,
|
|
@@ -1276,139 +925,139 @@ function Mr() {
|
|
|
1276
925
|
checkPropTypes: r,
|
|
1277
926
|
resetWarningCache: t
|
|
1278
927
|
};
|
|
1279
|
-
return
|
|
1280
|
-
},
|
|
928
|
+
return i.PropTypes = i, i;
|
|
929
|
+
}, je;
|
|
1281
930
|
}
|
|
1282
931
|
if (process.env.NODE_ENV !== "production") {
|
|
1283
|
-
var
|
|
1284
|
-
|
|
932
|
+
var Rt = lt(), Ot = !0;
|
|
933
|
+
ke.exports = Pt()(Rt.isElement, Ot);
|
|
1285
934
|
} else
|
|
1286
|
-
|
|
1287
|
-
var
|
|
1288
|
-
function
|
|
935
|
+
ke.exports = jt()();
|
|
936
|
+
var ut = ke.exports, $e = { exports: {} };
|
|
937
|
+
function ft(e) {
|
|
1289
938
|
var t, r, o = "";
|
|
1290
939
|
if (typeof e == "string" || typeof e == "number") o += e;
|
|
1291
940
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
1292
941
|
var a = e.length;
|
|
1293
|
-
for (t = 0; t < a; t++) e[t] && (r =
|
|
942
|
+
for (t = 0; t < a; t++) e[t] && (r = ft(e[t])) && (o && (o += " "), o += r);
|
|
1294
943
|
} else for (r in e) e[r] && (o && (o += " "), o += r);
|
|
1295
944
|
return o;
|
|
1296
945
|
}
|
|
1297
|
-
function
|
|
1298
|
-
for (var e, t, r = 0, o = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t =
|
|
946
|
+
function tt() {
|
|
947
|
+
for (var e, t, r = 0, o = "", a = arguments.length; r < a; r++) (e = arguments[r]) && (t = ft(e)) && (o && (o += " "), o += t);
|
|
1299
948
|
return o;
|
|
1300
949
|
}
|
|
1301
|
-
|
|
1302
|
-
var
|
|
1303
|
-
Object.defineProperty(
|
|
950
|
+
$e.exports = tt, $e.exports.clsx = tt;
|
|
951
|
+
var Dt = $e.exports, F = {}, te = {};
|
|
952
|
+
Object.defineProperty(te, "__esModule", {
|
|
1304
953
|
value: !0
|
|
1305
954
|
});
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
function
|
|
955
|
+
te.dontSetMe = $t;
|
|
956
|
+
te.findInArray = Nt;
|
|
957
|
+
te.int = kt;
|
|
958
|
+
te.isFunction = At;
|
|
959
|
+
te.isNum = Mt;
|
|
960
|
+
function Nt(e, t) {
|
|
1312
961
|
for (let r = 0, o = e.length; r < o; r++)
|
|
1313
962
|
if (t.apply(t, [e[r], r, e])) return e[r];
|
|
1314
963
|
}
|
|
1315
|
-
function
|
|
964
|
+
function At(e) {
|
|
1316
965
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Function]";
|
|
1317
966
|
}
|
|
1318
|
-
function
|
|
967
|
+
function Mt(e) {
|
|
1319
968
|
return typeof e == "number" && !isNaN(e);
|
|
1320
969
|
}
|
|
1321
|
-
function
|
|
970
|
+
function kt(e) {
|
|
1322
971
|
return parseInt(e, 10);
|
|
1323
972
|
}
|
|
1324
|
-
function
|
|
973
|
+
function $t(e, t, r) {
|
|
1325
974
|
if (e[t])
|
|
1326
975
|
return new Error(`Invalid prop ${t} passed to ${r} - do not set this, set it on the child.`);
|
|
1327
976
|
}
|
|
1328
|
-
var
|
|
1329
|
-
Object.defineProperty(
|
|
977
|
+
var ue = {};
|
|
978
|
+
Object.defineProperty(ue, "__esModule", {
|
|
1330
979
|
value: !0
|
|
1331
980
|
});
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
const
|
|
1337
|
-
function
|
|
981
|
+
ue.browserPrefixToKey = pt;
|
|
982
|
+
ue.browserPrefixToStyle = It;
|
|
983
|
+
ue.default = void 0;
|
|
984
|
+
ue.getPrefix = dt;
|
|
985
|
+
const Re = ["Moz", "Webkit", "O", "ms"];
|
|
986
|
+
function dt() {
|
|
1338
987
|
var r, o;
|
|
1339
988
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "transform";
|
|
1340
989
|
if (typeof window > "u") return "";
|
|
1341
990
|
const t = (o = (r = window.document) == null ? void 0 : r.documentElement) == null ? void 0 : o.style;
|
|
1342
991
|
if (!t || e in t) return "";
|
|
1343
|
-
for (let a = 0; a <
|
|
1344
|
-
if (
|
|
992
|
+
for (let a = 0; a < Re.length; a++)
|
|
993
|
+
if (pt(e, Re[a]) in t) return Re[a];
|
|
1345
994
|
return "";
|
|
1346
995
|
}
|
|
1347
|
-
function
|
|
1348
|
-
return t ? `${t}${
|
|
996
|
+
function pt(e, t) {
|
|
997
|
+
return t ? `${t}${Ft(e)}` : e;
|
|
1349
998
|
}
|
|
1350
|
-
function
|
|
999
|
+
function It(e, t) {
|
|
1351
1000
|
return t ? `-${t.toLowerCase()}-${e}` : e;
|
|
1352
1001
|
}
|
|
1353
|
-
function
|
|
1002
|
+
function Ft(e) {
|
|
1354
1003
|
let t = "", r = !0;
|
|
1355
1004
|
for (let o = 0; o < e.length; o++)
|
|
1356
1005
|
r ? (t += e[o].toUpperCase(), r = !1) : e[o] === "-" ? r = !0 : t += e[o];
|
|
1357
1006
|
return t;
|
|
1358
1007
|
}
|
|
1359
|
-
|
|
1360
|
-
Object.defineProperty(
|
|
1008
|
+
ue.default = dt();
|
|
1009
|
+
Object.defineProperty(F, "__esModule", {
|
|
1361
1010
|
value: !0
|
|
1362
1011
|
});
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
var
|
|
1382
|
-
function
|
|
1012
|
+
F.addClassName = gt;
|
|
1013
|
+
F.addEvent = Wt;
|
|
1014
|
+
F.addUserSelectStyles = Kt;
|
|
1015
|
+
F.createCSSTransform = zt;
|
|
1016
|
+
F.createSVGTransform = Vt;
|
|
1017
|
+
F.getTouch = Gt;
|
|
1018
|
+
F.getTouchIdentifier = Jt;
|
|
1019
|
+
F.getTranslation = Ye;
|
|
1020
|
+
F.innerHeight = qt;
|
|
1021
|
+
F.innerWidth = Bt;
|
|
1022
|
+
F.matchesSelector = mt;
|
|
1023
|
+
F.matchesSelectorAndParentsTo = Yt;
|
|
1024
|
+
F.offsetXYFromParent = Ht;
|
|
1025
|
+
F.outerHeight = Ut;
|
|
1026
|
+
F.outerWidth = Xt;
|
|
1027
|
+
F.removeClassName = yt;
|
|
1028
|
+
F.removeEvent = Lt;
|
|
1029
|
+
F.scheduleRemoveUserSelectStyles = Zt;
|
|
1030
|
+
var J = te, rt = ht(ue);
|
|
1031
|
+
function ht(e, t) {
|
|
1383
1032
|
if (typeof WeakMap == "function") var r = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
|
|
1384
|
-
return (
|
|
1385
|
-
if (!
|
|
1386
|
-
var
|
|
1387
|
-
if (a === null || typeof a != "object" && typeof a != "function") return
|
|
1388
|
-
if (
|
|
1389
|
-
if (
|
|
1390
|
-
|
|
1391
|
-
}
|
|
1392
|
-
for (const
|
|
1393
|
-
return
|
|
1033
|
+
return (ht = function(a, i) {
|
|
1034
|
+
if (!i && a && a.__esModule) return a;
|
|
1035
|
+
var d, u, h = { __proto__: null, default: a };
|
|
1036
|
+
if (a === null || typeof a != "object" && typeof a != "function") return h;
|
|
1037
|
+
if (d = i ? o : r) {
|
|
1038
|
+
if (d.has(a)) return d.get(a);
|
|
1039
|
+
d.set(a, h);
|
|
1040
|
+
}
|
|
1041
|
+
for (const g in a) g !== "default" && {}.hasOwnProperty.call(a, g) && ((u = (d = Object.defineProperty) && Object.getOwnPropertyDescriptor(a, g)) && (u.get || u.set) ? d(h, g, u) : h[g] = a[g]);
|
|
1042
|
+
return h;
|
|
1394
1043
|
})(e, t);
|
|
1395
1044
|
}
|
|
1396
|
-
let
|
|
1397
|
-
function
|
|
1398
|
-
return
|
|
1399
|
-
return (0,
|
|
1400
|
-
})), (0,
|
|
1045
|
+
let ve = "";
|
|
1046
|
+
function mt(e, t) {
|
|
1047
|
+
return ve || (ve = (0, J.findInArray)(["matches", "webkitMatchesSelector", "mozMatchesSelector", "msMatchesSelector", "oMatchesSelector"], function(r) {
|
|
1048
|
+
return (0, J.isFunction)(e[r]);
|
|
1049
|
+
})), (0, J.isFunction)(e[ve]) ? e[ve](t) : !1;
|
|
1401
1050
|
}
|
|
1402
|
-
function
|
|
1051
|
+
function Yt(e, t, r) {
|
|
1403
1052
|
let o = e;
|
|
1404
1053
|
do {
|
|
1405
|
-
if (
|
|
1054
|
+
if (mt(o, t)) return !0;
|
|
1406
1055
|
if (o === r) return !1;
|
|
1407
1056
|
o = o.parentNode;
|
|
1408
1057
|
} while (o);
|
|
1409
1058
|
return !1;
|
|
1410
1059
|
}
|
|
1411
|
-
function
|
|
1060
|
+
function Wt(e, t, r, o) {
|
|
1412
1061
|
if (!e) return;
|
|
1413
1062
|
const a = {
|
|
1414
1063
|
capture: !0,
|
|
@@ -1416,7 +1065,7 @@ function Br(e, t, r, o) {
|
|
|
1416
1065
|
};
|
|
1417
1066
|
e.addEventListener ? e.addEventListener(t, r, a) : e.attachEvent ? e.attachEvent("on" + t, r) : e["on" + t] = r;
|
|
1418
1067
|
}
|
|
1419
|
-
function
|
|
1068
|
+
function Lt(e, t, r, o) {
|
|
1420
1069
|
if (!e) return;
|
|
1421
1070
|
const a = {
|
|
1422
1071
|
capture: !0,
|
|
@@ -1424,79 +1073,79 @@ function Vr(e, t, r, o) {
|
|
|
1424
1073
|
};
|
|
1425
1074
|
e.removeEventListener ? e.removeEventListener(t, r, a) : e.detachEvent ? e.detachEvent("on" + t, r) : e["on" + t] = null;
|
|
1426
1075
|
}
|
|
1427
|
-
function
|
|
1076
|
+
function Ut(e) {
|
|
1428
1077
|
let t = e.clientHeight;
|
|
1429
1078
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
1430
|
-
return t += (0,
|
|
1079
|
+
return t += (0, J.int)(r.borderTopWidth), t += (0, J.int)(r.borderBottomWidth), t;
|
|
1431
1080
|
}
|
|
1432
|
-
function
|
|
1081
|
+
function Xt(e) {
|
|
1433
1082
|
let t = e.clientWidth;
|
|
1434
1083
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
1435
|
-
return t += (0,
|
|
1084
|
+
return t += (0, J.int)(r.borderLeftWidth), t += (0, J.int)(r.borderRightWidth), t;
|
|
1436
1085
|
}
|
|
1437
|
-
function
|
|
1086
|
+
function qt(e) {
|
|
1438
1087
|
let t = e.clientHeight;
|
|
1439
1088
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
1440
|
-
return t -= (0,
|
|
1089
|
+
return t -= (0, J.int)(r.paddingTop), t -= (0, J.int)(r.paddingBottom), t;
|
|
1441
1090
|
}
|
|
1442
|
-
function
|
|
1091
|
+
function Bt(e) {
|
|
1443
1092
|
let t = e.clientWidth;
|
|
1444
1093
|
const r = e.ownerDocument.defaultView.getComputedStyle(e);
|
|
1445
|
-
return t -= (0,
|
|
1094
|
+
return t -= (0, J.int)(r.paddingLeft), t -= (0, J.int)(r.paddingRight), t;
|
|
1446
1095
|
}
|
|
1447
|
-
function
|
|
1096
|
+
function Ht(e, t, r) {
|
|
1448
1097
|
const a = t === t.ownerDocument.body ? {
|
|
1449
1098
|
left: 0,
|
|
1450
1099
|
top: 0
|
|
1451
|
-
} : t.getBoundingClientRect(),
|
|
1100
|
+
} : t.getBoundingClientRect(), i = (e.clientX + t.scrollLeft - a.left) / r, d = (e.clientY + t.scrollTop - a.top) / r;
|
|
1452
1101
|
return {
|
|
1453
|
-
x:
|
|
1454
|
-
y:
|
|
1102
|
+
x: i,
|
|
1103
|
+
y: d
|
|
1455
1104
|
};
|
|
1456
1105
|
}
|
|
1457
|
-
function
|
|
1458
|
-
const r =
|
|
1106
|
+
function zt(e, t) {
|
|
1107
|
+
const r = Ye(e, t, "px");
|
|
1459
1108
|
return {
|
|
1460
|
-
[(0,
|
|
1109
|
+
[(0, rt.browserPrefixToKey)("transform", rt.default)]: r
|
|
1461
1110
|
};
|
|
1462
1111
|
}
|
|
1463
|
-
function
|
|
1464
|
-
return
|
|
1112
|
+
function Vt(e, t) {
|
|
1113
|
+
return Ye(e, t, "");
|
|
1465
1114
|
}
|
|
1466
|
-
function
|
|
1115
|
+
function Ye(e, t, r) {
|
|
1467
1116
|
let {
|
|
1468
1117
|
x: o,
|
|
1469
1118
|
y: a
|
|
1470
|
-
} = e,
|
|
1119
|
+
} = e, i = `translate(${o}${r},${a}${r})`;
|
|
1471
1120
|
if (t) {
|
|
1472
|
-
const
|
|
1473
|
-
|
|
1121
|
+
const d = `${typeof t.x == "string" ? t.x : t.x + r}`, u = `${typeof t.y == "string" ? t.y : t.y + r}`;
|
|
1122
|
+
i = `translate(${d}, ${u})` + i;
|
|
1474
1123
|
}
|
|
1475
|
-
return
|
|
1124
|
+
return i;
|
|
1476
1125
|
}
|
|
1477
|
-
function
|
|
1478
|
-
return e.targetTouches && (0,
|
|
1126
|
+
function Gt(e, t) {
|
|
1127
|
+
return e.targetTouches && (0, J.findInArray)(e.targetTouches, (r) => t === r.identifier) || e.changedTouches && (0, J.findInArray)(e.changedTouches, (r) => t === r.identifier);
|
|
1479
1128
|
}
|
|
1480
|
-
function
|
|
1129
|
+
function Jt(e) {
|
|
1481
1130
|
if (e.targetTouches && e.targetTouches[0]) return e.targetTouches[0].identifier;
|
|
1482
1131
|
if (e.changedTouches && e.changedTouches[0]) return e.changedTouches[0].identifier;
|
|
1483
1132
|
}
|
|
1484
|
-
function
|
|
1133
|
+
function Kt(e) {
|
|
1485
1134
|
if (!e) return;
|
|
1486
1135
|
let t = e.getElementById("react-draggable-style-el");
|
|
1487
1136
|
t || (t = e.createElement("style"), t.type = "text/css", t.id = "react-draggable-style-el", t.innerHTML = `.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
1488
1137
|
`, t.innerHTML += `.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
1489
|
-
`, e.getElementsByTagName("head")[0].appendChild(t)), e.body &&
|
|
1138
|
+
`, e.getElementsByTagName("head")[0].appendChild(t)), e.body && gt(e.body, "react-draggable-transparent-selection");
|
|
1490
1139
|
}
|
|
1491
|
-
function
|
|
1140
|
+
function Zt(e) {
|
|
1492
1141
|
window.requestAnimationFrame ? window.requestAnimationFrame(() => {
|
|
1493
|
-
|
|
1494
|
-
}) :
|
|
1142
|
+
nt(e);
|
|
1143
|
+
}) : nt(e);
|
|
1495
1144
|
}
|
|
1496
|
-
function
|
|
1145
|
+
function nt(e) {
|
|
1497
1146
|
if (e)
|
|
1498
1147
|
try {
|
|
1499
|
-
if (e.body &&
|
|
1148
|
+
if (e.body && yt(e.body, "react-draggable-transparent-selection"), e.selection)
|
|
1500
1149
|
e.selection.empty();
|
|
1501
1150
|
else {
|
|
1502
1151
|
const t = (e.defaultView || window).getSelection();
|
|
@@ -1505,66 +1154,66 @@ function Wt(e) {
|
|
|
1505
1154
|
} catch {
|
|
1506
1155
|
}
|
|
1507
1156
|
}
|
|
1508
|
-
function
|
|
1157
|
+
function gt(e, t) {
|
|
1509
1158
|
e.classList ? e.classList.add(t) : e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`)) || (e.className += ` ${t}`);
|
|
1510
1159
|
}
|
|
1511
|
-
function
|
|
1160
|
+
function yt(e, t) {
|
|
1512
1161
|
e.classList ? e.classList.remove(t) : e.className = e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`, "g"), "");
|
|
1513
1162
|
}
|
|
1514
|
-
var
|
|
1515
|
-
Object.defineProperty(
|
|
1163
|
+
var re = {};
|
|
1164
|
+
Object.defineProperty(re, "__esModule", {
|
|
1516
1165
|
value: !0
|
|
1517
1166
|
});
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
var
|
|
1526
|
-
function
|
|
1167
|
+
re.canDragX = tr;
|
|
1168
|
+
re.canDragY = rr;
|
|
1169
|
+
re.createCoreData = or;
|
|
1170
|
+
re.createDraggableData = ar;
|
|
1171
|
+
re.getBoundPosition = Qt;
|
|
1172
|
+
re.getControlPosition = nr;
|
|
1173
|
+
re.snapToGrid = er;
|
|
1174
|
+
var G = te, fe = F;
|
|
1175
|
+
function Qt(e, t, r) {
|
|
1527
1176
|
if (!e.props.bounds) return [t, r];
|
|
1528
1177
|
let {
|
|
1529
1178
|
bounds: o
|
|
1530
1179
|
} = e.props;
|
|
1531
|
-
o = typeof o == "string" ? o :
|
|
1532
|
-
const a =
|
|
1180
|
+
o = typeof o == "string" ? o : sr(o);
|
|
1181
|
+
const a = We(e);
|
|
1533
1182
|
if (typeof o == "string") {
|
|
1534
1183
|
const {
|
|
1535
|
-
ownerDocument:
|
|
1536
|
-
} = a,
|
|
1537
|
-
let
|
|
1538
|
-
if (o === "parent" ?
|
|
1184
|
+
ownerDocument: i
|
|
1185
|
+
} = a, d = i.defaultView;
|
|
1186
|
+
let u;
|
|
1187
|
+
if (o === "parent" ? u = a.parentNode : u = a.getRootNode().querySelector(o), !(u instanceof d.HTMLElement))
|
|
1539
1188
|
throw new Error('Bounds selector "' + o + '" could not find an element.');
|
|
1540
|
-
const
|
|
1189
|
+
const h = u, g = d.getComputedStyle(a), v = d.getComputedStyle(h);
|
|
1541
1190
|
o = {
|
|
1542
|
-
left: -a.offsetLeft + (0,
|
|
1543
|
-
top: -a.offsetTop + (0,
|
|
1544
|
-
right: (0,
|
|
1545
|
-
bottom: (0,
|
|
1191
|
+
left: -a.offsetLeft + (0, G.int)(v.paddingLeft) + (0, G.int)(g.marginLeft),
|
|
1192
|
+
top: -a.offsetTop + (0, G.int)(v.paddingTop) + (0, G.int)(g.marginTop),
|
|
1193
|
+
right: (0, fe.innerWidth)(h) - (0, fe.outerWidth)(a) - a.offsetLeft + (0, G.int)(v.paddingRight) - (0, G.int)(g.marginRight),
|
|
1194
|
+
bottom: (0, fe.innerHeight)(h) - (0, fe.outerHeight)(a) - a.offsetTop + (0, G.int)(v.paddingBottom) - (0, G.int)(g.marginBottom)
|
|
1546
1195
|
};
|
|
1547
1196
|
}
|
|
1548
|
-
return (0,
|
|
1197
|
+
return (0, G.isNum)(o.right) && (t = Math.min(t, o.right)), (0, G.isNum)(o.bottom) && (r = Math.min(r, o.bottom)), (0, G.isNum)(o.left) && (t = Math.max(t, o.left)), (0, G.isNum)(o.top) && (r = Math.max(r, o.top)), [t, r];
|
|
1549
1198
|
}
|
|
1550
|
-
function
|
|
1199
|
+
function er(e, t, r) {
|
|
1551
1200
|
const o = Math.round(t / e[0]) * e[0], a = Math.round(r / e[1]) * e[1];
|
|
1552
1201
|
return [o, a];
|
|
1553
1202
|
}
|
|
1554
|
-
function
|
|
1203
|
+
function tr(e) {
|
|
1555
1204
|
return e.props.axis === "both" || e.props.axis === "x";
|
|
1556
1205
|
}
|
|
1557
|
-
function
|
|
1206
|
+
function rr(e) {
|
|
1558
1207
|
return e.props.axis === "both" || e.props.axis === "y";
|
|
1559
1208
|
}
|
|
1560
|
-
function
|
|
1561
|
-
const o = typeof t == "number" ? (0,
|
|
1209
|
+
function nr(e, t, r) {
|
|
1210
|
+
const o = typeof t == "number" ? (0, fe.getTouch)(e, t) : null;
|
|
1562
1211
|
if (typeof t == "number" && !o) return null;
|
|
1563
|
-
const a =
|
|
1564
|
-
return (0,
|
|
1212
|
+
const a = We(r), i = r.props.offsetParent || a.offsetParent || a.ownerDocument.body;
|
|
1213
|
+
return (0, fe.offsetXYFromParent)(o || e, i, r.props.scale);
|
|
1565
1214
|
}
|
|
1566
|
-
function
|
|
1567
|
-
const o = !(0,
|
|
1215
|
+
function or(e, t, r) {
|
|
1216
|
+
const o = !(0, G.isNum)(e.lastX), a = We(e);
|
|
1568
1217
|
return o ? {
|
|
1569
1218
|
node: a,
|
|
1570
1219
|
deltaX: 0,
|
|
@@ -1583,7 +1232,7 @@ function cn(e, t, r) {
|
|
|
1583
1232
|
y: r
|
|
1584
1233
|
};
|
|
1585
1234
|
}
|
|
1586
|
-
function
|
|
1235
|
+
function ar(e, t) {
|
|
1587
1236
|
const r = e.props.scale;
|
|
1588
1237
|
return {
|
|
1589
1238
|
node: t.node,
|
|
@@ -1595,7 +1244,7 @@ function fn(e, t) {
|
|
|
1595
1244
|
lastY: e.state.y
|
|
1596
1245
|
};
|
|
1597
1246
|
}
|
|
1598
|
-
function
|
|
1247
|
+
function sr(e) {
|
|
1599
1248
|
return {
|
|
1600
1249
|
left: e.left,
|
|
1601
1250
|
top: e.top,
|
|
@@ -1603,49 +1252,49 @@ function dn(e) {
|
|
|
1603
1252
|
bottom: e.bottom
|
|
1604
1253
|
};
|
|
1605
1254
|
}
|
|
1606
|
-
function
|
|
1255
|
+
function We(e) {
|
|
1607
1256
|
const t = e.findDOMNode();
|
|
1608
1257
|
if (!t)
|
|
1609
1258
|
throw new Error("<DraggableCore>: Unmounted during event!");
|
|
1610
1259
|
return t;
|
|
1611
1260
|
}
|
|
1612
|
-
var
|
|
1613
|
-
Object.defineProperty(
|
|
1261
|
+
var Se = {}, xe = {};
|
|
1262
|
+
Object.defineProperty(xe, "__esModule", {
|
|
1614
1263
|
value: !0
|
|
1615
1264
|
});
|
|
1616
|
-
|
|
1617
|
-
function
|
|
1265
|
+
xe.default = ir;
|
|
1266
|
+
function ir() {
|
|
1618
1267
|
}
|
|
1619
|
-
Object.defineProperty(
|
|
1268
|
+
Object.defineProperty(Se, "__esModule", {
|
|
1620
1269
|
value: !0
|
|
1621
1270
|
});
|
|
1622
|
-
|
|
1623
|
-
var
|
|
1624
|
-
function
|
|
1271
|
+
Se.default = void 0;
|
|
1272
|
+
var Oe = vt(Ie), B = Le(ut), lr = Le(st), q = F, le = re, De = te, he = Le(xe);
|
|
1273
|
+
function Le(e) {
|
|
1625
1274
|
return e && e.__esModule ? e : { default: e };
|
|
1626
1275
|
}
|
|
1627
|
-
function
|
|
1276
|
+
function vt(e, t) {
|
|
1628
1277
|
if (typeof WeakMap == "function") var r = /* @__PURE__ */ new WeakMap(), o = /* @__PURE__ */ new WeakMap();
|
|
1629
|
-
return (
|
|
1630
|
-
if (!
|
|
1631
|
-
var
|
|
1632
|
-
if (a === null || typeof a != "object" && typeof a != "function") return
|
|
1633
|
-
if (
|
|
1634
|
-
if (
|
|
1635
|
-
|
|
1636
|
-
}
|
|
1637
|
-
for (const
|
|
1638
|
-
return
|
|
1278
|
+
return (vt = function(a, i) {
|
|
1279
|
+
if (!i && a && a.__esModule) return a;
|
|
1280
|
+
var d, u, h = { __proto__: null, default: a };
|
|
1281
|
+
if (a === null || typeof a != "object" && typeof a != "function") return h;
|
|
1282
|
+
if (d = i ? o : r) {
|
|
1283
|
+
if (d.has(a)) return d.get(a);
|
|
1284
|
+
d.set(a, h);
|
|
1285
|
+
}
|
|
1286
|
+
for (const g in a) g !== "default" && {}.hasOwnProperty.call(a, g) && ((u = (d = Object.defineProperty) && Object.getOwnPropertyDescriptor(a, g)) && (u.get || u.set) ? d(h, g, u) : h[g] = a[g]);
|
|
1287
|
+
return h;
|
|
1639
1288
|
})(e, t);
|
|
1640
1289
|
}
|
|
1641
|
-
function
|
|
1642
|
-
return (t =
|
|
1290
|
+
function H(e, t, r) {
|
|
1291
|
+
return (t = cr(t)) in e ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = r, e;
|
|
1643
1292
|
}
|
|
1644
|
-
function
|
|
1645
|
-
var t =
|
|
1293
|
+
function cr(e) {
|
|
1294
|
+
var t = ur(e, "string");
|
|
1646
1295
|
return typeof t == "symbol" ? t : t + "";
|
|
1647
1296
|
}
|
|
1648
|
-
function
|
|
1297
|
+
function ur(e, t) {
|
|
1649
1298
|
if (typeof e != "object" || !e) return e;
|
|
1650
1299
|
var r = e[Symbol.toPrimitive];
|
|
1651
1300
|
if (r !== void 0) {
|
|
@@ -1655,7 +1304,7 @@ function gn(e, t) {
|
|
|
1655
1304
|
}
|
|
1656
1305
|
return (t === "string" ? String : Number)(e);
|
|
1657
1306
|
}
|
|
1658
|
-
const
|
|
1307
|
+
const Z = {
|
|
1659
1308
|
touch: {
|
|
1660
1309
|
start: "touchstart",
|
|
1661
1310
|
move: "touchmove",
|
|
@@ -1667,9 +1316,9 @@ const pe = {
|
|
|
1667
1316
|
stop: "mouseup"
|
|
1668
1317
|
}
|
|
1669
1318
|
};
|
|
1670
|
-
let
|
|
1319
|
+
let ce = Z.mouse, Te = class extends Oe.Component {
|
|
1671
1320
|
constructor() {
|
|
1672
|
-
super(...arguments),
|
|
1321
|
+
super(...arguments), H(this, "dragging", !1), H(this, "lastX", NaN), H(this, "lastY", NaN), H(this, "touchIdentifier", null), H(this, "mounted", !1), H(this, "handleDragStart", (t) => {
|
|
1673
1322
|
if (this.props.onMouseDown(t), !this.props.allowAnyClick && typeof t.button == "number" && t.button !== 0) return !1;
|
|
1674
1323
|
const r = this.findDOMNode();
|
|
1675
1324
|
if (!r || !r.ownerDocument || !r.ownerDocument.body)
|
|
@@ -1677,63 +1326,63 @@ let Ee = pe.mouse, Ue = class extends tt.Component {
|
|
|
1677
1326
|
const {
|
|
1678
1327
|
ownerDocument: o
|
|
1679
1328
|
} = r;
|
|
1680
|
-
if (this.props.disabled || !(t.target instanceof o.defaultView.Node) || this.props.handle && !(0,
|
|
1329
|
+
if (this.props.disabled || !(t.target instanceof o.defaultView.Node) || this.props.handle && !(0, q.matchesSelectorAndParentsTo)(t.target, this.props.handle, r) || this.props.cancel && (0, q.matchesSelectorAndParentsTo)(t.target, this.props.cancel, r))
|
|
1681
1330
|
return;
|
|
1682
1331
|
t.type === "touchstart" && !this.props.allowMobileScroll && t.preventDefault();
|
|
1683
|
-
const a = (0,
|
|
1332
|
+
const a = (0, q.getTouchIdentifier)(t);
|
|
1684
1333
|
this.touchIdentifier = a;
|
|
1685
|
-
const
|
|
1686
|
-
if (
|
|
1334
|
+
const i = (0, le.getControlPosition)(t, a, this);
|
|
1335
|
+
if (i == null) return;
|
|
1687
1336
|
const {
|
|
1688
|
-
x:
|
|
1689
|
-
y:
|
|
1690
|
-
} =
|
|
1691
|
-
(0,
|
|
1692
|
-
}),
|
|
1693
|
-
const r = (0,
|
|
1337
|
+
x: d,
|
|
1338
|
+
y: u
|
|
1339
|
+
} = i, h = (0, le.createCoreData)(this, d, u);
|
|
1340
|
+
(0, he.default)("DraggableCore: handleDragStart: %j", h), (0, he.default)("calling", this.props.onStart), !(this.props.onStart(t, h) === !1 || this.mounted === !1) && (this.props.enableUserSelectHack && (0, q.addUserSelectStyles)(o), this.dragging = !0, this.lastX = d, this.lastY = u, (0, q.addEvent)(o, ce.move, this.handleDrag), (0, q.addEvent)(o, ce.stop, this.handleDragStop));
|
|
1341
|
+
}), H(this, "handleDrag", (t) => {
|
|
1342
|
+
const r = (0, le.getControlPosition)(t, this.touchIdentifier, this);
|
|
1694
1343
|
if (r == null) return;
|
|
1695
1344
|
let {
|
|
1696
1345
|
x: o,
|
|
1697
1346
|
y: a
|
|
1698
1347
|
} = r;
|
|
1699
1348
|
if (Array.isArray(this.props.grid)) {
|
|
1700
|
-
let
|
|
1701
|
-
if ([
|
|
1702
|
-
o = this.lastX +
|
|
1349
|
+
let u = o - this.lastX, h = a - this.lastY;
|
|
1350
|
+
if ([u, h] = (0, le.snapToGrid)(this.props.grid, u, h), !u && !h) return;
|
|
1351
|
+
o = this.lastX + u, a = this.lastY + h;
|
|
1703
1352
|
}
|
|
1704
|
-
const
|
|
1705
|
-
if ((0,
|
|
1353
|
+
const i = (0, le.createCoreData)(this, o, a);
|
|
1354
|
+
if ((0, he.default)("DraggableCore: handleDrag: %j", i), this.props.onDrag(t, i) === !1 || this.mounted === !1) {
|
|
1706
1355
|
try {
|
|
1707
1356
|
this.handleDragStop(new MouseEvent("mouseup"));
|
|
1708
1357
|
} catch {
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1358
|
+
const h = document.createEvent("MouseEvents");
|
|
1359
|
+
h.initMouseEvent("mouseup", !0, !0, window, 0, 0, 0, 0, 0, !1, !1, !1, !1, 0, null), this.handleDragStop(h);
|
|
1711
1360
|
}
|
|
1712
1361
|
return;
|
|
1713
1362
|
}
|
|
1714
1363
|
this.lastX = o, this.lastY = a;
|
|
1715
|
-
}),
|
|
1364
|
+
}), H(this, "handleDragStop", (t) => {
|
|
1716
1365
|
if (!this.dragging) return;
|
|
1717
|
-
const r = (0,
|
|
1366
|
+
const r = (0, le.getControlPosition)(t, this.touchIdentifier, this);
|
|
1718
1367
|
if (r == null) return;
|
|
1719
1368
|
let {
|
|
1720
1369
|
x: o,
|
|
1721
1370
|
y: a
|
|
1722
1371
|
} = r;
|
|
1723
1372
|
if (Array.isArray(this.props.grid)) {
|
|
1724
|
-
let
|
|
1725
|
-
[
|
|
1373
|
+
let h = o - this.lastX || 0, g = a - this.lastY || 0;
|
|
1374
|
+
[h, g] = (0, le.snapToGrid)(this.props.grid, h, g), o = this.lastX + h, a = this.lastY + g;
|
|
1726
1375
|
}
|
|
1727
|
-
const
|
|
1728
|
-
if (this.props.onStop(t,
|
|
1729
|
-
const
|
|
1730
|
-
|
|
1731
|
-
}),
|
|
1376
|
+
const i = (0, le.createCoreData)(this, o, a);
|
|
1377
|
+
if (this.props.onStop(t, i) === !1 || this.mounted === !1) return !1;
|
|
1378
|
+
const u = this.findDOMNode();
|
|
1379
|
+
u && this.props.enableUserSelectHack && (0, q.scheduleRemoveUserSelectStyles)(u.ownerDocument), (0, he.default)("DraggableCore: handleDragStop: %j", i), this.dragging = !1, this.lastX = NaN, this.lastY = NaN, u && ((0, he.default)("DraggableCore: Removing handlers"), (0, q.removeEvent)(u.ownerDocument, ce.move, this.handleDrag), (0, q.removeEvent)(u.ownerDocument, ce.stop, this.handleDragStop));
|
|
1380
|
+
}), H(this, "onMouseDown", (t) => (ce = Z.mouse, this.handleDragStart(t))), H(this, "onMouseUp", (t) => (ce = Z.mouse, this.handleDragStop(t))), H(this, "onTouchStart", (t) => (ce = Z.touch, this.handleDragStart(t))), H(this, "onTouchEnd", (t) => (ce = Z.touch, this.handleDragStop(t)));
|
|
1732
1381
|
}
|
|
1733
1382
|
componentDidMount() {
|
|
1734
1383
|
this.mounted = !0;
|
|
1735
1384
|
const t = this.findDOMNode();
|
|
1736
|
-
t && (0,
|
|
1385
|
+
t && (0, q.addEvent)(t, Z.touch.start, this.onTouchStart, {
|
|
1737
1386
|
passive: !1
|
|
1738
1387
|
});
|
|
1739
1388
|
}
|
|
@@ -1744,19 +1393,19 @@ let Ee = pe.mouse, Ue = class extends tt.Component {
|
|
|
1744
1393
|
const {
|
|
1745
1394
|
ownerDocument: r
|
|
1746
1395
|
} = t;
|
|
1747
|
-
(0,
|
|
1396
|
+
(0, q.removeEvent)(r, Z.mouse.move, this.handleDrag), (0, q.removeEvent)(r, Z.touch.move, this.handleDrag), (0, q.removeEvent)(r, Z.mouse.stop, this.handleDragStop), (0, q.removeEvent)(r, Z.touch.stop, this.handleDragStop), (0, q.removeEvent)(t, Z.touch.start, this.onTouchStart, {
|
|
1748
1397
|
passive: !1
|
|
1749
|
-
}), this.props.enableUserSelectHack && (0,
|
|
1398
|
+
}), this.props.enableUserSelectHack && (0, q.scheduleRemoveUserSelectStyles)(r);
|
|
1750
1399
|
}
|
|
1751
1400
|
}
|
|
1752
1401
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
1753
1402
|
// the underlying DOM node ourselves. See the README for more information.
|
|
1754
1403
|
findDOMNode() {
|
|
1755
1404
|
var t, r, o;
|
|
1756
|
-
return (t = this.props) != null && t.nodeRef ? (o = (r = this.props) == null ? void 0 : r.nodeRef) == null ? void 0 : o.current :
|
|
1405
|
+
return (t = this.props) != null && t.nodeRef ? (o = (r = this.props) == null ? void 0 : r.nodeRef) == null ? void 0 : o.current : lr.default.findDOMNode(this);
|
|
1757
1406
|
}
|
|
1758
1407
|
render() {
|
|
1759
|
-
return /* @__PURE__ */
|
|
1408
|
+
return /* @__PURE__ */ Oe.cloneElement(Oe.Children.only(this.props.children), {
|
|
1760
1409
|
// Note: mouseMove handler is attached to document so it will still function
|
|
1761
1410
|
// when the user drags quickly and leaves the bounds of the element.
|
|
1762
1411
|
onMouseDown: this.onMouseDown,
|
|
@@ -1768,16 +1417,16 @@ let Ee = pe.mouse, Ue = class extends tt.Component {
|
|
|
1768
1417
|
});
|
|
1769
1418
|
}
|
|
1770
1419
|
};
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1420
|
+
Se.default = Te;
|
|
1421
|
+
H(Te, "displayName", "DraggableCore");
|
|
1422
|
+
H(Te, "propTypes", {
|
|
1774
1423
|
/**
|
|
1775
1424
|
* `allowAnyClick` allows dragging using any mouse button.
|
|
1776
1425
|
* By default, we only accept the left button.
|
|
1777
1426
|
*
|
|
1778
1427
|
* Defaults to `false`.
|
|
1779
1428
|
*/
|
|
1780
|
-
allowAnyClick:
|
|
1429
|
+
allowAnyClick: B.default.bool,
|
|
1781
1430
|
/**
|
|
1782
1431
|
* `allowMobileScroll` turns off cancellation of the 'touchstart' event
|
|
1783
1432
|
* on mobile devices. Only enable this if you are having trouble with click
|
|
@@ -1785,19 +1434,19 @@ ie(Ue, "propTypes", {
|
|
|
1785
1434
|
*
|
|
1786
1435
|
* Defaults to `false`.
|
|
1787
1436
|
*/
|
|
1788
|
-
allowMobileScroll:
|
|
1789
|
-
children:
|
|
1437
|
+
allowMobileScroll: B.default.bool,
|
|
1438
|
+
children: B.default.node.isRequired,
|
|
1790
1439
|
/**
|
|
1791
1440
|
* `disabled`, if true, stops the <Draggable> from dragging. All handlers,
|
|
1792
1441
|
* with the exception of `onMouseDown`, will not fire.
|
|
1793
1442
|
*/
|
|
1794
|
-
disabled:
|
|
1443
|
+
disabled: B.default.bool,
|
|
1795
1444
|
/**
|
|
1796
1445
|
* By default, we add 'user-select:none' attributes to the document body
|
|
1797
1446
|
* to prevent ugly text selection during drag. If this is causing problems
|
|
1798
1447
|
* for your app, set this to `false`.
|
|
1799
1448
|
*/
|
|
1800
|
-
enableUserSelectHack:
|
|
1449
|
+
enableUserSelectHack: B.default.bool,
|
|
1801
1450
|
/**
|
|
1802
1451
|
* `offsetParent`, if set, uses the passed DOM node to compute drag offsets
|
|
1803
1452
|
* instead of using the parent node.
|
|
@@ -1809,7 +1458,7 @@ ie(Ue, "propTypes", {
|
|
|
1809
1458
|
/**
|
|
1810
1459
|
* `grid` specifies the x and y that dragging should snap to.
|
|
1811
1460
|
*/
|
|
1812
|
-
grid:
|
|
1461
|
+
grid: B.default.arrayOf(B.default.number),
|
|
1813
1462
|
/**
|
|
1814
1463
|
* `handle` specifies a selector to be used as the handle that initiates drag.
|
|
1815
1464
|
*
|
|
@@ -1830,7 +1479,7 @@ ie(Ue, "propTypes", {
|
|
|
1830
1479
|
* });
|
|
1831
1480
|
* ```
|
|
1832
1481
|
*/
|
|
1833
|
-
handle:
|
|
1482
|
+
handle: B.default.string,
|
|
1834
1483
|
/**
|
|
1835
1484
|
* `cancel` specifies a selector to be used to prevent drag initialization.
|
|
1836
1485
|
*
|
|
@@ -1851,7 +1500,7 @@ ie(Ue, "propTypes", {
|
|
|
1851
1500
|
* });
|
|
1852
1501
|
* ```
|
|
1853
1502
|
*/
|
|
1854
|
-
cancel:
|
|
1503
|
+
cancel: B.default.string,
|
|
1855
1504
|
/* If running in React Strict mode, ReactDOM.findDOMNode() is deprecated.
|
|
1856
1505
|
* Unfortunately, in order for <Draggable> to work properly, we need raw access
|
|
1857
1506
|
* to the underlying DOM node. If you want to avoid the warning, pass a `nodeRef`
|
|
@@ -1869,39 +1518,39 @@ ie(Ue, "propTypes", {
|
|
|
1869
1518
|
* This can be used for arbitrarily nested components, so long as the ref ends up
|
|
1870
1519
|
* pointing to the actual child DOM node and not a custom component.
|
|
1871
1520
|
*/
|
|
1872
|
-
nodeRef:
|
|
1521
|
+
nodeRef: B.default.object,
|
|
1873
1522
|
/**
|
|
1874
1523
|
* Called when dragging starts.
|
|
1875
1524
|
* If this function returns the boolean false, dragging will be canceled.
|
|
1876
1525
|
*/
|
|
1877
|
-
onStart:
|
|
1526
|
+
onStart: B.default.func,
|
|
1878
1527
|
/**
|
|
1879
1528
|
* Called while dragging.
|
|
1880
1529
|
* If this function returns the boolean false, dragging will be canceled.
|
|
1881
1530
|
*/
|
|
1882
|
-
onDrag:
|
|
1531
|
+
onDrag: B.default.func,
|
|
1883
1532
|
/**
|
|
1884
1533
|
* Called when dragging stops.
|
|
1885
1534
|
* If this function returns the boolean false, the drag will remain active.
|
|
1886
1535
|
*/
|
|
1887
|
-
onStop:
|
|
1536
|
+
onStop: B.default.func,
|
|
1888
1537
|
/**
|
|
1889
1538
|
* A workaround option which can be passed if onMouseDown needs to be accessed,
|
|
1890
1539
|
* since it'll always be blocked (as there is internal use of onMouseDown)
|
|
1891
1540
|
*/
|
|
1892
|
-
onMouseDown:
|
|
1541
|
+
onMouseDown: B.default.func,
|
|
1893
1542
|
/**
|
|
1894
1543
|
* `scale`, if set, applies scaling while dragging an element
|
|
1895
1544
|
*/
|
|
1896
|
-
scale:
|
|
1545
|
+
scale: B.default.number,
|
|
1897
1546
|
/**
|
|
1898
1547
|
* These properties should be defined on the child, not here.
|
|
1899
1548
|
*/
|
|
1900
|
-
className:
|
|
1901
|
-
style:
|
|
1902
|
-
transform:
|
|
1549
|
+
className: De.dontSetMe,
|
|
1550
|
+
style: De.dontSetMe,
|
|
1551
|
+
transform: De.dontSetMe
|
|
1903
1552
|
});
|
|
1904
|
-
|
|
1553
|
+
H(Te, "defaultProps", {
|
|
1905
1554
|
allowAnyClick: !1,
|
|
1906
1555
|
// by default only accept left click
|
|
1907
1556
|
allowMobileScroll: !1,
|
|
@@ -1923,65 +1572,65 @@ ie(Ue, "defaultProps", {
|
|
|
1923
1572
|
}), Object.defineProperty(e, "DraggableCore", {
|
|
1924
1573
|
enumerable: !0,
|
|
1925
1574
|
get: function() {
|
|
1926
|
-
return
|
|
1575
|
+
return h.default;
|
|
1927
1576
|
}
|
|
1928
1577
|
}), e.default = void 0;
|
|
1929
|
-
var t =
|
|
1930
|
-
function
|
|
1931
|
-
return
|
|
1578
|
+
var t = P(Ie), r = v(ut), o = v(st), a = Dt, i = F, d = re, u = te, h = v(Se), g = v(xe);
|
|
1579
|
+
function v(_) {
|
|
1580
|
+
return _ && _.__esModule ? _ : { default: _ };
|
|
1932
1581
|
}
|
|
1933
|
-
function
|
|
1934
|
-
if (typeof WeakMap == "function") var
|
|
1935
|
-
return (
|
|
1936
|
-
if (!
|
|
1937
|
-
var
|
|
1938
|
-
if (
|
|
1939
|
-
if (
|
|
1940
|
-
if (
|
|
1941
|
-
|
|
1582
|
+
function P(_, x) {
|
|
1583
|
+
if (typeof WeakMap == "function") var E = /* @__PURE__ */ new WeakMap(), S = /* @__PURE__ */ new WeakMap();
|
|
1584
|
+
return (P = function(s, R) {
|
|
1585
|
+
if (!R && s && s.__esModule) return s;
|
|
1586
|
+
var L, U, Y = { __proto__: null, default: s };
|
|
1587
|
+
if (s === null || typeof s != "object" && typeof s != "function") return Y;
|
|
1588
|
+
if (L = R ? S : E) {
|
|
1589
|
+
if (L.has(s)) return L.get(s);
|
|
1590
|
+
L.set(s, Y);
|
|
1942
1591
|
}
|
|
1943
|
-
for (const
|
|
1944
|
-
return
|
|
1945
|
-
})(
|
|
1592
|
+
for (const W in s) W !== "default" && {}.hasOwnProperty.call(s, W) && ((U = (L = Object.defineProperty) && Object.getOwnPropertyDescriptor(s, W)) && (U.get || U.set) ? L(Y, W, U) : Y[W] = s[W]);
|
|
1593
|
+
return Y;
|
|
1594
|
+
})(_, x);
|
|
1946
1595
|
}
|
|
1947
1596
|
function A() {
|
|
1948
|
-
return A = Object.assign ? Object.assign.bind() : function(
|
|
1949
|
-
for (var
|
|
1950
|
-
var
|
|
1951
|
-
for (var S in
|
|
1597
|
+
return A = Object.assign ? Object.assign.bind() : function(_) {
|
|
1598
|
+
for (var x = 1; x < arguments.length; x++) {
|
|
1599
|
+
var E = arguments[x];
|
|
1600
|
+
for (var S in E) ({}).hasOwnProperty.call(E, S) && (_[S] = E[S]);
|
|
1952
1601
|
}
|
|
1953
|
-
return
|
|
1602
|
+
return _;
|
|
1954
1603
|
}, A.apply(null, arguments);
|
|
1955
1604
|
}
|
|
1956
|
-
function
|
|
1957
|
-
return (
|
|
1605
|
+
function N(_, x, E) {
|
|
1606
|
+
return (x = I(x)) in _ ? Object.defineProperty(_, x, { value: E, enumerable: !0, configurable: !0, writable: !0 }) : _[x] = E, _;
|
|
1958
1607
|
}
|
|
1959
|
-
function
|
|
1960
|
-
var
|
|
1961
|
-
return typeof
|
|
1608
|
+
function I(_) {
|
|
1609
|
+
var x = $(_, "string");
|
|
1610
|
+
return typeof x == "symbol" ? x : x + "";
|
|
1962
1611
|
}
|
|
1963
|
-
function
|
|
1964
|
-
if (typeof
|
|
1965
|
-
var
|
|
1966
|
-
if (
|
|
1967
|
-
var S =
|
|
1612
|
+
function $(_, x) {
|
|
1613
|
+
if (typeof _ != "object" || !_) return _;
|
|
1614
|
+
var E = _[Symbol.toPrimitive];
|
|
1615
|
+
if (E !== void 0) {
|
|
1616
|
+
var S = E.call(_, x);
|
|
1968
1617
|
if (typeof S != "object") return S;
|
|
1969
1618
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1970
1619
|
}
|
|
1971
|
-
return (
|
|
1620
|
+
return (x === "string" ? String : Number)(_);
|
|
1972
1621
|
}
|
|
1973
|
-
class
|
|
1622
|
+
class T extends t.Component {
|
|
1974
1623
|
// React 16.3+
|
|
1975
1624
|
// Arity (props, state)
|
|
1976
|
-
static getDerivedStateFromProps(
|
|
1625
|
+
static getDerivedStateFromProps(x, E) {
|
|
1977
1626
|
let {
|
|
1978
1627
|
position: S
|
|
1979
|
-
} =
|
|
1980
|
-
prevPropsPosition:
|
|
1981
|
-
} =
|
|
1982
|
-
return S && (!
|
|
1628
|
+
} = x, {
|
|
1629
|
+
prevPropsPosition: s
|
|
1630
|
+
} = E;
|
|
1631
|
+
return S && (!s || S.x !== s.x || S.y !== s.y) ? ((0, g.default)("Draggable: getDerivedStateFromProps %j", {
|
|
1983
1632
|
position: S,
|
|
1984
|
-
prevPropsPosition:
|
|
1633
|
+
prevPropsPosition: s
|
|
1985
1634
|
}), {
|
|
1986
1635
|
x: S.x,
|
|
1987
1636
|
y: S.y,
|
|
@@ -1990,66 +1639,66 @@ ie(Ue, "defaultProps", {
|
|
|
1990
1639
|
}
|
|
1991
1640
|
}) : null;
|
|
1992
1641
|
}
|
|
1993
|
-
constructor(
|
|
1994
|
-
super(
|
|
1995
|
-
if ((0,
|
|
1642
|
+
constructor(x) {
|
|
1643
|
+
super(x), N(this, "onDragStart", (E, S) => {
|
|
1644
|
+
if ((0, g.default)("Draggable: onDragStart: %j", S), this.props.onStart(E, (0, d.createDraggableData)(this, S)) === !1) return !1;
|
|
1996
1645
|
this.setState({
|
|
1997
1646
|
dragging: !0,
|
|
1998
1647
|
dragged: !0
|
|
1999
1648
|
});
|
|
2000
|
-
}),
|
|
1649
|
+
}), N(this, "onDrag", (E, S) => {
|
|
2001
1650
|
if (!this.state.dragging) return !1;
|
|
2002
|
-
(0,
|
|
2003
|
-
const
|
|
2004
|
-
x:
|
|
2005
|
-
y:
|
|
1651
|
+
(0, g.default)("Draggable: onDrag: %j", S);
|
|
1652
|
+
const s = (0, d.createDraggableData)(this, S), R = {
|
|
1653
|
+
x: s.x,
|
|
1654
|
+
y: s.y,
|
|
2006
1655
|
slackX: 0,
|
|
2007
1656
|
slackY: 0
|
|
2008
1657
|
};
|
|
2009
1658
|
if (this.props.bounds) {
|
|
2010
1659
|
const {
|
|
2011
|
-
x:
|
|
2012
|
-
y:
|
|
2013
|
-
} =
|
|
2014
|
-
|
|
2015
|
-
const [
|
|
2016
|
-
|
|
1660
|
+
x: U,
|
|
1661
|
+
y: Y
|
|
1662
|
+
} = R;
|
|
1663
|
+
R.x += this.state.slackX, R.y += this.state.slackY;
|
|
1664
|
+
const [W, ne] = (0, d.getBoundPosition)(this, R.x, R.y);
|
|
1665
|
+
R.x = W, R.y = ne, R.slackX = this.state.slackX + (U - R.x), R.slackY = this.state.slackY + (Y - R.y), s.x = R.x, s.y = R.y, s.deltaX = R.x - this.state.x, s.deltaY = R.y - this.state.y;
|
|
2017
1666
|
}
|
|
2018
|
-
if (this.props.onDrag(
|
|
2019
|
-
this.setState(
|
|
2020
|
-
}),
|
|
2021
|
-
if (!this.state.dragging || this.props.onStop(
|
|
2022
|
-
(0,
|
|
2023
|
-
const
|
|
1667
|
+
if (this.props.onDrag(E, s) === !1) return !1;
|
|
1668
|
+
this.setState(R);
|
|
1669
|
+
}), N(this, "onDragStop", (E, S) => {
|
|
1670
|
+
if (!this.state.dragging || this.props.onStop(E, (0, d.createDraggableData)(this, S)) === !1) return !1;
|
|
1671
|
+
(0, g.default)("Draggable: onDragStop: %j", S);
|
|
1672
|
+
const R = {
|
|
2024
1673
|
dragging: !1,
|
|
2025
1674
|
slackX: 0,
|
|
2026
1675
|
slackY: 0
|
|
2027
1676
|
};
|
|
2028
1677
|
if (!!this.props.position) {
|
|
2029
1678
|
const {
|
|
2030
|
-
x:
|
|
2031
|
-
y:
|
|
1679
|
+
x: U,
|
|
1680
|
+
y: Y
|
|
2032
1681
|
} = this.props.position;
|
|
2033
|
-
|
|
1682
|
+
R.x = U, R.y = Y;
|
|
2034
1683
|
}
|
|
2035
|
-
this.setState(
|
|
1684
|
+
this.setState(R);
|
|
2036
1685
|
}), this.state = {
|
|
2037
1686
|
// Whether or not we are currently dragging.
|
|
2038
1687
|
dragging: !1,
|
|
2039
1688
|
// Whether or not we have been dragged before.
|
|
2040
1689
|
dragged: !1,
|
|
2041
1690
|
// Current transform x and y.
|
|
2042
|
-
x:
|
|
2043
|
-
y:
|
|
1691
|
+
x: x.position ? x.position.x : x.defaultPosition.x,
|
|
1692
|
+
y: x.position ? x.position.y : x.defaultPosition.y,
|
|
2044
1693
|
prevPropsPosition: {
|
|
2045
|
-
...
|
|
1694
|
+
...x.position
|
|
2046
1695
|
},
|
|
2047
1696
|
// Used for compensating for out-of-bounds drags
|
|
2048
1697
|
slackX: 0,
|
|
2049
1698
|
slackY: 0,
|
|
2050
1699
|
// Can only determine if SVG after mounting
|
|
2051
1700
|
isElementSVG: !1
|
|
2052
|
-
},
|
|
1701
|
+
}, x.position && !(x.onDrag || x.onStop) && console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.");
|
|
2053
1702
|
}
|
|
2054
1703
|
componentDidMount() {
|
|
2055
1704
|
typeof window.SVGElement < "u" && this.findDOMNode() instanceof window.SVGElement && this.setState({
|
|
@@ -2064,52 +1713,52 @@ ie(Ue, "defaultProps", {
|
|
|
2064
1713
|
// React Strict Mode compatibility: if `nodeRef` is passed, we will use it instead of trying to find
|
|
2065
1714
|
// the underlying DOM node ourselves. See the README for more information.
|
|
2066
1715
|
findDOMNode() {
|
|
2067
|
-
var
|
|
2068
|
-
return ((
|
|
1716
|
+
var x, E;
|
|
1717
|
+
return ((E = (x = this.props) == null ? void 0 : x.nodeRef) == null ? void 0 : E.current) ?? o.default.findDOMNode(this);
|
|
2069
1718
|
}
|
|
2070
1719
|
render() {
|
|
2071
1720
|
const {
|
|
2072
|
-
axis:
|
|
2073
|
-
bounds:
|
|
1721
|
+
axis: x,
|
|
1722
|
+
bounds: E,
|
|
2074
1723
|
children: S,
|
|
2075
|
-
defaultPosition:
|
|
2076
|
-
defaultClassName:
|
|
2077
|
-
defaultClassNameDragging:
|
|
2078
|
-
defaultClassNameDragged:
|
|
2079
|
-
position:
|
|
2080
|
-
positionOffset:
|
|
2081
|
-
scale:
|
|
2082
|
-
...
|
|
1724
|
+
defaultPosition: s,
|
|
1725
|
+
defaultClassName: R,
|
|
1726
|
+
defaultClassNameDragging: L,
|
|
1727
|
+
defaultClassNameDragged: U,
|
|
1728
|
+
position: Y,
|
|
1729
|
+
positionOffset: W,
|
|
1730
|
+
scale: ne,
|
|
1731
|
+
...oe
|
|
2083
1732
|
} = this.props;
|
|
2084
|
-
let
|
|
2085
|
-
const
|
|
1733
|
+
let ae = {}, K = null;
|
|
1734
|
+
const X = !!!Y || this.state.dragging, V = Y || s, Q = {
|
|
2086
1735
|
// Set left if horizontal drag is enabled
|
|
2087
|
-
x: (0,
|
|
1736
|
+
x: (0, d.canDragX)(this) && X ? this.state.x : V.x,
|
|
2088
1737
|
// Set top if vertical drag is enabled
|
|
2089
|
-
y: (0,
|
|
1738
|
+
y: (0, d.canDragY)(this) && X ? this.state.y : V.y
|
|
2090
1739
|
};
|
|
2091
|
-
this.state.isElementSVG ? K = (0,
|
|
2092
|
-
const
|
|
2093
|
-
[
|
|
2094
|
-
[
|
|
1740
|
+
this.state.isElementSVG ? K = (0, i.createSVGTransform)(Q, W) : ae = (0, i.createCSSTransform)(Q, W);
|
|
1741
|
+
const ie = (0, a.clsx)(S.props.className || "", R, {
|
|
1742
|
+
[L]: this.state.dragging,
|
|
1743
|
+
[U]: this.state.dragged
|
|
2095
1744
|
});
|
|
2096
|
-
return /* @__PURE__ */ t.createElement(
|
|
1745
|
+
return /* @__PURE__ */ t.createElement(h.default, A({}, oe, {
|
|
2097
1746
|
onStart: this.onDragStart,
|
|
2098
1747
|
onDrag: this.onDrag,
|
|
2099
1748
|
onStop: this.onDragStop
|
|
2100
1749
|
}), /* @__PURE__ */ t.cloneElement(t.Children.only(S), {
|
|
2101
|
-
className:
|
|
1750
|
+
className: ie,
|
|
2102
1751
|
style: {
|
|
2103
1752
|
...S.props.style,
|
|
2104
|
-
...
|
|
1753
|
+
...ae
|
|
2105
1754
|
},
|
|
2106
1755
|
transform: K
|
|
2107
1756
|
}));
|
|
2108
1757
|
}
|
|
2109
1758
|
}
|
|
2110
|
-
e.default =
|
|
1759
|
+
e.default = T, N(T, "displayName", "Draggable"), N(T, "propTypes", {
|
|
2111
1760
|
// Accepts all props <DraggableCore> accepts.
|
|
2112
|
-
...
|
|
1761
|
+
...h.default.propTypes,
|
|
2113
1762
|
/**
|
|
2114
1763
|
* `axis` determines which axis the draggable can move.
|
|
2115
1764
|
*
|
|
@@ -2211,11 +1860,11 @@ ie(Ue, "defaultProps", {
|
|
|
2211
1860
|
/**
|
|
2212
1861
|
* These properties should be defined on the child, not here.
|
|
2213
1862
|
*/
|
|
2214
|
-
className:
|
|
2215
|
-
style:
|
|
2216
|
-
transform:
|
|
2217
|
-
}),
|
|
2218
|
-
...
|
|
1863
|
+
className: u.dontSetMe,
|
|
1864
|
+
style: u.dontSetMe,
|
|
1865
|
+
transform: u.dontSetMe
|
|
1866
|
+
}), N(T, "defaultProps", {
|
|
1867
|
+
...h.default.defaultProps,
|
|
2219
1868
|
axis: "both",
|
|
2220
1869
|
bounds: !1,
|
|
2221
1870
|
defaultClassName: "react-draggable",
|
|
@@ -2227,41 +1876,41 @@ ie(Ue, "defaultProps", {
|
|
|
2227
1876
|
},
|
|
2228
1877
|
scale: 1
|
|
2229
1878
|
});
|
|
2230
|
-
})(
|
|
1879
|
+
})(it);
|
|
2231
1880
|
const {
|
|
2232
|
-
default:
|
|
2233
|
-
DraggableCore:
|
|
2234
|
-
} =
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
var
|
|
2239
|
-
const
|
|
1881
|
+
default: bt,
|
|
1882
|
+
DraggableCore: fr
|
|
1883
|
+
} = it;
|
|
1884
|
+
be.exports = bt;
|
|
1885
|
+
be.exports.default = bt;
|
|
1886
|
+
be.exports.DraggableCore = fr;
|
|
1887
|
+
var dr = be.exports;
|
|
1888
|
+
const pr = /* @__PURE__ */ St(dr), hr = ({
|
|
2240
1889
|
title: e,
|
|
2241
1890
|
collapsed: t = !1,
|
|
2242
1891
|
draggable: r = !0,
|
|
2243
1892
|
position: o = { x: 20, y: 20 },
|
|
2244
1893
|
children: a
|
|
2245
1894
|
}) => {
|
|
2246
|
-
const [
|
|
2247
|
-
return /* @__PURE__ */
|
|
2248
|
-
|
|
1895
|
+
const [i, d] = me(t);
|
|
1896
|
+
return /* @__PURE__ */ c.jsx(
|
|
1897
|
+
pr,
|
|
2249
1898
|
{
|
|
2250
1899
|
handle: ".font-controls-header",
|
|
2251
1900
|
disabled: !r,
|
|
2252
1901
|
defaultPosition: o,
|
|
2253
1902
|
bounds: "parent",
|
|
2254
|
-
children: /* @__PURE__ */
|
|
2255
|
-
/* @__PURE__ */
|
|
2256
|
-
/* @__PURE__ */
|
|
2257
|
-
/* @__PURE__ */
|
|
1903
|
+
children: /* @__PURE__ */ c.jsxs("div", { className: "font-controls-panel", children: [
|
|
1904
|
+
/* @__PURE__ */ c.jsxs("div", { className: "font-controls-header", children: [
|
|
1905
|
+
/* @__PURE__ */ c.jsx("h3", { className: "font-controls-title", children: e }),
|
|
1906
|
+
/* @__PURE__ */ c.jsx(
|
|
2258
1907
|
"button",
|
|
2259
1908
|
{
|
|
2260
|
-
className: `font-controls-toggle ${
|
|
2261
|
-
onClick: () =>
|
|
1909
|
+
className: `font-controls-toggle ${i ? "collapsed" : ""}`,
|
|
1910
|
+
onClick: () => d(!i),
|
|
2262
1911
|
type: "button",
|
|
2263
|
-
"aria-label":
|
|
2264
|
-
children: /* @__PURE__ */
|
|
1912
|
+
"aria-label": i ? "Expand" : "Collapse",
|
|
1913
|
+
children: /* @__PURE__ */ c.jsx(
|
|
2265
1914
|
"svg",
|
|
2266
1915
|
{
|
|
2267
1916
|
viewBox: "0 0 24 24",
|
|
@@ -2270,42 +1919,42 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2270
1919
|
strokeWidth: "2",
|
|
2271
1920
|
strokeLinecap: "round",
|
|
2272
1921
|
strokeLinejoin: "round",
|
|
2273
|
-
children: /* @__PURE__ */
|
|
1922
|
+
children: /* @__PURE__ */ c.jsx("polyline", { points: "6 9 12 15 18 9" })
|
|
2274
1923
|
}
|
|
2275
1924
|
)
|
|
2276
1925
|
}
|
|
2277
1926
|
)
|
|
2278
1927
|
] }),
|
|
2279
|
-
!
|
|
1928
|
+
!i && /* @__PURE__ */ c.jsx("div", { className: "font-controls-content", children: a })
|
|
2280
1929
|
] })
|
|
2281
1930
|
}
|
|
2282
1931
|
);
|
|
2283
|
-
},
|
|
1932
|
+
}, mr = ({
|
|
2284
1933
|
value: e,
|
|
2285
1934
|
onChange: t,
|
|
2286
1935
|
fontFamilies: r
|
|
2287
|
-
}) => /* @__PURE__ */
|
|
2288
|
-
/* @__PURE__ */
|
|
2289
|
-
/* @__PURE__ */
|
|
1936
|
+
}) => /* @__PURE__ */ c.jsxs("div", { className: "font-control-group", children: [
|
|
1937
|
+
/* @__PURE__ */ c.jsx("label", { className: "font-control-label", children: "Font Family" }),
|
|
1938
|
+
/* @__PURE__ */ c.jsx(
|
|
2290
1939
|
"select",
|
|
2291
1940
|
{
|
|
2292
1941
|
className: "font-control-input font-control-select",
|
|
2293
1942
|
value: e,
|
|
2294
1943
|
onChange: (o) => t(o.target.value),
|
|
2295
1944
|
style: { fontFamily: e },
|
|
2296
|
-
children: r.map((o) => /* @__PURE__ */
|
|
1945
|
+
children: r.map((o) => /* @__PURE__ */ c.jsx("option", { value: o, style: { fontFamily: o }, children: o }, o))
|
|
2297
1946
|
}
|
|
2298
1947
|
)
|
|
2299
|
-
] }),
|
|
1948
|
+
] }), gr = ({
|
|
2300
1949
|
value: e,
|
|
2301
1950
|
onChange: t,
|
|
2302
1951
|
min: r,
|
|
2303
1952
|
max: o,
|
|
2304
1953
|
step: a
|
|
2305
|
-
}) => /* @__PURE__ */
|
|
2306
|
-
/* @__PURE__ */
|
|
2307
|
-
/* @__PURE__ */
|
|
2308
|
-
/* @__PURE__ */
|
|
1954
|
+
}) => /* @__PURE__ */ c.jsxs("div", { className: "font-control-group", children: [
|
|
1955
|
+
/* @__PURE__ */ c.jsx("label", { className: "font-control-label", children: "Font Size" }),
|
|
1956
|
+
/* @__PURE__ */ c.jsxs("div", { className: "font-control-slider-container", children: [
|
|
1957
|
+
/* @__PURE__ */ c.jsx(
|
|
2309
1958
|
"input",
|
|
2310
1959
|
{
|
|
2311
1960
|
type: "range",
|
|
@@ -2314,10 +1963,10 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2314
1963
|
max: o,
|
|
2315
1964
|
step: a,
|
|
2316
1965
|
value: e,
|
|
2317
|
-
onChange: (
|
|
1966
|
+
onChange: (i) => t(Number(i.target.value))
|
|
2318
1967
|
}
|
|
2319
1968
|
),
|
|
2320
|
-
/* @__PURE__ */
|
|
1969
|
+
/* @__PURE__ */ c.jsx(
|
|
2321
1970
|
"input",
|
|
2322
1971
|
{
|
|
2323
1972
|
type: "number",
|
|
@@ -2326,11 +1975,11 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2326
1975
|
max: o,
|
|
2327
1976
|
step: a,
|
|
2328
1977
|
value: e,
|
|
2329
|
-
onChange: (
|
|
1978
|
+
onChange: (i) => t(Number(i.target.value))
|
|
2330
1979
|
}
|
|
2331
1980
|
)
|
|
2332
1981
|
] })
|
|
2333
|
-
] }),
|
|
1982
|
+
] }), yr = [
|
|
2334
1983
|
{ value: 100, label: "Thin" },
|
|
2335
1984
|
{ value: 200, label: "Extra Light" },
|
|
2336
1985
|
{ value: 300, label: "Light" },
|
|
@@ -2340,18 +1989,18 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2340
1989
|
{ value: 700, label: "Bold" },
|
|
2341
1990
|
{ value: 800, label: "Extra Bold" },
|
|
2342
1991
|
{ value: 900, label: "Black" }
|
|
2343
|
-
],
|
|
1992
|
+
], vr = ({
|
|
2344
1993
|
value: e,
|
|
2345
1994
|
onChange: t
|
|
2346
|
-
}) => /* @__PURE__ */
|
|
2347
|
-
/* @__PURE__ */
|
|
2348
|
-
/* @__PURE__ */
|
|
1995
|
+
}) => /* @__PURE__ */ c.jsxs("div", { className: "font-control-group", children: [
|
|
1996
|
+
/* @__PURE__ */ c.jsx("label", { className: "font-control-label", children: "Font Weight" }),
|
|
1997
|
+
/* @__PURE__ */ c.jsx(
|
|
2349
1998
|
"select",
|
|
2350
1999
|
{
|
|
2351
2000
|
className: "font-control-input font-control-select",
|
|
2352
2001
|
value: e,
|
|
2353
2002
|
onChange: (r) => t(Number(r.target.value)),
|
|
2354
|
-
children:
|
|
2003
|
+
children: yr.map((r) => /* @__PURE__ */ c.jsxs("option", { value: r.value, children: [
|
|
2355
2004
|
r.label,
|
|
2356
2005
|
" (",
|
|
2357
2006
|
r.value,
|
|
@@ -2359,13 +2008,13 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2359
2008
|
] }, r.value))
|
|
2360
2009
|
}
|
|
2361
2010
|
)
|
|
2362
|
-
] }),
|
|
2011
|
+
] }), br = ({
|
|
2363
2012
|
value: e,
|
|
2364
2013
|
onChange: t
|
|
2365
|
-
}) => /* @__PURE__ */
|
|
2366
|
-
/* @__PURE__ */
|
|
2367
|
-
/* @__PURE__ */
|
|
2368
|
-
/* @__PURE__ */
|
|
2014
|
+
}) => /* @__PURE__ */ c.jsxs("div", { className: "font-control-group", children: [
|
|
2015
|
+
/* @__PURE__ */ c.jsx("label", { className: "font-control-label", children: "Line Height" }),
|
|
2016
|
+
/* @__PURE__ */ c.jsxs("div", { className: "font-control-slider-container", children: [
|
|
2017
|
+
/* @__PURE__ */ c.jsx(
|
|
2369
2018
|
"input",
|
|
2370
2019
|
{
|
|
2371
2020
|
type: "range",
|
|
@@ -2377,7 +2026,7 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2377
2026
|
onChange: (r) => t(Number(r.target.value))
|
|
2378
2027
|
}
|
|
2379
2028
|
),
|
|
2380
|
-
/* @__PURE__ */
|
|
2029
|
+
/* @__PURE__ */ c.jsx(
|
|
2381
2030
|
"input",
|
|
2382
2031
|
{
|
|
2383
2032
|
type: "number",
|
|
@@ -2390,13 +2039,13 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2390
2039
|
}
|
|
2391
2040
|
)
|
|
2392
2041
|
] })
|
|
2393
|
-
] }),
|
|
2042
|
+
] }), Sr = ({
|
|
2394
2043
|
value: e,
|
|
2395
2044
|
onChange: t
|
|
2396
|
-
}) => /* @__PURE__ */
|
|
2397
|
-
/* @__PURE__ */
|
|
2398
|
-
/* @__PURE__ */
|
|
2399
|
-
/* @__PURE__ */
|
|
2045
|
+
}) => /* @__PURE__ */ c.jsxs("div", { className: "font-control-group", children: [
|
|
2046
|
+
/* @__PURE__ */ c.jsx("label", { className: "font-control-label", children: "Letter Spacing" }),
|
|
2047
|
+
/* @__PURE__ */ c.jsxs("div", { className: "font-control-slider-container", children: [
|
|
2048
|
+
/* @__PURE__ */ c.jsx(
|
|
2400
2049
|
"input",
|
|
2401
2050
|
{
|
|
2402
2051
|
type: "range",
|
|
@@ -2408,7 +2057,7 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2408
2057
|
onChange: (r) => t(Number(r.target.value))
|
|
2409
2058
|
}
|
|
2410
2059
|
),
|
|
2411
|
-
/* @__PURE__ */
|
|
2060
|
+
/* @__PURE__ */ c.jsx(
|
|
2412
2061
|
"input",
|
|
2413
2062
|
{
|
|
2414
2063
|
type: "number",
|
|
@@ -2421,32 +2070,32 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2421
2070
|
}
|
|
2422
2071
|
)
|
|
2423
2072
|
] })
|
|
2424
|
-
] }),
|
|
2073
|
+
] }), xr = [
|
|
2425
2074
|
{ value: "none", label: "None" },
|
|
2426
2075
|
{ value: "uppercase", label: "UPPERCASE" },
|
|
2427
2076
|
{ value: "lowercase", label: "lowercase" },
|
|
2428
2077
|
{ value: "capitalize", label: "Capitalize" }
|
|
2429
|
-
],
|
|
2078
|
+
], Tr = ({
|
|
2430
2079
|
value: e,
|
|
2431
2080
|
onChange: t
|
|
2432
|
-
}) => /* @__PURE__ */
|
|
2433
|
-
/* @__PURE__ */
|
|
2434
|
-
/* @__PURE__ */
|
|
2081
|
+
}) => /* @__PURE__ */ c.jsxs("div", { className: "font-control-group", children: [
|
|
2082
|
+
/* @__PURE__ */ c.jsx("label", { className: "font-control-label", children: "Text Transform" }),
|
|
2083
|
+
/* @__PURE__ */ c.jsx(
|
|
2435
2084
|
"select",
|
|
2436
2085
|
{
|
|
2437
2086
|
className: "font-control-input font-control-select",
|
|
2438
2087
|
value: e,
|
|
2439
2088
|
onChange: (r) => t(r.target.value),
|
|
2440
|
-
children:
|
|
2089
|
+
children: xr.map((r) => /* @__PURE__ */ c.jsx("option", { value: r.value, children: r.label }, r.value))
|
|
2441
2090
|
}
|
|
2442
2091
|
)
|
|
2443
|
-
] }),
|
|
2092
|
+
] }), Er = ({
|
|
2444
2093
|
value: e,
|
|
2445
2094
|
onChange: t
|
|
2446
|
-
}) => /* @__PURE__ */
|
|
2447
|
-
/* @__PURE__ */
|
|
2448
|
-
/* @__PURE__ */
|
|
2449
|
-
/* @__PURE__ */
|
|
2095
|
+
}) => /* @__PURE__ */ c.jsxs("div", { className: "font-control-group", children: [
|
|
2096
|
+
/* @__PURE__ */ c.jsx("label", { className: "font-control-label", children: "Text Color" }),
|
|
2097
|
+
/* @__PURE__ */ c.jsxs("div", { className: "font-control-color-input", children: [
|
|
2098
|
+
/* @__PURE__ */ c.jsx("div", { className: "font-control-color-preview", children: /* @__PURE__ */ c.jsx(
|
|
2450
2099
|
"input",
|
|
2451
2100
|
{
|
|
2452
2101
|
type: "color",
|
|
@@ -2454,7 +2103,7 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2454
2103
|
onChange: (r) => t(r.target.value)
|
|
2455
2104
|
}
|
|
2456
2105
|
) }),
|
|
2457
|
-
/* @__PURE__ */
|
|
2106
|
+
/* @__PURE__ */ c.jsx(
|
|
2458
2107
|
"input",
|
|
2459
2108
|
{
|
|
2460
2109
|
type: "text",
|
|
@@ -2465,17 +2114,17 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2465
2114
|
}
|
|
2466
2115
|
)
|
|
2467
2116
|
] })
|
|
2468
|
-
] }),
|
|
2117
|
+
] }), _r = [
|
|
2469
2118
|
{ value: "left", icon: "⬅" },
|
|
2470
2119
|
{ value: "center", icon: "↔" },
|
|
2471
2120
|
{ value: "right", icon: "➡" },
|
|
2472
2121
|
{ value: "justify", icon: "⬌" }
|
|
2473
|
-
],
|
|
2122
|
+
], wr = ({
|
|
2474
2123
|
value: e,
|
|
2475
2124
|
onChange: t
|
|
2476
|
-
}) => /* @__PURE__ */
|
|
2477
|
-
/* @__PURE__ */
|
|
2478
|
-
/* @__PURE__ */
|
|
2125
|
+
}) => /* @__PURE__ */ c.jsxs("div", { className: "font-control-group", children: [
|
|
2126
|
+
/* @__PURE__ */ c.jsx("label", { className: "font-control-label", children: "Text Align" }),
|
|
2127
|
+
/* @__PURE__ */ c.jsx("div", { className: "font-control-button-group", children: _r.map((r) => /* @__PURE__ */ c.jsx(
|
|
2479
2128
|
"button",
|
|
2480
2129
|
{
|
|
2481
2130
|
className: `font-control-button ${e === r.value ? "active" : ""}`,
|
|
@@ -2485,41 +2134,41 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2485
2134
|
},
|
|
2486
2135
|
r.value
|
|
2487
2136
|
)) })
|
|
2488
|
-
] }),
|
|
2137
|
+
] }), Ne = ({
|
|
2489
2138
|
title: e,
|
|
2490
2139
|
code: t,
|
|
2491
2140
|
language: r = "css"
|
|
2492
2141
|
}) => {
|
|
2493
|
-
const [o, a] =
|
|
2142
|
+
const [o, a] = me(!1), i = async () => {
|
|
2494
2143
|
try {
|
|
2495
2144
|
await navigator.clipboard.writeText(t), a(!0), setTimeout(() => a(!1), 2e3);
|
|
2496
|
-
} catch (
|
|
2497
|
-
console.error("Failed to copy:",
|
|
2145
|
+
} catch (d) {
|
|
2146
|
+
console.error("Failed to copy:", d);
|
|
2498
2147
|
}
|
|
2499
2148
|
};
|
|
2500
|
-
return /* @__PURE__ */
|
|
2501
|
-
/* @__PURE__ */
|
|
2502
|
-
/* @__PURE__ */
|
|
2503
|
-
/* @__PURE__ */
|
|
2149
|
+
return /* @__PURE__ */ c.jsxs("div", { className: "font-control-code-block", children: [
|
|
2150
|
+
/* @__PURE__ */ c.jsxs("div", { className: "font-control-code-header", children: [
|
|
2151
|
+
/* @__PURE__ */ c.jsx("span", { className: "font-control-code-title", children: e }),
|
|
2152
|
+
/* @__PURE__ */ c.jsx(
|
|
2504
2153
|
"button",
|
|
2505
2154
|
{
|
|
2506
2155
|
className: "font-control-copy-button",
|
|
2507
|
-
onClick:
|
|
2156
|
+
onClick: i,
|
|
2508
2157
|
type: "button",
|
|
2509
|
-
children: o ? /* @__PURE__ */
|
|
2510
|
-
/* @__PURE__ */
|
|
2158
|
+
children: o ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2159
|
+
/* @__PURE__ */ c.jsx(
|
|
2511
2160
|
"svg",
|
|
2512
2161
|
{
|
|
2513
2162
|
viewBox: "0 0 24 24",
|
|
2514
2163
|
fill: "none",
|
|
2515
2164
|
stroke: "currentColor",
|
|
2516
2165
|
strokeWidth: "2",
|
|
2517
|
-
children: /* @__PURE__ */
|
|
2166
|
+
children: /* @__PURE__ */ c.jsx("polyline", { points: "20 6 9 17 4 12" })
|
|
2518
2167
|
}
|
|
2519
2168
|
),
|
|
2520
2169
|
"Copied!"
|
|
2521
|
-
] }) : /* @__PURE__ */
|
|
2522
|
-
/* @__PURE__ */
|
|
2170
|
+
] }) : /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
|
|
2171
|
+
/* @__PURE__ */ c.jsxs(
|
|
2523
2172
|
"svg",
|
|
2524
2173
|
{
|
|
2525
2174
|
viewBox: "0 0 24 24",
|
|
@@ -2527,8 +2176,8 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2527
2176
|
stroke: "currentColor",
|
|
2528
2177
|
strokeWidth: "2",
|
|
2529
2178
|
children: [
|
|
2530
|
-
/* @__PURE__ */
|
|
2531
|
-
/* @__PURE__ */
|
|
2179
|
+
/* @__PURE__ */ c.jsx("rect", { x: "9", y: "9", width: "13", height: "13", rx: "2", ry: "2" }),
|
|
2180
|
+
/* @__PURE__ */ c.jsx("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" })
|
|
2532
2181
|
]
|
|
2533
2182
|
}
|
|
2534
2183
|
),
|
|
@@ -2537,25 +2186,25 @@ const bn = /* @__PURE__ */ Cr(mn), Sn = ({
|
|
|
2537
2186
|
}
|
|
2538
2187
|
)
|
|
2539
2188
|
] }),
|
|
2540
|
-
/* @__PURE__ */
|
|
2189
|
+
/* @__PURE__ */ c.jsx("pre", { className: "font-control-code-content", children: /* @__PURE__ */ c.jsx("code", { className: `language-${r}`, children: t }) })
|
|
2541
2190
|
] });
|
|
2542
|
-
},
|
|
2543
|
-
function
|
|
2544
|
-
if (
|
|
2191
|
+
}, ot = /* @__PURE__ */ new Set();
|
|
2192
|
+
function Cr(e) {
|
|
2193
|
+
if (ot.has(e))
|
|
2545
2194
|
return;
|
|
2546
2195
|
const t = document.createElement("link");
|
|
2547
|
-
t.rel = "stylesheet", t.href = `https://fonts.googleapis.com/css2?family=${e.replace(/ /g, "+")}:wght@100;200;300;400;500;600;700;800;900&display=swap`, document.head.appendChild(t),
|
|
2196
|
+
t.rel = "stylesheet", t.href = `https://fonts.googleapis.com/css2?family=${e.replace(/ /g, "+")}:wght@100;200;300;400;500;600;700;800;900&display=swap`, document.head.appendChild(t), ot.add(e);
|
|
2548
2197
|
}
|
|
2549
|
-
function
|
|
2198
|
+
function Pr(e) {
|
|
2550
2199
|
if (!document.querySelector('link[href*="fonts.googleapis.com"]')) {
|
|
2551
2200
|
const t = document.createElement("link");
|
|
2552
2201
|
t.rel = "preconnect", t.href = "https://fonts.googleapis.com";
|
|
2553
2202
|
const r = document.createElement("link");
|
|
2554
2203
|
r.rel = "preconnect", r.href = "https://fonts.gstatic.com", r.crossOrigin = "anonymous", document.head.appendChild(t), document.head.appendChild(r);
|
|
2555
2204
|
}
|
|
2556
|
-
e.forEach(
|
|
2205
|
+
e.forEach(Cr);
|
|
2557
2206
|
}
|
|
2558
|
-
function
|
|
2207
|
+
function jr(e) {
|
|
2559
2208
|
return [
|
|
2560
2209
|
"Arial",
|
|
2561
2210
|
"Helvetica",
|
|
@@ -2567,7 +2216,7 @@ function An(e) {
|
|
|
2567
2216
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
2568
2217
|
<link href="${`https://fonts.googleapis.com/css2?family=${e.replace(/ /g, "+")}:wght@100;200;300;400;500;600;700;800;900&display=swap`}" rel="stylesheet">`;
|
|
2569
2218
|
}
|
|
2570
|
-
function
|
|
2219
|
+
function Rr(e) {
|
|
2571
2220
|
return `<h1 style={{
|
|
2572
2221
|
fontFamily: '${e.fontFamily}',
|
|
2573
2222
|
fontSize: '${e.fontSize}px',
|
|
@@ -2581,7 +2230,7 @@ function kn(e) {
|
|
|
2581
2230
|
Your Text Here
|
|
2582
2231
|
</h1>`;
|
|
2583
2232
|
}
|
|
2584
|
-
function
|
|
2233
|
+
function Or(e) {
|
|
2585
2234
|
return `.my-text {
|
|
2586
2235
|
font-family: '${e.fontFamily}', sans-serif;
|
|
2587
2236
|
font-size: ${e.fontSize}px;
|
|
@@ -2593,7 +2242,7 @@ function $n(e) {
|
|
|
2593
2242
|
text-align: ${e.textAlign};
|
|
2594
2243
|
}`;
|
|
2595
2244
|
}
|
|
2596
|
-
const
|
|
2245
|
+
const Dr = [
|
|
2597
2246
|
// Sans-serif - Modern & Clean
|
|
2598
2247
|
"Inter",
|
|
2599
2248
|
"Roboto",
|
|
@@ -2623,7 +2272,7 @@ const Fn = [
|
|
|
2623
2272
|
"Righteous",
|
|
2624
2273
|
"Permanent Marker",
|
|
2625
2274
|
"Pacifico"
|
|
2626
|
-
],
|
|
2275
|
+
], Ae = {
|
|
2627
2276
|
fontFamily: "Arial",
|
|
2628
2277
|
fontSize: 16,
|
|
2629
2278
|
fontWeight: 400,
|
|
@@ -2632,109 +2281,109 @@ const Fn = [
|
|
|
2632
2281
|
textTransform: "none",
|
|
2633
2282
|
color: "#000000",
|
|
2634
2283
|
textAlign: "left"
|
|
2635
|
-
},
|
|
2284
|
+
}, kr = ({
|
|
2636
2285
|
value: e,
|
|
2637
2286
|
onChange: t,
|
|
2638
|
-
fontFamilies: r =
|
|
2287
|
+
fontFamilies: r = Dr,
|
|
2639
2288
|
minFontSize: o = 8,
|
|
2640
2289
|
maxFontSize: a = 120,
|
|
2641
|
-
fontSizeStep:
|
|
2642
|
-
title:
|
|
2643
|
-
collapsed:
|
|
2644
|
-
draggable:
|
|
2645
|
-
position:
|
|
2290
|
+
fontSizeStep: i = 1,
|
|
2291
|
+
title: d = "Font Controls",
|
|
2292
|
+
collapsed: u = !1,
|
|
2293
|
+
draggable: h = !0,
|
|
2294
|
+
position: g
|
|
2646
2295
|
}) => {
|
|
2647
|
-
const [
|
|
2648
|
-
...
|
|
2296
|
+
const [v, P] = me({
|
|
2297
|
+
...Ae,
|
|
2649
2298
|
...e
|
|
2650
|
-
}), [A,
|
|
2651
|
-
|
|
2652
|
-
e &&
|
|
2653
|
-
}, [e]),
|
|
2654
|
-
|
|
2299
|
+
}), [A, N] = me(!1);
|
|
2300
|
+
Xe(() => {
|
|
2301
|
+
e && P((T) => ({ ...T, ...e }));
|
|
2302
|
+
}, [e]), Xe(() => {
|
|
2303
|
+
Pr(r);
|
|
2655
2304
|
}, [r]);
|
|
2656
|
-
const
|
|
2657
|
-
const
|
|
2658
|
-
|
|
2659
|
-
},
|
|
2660
|
-
|
|
2305
|
+
const I = (T, _) => {
|
|
2306
|
+
const x = { ...v, [T]: _ };
|
|
2307
|
+
P(x), t == null || t(x);
|
|
2308
|
+
}, $ = () => {
|
|
2309
|
+
P(Ae), t == null || t(Ae);
|
|
2661
2310
|
};
|
|
2662
|
-
return /* @__PURE__ */
|
|
2663
|
-
|
|
2311
|
+
return /* @__PURE__ */ c.jsxs(
|
|
2312
|
+
hr,
|
|
2664
2313
|
{
|
|
2665
|
-
title:
|
|
2666
|
-
collapsed:
|
|
2667
|
-
draggable:
|
|
2668
|
-
position:
|
|
2314
|
+
title: d,
|
|
2315
|
+
collapsed: u,
|
|
2316
|
+
draggable: h,
|
|
2317
|
+
position: g,
|
|
2669
2318
|
children: [
|
|
2670
|
-
/* @__PURE__ */
|
|
2671
|
-
|
|
2319
|
+
/* @__PURE__ */ c.jsx(
|
|
2320
|
+
mr,
|
|
2672
2321
|
{
|
|
2673
|
-
value:
|
|
2674
|
-
onChange: (
|
|
2322
|
+
value: v.fontFamily,
|
|
2323
|
+
onChange: (T) => I("fontFamily", T),
|
|
2675
2324
|
fontFamilies: r
|
|
2676
2325
|
}
|
|
2677
2326
|
),
|
|
2678
|
-
/* @__PURE__ */
|
|
2679
|
-
|
|
2327
|
+
/* @__PURE__ */ c.jsx(
|
|
2328
|
+
gr,
|
|
2680
2329
|
{
|
|
2681
|
-
value:
|
|
2682
|
-
onChange: (
|
|
2330
|
+
value: v.fontSize,
|
|
2331
|
+
onChange: (T) => I("fontSize", T),
|
|
2683
2332
|
min: o,
|
|
2684
2333
|
max: a,
|
|
2685
|
-
step:
|
|
2334
|
+
step: i
|
|
2686
2335
|
}
|
|
2687
2336
|
),
|
|
2688
|
-
/* @__PURE__ */
|
|
2689
|
-
|
|
2337
|
+
/* @__PURE__ */ c.jsx(
|
|
2338
|
+
vr,
|
|
2690
2339
|
{
|
|
2691
|
-
value:
|
|
2692
|
-
onChange: (
|
|
2340
|
+
value: v.fontWeight,
|
|
2341
|
+
onChange: (T) => I("fontWeight", T)
|
|
2693
2342
|
}
|
|
2694
2343
|
),
|
|
2695
|
-
/* @__PURE__ */
|
|
2696
|
-
|
|
2344
|
+
/* @__PURE__ */ c.jsx(
|
|
2345
|
+
br,
|
|
2697
2346
|
{
|
|
2698
|
-
value:
|
|
2699
|
-
onChange: (
|
|
2347
|
+
value: v.lineHeight,
|
|
2348
|
+
onChange: (T) => I("lineHeight", T)
|
|
2700
2349
|
}
|
|
2701
2350
|
),
|
|
2702
|
-
/* @__PURE__ */
|
|
2703
|
-
|
|
2351
|
+
/* @__PURE__ */ c.jsx(
|
|
2352
|
+
Sr,
|
|
2704
2353
|
{
|
|
2705
|
-
value:
|
|
2706
|
-
onChange: (
|
|
2354
|
+
value: v.letterSpacing,
|
|
2355
|
+
onChange: (T) => I("letterSpacing", T)
|
|
2707
2356
|
}
|
|
2708
2357
|
),
|
|
2709
|
-
/* @__PURE__ */
|
|
2710
|
-
|
|
2358
|
+
/* @__PURE__ */ c.jsx(
|
|
2359
|
+
Tr,
|
|
2711
2360
|
{
|
|
2712
|
-
value:
|
|
2713
|
-
onChange: (
|
|
2361
|
+
value: v.textTransform,
|
|
2362
|
+
onChange: (T) => I("textTransform", T)
|
|
2714
2363
|
}
|
|
2715
2364
|
),
|
|
2716
|
-
/* @__PURE__ */
|
|
2717
|
-
|
|
2365
|
+
/* @__PURE__ */ c.jsx(
|
|
2366
|
+
Er,
|
|
2718
2367
|
{
|
|
2719
|
-
value:
|
|
2720
|
-
onChange: (
|
|
2368
|
+
value: v.color,
|
|
2369
|
+
onChange: (T) => I("color", T)
|
|
2721
2370
|
}
|
|
2722
2371
|
),
|
|
2723
|
-
/* @__PURE__ */
|
|
2724
|
-
|
|
2372
|
+
/* @__PURE__ */ c.jsx(
|
|
2373
|
+
wr,
|
|
2725
2374
|
{
|
|
2726
|
-
value:
|
|
2727
|
-
onChange: (
|
|
2375
|
+
value: v.textAlign,
|
|
2376
|
+
onChange: (T) => I("textAlign", T)
|
|
2728
2377
|
}
|
|
2729
2378
|
),
|
|
2730
|
-
/* @__PURE__ */
|
|
2379
|
+
/* @__PURE__ */ c.jsxs(
|
|
2731
2380
|
"button",
|
|
2732
2381
|
{
|
|
2733
2382
|
className: "font-control-reset-button",
|
|
2734
|
-
onClick:
|
|
2383
|
+
onClick: $,
|
|
2735
2384
|
type: "button",
|
|
2736
2385
|
children: [
|
|
2737
|
-
/* @__PURE__ */
|
|
2386
|
+
/* @__PURE__ */ c.jsxs(
|
|
2738
2387
|
"svg",
|
|
2739
2388
|
{
|
|
2740
2389
|
viewBox: "0 0 24 24",
|
|
@@ -2744,9 +2393,9 @@ const Fn = [
|
|
|
2744
2393
|
strokeLinecap: "round",
|
|
2745
2394
|
strokeLinejoin: "round",
|
|
2746
2395
|
children: [
|
|
2747
|
-
/* @__PURE__ */
|
|
2748
|
-
/* @__PURE__ */
|
|
2749
|
-
/* @__PURE__ */
|
|
2396
|
+
/* @__PURE__ */ c.jsx("polyline", { points: "1 4 1 10 7 10" }),
|
|
2397
|
+
/* @__PURE__ */ c.jsx("polyline", { points: "23 20 23 14 17 14" }),
|
|
2398
|
+
/* @__PURE__ */ c.jsx("path", { d: "M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15" })
|
|
2750
2399
|
]
|
|
2751
2400
|
}
|
|
2752
2401
|
),
|
|
@@ -2754,15 +2403,15 @@ const Fn = [
|
|
|
2754
2403
|
]
|
|
2755
2404
|
}
|
|
2756
2405
|
),
|
|
2757
|
-
/* @__PURE__ */
|
|
2758
|
-
/* @__PURE__ */
|
|
2406
|
+
/* @__PURE__ */ c.jsxs("div", { className: "font-control-export-section", children: [
|
|
2407
|
+
/* @__PURE__ */ c.jsxs(
|
|
2759
2408
|
"button",
|
|
2760
2409
|
{
|
|
2761
2410
|
className: "font-control-export-toggle",
|
|
2762
|
-
onClick: () =>
|
|
2411
|
+
onClick: () => N(!A),
|
|
2763
2412
|
type: "button",
|
|
2764
2413
|
children: [
|
|
2765
|
-
/* @__PURE__ */
|
|
2414
|
+
/* @__PURE__ */ c.jsx(
|
|
2766
2415
|
"svg",
|
|
2767
2416
|
{
|
|
2768
2417
|
viewBox: "0 0 24 24",
|
|
@@ -2770,35 +2419,35 @@ const Fn = [
|
|
|
2770
2419
|
stroke: "currentColor",
|
|
2771
2420
|
strokeWidth: "2",
|
|
2772
2421
|
className: A ? "rotated" : "",
|
|
2773
|
-
children: /* @__PURE__ */
|
|
2422
|
+
children: /* @__PURE__ */ c.jsx("polyline", { points: "9 18 15 12 9 6" })
|
|
2774
2423
|
}
|
|
2775
2424
|
),
|
|
2776
2425
|
"Export Configuration"
|
|
2777
2426
|
]
|
|
2778
2427
|
}
|
|
2779
2428
|
),
|
|
2780
|
-
A && /* @__PURE__ */
|
|
2781
|
-
/* @__PURE__ */
|
|
2782
|
-
|
|
2429
|
+
A && /* @__PURE__ */ c.jsxs("div", { className: "font-control-export-content", children: [
|
|
2430
|
+
/* @__PURE__ */ c.jsx(
|
|
2431
|
+
Ne,
|
|
2783
2432
|
{
|
|
2784
2433
|
title: "1. Google Fonts Import (HTML)",
|
|
2785
|
-
code:
|
|
2434
|
+
code: jr(v.fontFamily),
|
|
2786
2435
|
language: "html"
|
|
2787
2436
|
}
|
|
2788
2437
|
),
|
|
2789
|
-
/* @__PURE__ */
|
|
2790
|
-
|
|
2438
|
+
/* @__PURE__ */ c.jsx(
|
|
2439
|
+
Ne,
|
|
2791
2440
|
{
|
|
2792
2441
|
title: "2. React/JSX Inline Styles",
|
|
2793
|
-
code:
|
|
2442
|
+
code: Rr(v),
|
|
2794
2443
|
language: "tsx"
|
|
2795
2444
|
}
|
|
2796
2445
|
),
|
|
2797
|
-
/* @__PURE__ */
|
|
2798
|
-
|
|
2446
|
+
/* @__PURE__ */ c.jsx(
|
|
2447
|
+
Ne,
|
|
2799
2448
|
{
|
|
2800
2449
|
title: "3. CSS Class",
|
|
2801
|
-
code:
|
|
2450
|
+
code: Or(v),
|
|
2802
2451
|
language: "css"
|
|
2803
2452
|
}
|
|
2804
2453
|
)
|
|
@@ -2807,7 +2456,7 @@ const Fn = [
|
|
|
2807
2456
|
]
|
|
2808
2457
|
}
|
|
2809
2458
|
);
|
|
2810
|
-
},
|
|
2459
|
+
}, at = {
|
|
2811
2460
|
fontFamily: "Arial",
|
|
2812
2461
|
fontSize: 16,
|
|
2813
2462
|
fontWeight: 400,
|
|
@@ -2816,25 +2465,25 @@ const Fn = [
|
|
|
2816
2465
|
textTransform: "none",
|
|
2817
2466
|
color: "#000000",
|
|
2818
2467
|
textAlign: "left"
|
|
2819
|
-
},
|
|
2820
|
-
const [t, r] =
|
|
2821
|
-
...
|
|
2468
|
+
}, $r = (e) => {
|
|
2469
|
+
const [t, r] = me({
|
|
2470
|
+
...at,
|
|
2822
2471
|
...e
|
|
2823
2472
|
});
|
|
2824
2473
|
return {
|
|
2825
2474
|
config: t,
|
|
2826
2475
|
setConfig: r,
|
|
2827
|
-
updateConfig: (
|
|
2828
|
-
r((
|
|
2476
|
+
updateConfig: (i, d) => {
|
|
2477
|
+
r((u) => ({ ...u, [i]: d }));
|
|
2829
2478
|
},
|
|
2830
2479
|
resetConfig: () => {
|
|
2831
|
-
r({ ...
|
|
2480
|
+
r({ ...at, ...e });
|
|
2832
2481
|
}
|
|
2833
2482
|
};
|
|
2834
2483
|
};
|
|
2835
2484
|
export {
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2485
|
+
kr as FontControls,
|
|
2486
|
+
Pr as loadAllDefaultFonts,
|
|
2487
|
+
Cr as loadGoogleFont,
|
|
2488
|
+
$r as useFontControls
|
|
2840
2489
|
};
|