@justeattakeaway/pie-button 0.12.2 → 0.13.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/.turbo/turbo-build.log +7 -4
- package/CHANGELOG.md +21 -0
- package/README.md +10 -0
- package/dist/index.js +56 -65
- package/dist/react.js +1605 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/{src → packages/components/pie-button/src}/index.d.ts +2 -1
- package/dist/types/packages/components/pie-button/src/index.d.ts.map +1 -0
- package/dist/types/packages/components/pie-button/src/react.d.ts +3 -0
- package/dist/types/packages/components/pie-button/src/react.d.ts.map +1 -0
- package/dist/types/react.d.ts +1 -0
- package/package.json +10 -3
- package/playwright/index.html +40 -38
- package/playwright-lit-visual.config.ts +4 -51
- package/playwright-lit.config.ts +4 -51
- package/src/button.scss +93 -126
- package/src/index.ts +13 -18
- package/tsconfig.json +3 -25
- package/dist/types/src/decorators.d.ts +0 -9
- package/dist/types/src/decorators.d.ts.map +0 -1
- package/dist/types/src/index.d.ts.map +0 -1
- package/src/decorators.ts +0 -34
- package/vite.config.js +0 -21
- /package/dist/types/{src → packages/components/pie-button/src}/defs.d.ts +0 -0
- /package/dist/types/{src → packages/components/pie-button/src}/defs.d.ts.map +0 -0
package/dist/react.js
ADDED
|
@@ -0,0 +1,1605 @@
|
|
|
1
|
+
import { PieButton as Ir } from "./index.js";
|
|
2
|
+
import "lit";
|
|
3
|
+
import "lit/decorators.js";
|
|
4
|
+
import "lit/decorators/property.js";
|
|
5
|
+
function Nr(h, c) {
|
|
6
|
+
for (var U = 0; U < c.length; U++) {
|
|
7
|
+
const T = c[U];
|
|
8
|
+
if (typeof T != "string" && !Array.isArray(T)) {
|
|
9
|
+
for (const A in T)
|
|
10
|
+
if (A !== "default" && !(A in h)) {
|
|
11
|
+
const k = Object.getOwnPropertyDescriptor(T, A);
|
|
12
|
+
k && Object.defineProperty(h, A, k.get ? k : {
|
|
13
|
+
enumerable: !0,
|
|
14
|
+
get: () => T[A]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
return Object.freeze(Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }));
|
|
20
|
+
}
|
|
21
|
+
function Fr(h) {
|
|
22
|
+
return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
|
|
23
|
+
}
|
|
24
|
+
var Te = {}, Lr = {
|
|
25
|
+
get exports() {
|
|
26
|
+
return Te;
|
|
27
|
+
},
|
|
28
|
+
set exports(h) {
|
|
29
|
+
Te = h;
|
|
30
|
+
}
|
|
31
|
+
}, p = {};
|
|
32
|
+
/**
|
|
33
|
+
* @license React
|
|
34
|
+
* react.production.min.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/
|
|
41
|
+
var Ct;
|
|
42
|
+
function Mr() {
|
|
43
|
+
if (Ct)
|
|
44
|
+
return p;
|
|
45
|
+
Ct = 1;
|
|
46
|
+
var h = Symbol.for("react.element"), c = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), A = Symbol.for("react.profiler"), k = Symbol.for("react.provider"), V = Symbol.for("react.context"), I = Symbol.for("react.forward_ref"), z = Symbol.for("react.suspense"), F = Symbol.for("react.memo"), N = Symbol.for("react.lazy"), H = Symbol.iterator;
|
|
47
|
+
function J(r) {
|
|
48
|
+
return r === null || typeof r != "object" ? null : (r = H && r[H] || r["@@iterator"], typeof r == "function" ? r : null);
|
|
49
|
+
}
|
|
50
|
+
var D = { isMounted: function() {
|
|
51
|
+
return !1;
|
|
52
|
+
}, enqueueForceUpdate: function() {
|
|
53
|
+
}, enqueueReplaceState: function() {
|
|
54
|
+
}, enqueueSetState: function() {
|
|
55
|
+
} }, P = Object.assign, G = {};
|
|
56
|
+
function Y(r, u, d) {
|
|
57
|
+
this.props = r, this.context = u, this.refs = G, this.updater = d || D;
|
|
58
|
+
}
|
|
59
|
+
Y.prototype.isReactComponent = {}, Y.prototype.setState = function(r, u) {
|
|
60
|
+
if (typeof r != "object" && typeof r != "function" && r != null)
|
|
61
|
+
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
62
|
+
this.updater.enqueueSetState(this, r, u, "setState");
|
|
63
|
+
}, Y.prototype.forceUpdate = function(r) {
|
|
64
|
+
this.updater.enqueueForceUpdate(this, r, "forceUpdate");
|
|
65
|
+
};
|
|
66
|
+
function L() {
|
|
67
|
+
}
|
|
68
|
+
L.prototype = Y.prototype;
|
|
69
|
+
function W(r, u, d) {
|
|
70
|
+
this.props = r, this.context = u, this.refs = G, this.updater = d || D;
|
|
71
|
+
}
|
|
72
|
+
var K = W.prototype = new L();
|
|
73
|
+
K.constructor = W, P(K, Y.prototype), K.isPureReactComponent = !0;
|
|
74
|
+
var Q = Array.isArray, j = Object.prototype.hasOwnProperty, B = { current: null }, X = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
75
|
+
function te(r, u, d) {
|
|
76
|
+
var m, v = {}, _ = null, S = null;
|
|
77
|
+
if (u != null)
|
|
78
|
+
for (m in u.ref !== void 0 && (S = u.ref), u.key !== void 0 && (_ = "" + u.key), u)
|
|
79
|
+
j.call(u, m) && !X.hasOwnProperty(m) && (v[m] = u[m]);
|
|
80
|
+
var b = arguments.length - 2;
|
|
81
|
+
if (b === 1)
|
|
82
|
+
v.children = d;
|
|
83
|
+
else if (1 < b) {
|
|
84
|
+
for (var E = Array(b), M = 0; M < b; M++)
|
|
85
|
+
E[M] = arguments[M + 2];
|
|
86
|
+
v.children = E;
|
|
87
|
+
}
|
|
88
|
+
if (r && r.defaultProps)
|
|
89
|
+
for (m in b = r.defaultProps, b)
|
|
90
|
+
v[m] === void 0 && (v[m] = b[m]);
|
|
91
|
+
return { $$typeof: h, type: r, key: _, ref: S, props: v, _owner: B.current };
|
|
92
|
+
}
|
|
93
|
+
function pe(r, u) {
|
|
94
|
+
return { $$typeof: h, type: r.type, key: u, ref: r.ref, props: r.props, _owner: r._owner };
|
|
95
|
+
}
|
|
96
|
+
function ie(r) {
|
|
97
|
+
return typeof r == "object" && r !== null && r.$$typeof === h;
|
|
98
|
+
}
|
|
99
|
+
function ke(r) {
|
|
100
|
+
var u = { "=": "=0", ":": "=2" };
|
|
101
|
+
return "$" + r.replace(/[=:]/g, function(d) {
|
|
102
|
+
return u[d];
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
var ve = /\/+/g;
|
|
106
|
+
function se(r, u) {
|
|
107
|
+
return typeof r == "object" && r !== null && r.key != null ? ke("" + r.key) : u.toString(36);
|
|
108
|
+
}
|
|
109
|
+
function ne(r, u, d, m, v) {
|
|
110
|
+
var _ = typeof r;
|
|
111
|
+
(_ === "undefined" || _ === "boolean") && (r = null);
|
|
112
|
+
var S = !1;
|
|
113
|
+
if (r === null)
|
|
114
|
+
S = !0;
|
|
115
|
+
else
|
|
116
|
+
switch (_) {
|
|
117
|
+
case "string":
|
|
118
|
+
case "number":
|
|
119
|
+
S = !0;
|
|
120
|
+
break;
|
|
121
|
+
case "object":
|
|
122
|
+
switch (r.$$typeof) {
|
|
123
|
+
case h:
|
|
124
|
+
case c:
|
|
125
|
+
S = !0;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
if (S)
|
|
129
|
+
return S = r, v = v(S), r = m === "" ? "." + se(S, 0) : m, Q(v) ? (d = "", r != null && (d = r.replace(ve, "$&/") + "/"), ne(v, u, d, "", function(M) {
|
|
130
|
+
return M;
|
|
131
|
+
})) : v != null && (ie(v) && (v = pe(v, d + (!v.key || S && S.key === v.key ? "" : ("" + v.key).replace(ve, "$&/") + "/") + r)), u.push(v)), 1;
|
|
132
|
+
if (S = 0, m = m === "" ? "." : m + ":", Q(r))
|
|
133
|
+
for (var b = 0; b < r.length; b++) {
|
|
134
|
+
_ = r[b];
|
|
135
|
+
var E = m + se(_, b);
|
|
136
|
+
S += ne(_, u, d, E, v);
|
|
137
|
+
}
|
|
138
|
+
else if (E = J(r), typeof E == "function")
|
|
139
|
+
for (r = E.call(r), b = 0; !(_ = r.next()).done; )
|
|
140
|
+
_ = _.value, E = m + se(_, b++), S += ne(_, u, d, E, v);
|
|
141
|
+
else if (_ === "object")
|
|
142
|
+
throw u = String(r), Error("Objects are not valid as a React child (found: " + (u === "[object Object]" ? "object with keys {" + Object.keys(r).join(", ") + "}" : u) + "). If you meant to render a collection of children, use an array instead.");
|
|
143
|
+
return S;
|
|
144
|
+
}
|
|
145
|
+
function q(r, u, d) {
|
|
146
|
+
if (r == null)
|
|
147
|
+
return r;
|
|
148
|
+
var m = [], v = 0;
|
|
149
|
+
return ne(r, m, "", "", function(_) {
|
|
150
|
+
return u.call(d, _, v++);
|
|
151
|
+
}), m;
|
|
152
|
+
}
|
|
153
|
+
function Z(r) {
|
|
154
|
+
if (r._status === -1) {
|
|
155
|
+
var u = r._result;
|
|
156
|
+
u = u(), u.then(function(d) {
|
|
157
|
+
(r._status === 0 || r._status === -1) && (r._status = 1, r._result = d);
|
|
158
|
+
}, function(d) {
|
|
159
|
+
(r._status === 0 || r._status === -1) && (r._status = 2, r._result = d);
|
|
160
|
+
}), r._status === -1 && (r._status = 0, r._result = u);
|
|
161
|
+
}
|
|
162
|
+
if (r._status === 1)
|
|
163
|
+
return r._result.default;
|
|
164
|
+
throw r._result;
|
|
165
|
+
}
|
|
166
|
+
var f = { current: null }, re = { transition: null }, ye = { ReactCurrentDispatcher: f, ReactCurrentBatchConfig: re, ReactCurrentOwner: B };
|
|
167
|
+
return p.Children = { map: q, forEach: function(r, u, d) {
|
|
168
|
+
q(r, function() {
|
|
169
|
+
u.apply(this, arguments);
|
|
170
|
+
}, d);
|
|
171
|
+
}, count: function(r) {
|
|
172
|
+
var u = 0;
|
|
173
|
+
return q(r, function() {
|
|
174
|
+
u++;
|
|
175
|
+
}), u;
|
|
176
|
+
}, toArray: function(r) {
|
|
177
|
+
return q(r, function(u) {
|
|
178
|
+
return u;
|
|
179
|
+
}) || [];
|
|
180
|
+
}, only: function(r) {
|
|
181
|
+
if (!ie(r))
|
|
182
|
+
throw Error("React.Children.only expected to receive a single React element child.");
|
|
183
|
+
return r;
|
|
184
|
+
} }, p.Component = Y, p.Fragment = U, p.Profiler = A, p.PureComponent = W, p.StrictMode = T, p.Suspense = z, p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ye, p.cloneElement = function(r, u, d) {
|
|
185
|
+
if (r == null)
|
|
186
|
+
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + r + ".");
|
|
187
|
+
var m = P({}, r.props), v = r.key, _ = r.ref, S = r._owner;
|
|
188
|
+
if (u != null) {
|
|
189
|
+
if (u.ref !== void 0 && (_ = u.ref, S = B.current), u.key !== void 0 && (v = "" + u.key), r.type && r.type.defaultProps)
|
|
190
|
+
var b = r.type.defaultProps;
|
|
191
|
+
for (E in u)
|
|
192
|
+
j.call(u, E) && !X.hasOwnProperty(E) && (m[E] = u[E] === void 0 && b !== void 0 ? b[E] : u[E]);
|
|
193
|
+
}
|
|
194
|
+
var E = arguments.length - 2;
|
|
195
|
+
if (E === 1)
|
|
196
|
+
m.children = d;
|
|
197
|
+
else if (1 < E) {
|
|
198
|
+
b = Array(E);
|
|
199
|
+
for (var M = 0; M < E; M++)
|
|
200
|
+
b[M] = arguments[M + 2];
|
|
201
|
+
m.children = b;
|
|
202
|
+
}
|
|
203
|
+
return { $$typeof: h, type: r.type, key: v, ref: _, props: m, _owner: S };
|
|
204
|
+
}, p.createContext = function(r) {
|
|
205
|
+
return r = { $$typeof: V, _currentValue: r, _currentValue2: r, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null }, r.Provider = { $$typeof: k, _context: r }, r.Consumer = r;
|
|
206
|
+
}, p.createElement = te, p.createFactory = function(r) {
|
|
207
|
+
var u = te.bind(null, r);
|
|
208
|
+
return u.type = r, u;
|
|
209
|
+
}, p.createRef = function() {
|
|
210
|
+
return { current: null };
|
|
211
|
+
}, p.forwardRef = function(r) {
|
|
212
|
+
return { $$typeof: I, render: r };
|
|
213
|
+
}, p.isValidElement = ie, p.lazy = function(r) {
|
|
214
|
+
return { $$typeof: N, _payload: { _status: -1, _result: r }, _init: Z };
|
|
215
|
+
}, p.memo = function(r, u) {
|
|
216
|
+
return { $$typeof: F, type: r, compare: u === void 0 ? null : u };
|
|
217
|
+
}, p.startTransition = function(r) {
|
|
218
|
+
var u = re.transition;
|
|
219
|
+
re.transition = {};
|
|
220
|
+
try {
|
|
221
|
+
r();
|
|
222
|
+
} finally {
|
|
223
|
+
re.transition = u;
|
|
224
|
+
}
|
|
225
|
+
}, p.unstable_act = function() {
|
|
226
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
227
|
+
}, p.useCallback = function(r, u) {
|
|
228
|
+
return f.current.useCallback(r, u);
|
|
229
|
+
}, p.useContext = function(r) {
|
|
230
|
+
return f.current.useContext(r);
|
|
231
|
+
}, p.useDebugValue = function() {
|
|
232
|
+
}, p.useDeferredValue = function(r) {
|
|
233
|
+
return f.current.useDeferredValue(r);
|
|
234
|
+
}, p.useEffect = function(r, u) {
|
|
235
|
+
return f.current.useEffect(r, u);
|
|
236
|
+
}, p.useId = function() {
|
|
237
|
+
return f.current.useId();
|
|
238
|
+
}, p.useImperativeHandle = function(r, u, d) {
|
|
239
|
+
return f.current.useImperativeHandle(r, u, d);
|
|
240
|
+
}, p.useInsertionEffect = function(r, u) {
|
|
241
|
+
return f.current.useInsertionEffect(r, u);
|
|
242
|
+
}, p.useLayoutEffect = function(r, u) {
|
|
243
|
+
return f.current.useLayoutEffect(r, u);
|
|
244
|
+
}, p.useMemo = function(r, u) {
|
|
245
|
+
return f.current.useMemo(r, u);
|
|
246
|
+
}, p.useReducer = function(r, u, d) {
|
|
247
|
+
return f.current.useReducer(r, u, d);
|
|
248
|
+
}, p.useRef = function(r) {
|
|
249
|
+
return f.current.useRef(r);
|
|
250
|
+
}, p.useState = function(r) {
|
|
251
|
+
return f.current.useState(r);
|
|
252
|
+
}, p.useSyncExternalStore = function(r, u, d) {
|
|
253
|
+
return f.current.useSyncExternalStore(r, u, d);
|
|
254
|
+
}, p.useTransition = function() {
|
|
255
|
+
return f.current.useTransition();
|
|
256
|
+
}, p.version = "18.2.0", p;
|
|
257
|
+
}
|
|
258
|
+
var de = {}, xr = {
|
|
259
|
+
get exports() {
|
|
260
|
+
return de;
|
|
261
|
+
},
|
|
262
|
+
set exports(h) {
|
|
263
|
+
de = h;
|
|
264
|
+
}
|
|
265
|
+
};
|
|
266
|
+
/**
|
|
267
|
+
* @license React
|
|
268
|
+
* react.development.js
|
|
269
|
+
*
|
|
270
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the MIT license found in the
|
|
273
|
+
* LICENSE file in the root directory of this source tree.
|
|
274
|
+
*/
|
|
275
|
+
var St;
|
|
276
|
+
function Ur() {
|
|
277
|
+
return St || (St = 1, function(h, c) {
|
|
278
|
+
process.env.NODE_ENV !== "production" && function() {
|
|
279
|
+
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
280
|
+
var U = "18.2.0", T = Symbol.for("react.element"), A = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), V = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), z = Symbol.for("react.provider"), F = Symbol.for("react.context"), N = Symbol.for("react.forward_ref"), H = Symbol.for("react.suspense"), J = Symbol.for("react.suspense_list"), D = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), Y = Symbol.iterator, L = "@@iterator";
|
|
281
|
+
function W(e) {
|
|
282
|
+
if (e === null || typeof e != "object")
|
|
283
|
+
return null;
|
|
284
|
+
var t = Y && e[Y] || e[L];
|
|
285
|
+
return typeof t == "function" ? t : null;
|
|
286
|
+
}
|
|
287
|
+
var K = {
|
|
288
|
+
/**
|
|
289
|
+
* @internal
|
|
290
|
+
* @type {ReactComponent}
|
|
291
|
+
*/
|
|
292
|
+
current: null
|
|
293
|
+
}, Q = {
|
|
294
|
+
transition: null
|
|
295
|
+
}, j = {
|
|
296
|
+
current: null,
|
|
297
|
+
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
298
|
+
isBatchingLegacy: !1,
|
|
299
|
+
didScheduleLegacyUpdate: !1
|
|
300
|
+
}, B = {
|
|
301
|
+
/**
|
|
302
|
+
* @internal
|
|
303
|
+
* @type {ReactComponent}
|
|
304
|
+
*/
|
|
305
|
+
current: null
|
|
306
|
+
}, X = {}, te = null;
|
|
307
|
+
function pe(e) {
|
|
308
|
+
te = e;
|
|
309
|
+
}
|
|
310
|
+
X.setExtraStackFrame = function(e) {
|
|
311
|
+
te = e;
|
|
312
|
+
}, X.getCurrentStack = null, X.getStackAddendum = function() {
|
|
313
|
+
var e = "";
|
|
314
|
+
te && (e += te);
|
|
315
|
+
var t = X.getCurrentStack;
|
|
316
|
+
return t && (e += t() || ""), e;
|
|
317
|
+
};
|
|
318
|
+
var ie = !1, ke = !1, ve = !1, se = !1, ne = !1, q = {
|
|
319
|
+
ReactCurrentDispatcher: K,
|
|
320
|
+
ReactCurrentBatchConfig: Q,
|
|
321
|
+
ReactCurrentOwner: B
|
|
322
|
+
};
|
|
323
|
+
q.ReactDebugCurrentFrame = X, q.ReactCurrentActQueue = j;
|
|
324
|
+
function Z(e) {
|
|
325
|
+
{
|
|
326
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
|
|
327
|
+
n[a - 1] = arguments[a];
|
|
328
|
+
re("warn", e, n);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
function f(e) {
|
|
332
|
+
{
|
|
333
|
+
for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), a = 1; a < t; a++)
|
|
334
|
+
n[a - 1] = arguments[a];
|
|
335
|
+
re("error", e, n);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function re(e, t, n) {
|
|
339
|
+
{
|
|
340
|
+
var a = q.ReactDebugCurrentFrame, o = a.getStackAddendum();
|
|
341
|
+
o !== "" && (t += "%s", n = n.concat([o]));
|
|
342
|
+
var s = n.map(function(i) {
|
|
343
|
+
return String(i);
|
|
344
|
+
});
|
|
345
|
+
s.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, s);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
var ye = {};
|
|
349
|
+
function r(e, t) {
|
|
350
|
+
{
|
|
351
|
+
var n = e.constructor, a = n && (n.displayName || n.name) || "ReactClass", o = a + "." + t;
|
|
352
|
+
if (ye[o])
|
|
353
|
+
return;
|
|
354
|
+
f("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, a), ye[o] = !0;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
var u = {
|
|
358
|
+
/**
|
|
359
|
+
* Checks whether or not this composite component is mounted.
|
|
360
|
+
* @param {ReactClass} publicInstance The instance we want to test.
|
|
361
|
+
* @return {boolean} True if mounted, false otherwise.
|
|
362
|
+
* @protected
|
|
363
|
+
* @final
|
|
364
|
+
*/
|
|
365
|
+
isMounted: function(e) {
|
|
366
|
+
return !1;
|
|
367
|
+
},
|
|
368
|
+
/**
|
|
369
|
+
* Forces an update. This should only be invoked when it is known with
|
|
370
|
+
* certainty that we are **not** in a DOM transaction.
|
|
371
|
+
*
|
|
372
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
373
|
+
* component's state has changed but `setState` was not called.
|
|
374
|
+
*
|
|
375
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
376
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
377
|
+
*
|
|
378
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
379
|
+
* @param {?function} callback Called after component is updated.
|
|
380
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
381
|
+
* @internal
|
|
382
|
+
*/
|
|
383
|
+
enqueueForceUpdate: function(e, t, n) {
|
|
384
|
+
r(e, "forceUpdate");
|
|
385
|
+
},
|
|
386
|
+
/**
|
|
387
|
+
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
388
|
+
* You should treat `this.state` as immutable.
|
|
389
|
+
*
|
|
390
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
391
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
392
|
+
*
|
|
393
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
394
|
+
* @param {object} completeState Next state.
|
|
395
|
+
* @param {?function} callback Called after component is updated.
|
|
396
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
397
|
+
* @internal
|
|
398
|
+
*/
|
|
399
|
+
enqueueReplaceState: function(e, t, n, a) {
|
|
400
|
+
r(e, "replaceState");
|
|
401
|
+
},
|
|
402
|
+
/**
|
|
403
|
+
* Sets a subset of the state. This only exists because _pendingState is
|
|
404
|
+
* internal. This provides a merging strategy that is not available to deep
|
|
405
|
+
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
406
|
+
* during the merge.
|
|
407
|
+
*
|
|
408
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
409
|
+
* @param {object} partialState Next partial state to be merged with state.
|
|
410
|
+
* @param {?function} callback Called after component is updated.
|
|
411
|
+
* @param {?string} Name of the calling function in the public API.
|
|
412
|
+
* @internal
|
|
413
|
+
*/
|
|
414
|
+
enqueueSetState: function(e, t, n, a) {
|
|
415
|
+
r(e, "setState");
|
|
416
|
+
}
|
|
417
|
+
}, d = Object.assign, m = {};
|
|
418
|
+
Object.freeze(m);
|
|
419
|
+
function v(e, t, n) {
|
|
420
|
+
this.props = e, this.context = t, this.refs = m, this.updater = n || u;
|
|
421
|
+
}
|
|
422
|
+
v.prototype.isReactComponent = {}, v.prototype.setState = function(e, t) {
|
|
423
|
+
if (typeof e != "object" && typeof e != "function" && e != null)
|
|
424
|
+
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
425
|
+
this.updater.enqueueSetState(this, e, t, "setState");
|
|
426
|
+
}, v.prototype.forceUpdate = function(e) {
|
|
427
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
428
|
+
};
|
|
429
|
+
{
|
|
430
|
+
var _ = {
|
|
431
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
432
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
433
|
+
}, S = function(e, t) {
|
|
434
|
+
Object.defineProperty(v.prototype, e, {
|
|
435
|
+
get: function() {
|
|
436
|
+
Z("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
};
|
|
440
|
+
for (var b in _)
|
|
441
|
+
_.hasOwnProperty(b) && S(b, _[b]);
|
|
442
|
+
}
|
|
443
|
+
function E() {
|
|
444
|
+
}
|
|
445
|
+
E.prototype = v.prototype;
|
|
446
|
+
function M(e, t, n) {
|
|
447
|
+
this.props = e, this.context = t, this.refs = m, this.updater = n || u;
|
|
448
|
+
}
|
|
449
|
+
var Pe = M.prototype = new E();
|
|
450
|
+
Pe.constructor = M, d(Pe, v.prototype), Pe.isPureReactComponent = !0;
|
|
451
|
+
function Tt() {
|
|
452
|
+
var e = {
|
|
453
|
+
current: null
|
|
454
|
+
};
|
|
455
|
+
return Object.seal(e), e;
|
|
456
|
+
}
|
|
457
|
+
var kt = Array.isArray;
|
|
458
|
+
function he(e) {
|
|
459
|
+
return kt(e);
|
|
460
|
+
}
|
|
461
|
+
function Pt(e) {
|
|
462
|
+
{
|
|
463
|
+
var t = typeof Symbol == "function" && Symbol.toStringTag, n = t && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
464
|
+
return n;
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
function jt(e) {
|
|
468
|
+
try {
|
|
469
|
+
return We(e), !1;
|
|
470
|
+
} catch {
|
|
471
|
+
return !0;
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
function We(e) {
|
|
475
|
+
return "" + e;
|
|
476
|
+
}
|
|
477
|
+
function me(e) {
|
|
478
|
+
if (jt(e))
|
|
479
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Pt(e)), We(e);
|
|
480
|
+
}
|
|
481
|
+
function At(e, t, n) {
|
|
482
|
+
var a = e.displayName;
|
|
483
|
+
if (a)
|
|
484
|
+
return a;
|
|
485
|
+
var o = t.displayName || t.name || "";
|
|
486
|
+
return o !== "" ? n + "(" + o + ")" : n;
|
|
487
|
+
}
|
|
488
|
+
function Ye(e) {
|
|
489
|
+
return e.displayName || "Context";
|
|
490
|
+
}
|
|
491
|
+
function ee(e) {
|
|
492
|
+
if (e == null)
|
|
493
|
+
return null;
|
|
494
|
+
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
495
|
+
return e.displayName || e.name || null;
|
|
496
|
+
if (typeof e == "string")
|
|
497
|
+
return e;
|
|
498
|
+
switch (e) {
|
|
499
|
+
case k:
|
|
500
|
+
return "Fragment";
|
|
501
|
+
case A:
|
|
502
|
+
return "Portal";
|
|
503
|
+
case I:
|
|
504
|
+
return "Profiler";
|
|
505
|
+
case V:
|
|
506
|
+
return "StrictMode";
|
|
507
|
+
case H:
|
|
508
|
+
return "Suspense";
|
|
509
|
+
case J:
|
|
510
|
+
return "SuspenseList";
|
|
511
|
+
}
|
|
512
|
+
if (typeof e == "object")
|
|
513
|
+
switch (e.$$typeof) {
|
|
514
|
+
case F:
|
|
515
|
+
var t = e;
|
|
516
|
+
return Ye(t) + ".Consumer";
|
|
517
|
+
case z:
|
|
518
|
+
var n = e;
|
|
519
|
+
return Ye(n._context) + ".Provider";
|
|
520
|
+
case N:
|
|
521
|
+
return At(e, e.render, "ForwardRef");
|
|
522
|
+
case D:
|
|
523
|
+
var a = e.displayName || null;
|
|
524
|
+
return a !== null ? a : ee(e.type) || "Memo";
|
|
525
|
+
case P: {
|
|
526
|
+
var o = e, s = o._payload, i = o._init;
|
|
527
|
+
try {
|
|
528
|
+
return ee(i(s));
|
|
529
|
+
} catch {
|
|
530
|
+
return null;
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
return null;
|
|
535
|
+
}
|
|
536
|
+
var ce = Object.prototype.hasOwnProperty, Be = {
|
|
537
|
+
key: !0,
|
|
538
|
+
ref: !0,
|
|
539
|
+
__self: !0,
|
|
540
|
+
__source: !0
|
|
541
|
+
}, ze, He, je;
|
|
542
|
+
je = {};
|
|
543
|
+
function qe(e) {
|
|
544
|
+
if (ce.call(e, "ref")) {
|
|
545
|
+
var t = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
546
|
+
if (t && t.isReactWarning)
|
|
547
|
+
return !1;
|
|
548
|
+
}
|
|
549
|
+
return e.ref !== void 0;
|
|
550
|
+
}
|
|
551
|
+
function Ge(e) {
|
|
552
|
+
if (ce.call(e, "key")) {
|
|
553
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
554
|
+
if (t && t.isReactWarning)
|
|
555
|
+
return !1;
|
|
556
|
+
}
|
|
557
|
+
return e.key !== void 0;
|
|
558
|
+
}
|
|
559
|
+
function Dt(e, t) {
|
|
560
|
+
var n = function() {
|
|
561
|
+
ze || (ze = !0, f("%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)", t));
|
|
562
|
+
};
|
|
563
|
+
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
564
|
+
get: n,
|
|
565
|
+
configurable: !0
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
function $t(e, t) {
|
|
569
|
+
var n = function() {
|
|
570
|
+
He || (He = !0, f("%s: `ref` 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)", t));
|
|
571
|
+
};
|
|
572
|
+
n.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
573
|
+
get: n,
|
|
574
|
+
configurable: !0
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
function It(e) {
|
|
578
|
+
if (typeof e.ref == "string" && B.current && e.__self && B.current.stateNode !== e.__self) {
|
|
579
|
+
var t = ee(B.current.type);
|
|
580
|
+
je[t] || (f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', t, e.ref), je[t] = !0);
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
var Ae = function(e, t, n, a, o, s, i) {
|
|
584
|
+
var l = {
|
|
585
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
586
|
+
$$typeof: T,
|
|
587
|
+
// Built-in properties that belong on the element
|
|
588
|
+
type: e,
|
|
589
|
+
key: t,
|
|
590
|
+
ref: n,
|
|
591
|
+
props: i,
|
|
592
|
+
// Record the component responsible for creating this element.
|
|
593
|
+
_owner: s
|
|
594
|
+
};
|
|
595
|
+
return l._store = {}, Object.defineProperty(l._store, "validated", {
|
|
596
|
+
configurable: !1,
|
|
597
|
+
enumerable: !1,
|
|
598
|
+
writable: !0,
|
|
599
|
+
value: !1
|
|
600
|
+
}), Object.defineProperty(l, "_self", {
|
|
601
|
+
configurable: !1,
|
|
602
|
+
enumerable: !1,
|
|
603
|
+
writable: !1,
|
|
604
|
+
value: a
|
|
605
|
+
}), Object.defineProperty(l, "_source", {
|
|
606
|
+
configurable: !1,
|
|
607
|
+
enumerable: !1,
|
|
608
|
+
writable: !1,
|
|
609
|
+
value: o
|
|
610
|
+
}), Object.freeze && (Object.freeze(l.props), Object.freeze(l)), l;
|
|
611
|
+
};
|
|
612
|
+
function Nt(e, t, n) {
|
|
613
|
+
var a, o = {}, s = null, i = null, l = null, y = null;
|
|
614
|
+
if (t != null) {
|
|
615
|
+
qe(t) && (i = t.ref, It(t)), Ge(t) && (me(t.key), s = "" + t.key), l = t.__self === void 0 ? null : t.__self, y = t.__source === void 0 ? null : t.__source;
|
|
616
|
+
for (a in t)
|
|
617
|
+
ce.call(t, a) && !Be.hasOwnProperty(a) && (o[a] = t[a]);
|
|
618
|
+
}
|
|
619
|
+
var g = arguments.length - 2;
|
|
620
|
+
if (g === 1)
|
|
621
|
+
o.children = n;
|
|
622
|
+
else if (g > 1) {
|
|
623
|
+
for (var R = Array(g), w = 0; w < g; w++)
|
|
624
|
+
R[w] = arguments[w + 2];
|
|
625
|
+
Object.freeze && Object.freeze(R), o.children = R;
|
|
626
|
+
}
|
|
627
|
+
if (e && e.defaultProps) {
|
|
628
|
+
var C = e.defaultProps;
|
|
629
|
+
for (a in C)
|
|
630
|
+
o[a] === void 0 && (o[a] = C[a]);
|
|
631
|
+
}
|
|
632
|
+
if (s || i) {
|
|
633
|
+
var O = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
634
|
+
s && Dt(o, O), i && $t(o, O);
|
|
635
|
+
}
|
|
636
|
+
return Ae(e, s, i, l, y, B.current, o);
|
|
637
|
+
}
|
|
638
|
+
function Ft(e, t) {
|
|
639
|
+
var n = Ae(e.type, t, e.ref, e._self, e._source, e._owner, e.props);
|
|
640
|
+
return n;
|
|
641
|
+
}
|
|
642
|
+
function Lt(e, t, n) {
|
|
643
|
+
if (e == null)
|
|
644
|
+
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + e + ".");
|
|
645
|
+
var a, o = d({}, e.props), s = e.key, i = e.ref, l = e._self, y = e._source, g = e._owner;
|
|
646
|
+
if (t != null) {
|
|
647
|
+
qe(t) && (i = t.ref, g = B.current), Ge(t) && (me(t.key), s = "" + t.key);
|
|
648
|
+
var R;
|
|
649
|
+
e.type && e.type.defaultProps && (R = e.type.defaultProps);
|
|
650
|
+
for (a in t)
|
|
651
|
+
ce.call(t, a) && !Be.hasOwnProperty(a) && (t[a] === void 0 && R !== void 0 ? o[a] = R[a] : o[a] = t[a]);
|
|
652
|
+
}
|
|
653
|
+
var w = arguments.length - 2;
|
|
654
|
+
if (w === 1)
|
|
655
|
+
o.children = n;
|
|
656
|
+
else if (w > 1) {
|
|
657
|
+
for (var C = Array(w), O = 0; O < w; O++)
|
|
658
|
+
C[O] = arguments[O + 2];
|
|
659
|
+
o.children = C;
|
|
660
|
+
}
|
|
661
|
+
return Ae(e.type, s, i, l, y, g, o);
|
|
662
|
+
}
|
|
663
|
+
function ae(e) {
|
|
664
|
+
return typeof e == "object" && e !== null && e.$$typeof === T;
|
|
665
|
+
}
|
|
666
|
+
var Ke = ".", Mt = ":";
|
|
667
|
+
function xt(e) {
|
|
668
|
+
var t = /[=:]/g, n = {
|
|
669
|
+
"=": "=0",
|
|
670
|
+
":": "=2"
|
|
671
|
+
}, a = e.replace(t, function(o) {
|
|
672
|
+
return n[o];
|
|
673
|
+
});
|
|
674
|
+
return "$" + a;
|
|
675
|
+
}
|
|
676
|
+
var Qe = !1, Ut = /\/+/g;
|
|
677
|
+
function Je(e) {
|
|
678
|
+
return e.replace(Ut, "$&/");
|
|
679
|
+
}
|
|
680
|
+
function De(e, t) {
|
|
681
|
+
return typeof e == "object" && e !== null && e.key != null ? (me(e.key), xt("" + e.key)) : t.toString(36);
|
|
682
|
+
}
|
|
683
|
+
function ge(e, t, n, a, o) {
|
|
684
|
+
var s = typeof e;
|
|
685
|
+
(s === "undefined" || s === "boolean") && (e = null);
|
|
686
|
+
var i = !1;
|
|
687
|
+
if (e === null)
|
|
688
|
+
i = !0;
|
|
689
|
+
else
|
|
690
|
+
switch (s) {
|
|
691
|
+
case "string":
|
|
692
|
+
case "number":
|
|
693
|
+
i = !0;
|
|
694
|
+
break;
|
|
695
|
+
case "object":
|
|
696
|
+
switch (e.$$typeof) {
|
|
697
|
+
case T:
|
|
698
|
+
case A:
|
|
699
|
+
i = !0;
|
|
700
|
+
}
|
|
701
|
+
}
|
|
702
|
+
if (i) {
|
|
703
|
+
var l = e, y = o(l), g = a === "" ? Ke + De(l, 0) : a;
|
|
704
|
+
if (he(y)) {
|
|
705
|
+
var R = "";
|
|
706
|
+
g != null && (R = Je(g) + "/"), ge(y, t, R, "", function($r) {
|
|
707
|
+
return $r;
|
|
708
|
+
});
|
|
709
|
+
} else
|
|
710
|
+
y != null && (ae(y) && (y.key && (!l || l.key !== y.key) && me(y.key), y = Ft(
|
|
711
|
+
y,
|
|
712
|
+
// Keep both the (mapped) and old keys if they differ, just as
|
|
713
|
+
// traverseAllChildren used to do for objects as children
|
|
714
|
+
n + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
715
|
+
(y.key && (!l || l.key !== y.key) ? (
|
|
716
|
+
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
717
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
718
|
+
Je("" + y.key) + "/"
|
|
719
|
+
) : "") + g
|
|
720
|
+
)), t.push(y));
|
|
721
|
+
return 1;
|
|
722
|
+
}
|
|
723
|
+
var w, C, O = 0, $ = a === "" ? Ke : a + Mt;
|
|
724
|
+
if (he(e))
|
|
725
|
+
for (var Oe = 0; Oe < e.length; Oe++)
|
|
726
|
+
w = e[Oe], C = $ + De(w, Oe), O += ge(w, t, n, C, o);
|
|
727
|
+
else {
|
|
728
|
+
var Ve = W(e);
|
|
729
|
+
if (typeof Ve == "function") {
|
|
730
|
+
var Et = e;
|
|
731
|
+
Ve === Et.entries && (Qe || Z("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), Qe = !0);
|
|
732
|
+
for (var Ar = Ve.call(Et), Rt, Dr = 0; !(Rt = Ar.next()).done; )
|
|
733
|
+
w = Rt.value, C = $ + De(w, Dr++), O += ge(w, t, n, C, o);
|
|
734
|
+
} else if (s === "object") {
|
|
735
|
+
var wt = String(e);
|
|
736
|
+
throw new Error("Objects are not valid as a React child (found: " + (wt === "[object Object]" ? "object with keys {" + Object.keys(e).join(", ") + "}" : wt) + "). If you meant to render a collection of children, use an array instead.");
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
return O;
|
|
740
|
+
}
|
|
741
|
+
function _e(e, t, n) {
|
|
742
|
+
if (e == null)
|
|
743
|
+
return e;
|
|
744
|
+
var a = [], o = 0;
|
|
745
|
+
return ge(e, a, "", "", function(s) {
|
|
746
|
+
return t.call(n, s, o++);
|
|
747
|
+
}), a;
|
|
748
|
+
}
|
|
749
|
+
function Vt(e) {
|
|
750
|
+
var t = 0;
|
|
751
|
+
return _e(e, function() {
|
|
752
|
+
t++;
|
|
753
|
+
}), t;
|
|
754
|
+
}
|
|
755
|
+
function Wt(e, t, n) {
|
|
756
|
+
_e(e, function() {
|
|
757
|
+
t.apply(this, arguments);
|
|
758
|
+
}, n);
|
|
759
|
+
}
|
|
760
|
+
function Yt(e) {
|
|
761
|
+
return _e(e, function(t) {
|
|
762
|
+
return t;
|
|
763
|
+
}) || [];
|
|
764
|
+
}
|
|
765
|
+
function Bt(e) {
|
|
766
|
+
if (!ae(e))
|
|
767
|
+
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
768
|
+
return e;
|
|
769
|
+
}
|
|
770
|
+
function zt(e) {
|
|
771
|
+
var t = {
|
|
772
|
+
$$typeof: F,
|
|
773
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
774
|
+
// some renderers as primary and others as secondary. We only expect
|
|
775
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
776
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
777
|
+
// Secondary renderers store their context values on separate fields.
|
|
778
|
+
_currentValue: e,
|
|
779
|
+
_currentValue2: e,
|
|
780
|
+
// Used to track how many concurrent renderers this context currently
|
|
781
|
+
// supports within in a single renderer. Such as parallel server rendering.
|
|
782
|
+
_threadCount: 0,
|
|
783
|
+
// These are circular
|
|
784
|
+
Provider: null,
|
|
785
|
+
Consumer: null,
|
|
786
|
+
// Add these to use same hidden class in VM as ServerContext
|
|
787
|
+
_defaultValue: null,
|
|
788
|
+
_globalName: null
|
|
789
|
+
};
|
|
790
|
+
t.Provider = {
|
|
791
|
+
$$typeof: z,
|
|
792
|
+
_context: t
|
|
793
|
+
};
|
|
794
|
+
var n = !1, a = !1, o = !1;
|
|
795
|
+
{
|
|
796
|
+
var s = {
|
|
797
|
+
$$typeof: F,
|
|
798
|
+
_context: t
|
|
799
|
+
};
|
|
800
|
+
Object.defineProperties(s, {
|
|
801
|
+
Provider: {
|
|
802
|
+
get: function() {
|
|
803
|
+
return a || (a = !0, f("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")), t.Provider;
|
|
804
|
+
},
|
|
805
|
+
set: function(i) {
|
|
806
|
+
t.Provider = i;
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
_currentValue: {
|
|
810
|
+
get: function() {
|
|
811
|
+
return t._currentValue;
|
|
812
|
+
},
|
|
813
|
+
set: function(i) {
|
|
814
|
+
t._currentValue = i;
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
_currentValue2: {
|
|
818
|
+
get: function() {
|
|
819
|
+
return t._currentValue2;
|
|
820
|
+
},
|
|
821
|
+
set: function(i) {
|
|
822
|
+
t._currentValue2 = i;
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
_threadCount: {
|
|
826
|
+
get: function() {
|
|
827
|
+
return t._threadCount;
|
|
828
|
+
},
|
|
829
|
+
set: function(i) {
|
|
830
|
+
t._threadCount = i;
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
Consumer: {
|
|
834
|
+
get: function() {
|
|
835
|
+
return n || (n = !0, f("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")), t.Consumer;
|
|
836
|
+
}
|
|
837
|
+
},
|
|
838
|
+
displayName: {
|
|
839
|
+
get: function() {
|
|
840
|
+
return t.displayName;
|
|
841
|
+
},
|
|
842
|
+
set: function(i) {
|
|
843
|
+
o || (Z("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", i), o = !0);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
}), t.Consumer = s;
|
|
847
|
+
}
|
|
848
|
+
return t._currentRenderer = null, t._currentRenderer2 = null, t;
|
|
849
|
+
}
|
|
850
|
+
var fe = -1, $e = 0, Xe = 1, Ht = 2;
|
|
851
|
+
function qt(e) {
|
|
852
|
+
if (e._status === fe) {
|
|
853
|
+
var t = e._result, n = t();
|
|
854
|
+
if (n.then(function(s) {
|
|
855
|
+
if (e._status === $e || e._status === fe) {
|
|
856
|
+
var i = e;
|
|
857
|
+
i._status = Xe, i._result = s;
|
|
858
|
+
}
|
|
859
|
+
}, function(s) {
|
|
860
|
+
if (e._status === $e || e._status === fe) {
|
|
861
|
+
var i = e;
|
|
862
|
+
i._status = Ht, i._result = s;
|
|
863
|
+
}
|
|
864
|
+
}), e._status === fe) {
|
|
865
|
+
var a = e;
|
|
866
|
+
a._status = $e, a._result = n;
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
if (e._status === Xe) {
|
|
870
|
+
var o = e._result;
|
|
871
|
+
return o === void 0 && f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
872
|
+
|
|
873
|
+
Your code should look like:
|
|
874
|
+
const MyComponent = lazy(() => import('./MyComponent'))
|
|
875
|
+
|
|
876
|
+
Did you accidentally put curly braces around the import?`, o), "default" in o || f(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
877
|
+
|
|
878
|
+
Your code should look like:
|
|
879
|
+
const MyComponent = lazy(() => import('./MyComponent'))`, o), o.default;
|
|
880
|
+
} else
|
|
881
|
+
throw e._result;
|
|
882
|
+
}
|
|
883
|
+
function Gt(e) {
|
|
884
|
+
var t = {
|
|
885
|
+
// We use these fields to store the result.
|
|
886
|
+
_status: fe,
|
|
887
|
+
_result: e
|
|
888
|
+
}, n = {
|
|
889
|
+
$$typeof: P,
|
|
890
|
+
_payload: t,
|
|
891
|
+
_init: qt
|
|
892
|
+
};
|
|
893
|
+
{
|
|
894
|
+
var a, o;
|
|
895
|
+
Object.defineProperties(n, {
|
|
896
|
+
defaultProps: {
|
|
897
|
+
configurable: !0,
|
|
898
|
+
get: function() {
|
|
899
|
+
return a;
|
|
900
|
+
},
|
|
901
|
+
set: function(s) {
|
|
902
|
+
f("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), a = s, Object.defineProperty(n, "defaultProps", {
|
|
903
|
+
enumerable: !0
|
|
904
|
+
});
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
propTypes: {
|
|
908
|
+
configurable: !0,
|
|
909
|
+
get: function() {
|
|
910
|
+
return o;
|
|
911
|
+
},
|
|
912
|
+
set: function(s) {
|
|
913
|
+
f("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."), o = s, Object.defineProperty(n, "propTypes", {
|
|
914
|
+
enumerable: !0
|
|
915
|
+
});
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
});
|
|
919
|
+
}
|
|
920
|
+
return n;
|
|
921
|
+
}
|
|
922
|
+
function Kt(e) {
|
|
923
|
+
e != null && e.$$typeof === D ? f("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : typeof e != "function" ? f("forwardRef requires a render function but was given %s.", e === null ? "null" : typeof e) : e.length !== 0 && e.length !== 2 && f("forwardRef render functions accept exactly two parameters: props and ref. %s", e.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."), e != null && (e.defaultProps != null || e.propTypes != null) && f("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
924
|
+
var t = {
|
|
925
|
+
$$typeof: N,
|
|
926
|
+
render: e
|
|
927
|
+
};
|
|
928
|
+
{
|
|
929
|
+
var n;
|
|
930
|
+
Object.defineProperty(t, "displayName", {
|
|
931
|
+
enumerable: !1,
|
|
932
|
+
configurable: !0,
|
|
933
|
+
get: function() {
|
|
934
|
+
return n;
|
|
935
|
+
},
|
|
936
|
+
set: function(a) {
|
|
937
|
+
n = a, !e.name && !e.displayName && (e.displayName = a);
|
|
938
|
+
}
|
|
939
|
+
});
|
|
940
|
+
}
|
|
941
|
+
return t;
|
|
942
|
+
}
|
|
943
|
+
var Ze;
|
|
944
|
+
Ze = Symbol.for("react.module.reference");
|
|
945
|
+
function et(e) {
|
|
946
|
+
return !!(typeof e == "string" || typeof e == "function" || e === k || e === I || ne || e === V || e === H || e === J || se || e === G || ie || ke || ve || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === D || e.$$typeof === z || e.$$typeof === F || e.$$typeof === N || // This needs to include all possible module reference object
|
|
947
|
+
// types supported by any Flight configuration anywhere since
|
|
948
|
+
// we don't know which Flight build this will end up being used
|
|
949
|
+
// with.
|
|
950
|
+
e.$$typeof === Ze || e.getModuleId !== void 0));
|
|
951
|
+
}
|
|
952
|
+
function Qt(e, t) {
|
|
953
|
+
et(e) || f("memo: The first argument must be a component. Instead received: %s", e === null ? "null" : typeof e);
|
|
954
|
+
var n = {
|
|
955
|
+
$$typeof: D,
|
|
956
|
+
type: e,
|
|
957
|
+
compare: t === void 0 ? null : t
|
|
958
|
+
};
|
|
959
|
+
{
|
|
960
|
+
var a;
|
|
961
|
+
Object.defineProperty(n, "displayName", {
|
|
962
|
+
enumerable: !1,
|
|
963
|
+
configurable: !0,
|
|
964
|
+
get: function() {
|
|
965
|
+
return a;
|
|
966
|
+
},
|
|
967
|
+
set: function(o) {
|
|
968
|
+
a = o, !e.name && !e.displayName && (e.displayName = o);
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
return n;
|
|
973
|
+
}
|
|
974
|
+
function x() {
|
|
975
|
+
var e = K.current;
|
|
976
|
+
return e === null && f(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
977
|
+
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
978
|
+
2. You might be breaking the Rules of Hooks
|
|
979
|
+
3. You might have more than one copy of React in the same app
|
|
980
|
+
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`), e;
|
|
981
|
+
}
|
|
982
|
+
function Jt(e) {
|
|
983
|
+
var t = x();
|
|
984
|
+
if (e._context !== void 0) {
|
|
985
|
+
var n = e._context;
|
|
986
|
+
n.Consumer === e ? f("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?") : n.Provider === e && f("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
987
|
+
}
|
|
988
|
+
return t.useContext(e);
|
|
989
|
+
}
|
|
990
|
+
function Xt(e) {
|
|
991
|
+
var t = x();
|
|
992
|
+
return t.useState(e);
|
|
993
|
+
}
|
|
994
|
+
function Zt(e, t, n) {
|
|
995
|
+
var a = x();
|
|
996
|
+
return a.useReducer(e, t, n);
|
|
997
|
+
}
|
|
998
|
+
function er(e) {
|
|
999
|
+
var t = x();
|
|
1000
|
+
return t.useRef(e);
|
|
1001
|
+
}
|
|
1002
|
+
function tr(e, t) {
|
|
1003
|
+
var n = x();
|
|
1004
|
+
return n.useEffect(e, t);
|
|
1005
|
+
}
|
|
1006
|
+
function rr(e, t) {
|
|
1007
|
+
var n = x();
|
|
1008
|
+
return n.useInsertionEffect(e, t);
|
|
1009
|
+
}
|
|
1010
|
+
function nr(e, t) {
|
|
1011
|
+
var n = x();
|
|
1012
|
+
return n.useLayoutEffect(e, t);
|
|
1013
|
+
}
|
|
1014
|
+
function ar(e, t) {
|
|
1015
|
+
var n = x();
|
|
1016
|
+
return n.useCallback(e, t);
|
|
1017
|
+
}
|
|
1018
|
+
function or(e, t) {
|
|
1019
|
+
var n = x();
|
|
1020
|
+
return n.useMemo(e, t);
|
|
1021
|
+
}
|
|
1022
|
+
function ur(e, t, n) {
|
|
1023
|
+
var a = x();
|
|
1024
|
+
return a.useImperativeHandle(e, t, n);
|
|
1025
|
+
}
|
|
1026
|
+
function ir(e, t) {
|
|
1027
|
+
{
|
|
1028
|
+
var n = x();
|
|
1029
|
+
return n.useDebugValue(e, t);
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
function sr() {
|
|
1033
|
+
var e = x();
|
|
1034
|
+
return e.useTransition();
|
|
1035
|
+
}
|
|
1036
|
+
function cr(e) {
|
|
1037
|
+
var t = x();
|
|
1038
|
+
return t.useDeferredValue(e);
|
|
1039
|
+
}
|
|
1040
|
+
function fr() {
|
|
1041
|
+
var e = x();
|
|
1042
|
+
return e.useId();
|
|
1043
|
+
}
|
|
1044
|
+
function lr(e, t, n) {
|
|
1045
|
+
var a = x();
|
|
1046
|
+
return a.useSyncExternalStore(e, t, n);
|
|
1047
|
+
}
|
|
1048
|
+
var le = 0, tt, rt, nt, at, ot, ut, it;
|
|
1049
|
+
function st() {
|
|
1050
|
+
}
|
|
1051
|
+
st.__reactDisabledLog = !0;
|
|
1052
|
+
function dr() {
|
|
1053
|
+
{
|
|
1054
|
+
if (le === 0) {
|
|
1055
|
+
tt = console.log, rt = console.info, nt = console.warn, at = console.error, ot = console.group, ut = console.groupCollapsed, it = console.groupEnd;
|
|
1056
|
+
var e = {
|
|
1057
|
+
configurable: !0,
|
|
1058
|
+
enumerable: !0,
|
|
1059
|
+
value: st,
|
|
1060
|
+
writable: !0
|
|
1061
|
+
};
|
|
1062
|
+
Object.defineProperties(console, {
|
|
1063
|
+
info: e,
|
|
1064
|
+
log: e,
|
|
1065
|
+
warn: e,
|
|
1066
|
+
error: e,
|
|
1067
|
+
group: e,
|
|
1068
|
+
groupCollapsed: e,
|
|
1069
|
+
groupEnd: e
|
|
1070
|
+
});
|
|
1071
|
+
}
|
|
1072
|
+
le++;
|
|
1073
|
+
}
|
|
1074
|
+
}
|
|
1075
|
+
function pr() {
|
|
1076
|
+
{
|
|
1077
|
+
if (le--, le === 0) {
|
|
1078
|
+
var e = {
|
|
1079
|
+
configurable: !0,
|
|
1080
|
+
enumerable: !0,
|
|
1081
|
+
writable: !0
|
|
1082
|
+
};
|
|
1083
|
+
Object.defineProperties(console, {
|
|
1084
|
+
log: d({}, e, {
|
|
1085
|
+
value: tt
|
|
1086
|
+
}),
|
|
1087
|
+
info: d({}, e, {
|
|
1088
|
+
value: rt
|
|
1089
|
+
}),
|
|
1090
|
+
warn: d({}, e, {
|
|
1091
|
+
value: nt
|
|
1092
|
+
}),
|
|
1093
|
+
error: d({}, e, {
|
|
1094
|
+
value: at
|
|
1095
|
+
}),
|
|
1096
|
+
group: d({}, e, {
|
|
1097
|
+
value: ot
|
|
1098
|
+
}),
|
|
1099
|
+
groupCollapsed: d({}, e, {
|
|
1100
|
+
value: ut
|
|
1101
|
+
}),
|
|
1102
|
+
groupEnd: d({}, e, {
|
|
1103
|
+
value: it
|
|
1104
|
+
})
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
le < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
var Ie = q.ReactCurrentDispatcher, Ne;
|
|
1111
|
+
function be(e, t, n) {
|
|
1112
|
+
{
|
|
1113
|
+
if (Ne === void 0)
|
|
1114
|
+
try {
|
|
1115
|
+
throw Error();
|
|
1116
|
+
} catch (o) {
|
|
1117
|
+
var a = o.stack.trim().match(/\n( *(at )?)/);
|
|
1118
|
+
Ne = a && a[1] || "";
|
|
1119
|
+
}
|
|
1120
|
+
return `
|
|
1121
|
+
` + Ne + e;
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
var Fe = !1, Ee;
|
|
1125
|
+
{
|
|
1126
|
+
var vr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
1127
|
+
Ee = new vr();
|
|
1128
|
+
}
|
|
1129
|
+
function ct(e, t) {
|
|
1130
|
+
if (!e || Fe)
|
|
1131
|
+
return "";
|
|
1132
|
+
{
|
|
1133
|
+
var n = Ee.get(e);
|
|
1134
|
+
if (n !== void 0)
|
|
1135
|
+
return n;
|
|
1136
|
+
}
|
|
1137
|
+
var a;
|
|
1138
|
+
Fe = !0;
|
|
1139
|
+
var o = Error.prepareStackTrace;
|
|
1140
|
+
Error.prepareStackTrace = void 0;
|
|
1141
|
+
var s;
|
|
1142
|
+
s = Ie.current, Ie.current = null, dr();
|
|
1143
|
+
try {
|
|
1144
|
+
if (t) {
|
|
1145
|
+
var i = function() {
|
|
1146
|
+
throw Error();
|
|
1147
|
+
};
|
|
1148
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
1149
|
+
set: function() {
|
|
1150
|
+
throw Error();
|
|
1151
|
+
}
|
|
1152
|
+
}), typeof Reflect == "object" && Reflect.construct) {
|
|
1153
|
+
try {
|
|
1154
|
+
Reflect.construct(i, []);
|
|
1155
|
+
} catch ($) {
|
|
1156
|
+
a = $;
|
|
1157
|
+
}
|
|
1158
|
+
Reflect.construct(e, [], i);
|
|
1159
|
+
} else {
|
|
1160
|
+
try {
|
|
1161
|
+
i.call();
|
|
1162
|
+
} catch ($) {
|
|
1163
|
+
a = $;
|
|
1164
|
+
}
|
|
1165
|
+
e.call(i.prototype);
|
|
1166
|
+
}
|
|
1167
|
+
} else {
|
|
1168
|
+
try {
|
|
1169
|
+
throw Error();
|
|
1170
|
+
} catch ($) {
|
|
1171
|
+
a = $;
|
|
1172
|
+
}
|
|
1173
|
+
e();
|
|
1174
|
+
}
|
|
1175
|
+
} catch ($) {
|
|
1176
|
+
if ($ && a && typeof $.stack == "string") {
|
|
1177
|
+
for (var l = $.stack.split(`
|
|
1178
|
+
`), y = a.stack.split(`
|
|
1179
|
+
`), g = l.length - 1, R = y.length - 1; g >= 1 && R >= 0 && l[g] !== y[R]; )
|
|
1180
|
+
R--;
|
|
1181
|
+
for (; g >= 1 && R >= 0; g--, R--)
|
|
1182
|
+
if (l[g] !== y[R]) {
|
|
1183
|
+
if (g !== 1 || R !== 1)
|
|
1184
|
+
do
|
|
1185
|
+
if (g--, R--, R < 0 || l[g] !== y[R]) {
|
|
1186
|
+
var w = `
|
|
1187
|
+
` + l[g].replace(" at new ", " at ");
|
|
1188
|
+
return e.displayName && w.includes("<anonymous>") && (w = w.replace("<anonymous>", e.displayName)), typeof e == "function" && Ee.set(e, w), w;
|
|
1189
|
+
}
|
|
1190
|
+
while (g >= 1 && R >= 0);
|
|
1191
|
+
break;
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
} finally {
|
|
1195
|
+
Fe = !1, Ie.current = s, pr(), Error.prepareStackTrace = o;
|
|
1196
|
+
}
|
|
1197
|
+
var C = e ? e.displayName || e.name : "", O = C ? be(C) : "";
|
|
1198
|
+
return typeof e == "function" && Ee.set(e, O), O;
|
|
1199
|
+
}
|
|
1200
|
+
function yr(e, t, n) {
|
|
1201
|
+
return ct(e, !1);
|
|
1202
|
+
}
|
|
1203
|
+
function hr(e) {
|
|
1204
|
+
var t = e.prototype;
|
|
1205
|
+
return !!(t && t.isReactComponent);
|
|
1206
|
+
}
|
|
1207
|
+
function Re(e, t, n) {
|
|
1208
|
+
if (e == null)
|
|
1209
|
+
return "";
|
|
1210
|
+
if (typeof e == "function")
|
|
1211
|
+
return ct(e, hr(e));
|
|
1212
|
+
if (typeof e == "string")
|
|
1213
|
+
return be(e);
|
|
1214
|
+
switch (e) {
|
|
1215
|
+
case H:
|
|
1216
|
+
return be("Suspense");
|
|
1217
|
+
case J:
|
|
1218
|
+
return be("SuspenseList");
|
|
1219
|
+
}
|
|
1220
|
+
if (typeof e == "object")
|
|
1221
|
+
switch (e.$$typeof) {
|
|
1222
|
+
case N:
|
|
1223
|
+
return yr(e.render);
|
|
1224
|
+
case D:
|
|
1225
|
+
return Re(e.type, t, n);
|
|
1226
|
+
case P: {
|
|
1227
|
+
var a = e, o = a._payload, s = a._init;
|
|
1228
|
+
try {
|
|
1229
|
+
return Re(s(o), t, n);
|
|
1230
|
+
} catch {
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
return "";
|
|
1235
|
+
}
|
|
1236
|
+
var ft = {}, lt = q.ReactDebugCurrentFrame;
|
|
1237
|
+
function we(e) {
|
|
1238
|
+
if (e) {
|
|
1239
|
+
var t = e._owner, n = Re(e.type, e._source, t ? t.type : null);
|
|
1240
|
+
lt.setExtraStackFrame(n);
|
|
1241
|
+
} else
|
|
1242
|
+
lt.setExtraStackFrame(null);
|
|
1243
|
+
}
|
|
1244
|
+
function mr(e, t, n, a, o) {
|
|
1245
|
+
{
|
|
1246
|
+
var s = Function.call.bind(ce);
|
|
1247
|
+
for (var i in e)
|
|
1248
|
+
if (s(e, i)) {
|
|
1249
|
+
var l = void 0;
|
|
1250
|
+
try {
|
|
1251
|
+
if (typeof e[i] != "function") {
|
|
1252
|
+
var y = Error((a || "React class") + ": " + n + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
1253
|
+
throw y.name = "Invariant Violation", y;
|
|
1254
|
+
}
|
|
1255
|
+
l = e[i](t, i, a, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
1256
|
+
} catch (g) {
|
|
1257
|
+
l = g;
|
|
1258
|
+
}
|
|
1259
|
+
l && !(l instanceof Error) && (we(o), f("%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).", a || "React class", n, i, typeof l), we(null)), l instanceof Error && !(l.message in ft) && (ft[l.message] = !0, we(o), f("Failed %s type: %s", n, l.message), we(null));
|
|
1260
|
+
}
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
function oe(e) {
|
|
1264
|
+
if (e) {
|
|
1265
|
+
var t = e._owner, n = Re(e.type, e._source, t ? t.type : null);
|
|
1266
|
+
pe(n);
|
|
1267
|
+
} else
|
|
1268
|
+
pe(null);
|
|
1269
|
+
}
|
|
1270
|
+
var Le;
|
|
1271
|
+
Le = !1;
|
|
1272
|
+
function dt() {
|
|
1273
|
+
if (B.current) {
|
|
1274
|
+
var e = ee(B.current.type);
|
|
1275
|
+
if (e)
|
|
1276
|
+
return `
|
|
1277
|
+
|
|
1278
|
+
Check the render method of \`` + e + "`.";
|
|
1279
|
+
}
|
|
1280
|
+
return "";
|
|
1281
|
+
}
|
|
1282
|
+
function gr(e) {
|
|
1283
|
+
if (e !== void 0) {
|
|
1284
|
+
var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
|
|
1285
|
+
return `
|
|
1286
|
+
|
|
1287
|
+
Check your code at ` + t + ":" + n + ".";
|
|
1288
|
+
}
|
|
1289
|
+
return "";
|
|
1290
|
+
}
|
|
1291
|
+
function _r(e) {
|
|
1292
|
+
return e != null ? gr(e.__source) : "";
|
|
1293
|
+
}
|
|
1294
|
+
var pt = {};
|
|
1295
|
+
function br(e) {
|
|
1296
|
+
var t = dt();
|
|
1297
|
+
if (!t) {
|
|
1298
|
+
var n = typeof e == "string" ? e : e.displayName || e.name;
|
|
1299
|
+
n && (t = `
|
|
1300
|
+
|
|
1301
|
+
Check the top-level render call using <` + n + ">.");
|
|
1302
|
+
}
|
|
1303
|
+
return t;
|
|
1304
|
+
}
|
|
1305
|
+
function vt(e, t) {
|
|
1306
|
+
if (!(!e._store || e._store.validated || e.key != null)) {
|
|
1307
|
+
e._store.validated = !0;
|
|
1308
|
+
var n = br(t);
|
|
1309
|
+
if (!pt[n]) {
|
|
1310
|
+
pt[n] = !0;
|
|
1311
|
+
var a = "";
|
|
1312
|
+
e && e._owner && e._owner !== B.current && (a = " It was passed a child from " + ee(e._owner.type) + "."), oe(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', n, a), oe(null);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
function yt(e, t) {
|
|
1317
|
+
if (typeof e == "object") {
|
|
1318
|
+
if (he(e))
|
|
1319
|
+
for (var n = 0; n < e.length; n++) {
|
|
1320
|
+
var a = e[n];
|
|
1321
|
+
ae(a) && vt(a, t);
|
|
1322
|
+
}
|
|
1323
|
+
else if (ae(e))
|
|
1324
|
+
e._store && (e._store.validated = !0);
|
|
1325
|
+
else if (e) {
|
|
1326
|
+
var o = W(e);
|
|
1327
|
+
if (typeof o == "function" && o !== e.entries)
|
|
1328
|
+
for (var s = o.call(e), i; !(i = s.next()).done; )
|
|
1329
|
+
ae(i.value) && vt(i.value, t);
|
|
1330
|
+
}
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
function ht(e) {
|
|
1334
|
+
{
|
|
1335
|
+
var t = e.type;
|
|
1336
|
+
if (t == null || typeof t == "string")
|
|
1337
|
+
return;
|
|
1338
|
+
var n;
|
|
1339
|
+
if (typeof t == "function")
|
|
1340
|
+
n = t.propTypes;
|
|
1341
|
+
else if (typeof t == "object" && (t.$$typeof === N || // Note: Memo only checks outer props here.
|
|
1342
|
+
// Inner props are checked in the reconciler.
|
|
1343
|
+
t.$$typeof === D))
|
|
1344
|
+
n = t.propTypes;
|
|
1345
|
+
else
|
|
1346
|
+
return;
|
|
1347
|
+
if (n) {
|
|
1348
|
+
var a = ee(t);
|
|
1349
|
+
mr(n, e.props, "prop", a, e);
|
|
1350
|
+
} else if (t.PropTypes !== void 0 && !Le) {
|
|
1351
|
+
Le = !0;
|
|
1352
|
+
var o = ee(t);
|
|
1353
|
+
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
1354
|
+
}
|
|
1355
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
function Er(e) {
|
|
1359
|
+
{
|
|
1360
|
+
for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
|
|
1361
|
+
var a = t[n];
|
|
1362
|
+
if (a !== "children" && a !== "key") {
|
|
1363
|
+
oe(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), oe(null);
|
|
1364
|
+
break;
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
e.ref !== null && (oe(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), oe(null));
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
function mt(e, t, n) {
|
|
1371
|
+
var a = et(e);
|
|
1372
|
+
if (!a) {
|
|
1373
|
+
var o = "";
|
|
1374
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
1375
|
+
var s = _r(t);
|
|
1376
|
+
s ? o += s : o += dt();
|
|
1377
|
+
var i;
|
|
1378
|
+
e === null ? i = "null" : he(e) ? i = "array" : e !== void 0 && e.$$typeof === T ? (i = "<" + (ee(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : i = typeof e, f("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", i, o);
|
|
1379
|
+
}
|
|
1380
|
+
var l = Nt.apply(this, arguments);
|
|
1381
|
+
if (l == null)
|
|
1382
|
+
return l;
|
|
1383
|
+
if (a)
|
|
1384
|
+
for (var y = 2; y < arguments.length; y++)
|
|
1385
|
+
yt(arguments[y], e);
|
|
1386
|
+
return e === k ? Er(l) : ht(l), l;
|
|
1387
|
+
}
|
|
1388
|
+
var gt = !1;
|
|
1389
|
+
function Rr(e) {
|
|
1390
|
+
var t = mt.bind(null, e);
|
|
1391
|
+
return t.type = e, gt || (gt = !0, Z("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")), Object.defineProperty(t, "type", {
|
|
1392
|
+
enumerable: !1,
|
|
1393
|
+
get: function() {
|
|
1394
|
+
return Z("Factory.type is deprecated. Access the class directly before passing it to createFactory."), Object.defineProperty(this, "type", {
|
|
1395
|
+
value: e
|
|
1396
|
+
}), e;
|
|
1397
|
+
}
|
|
1398
|
+
}), t;
|
|
1399
|
+
}
|
|
1400
|
+
function wr(e, t, n) {
|
|
1401
|
+
for (var a = Lt.apply(this, arguments), o = 2; o < arguments.length; o++)
|
|
1402
|
+
yt(arguments[o], a.type);
|
|
1403
|
+
return ht(a), a;
|
|
1404
|
+
}
|
|
1405
|
+
function Cr(e, t) {
|
|
1406
|
+
var n = Q.transition;
|
|
1407
|
+
Q.transition = {};
|
|
1408
|
+
var a = Q.transition;
|
|
1409
|
+
Q.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1410
|
+
try {
|
|
1411
|
+
e();
|
|
1412
|
+
} finally {
|
|
1413
|
+
if (Q.transition = n, n === null && a._updatedFibers) {
|
|
1414
|
+
var o = a._updatedFibers.size;
|
|
1415
|
+
o > 10 && Z("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."), a._updatedFibers.clear();
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
var _t = !1, Ce = null;
|
|
1420
|
+
function Sr(e) {
|
|
1421
|
+
if (Ce === null)
|
|
1422
|
+
try {
|
|
1423
|
+
var t = ("require" + Math.random()).slice(0, 7), n = h && h[t];
|
|
1424
|
+
Ce = n.call(h, "timers").setImmediate;
|
|
1425
|
+
} catch {
|
|
1426
|
+
Ce = function(o) {
|
|
1427
|
+
_t === !1 && (_t = !0, typeof MessageChannel > "u" && f("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
1428
|
+
var s = new MessageChannel();
|
|
1429
|
+
s.port1.onmessage = o, s.port2.postMessage(void 0);
|
|
1430
|
+
};
|
|
1431
|
+
}
|
|
1432
|
+
return Ce(e);
|
|
1433
|
+
}
|
|
1434
|
+
var ue = 0, bt = !1;
|
|
1435
|
+
function Or(e) {
|
|
1436
|
+
{
|
|
1437
|
+
var t = ue;
|
|
1438
|
+
ue++, j.current === null && (j.current = []);
|
|
1439
|
+
var n = j.isBatchingLegacy, a;
|
|
1440
|
+
try {
|
|
1441
|
+
if (j.isBatchingLegacy = !0, a = e(), !n && j.didScheduleLegacyUpdate) {
|
|
1442
|
+
var o = j.current;
|
|
1443
|
+
o !== null && (j.didScheduleLegacyUpdate = !1, Ue(o));
|
|
1444
|
+
}
|
|
1445
|
+
} catch (C) {
|
|
1446
|
+
throw Se(t), C;
|
|
1447
|
+
} finally {
|
|
1448
|
+
j.isBatchingLegacy = n;
|
|
1449
|
+
}
|
|
1450
|
+
if (a !== null && typeof a == "object" && typeof a.then == "function") {
|
|
1451
|
+
var s = a, i = !1, l = {
|
|
1452
|
+
then: function(C, O) {
|
|
1453
|
+
i = !0, s.then(function($) {
|
|
1454
|
+
Se(t), ue === 0 ? Me($, C, O) : C($);
|
|
1455
|
+
}, function($) {
|
|
1456
|
+
Se(t), O($);
|
|
1457
|
+
});
|
|
1458
|
+
}
|
|
1459
|
+
};
|
|
1460
|
+
return !bt && typeof Promise < "u" && Promise.resolve().then(function() {
|
|
1461
|
+
}).then(function() {
|
|
1462
|
+
i || (bt = !0, f("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
1463
|
+
}), l;
|
|
1464
|
+
} else {
|
|
1465
|
+
var y = a;
|
|
1466
|
+
if (Se(t), ue === 0) {
|
|
1467
|
+
var g = j.current;
|
|
1468
|
+
g !== null && (Ue(g), j.current = null);
|
|
1469
|
+
var R = {
|
|
1470
|
+
then: function(C, O) {
|
|
1471
|
+
j.current === null ? (j.current = [], Me(y, C, O)) : C(y);
|
|
1472
|
+
}
|
|
1473
|
+
};
|
|
1474
|
+
return R;
|
|
1475
|
+
} else {
|
|
1476
|
+
var w = {
|
|
1477
|
+
then: function(C, O) {
|
|
1478
|
+
C(y);
|
|
1479
|
+
}
|
|
1480
|
+
};
|
|
1481
|
+
return w;
|
|
1482
|
+
}
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
function Se(e) {
|
|
1487
|
+
e !== ue - 1 && f("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "), ue = e;
|
|
1488
|
+
}
|
|
1489
|
+
function Me(e, t, n) {
|
|
1490
|
+
{
|
|
1491
|
+
var a = j.current;
|
|
1492
|
+
if (a !== null)
|
|
1493
|
+
try {
|
|
1494
|
+
Ue(a), Sr(function() {
|
|
1495
|
+
a.length === 0 ? (j.current = null, t(e)) : Me(e, t, n);
|
|
1496
|
+
});
|
|
1497
|
+
} catch (o) {
|
|
1498
|
+
n(o);
|
|
1499
|
+
}
|
|
1500
|
+
else
|
|
1501
|
+
t(e);
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
var xe = !1;
|
|
1505
|
+
function Ue(e) {
|
|
1506
|
+
if (!xe) {
|
|
1507
|
+
xe = !0;
|
|
1508
|
+
var t = 0;
|
|
1509
|
+
try {
|
|
1510
|
+
for (; t < e.length; t++) {
|
|
1511
|
+
var n = e[t];
|
|
1512
|
+
do
|
|
1513
|
+
n = n(!0);
|
|
1514
|
+
while (n !== null);
|
|
1515
|
+
}
|
|
1516
|
+
e.length = 0;
|
|
1517
|
+
} catch (a) {
|
|
1518
|
+
throw e = e.slice(t + 1), a;
|
|
1519
|
+
} finally {
|
|
1520
|
+
xe = !1;
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
var Tr = mt, kr = wr, Pr = Rr, jr = {
|
|
1525
|
+
map: _e,
|
|
1526
|
+
forEach: Wt,
|
|
1527
|
+
count: Vt,
|
|
1528
|
+
toArray: Yt,
|
|
1529
|
+
only: Bt
|
|
1530
|
+
};
|
|
1531
|
+
c.Children = jr, c.Component = v, c.Fragment = k, c.Profiler = I, c.PureComponent = M, c.StrictMode = V, c.Suspense = H, c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = q, c.cloneElement = kr, c.createContext = zt, c.createElement = Tr, c.createFactory = Pr, c.createRef = Tt, c.forwardRef = Kt, c.isValidElement = ae, c.lazy = Gt, c.memo = Qt, c.startTransition = Cr, c.unstable_act = Or, c.useCallback = ar, c.useContext = Jt, c.useDebugValue = ir, c.useDeferredValue = cr, c.useEffect = tr, c.useId = fr, c.useImperativeHandle = ur, c.useInsertionEffect = rr, c.useLayoutEffect = nr, c.useMemo = or, c.useReducer = Zt, c.useRef = er, c.useState = Xt, c.useSyncExternalStore = lr, c.useTransition = sr, c.version = U, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
1532
|
+
}();
|
|
1533
|
+
}(xr, de)), de;
|
|
1534
|
+
}
|
|
1535
|
+
(function(h) {
|
|
1536
|
+
process.env.NODE_ENV === "production" ? h.exports = Mr() : h.exports = Ur();
|
|
1537
|
+
})(Lr);
|
|
1538
|
+
const Vr = /* @__PURE__ */ Fr(Te), Wr = /* @__PURE__ */ Nr({
|
|
1539
|
+
__proto__: null,
|
|
1540
|
+
default: Vr
|
|
1541
|
+
}, [Te]);
|
|
1542
|
+
/**
|
|
1543
|
+
* @license
|
|
1544
|
+
* Copyright 2018 Google LLC
|
|
1545
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1546
|
+
*/
|
|
1547
|
+
const Yr = /* @__PURE__ */ new Set(["children", "localName", "ref", "style", "className"]), Ot = /* @__PURE__ */ new WeakMap(), Br = (h, c, U, T, A) => {
|
|
1548
|
+
const k = A == null ? void 0 : A[c];
|
|
1549
|
+
k === void 0 || U === T ? U == null && c in HTMLElement.prototype ? h.removeAttribute(c) : h[c] = U : ((V, I, z) => {
|
|
1550
|
+
let F = Ot.get(V);
|
|
1551
|
+
F === void 0 && Ot.set(V, F = /* @__PURE__ */ new Map());
|
|
1552
|
+
let N = F.get(I);
|
|
1553
|
+
z !== void 0 ? N === void 0 ? (F.set(I, N = { handleEvent: z }), V.addEventListener(I, N)) : N.handleEvent = z : N !== void 0 && (F.delete(I), V.removeEventListener(I, N));
|
|
1554
|
+
})(h, k, U);
|
|
1555
|
+
};
|
|
1556
|
+
function zr(h = window.React, c, U, T, A) {
|
|
1557
|
+
let k, V, I;
|
|
1558
|
+
if (c === void 0) {
|
|
1559
|
+
const D = h;
|
|
1560
|
+
({ tagName: V, elementClass: I, events: T, displayName: A } = D), k = D.react;
|
|
1561
|
+
} else
|
|
1562
|
+
k = h, I = U, V = c;
|
|
1563
|
+
const z = k.Component, F = k.createElement, N = new Set(Object.keys(T ?? {}));
|
|
1564
|
+
class H extends z {
|
|
1565
|
+
constructor() {
|
|
1566
|
+
super(...arguments), this.o = null;
|
|
1567
|
+
}
|
|
1568
|
+
t(P) {
|
|
1569
|
+
if (this.o !== null)
|
|
1570
|
+
for (const G in this.i)
|
|
1571
|
+
Br(this.o, G, this.props[G], P ? P[G] : void 0, T);
|
|
1572
|
+
}
|
|
1573
|
+
componentDidMount() {
|
|
1574
|
+
this.t();
|
|
1575
|
+
}
|
|
1576
|
+
componentDidUpdate(P) {
|
|
1577
|
+
this.t(P);
|
|
1578
|
+
}
|
|
1579
|
+
render() {
|
|
1580
|
+
const { _$Gl: P, ...G } = this.props;
|
|
1581
|
+
this.h !== P && (this.u = (L) => {
|
|
1582
|
+
P !== null && ((W, K) => {
|
|
1583
|
+
typeof W == "function" ? W(K) : W.current = K;
|
|
1584
|
+
})(P, L), this.o = L, this.h = P;
|
|
1585
|
+
}), this.i = {};
|
|
1586
|
+
const Y = { ref: this.u };
|
|
1587
|
+
for (const [L, W] of Object.entries(G))
|
|
1588
|
+
Yr.has(L) ? Y[L === "className" ? "class" : L] = W : N.has(L) || L in I.prototype ? this.i[L] = W : Y[L] = W;
|
|
1589
|
+
return F(V, Y);
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
H.displayName = A ?? I.name;
|
|
1593
|
+
const J = k.forwardRef((D, P) => F(H, { ...D, _$Gl: P }, D == null ? void 0 : D.children));
|
|
1594
|
+
return J.displayName = H.displayName, J;
|
|
1595
|
+
}
|
|
1596
|
+
const Qr = zr({
|
|
1597
|
+
displayName: "PieButton",
|
|
1598
|
+
elementClass: Ir,
|
|
1599
|
+
react: Wr,
|
|
1600
|
+
tagName: "componentSelector",
|
|
1601
|
+
events: {}
|
|
1602
|
+
});
|
|
1603
|
+
export {
|
|
1604
|
+
Qr as PieButton
|
|
1605
|
+
};
|