skeleton-ghost-loader 2.0.8 → 2.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/skeleton-loader.es.js +277 -264
- package/dist/skeleton-loader.umd.js +12 -12
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import D from "react";
|
|
2
|
+
var ee = { exports: {} }, I = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,19 +9,19 @@ var Q = { exports: {} }, I = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var Oe;
|
|
13
13
|
function dr() {
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof: E, type:
|
|
14
|
+
if (Oe) return I;
|
|
15
|
+
Oe = 1;
|
|
16
|
+
var p = D, E = Symbol.for("react.element"), _ = Symbol.for("react.fragment"), l = Object.prototype.hasOwnProperty, f = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, s = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function T(g, c, S) {
|
|
18
|
+
var h, w = {}, O = null, Y = null;
|
|
19
|
+
S !== void 0 && (O = "" + S), c.key !== void 0 && (O = "" + c.key), c.ref !== void 0 && (Y = c.ref);
|
|
20
|
+
for (h in c) l.call(c, h) && !s.hasOwnProperty(h) && (w[h] = c[h]);
|
|
21
|
+
if (g && g.defaultProps) for (h in c = g.defaultProps, c) w[h] === void 0 && (w[h] = c[h]);
|
|
22
|
+
return { $$typeof: E, type: g, key: O, ref: Y, props: w, _owner: f.current };
|
|
23
23
|
}
|
|
24
|
-
return I.Fragment =
|
|
24
|
+
return I.Fragment = _, I.jsx = T, I.jsxs = T, I;
|
|
25
25
|
}
|
|
26
26
|
var W = {};
|
|
27
27
|
/**
|
|
@@ -33,18 +33,18 @@ var W = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
36
|
+
var xe;
|
|
37
37
|
function vr() {
|
|
38
|
-
return
|
|
39
|
-
var
|
|
40
|
-
function
|
|
38
|
+
return xe || (xe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var p = D, E = Symbol.for("react.element"), _ = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), T = Symbol.for("react.provider"), g = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), w = Symbol.for("react.memo"), O = Symbol.for("react.lazy"), Y = Symbol.for("react.offscreen"), re = Symbol.iterator, Pe = "@@iterator";
|
|
40
|
+
function ke(e) {
|
|
41
41
|
if (e === null || typeof e != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var r =
|
|
43
|
+
var r = re && e[re] || e[Pe];
|
|
44
44
|
return typeof r == "function" ? r : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var k = p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function y(e) {
|
|
48
48
|
{
|
|
49
49
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
50
50
|
t[n - 1] = arguments[n];
|
|
@@ -53,71 +53,71 @@ function vr() {
|
|
|
53
53
|
}
|
|
54
54
|
function je(e, r, t) {
|
|
55
55
|
{
|
|
56
|
-
var n =
|
|
57
|
-
|
|
58
|
-
var
|
|
59
|
-
return String(
|
|
56
|
+
var n = k.ReactDebugCurrentFrame, o = n.getStackAddendum();
|
|
57
|
+
o !== "" && (r += "%s", t = t.concat([o]));
|
|
58
|
+
var u = t.map(function(i) {
|
|
59
|
+
return String(i);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var
|
|
65
|
-
|
|
64
|
+
var Fe = !1, De = !1, Ae = !1, $e = !1, Ie = !1, te;
|
|
65
|
+
te = Symbol.for("react.module.reference");
|
|
66
66
|
function We(e) {
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
67
|
+
return !!(typeof e == "string" || typeof e == "function" || e === l || e === s || Ie || e === f || e === S || e === h || $e || e === Y || Fe || De || Ae || typeof e == "object" && e !== null && (e.$$typeof === O || e.$$typeof === w || e.$$typeof === T || e.$$typeof === g || e.$$typeof === c || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
|
-
e.$$typeof ===
|
|
71
|
+
e.$$typeof === te || e.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
73
|
function Ye(e, r, t) {
|
|
74
74
|
var n = e.displayName;
|
|
75
75
|
if (n)
|
|
76
76
|
return n;
|
|
77
|
-
var
|
|
78
|
-
return
|
|
77
|
+
var o = r.displayName || r.name || "";
|
|
78
|
+
return o !== "" ? t + "(" + o + ")" : t;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function ne(e) {
|
|
81
81
|
return e.displayName || "Context";
|
|
82
82
|
}
|
|
83
83
|
function C(e) {
|
|
84
84
|
if (e == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof e.tag == "number" &&
|
|
86
|
+
if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
87
|
return e.displayName || e.name || null;
|
|
88
88
|
if (typeof e == "string")
|
|
89
89
|
return e;
|
|
90
90
|
switch (e) {
|
|
91
|
-
case
|
|
91
|
+
case l:
|
|
92
92
|
return "Fragment";
|
|
93
|
-
case d:
|
|
94
|
-
return "Portal";
|
|
95
93
|
case _:
|
|
94
|
+
return "Portal";
|
|
95
|
+
case s:
|
|
96
96
|
return "Profiler";
|
|
97
|
-
case
|
|
97
|
+
case f:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case S:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case h:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof e == "object")
|
|
105
105
|
switch (e.$$typeof) {
|
|
106
|
-
case
|
|
106
|
+
case g:
|
|
107
107
|
var r = e;
|
|
108
|
-
return
|
|
109
|
-
case
|
|
108
|
+
return ne(r) + ".Consumer";
|
|
109
|
+
case T:
|
|
110
110
|
var t = e;
|
|
111
|
-
return
|
|
112
|
-
case
|
|
111
|
+
return ne(t._context) + ".Provider";
|
|
112
|
+
case c:
|
|
113
113
|
return Ye(e, e.render, "ForwardRef");
|
|
114
|
-
case
|
|
114
|
+
case w:
|
|
115
115
|
var n = e.displayName || null;
|
|
116
116
|
return n !== null ? n : C(e.type) || "Memo";
|
|
117
|
-
case
|
|
118
|
-
var
|
|
117
|
+
case O: {
|
|
118
|
+
var o = e, u = o._payload, i = o._init;
|
|
119
119
|
try {
|
|
120
|
-
return C(
|
|
120
|
+
return C(i(u));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,14 +125,14 @@ function vr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var x = Object.assign, A = 0, ae, ie, oe, se, ue, le, fe;
|
|
129
129
|
function ce() {
|
|
130
130
|
}
|
|
131
131
|
ce.__reactDisabledLog = !0;
|
|
132
|
-
function
|
|
132
|
+
function Ne() {
|
|
133
133
|
{
|
|
134
134
|
if (A === 0) {
|
|
135
|
-
|
|
135
|
+
ae = console.log, ie = console.info, oe = console.warn, se = console.error, ue = console.group, le = console.groupCollapsed, fe = console.groupEnd;
|
|
136
136
|
var e = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
@@ -152,7 +152,7 @@ function vr() {
|
|
|
152
152
|
A++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ve() {
|
|
156
156
|
{
|
|
157
157
|
if (A--, A === 0) {
|
|
158
158
|
var e = {
|
|
@@ -161,88 +161,88 @@ function vr() {
|
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
165
|
-
value: ne
|
|
166
|
-
}),
|
|
167
|
-
info: O({}, e, {
|
|
164
|
+
log: x({}, e, {
|
|
168
165
|
value: ae
|
|
169
166
|
}),
|
|
170
|
-
|
|
167
|
+
info: x({}, e, {
|
|
171
168
|
value: ie
|
|
172
169
|
}),
|
|
173
|
-
|
|
170
|
+
warn: x({}, e, {
|
|
174
171
|
value: oe
|
|
175
172
|
}),
|
|
176
|
-
|
|
177
|
-
value: ue
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: O({}, e, {
|
|
173
|
+
error: x({}, e, {
|
|
180
174
|
value: se
|
|
181
175
|
}),
|
|
182
|
-
|
|
176
|
+
group: x({}, e, {
|
|
177
|
+
value: ue
|
|
178
|
+
}),
|
|
179
|
+
groupCollapsed: x({}, e, {
|
|
183
180
|
value: le
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: x({}, e, {
|
|
183
|
+
value: fe
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
A < 0 &&
|
|
187
|
+
A < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
190
|
+
var z = k.ReactCurrentDispatcher, B;
|
|
191
|
+
function N(e, r, t) {
|
|
192
192
|
{
|
|
193
193
|
if (B === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var n =
|
|
196
|
+
} catch (o) {
|
|
197
|
+
var n = o.stack.trim().match(/\n( *(at )?)/);
|
|
198
198
|
B = n && n[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
201
|
` + B + e;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var q = !1, V;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var Le = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
V = new Le();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!e ||
|
|
209
|
+
function de(e, r) {
|
|
210
|
+
if (!e || q)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var t =
|
|
213
|
+
var t = V.get(e);
|
|
214
214
|
if (t !== void 0)
|
|
215
215
|
return t;
|
|
216
216
|
}
|
|
217
217
|
var n;
|
|
218
|
-
|
|
219
|
-
var
|
|
218
|
+
q = !0;
|
|
219
|
+
var o = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var u;
|
|
222
|
+
u = z.current, z.current = null, Ne();
|
|
223
223
|
try {
|
|
224
224
|
if (r) {
|
|
225
|
-
var
|
|
225
|
+
var i = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
228
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
229
229
|
set: function() {
|
|
230
230
|
throw Error();
|
|
231
231
|
}
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
|
-
Reflect.construct(
|
|
234
|
+
Reflect.construct(i, []);
|
|
235
235
|
} catch (b) {
|
|
236
236
|
n = b;
|
|
237
237
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
238
|
+
Reflect.construct(e, [], i);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
|
-
|
|
241
|
+
i.call();
|
|
242
242
|
} catch (b) {
|
|
243
243
|
n = b;
|
|
244
244
|
}
|
|
245
|
-
e.call(
|
|
245
|
+
e.call(i.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
@@ -254,95 +254,95 @@ function vr() {
|
|
|
254
254
|
}
|
|
255
255
|
} catch (b) {
|
|
256
256
|
if (b && n && typeof b.stack == "string") {
|
|
257
|
-
for (var
|
|
258
|
-
`),
|
|
259
|
-
`),
|
|
260
|
-
|
|
261
|
-
for (;
|
|
262
|
-
if (
|
|
263
|
-
if (
|
|
257
|
+
for (var a = b.stack.split(`
|
|
258
|
+
`), m = n.stack.split(`
|
|
259
|
+
`), d = a.length - 1, v = m.length - 1; d >= 1 && v >= 0 && a[d] !== m[v]; )
|
|
260
|
+
v--;
|
|
261
|
+
for (; d >= 1 && v >= 0; d--, v--)
|
|
262
|
+
if (a[d] !== m[v]) {
|
|
263
|
+
if (d !== 1 || v !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (
|
|
265
|
+
if (d--, v--, v < 0 || a[d] !== m[v]) {
|
|
266
266
|
var R = `
|
|
267
|
-
` +
|
|
268
|
-
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" &&
|
|
267
|
+
` + a[d].replace(" at new ", " at ");
|
|
268
|
+
return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, R), R;
|
|
269
269
|
}
|
|
270
|
-
while (
|
|
270
|
+
while (d >= 1 && v >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
q = !1, z.current = u, Ve(), Error.prepareStackTrace = o;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" &&
|
|
277
|
+
var F = e ? e.displayName || e.name : "", P = F ? N(F) : "";
|
|
278
|
+
return typeof e == "function" && V.set(e, P), P;
|
|
279
279
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
280
|
+
function Me(e, r, t) {
|
|
281
|
+
return de(e, !1);
|
|
282
282
|
}
|
|
283
283
|
function Ue(e) {
|
|
284
284
|
var r = e.prototype;
|
|
285
285
|
return !!(r && r.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function L(e, r, t) {
|
|
288
288
|
if (e == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
291
|
+
return de(e, Ue(e));
|
|
292
292
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
293
|
+
return N(e);
|
|
294
294
|
switch (e) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
295
|
+
case S:
|
|
296
|
+
return N("Suspense");
|
|
297
|
+
case h:
|
|
298
|
+
return N("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof e == "object")
|
|
301
301
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
var n = e,
|
|
302
|
+
case c:
|
|
303
|
+
return Me(e.render);
|
|
304
|
+
case w:
|
|
305
|
+
return L(e.type, r, t);
|
|
306
|
+
case O: {
|
|
307
|
+
var n = e, o = n._payload, u = n._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return L(u(o), r, t);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var $ = Object.prototype.hasOwnProperty,
|
|
317
|
-
function
|
|
316
|
+
var $ = Object.prototype.hasOwnProperty, ve = {}, pe = k.ReactDebugCurrentFrame;
|
|
317
|
+
function M(e) {
|
|
318
318
|
if (e) {
|
|
319
|
-
var r = e._owner, t =
|
|
320
|
-
|
|
319
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
320
|
+
pe.setExtraStackFrame(t);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
pe.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function ze(e, r, t, n, o) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
327
|
-
for (var
|
|
328
|
-
if (
|
|
329
|
-
var
|
|
326
|
+
var u = Function.call.bind($);
|
|
327
|
+
for (var i in e)
|
|
328
|
+
if (u(e, i)) {
|
|
329
|
+
var a = void 0;
|
|
330
330
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
331
|
+
if (typeof e[i] != "function") {
|
|
332
|
+
var m = Error((n || "React class") + ": " + t + " 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`.");
|
|
333
|
+
throw m.name = "Invariant Violation", m;
|
|
334
334
|
}
|
|
335
|
-
|
|
336
|
-
} catch (
|
|
337
|
-
|
|
335
|
+
a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
+
} catch (d) {
|
|
337
|
+
a = d;
|
|
338
338
|
}
|
|
339
|
-
|
|
339
|
+
a && !(a instanceof Error) && (M(o), y("%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).", n || "React class", t, i, typeof a), M(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, M(o), y("Failed %s type: %s", t, a.message), M(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
343
|
+
var Be = Array.isArray;
|
|
344
|
+
function J(e) {
|
|
345
|
+
return Be(e);
|
|
346
346
|
}
|
|
347
347
|
function qe(e) {
|
|
348
348
|
{
|
|
@@ -352,19 +352,19 @@ function vr() {
|
|
|
352
352
|
}
|
|
353
353
|
function Je(e) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return he(e), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function he(e) {
|
|
361
361
|
return "" + e;
|
|
362
362
|
}
|
|
363
363
|
function ge(e) {
|
|
364
364
|
if (Je(e))
|
|
365
|
-
return
|
|
365
|
+
return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qe(e)), he(e);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var ye = k.ReactCurrentOwner, Ke = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
@@ -387,12 +387,12 @@ function vr() {
|
|
|
387
387
|
return e.key !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function He(e, r) {
|
|
390
|
-
typeof e.ref == "string" &&
|
|
390
|
+
typeof e.ref == "string" && ye.current;
|
|
391
391
|
}
|
|
392
392
|
function Ze(e, r) {
|
|
393
393
|
{
|
|
394
394
|
var t = function() {
|
|
395
|
-
me || (me = !0,
|
|
395
|
+
me || (me = !0, y("%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)", r));
|
|
396
396
|
};
|
|
397
397
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
398
|
get: t,
|
|
@@ -403,7 +403,7 @@ function vr() {
|
|
|
403
403
|
function Qe(e, r) {
|
|
404
404
|
{
|
|
405
405
|
var t = function() {
|
|
406
|
-
be || (be = !0,
|
|
406
|
+
be || (be = !0, y("%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)", r));
|
|
407
407
|
};
|
|
408
408
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
409
|
get: t,
|
|
@@ -411,70 +411,70 @@ function vr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var er = function(e, r, t, n,
|
|
415
|
-
var
|
|
414
|
+
var er = function(e, r, t, n, o, u, i) {
|
|
415
|
+
var a = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
417
|
$$typeof: E,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: e,
|
|
420
420
|
key: r,
|
|
421
421
|
ref: t,
|
|
422
|
-
props:
|
|
422
|
+
props: i,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
|
-
_owner:
|
|
424
|
+
_owner: u
|
|
425
425
|
};
|
|
426
|
-
return
|
|
426
|
+
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
428
428
|
enumerable: !1,
|
|
429
429
|
writable: !0,
|
|
430
430
|
value: !1
|
|
431
|
-
}), Object.defineProperty(
|
|
431
|
+
}), Object.defineProperty(a, "_self", {
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
435
|
value: n
|
|
436
|
-
}), Object.defineProperty(
|
|
436
|
+
}), Object.defineProperty(a, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.freeze && (Object.freeze(
|
|
440
|
+
value: o
|
|
441
|
+
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
442
442
|
};
|
|
443
|
-
function rr(e, r, t, n,
|
|
443
|
+
function rr(e, r, t, n, o) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
446
|
-
t !== void 0 && (ge(t),
|
|
447
|
-
for (
|
|
448
|
-
$.call(r,
|
|
445
|
+
var u, i = {}, a = null, m = null;
|
|
446
|
+
t !== void 0 && (ge(t), a = "" + t), Xe(r) && (ge(r.key), a = "" + r.key), Ge(r) && (m = r.ref, He(r, o));
|
|
447
|
+
for (u in r)
|
|
448
|
+
$.call(r, u) && !Ke.hasOwnProperty(u) && (i[u] = r[u]);
|
|
449
449
|
if (e && e.defaultProps) {
|
|
450
|
-
var
|
|
451
|
-
for (
|
|
452
|
-
|
|
450
|
+
var d = e.defaultProps;
|
|
451
|
+
for (u in d)
|
|
452
|
+
i[u] === void 0 && (i[u] = d[u]);
|
|
453
453
|
}
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
|
|
454
|
+
if (a || m) {
|
|
455
|
+
var v = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
456
|
+
a && Ze(i, v), m && Qe(i, v);
|
|
457
457
|
}
|
|
458
|
-
return er(e,
|
|
458
|
+
return er(e, a, m, o, n, ye.current, i);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
461
|
+
var K = k.ReactCurrentOwner, Ee = k.ReactDebugCurrentFrame;
|
|
462
462
|
function j(e) {
|
|
463
463
|
if (e) {
|
|
464
|
-
var r = e._owner, t =
|
|
465
|
-
|
|
464
|
+
var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
|
|
465
|
+
Ee.setExtraStackFrame(t);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
Ee.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
469
|
+
var G;
|
|
470
|
+
G = !1;
|
|
471
|
+
function X(e) {
|
|
472
472
|
return typeof e == "object" && e !== null && e.$$typeof === E;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Re() {
|
|
475
475
|
{
|
|
476
|
-
if (
|
|
477
|
-
var e = C(
|
|
476
|
+
if (K.current) {
|
|
477
|
+
var e = C(K.current.type);
|
|
478
478
|
if (e)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -486,10 +486,10 @@ Check the render method of \`` + e + "`.";
|
|
|
486
486
|
function tr(e) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
|
-
var
|
|
489
|
+
var _e = {};
|
|
490
490
|
function nr(e) {
|
|
491
491
|
{
|
|
492
|
-
var r =
|
|
492
|
+
var r = Re();
|
|
493
493
|
if (!r) {
|
|
494
494
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
495
|
t && (r = `
|
|
@@ -499,35 +499,35 @@ Check the top-level render call using <` + t + ">.");
|
|
|
499
499
|
return r;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Te(e, r) {
|
|
503
503
|
{
|
|
504
504
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
505
|
return;
|
|
506
506
|
e._store.validated = !0;
|
|
507
507
|
var t = nr(r);
|
|
508
|
-
if (
|
|
508
|
+
if (_e[t])
|
|
509
509
|
return;
|
|
510
|
-
|
|
510
|
+
_e[t] = !0;
|
|
511
511
|
var n = "";
|
|
512
|
-
e && e._owner && e._owner !==
|
|
512
|
+
e && e._owner && e._owner !== K.current && (n = " It was passed a child from " + C(e._owner.type) + "."), j(e), y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), j(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Se(e, r) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof e != "object")
|
|
518
518
|
return;
|
|
519
|
-
if (
|
|
519
|
+
if (J(e))
|
|
520
520
|
for (var t = 0; t < e.length; t++) {
|
|
521
521
|
var n = e[t];
|
|
522
|
-
|
|
522
|
+
X(n) && Te(n, r);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (X(e))
|
|
525
525
|
e._store && (e._store.validated = !0);
|
|
526
526
|
else if (e) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
for (var
|
|
530
|
-
|
|
527
|
+
var o = ke(e);
|
|
528
|
+
if (typeof o == "function" && o !== e.entries)
|
|
529
|
+
for (var u = o.call(e), i; !(i = u.next()).done; )
|
|
530
|
+
X(i.value) && Te(i.value, r);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -539,21 +539,21 @@ Check the top-level render call using <` + t + ">.");
|
|
|
539
539
|
var t;
|
|
540
540
|
if (typeof r == "function")
|
|
541
541
|
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
542
|
+
else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof ===
|
|
544
|
+
r.$$typeof === w))
|
|
545
545
|
t = r.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (t) {
|
|
549
549
|
var n = C(r);
|
|
550
|
-
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var
|
|
554
|
-
|
|
550
|
+
ze(t, e.props, "prop", n, e);
|
|
551
|
+
} else if (r.PropTypes !== void 0 && !G) {
|
|
552
|
+
G = !0;
|
|
553
|
+
var o = C(r);
|
|
554
|
+
y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
|
|
555
555
|
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
556
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
function ir(e) {
|
|
@@ -561,115 +561,128 @@ Check the top-level render call using <` + t + ">.");
|
|
|
561
561
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
562
|
var n = r[t];
|
|
563
563
|
if (n !== "children" && n !== "key") {
|
|
564
|
-
j(e),
|
|
564
|
+
j(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
e.ref !== null && (j(e),
|
|
568
|
+
e.ref !== null && (j(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
571
|
+
var we = {};
|
|
572
|
+
function Ce(e, r, t, n, o, u) {
|
|
573
573
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
576
|
-
var
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
578
|
-
var
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
e === null ?
|
|
574
|
+
var i = We(e);
|
|
575
|
+
if (!i) {
|
|
576
|
+
var a = "";
|
|
577
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
|
+
var m = tr();
|
|
579
|
+
m ? a += m : a += Re();
|
|
580
|
+
var d;
|
|
581
|
+
e === null ? d = "null" : J(e) ? d = "array" : e !== void 0 && e.$$typeof === E ? (d = "<" + (C(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, a);
|
|
582
582
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
586
|
-
if (
|
|
583
|
+
var v = rr(e, r, t, o, u);
|
|
584
|
+
if (v == null)
|
|
585
|
+
return v;
|
|
586
|
+
if (i) {
|
|
587
587
|
var R = r.children;
|
|
588
588
|
if (R !== void 0)
|
|
589
589
|
if (n)
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
|
|
590
|
+
if (J(R)) {
|
|
591
|
+
for (var F = 0; F < R.length; F++)
|
|
592
|
+
Se(R[F], e);
|
|
593
593
|
Object.freeze && Object.freeze(R);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
|
|
597
|
+
Se(R, e);
|
|
598
598
|
}
|
|
599
599
|
if ($.call(r, "key")) {
|
|
600
|
-
var
|
|
601
|
-
return
|
|
602
|
-
}),
|
|
603
|
-
if (!
|
|
604
|
-
var
|
|
605
|
-
|
|
600
|
+
var P = C(e), b = Object.keys(r).filter(function(cr) {
|
|
601
|
+
return cr !== "key";
|
|
602
|
+
}), H = b.length > 0 ? "{key: someKey, " + b.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!we[P + H]) {
|
|
604
|
+
var fr = b.length > 0 ? "{" + b.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
y(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`,
|
|
610
|
+
<%s key={someKey} {...props} />`, H, P, fr, P), we[P + H] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return e ===
|
|
613
|
+
return e === l ? ir(v) : ar(v), v;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function or(e, r, t) {
|
|
617
|
-
return
|
|
617
|
+
return Ce(e, r, t, !0);
|
|
618
618
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
619
|
+
function sr(e, r, t) {
|
|
620
|
+
return Ce(e, r, t, !1);
|
|
621
621
|
}
|
|
622
|
-
var
|
|
623
|
-
W.Fragment =
|
|
622
|
+
var ur = sr, lr = or;
|
|
623
|
+
W.Fragment = l, W.jsx = ur, W.jsxs = lr;
|
|
624
624
|
}()), W;
|
|
625
625
|
}
|
|
626
|
-
process.env.NODE_ENV === "production" ?
|
|
627
|
-
var
|
|
628
|
-
const
|
|
626
|
+
process.env.NODE_ENV === "production" ? ee.exports = dr() : ee.exports = vr();
|
|
627
|
+
var Z = ee.exports;
|
|
628
|
+
const U = {
|
|
629
629
|
text: "#ccc",
|
|
630
|
+
// lighter for text/headings
|
|
630
631
|
box: "#e0e0e0"
|
|
631
|
-
|
|
632
|
-
|
|
632
|
+
// darker for boxes/images/buttons
|
|
633
|
+
}, Q = {};
|
|
634
|
+
function pr(p) {
|
|
633
635
|
if (typeof document > "u") return {};
|
|
634
|
-
const E = typeof
|
|
635
|
-
if (
|
|
636
|
-
const
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
636
|
+
const E = typeof p.type == "string" ? p.type : "div", _ = `${E}-${p.props.id || ""}-${p.props.className || ""}`;
|
|
637
|
+
if (Q[_]) return Q[_];
|
|
638
|
+
const l = document.createElement(E);
|
|
639
|
+
p.props.id && (l.id = p.props.id), p.props.className && (l.className = p.props.className), p.props.style && Object.entries(p.props.style).forEach(([T, g]) => {
|
|
640
|
+
l.style[T] = g;
|
|
641
|
+
}), l.style.display = "none", document.body.appendChild(l);
|
|
642
|
+
const f = window.getComputedStyle(l), s = {
|
|
643
|
+
height: f.height || void 0,
|
|
644
|
+
width: f.width || "100%",
|
|
645
|
+
fontSize: f.fontSize || void 0,
|
|
646
|
+
margin: f.margin || "0",
|
|
647
|
+
padding: f.padding || "0",
|
|
648
|
+
borderRadius: f.borderRadius || "0px"
|
|
645
649
|
};
|
|
646
|
-
return document.body.removeChild(
|
|
650
|
+
return document.body.removeChild(l), Q[_] = s, s;
|
|
647
651
|
}
|
|
648
|
-
|
|
649
|
-
function E(
|
|
650
|
-
if (!
|
|
651
|
-
|
|
652
|
-
if (f.skeletonrequired ===
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
f,
|
|
659
|
-
|
|
652
|
+
const gr = ({ children: p }) => {
|
|
653
|
+
function E(l) {
|
|
654
|
+
if (!D.isValidElement(l)) return l;
|
|
655
|
+
let f = { ...l.props }, s = { ...f.style };
|
|
656
|
+
if (f.skeletonrequired === "y") {
|
|
657
|
+
const g = typeof l.type == "string" ? l.type : "div", c = pr(l);
|
|
658
|
+
s.height = s.height || f.height || c.height || "20px", s.width = s.width || f.width || c.width || "100%", s.fontSize = s.fontSize || f.fontSize || c.fontSize || "16px", s.margin = s.margin || f.margin || c.margin || "0", s.padding = s.padding || f.padding || c.padding || "0", s.borderRadius = s.borderRadius || c.borderRadius || "4px";
|
|
659
|
+
const S = ["p", "span", "h1", "h2", "h3", "h4", "h5", "h6"].includes(g);
|
|
660
|
+
s.backgroundColor = S ? U.text : U.box, s.color = "transparent", s.position = "relative", s.overflow = "hidden";
|
|
661
|
+
const h = S ? U.text : U.box;
|
|
662
|
+
s.backgroundImage = `linear-gradient(90deg, ${h} 0%, #f5f5f5 50%, ${h} 100%)`, s.backgroundSize = "200% 100%", s.animation = "shimmer 1.5s infinite", delete f.skeletonrequired, f.style = s;
|
|
663
|
+
}
|
|
664
|
+
if (typeof l.type == "function") {
|
|
665
|
+
const g = l.type(f);
|
|
666
|
+
return E(g);
|
|
667
|
+
}
|
|
668
|
+
const T = D.Children.map(
|
|
669
|
+
l.props.children,
|
|
670
|
+
(g) => E(g)
|
|
660
671
|
);
|
|
672
|
+
return D.cloneElement(l, f, T);
|
|
661
673
|
}
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
674
|
+
const _ = D.Children.map(p, E);
|
|
675
|
+
return /* @__PURE__ */ Z.jsxs(Z.Fragment, { children: [
|
|
676
|
+
/* @__PURE__ */ Z.jsx("style", { children: `
|
|
677
|
+
@keyframes shimmer {
|
|
665
678
|
0% { background-position: -200% 0; }
|
|
666
679
|
100% { background-position: 200% 0; }
|
|
667
680
|
}
|
|
668
681
|
` }),
|
|
669
|
-
|
|
682
|
+
_
|
|
670
683
|
] });
|
|
671
|
-
}
|
|
684
|
+
};
|
|
672
685
|
export {
|
|
673
|
-
|
|
674
|
-
|
|
686
|
+
gr as SkeletonBlock,
|
|
687
|
+
gr as default
|
|
675
688
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(O,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],R):(O=typeof globalThis<"u"?globalThis:O||self,R(O.SkeletonGhostLoader={},O.React))})(this,function(O,R){"use strict";var z={exports:{}},$={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
9
|
+
*/var te;function je(){if(te)return $;te=1;var p=R,E=Symbol.for("react.element"),S=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,f=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function T(g,c,w){var h,C={},P=null,L=null;w!==void 0&&(P=""+w),c.key!==void 0&&(P=""+c.key),c.ref!==void 0&&(L=c.ref);for(h in c)l.call(c,h)&&!u.hasOwnProperty(h)&&(C[h]=c[h]);if(g&&g.defaultProps)for(h in c=g.defaultProps,c)C[h]===void 0&&(C[h]=c[h]);return{$$typeof:E,type:g,key:P,ref:L,props:C,_owner:f.current}}return $.Fragment=S,$.jsx=T,$.jsxs=T,$}var I={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
@@ -14,22 +14,22 @@
|
|
|
14
14
|
*
|
|
15
15
|
* This source code is licensed under the MIT license found in the
|
|
16
16
|
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+
|
|
17
|
+
*/var ne;function Fe(){return ne||(ne=1,process.env.NODE_ENV!=="production"&&function(){var p=R,E=Symbol.for("react.element"),S=Symbol.for("react.portal"),l=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),g=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.offscreen"),ie=Symbol.iterator,Ae="@@iterator";function $e(e){if(e===null||typeof e!="object")return null;var r=ie&&e[ie]||e[Ae];return typeof r=="function"?r:null}var F=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Ie("error",e,t)}}function Ie(e,r,t){{var n=F.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var s=t.map(function(i){return String(i)});s.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,s)}}var We=!1,Ye=!1,Ne=!1,Le=!1,Me=!1,oe;oe=Symbol.for("react.module.reference");function Ve(e){return!!(typeof e=="string"||typeof e=="function"||e===l||e===u||Me||e===f||e===w||e===h||Le||e===L||We||Ye||Ne||typeof e=="object"&&e!==null&&(e.$$typeof===P||e.$$typeof===C||e.$$typeof===T||e.$$typeof===g||e.$$typeof===c||e.$$typeof===oe||e.getModuleId!==void 0))}function Ue(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function ue(e){return e.displayName||"Context"}function x(e){if(e==null)return null;if(typeof e.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case l:return"Fragment";case S:return"Portal";case u:return"Profiler";case f:return"StrictMode";case w:return"Suspense";case h:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case g:var r=e;return ue(r)+".Consumer";case T:var t=e;return ue(t._context)+".Provider";case c:return Ue(e,e.render,"ForwardRef");case C:var n=e.displayName||null;return n!==null?n:x(e.type)||"Memo";case P:{var o=e,s=o._payload,i=o._init;try{return x(i(s))}catch{return null}}}return null}var k=Object.assign,W=0,se,le,fe,ce,de,ve,pe;function he(){}he.__reactDisabledLog=!0;function Be(){{if(W===0){se=console.log,le=console.info,fe=console.warn,ce=console.error,de=console.group,ve=console.groupCollapsed,pe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:he,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}W++}}function ze(){{if(W--,W===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:k({},e,{value:se}),info:k({},e,{value:le}),warn:k({},e,{value:fe}),error:k({},e,{value:ce}),group:k({},e,{value:de}),groupCollapsed:k({},e,{value:ve}),groupEnd:k({},e,{value:pe})})}W<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var K=F.ReactCurrentDispatcher,G;function M(e,r,t){{if(G===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);G=n&&n[1]||""}return`
|
|
18
|
+
`+G+e}}var X=!1,V;{var qe=typeof WeakMap=="function"?WeakMap:Map;V=new qe}function ge(e,r){if(!e||X)return"";{var t=V.get(e);if(t!==void 0)return t}var n;X=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var s;s=K.current,K.current=null,Be();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(b){n=b}Reflect.construct(e,[],i)}else{try{i.call()}catch(b){n=b}e.call(i.prototype)}}else{try{throw Error()}catch(b){n=b}e()}}catch(b){if(b&&n&&typeof b.stack=="string"){for(var a=b.stack.split(`
|
|
19
|
+
`),m=n.stack.split(`
|
|
20
|
+
`),d=a.length-1,v=m.length-1;d>=1&&v>=0&&a[d]!==m[v];)v--;for(;d>=1&&v>=0;d--,v--)if(a[d]!==m[v]){if(d!==1||v!==1)do if(d--,v--,v<0||a[d]!==m[v]){var _=`
|
|
21
|
+
`+a[d].replace(" at new "," at ");return e.displayName&&_.includes("<anonymous>")&&(_=_.replace("<anonymous>",e.displayName)),typeof e=="function"&&V.set(e,_),_}while(d>=1&&v>=0);break}}}finally{X=!1,K.current=s,ze(),Error.prepareStackTrace=o}var A=e?e.displayName||e.name:"",j=A?M(A):"";return typeof e=="function"&&V.set(e,j),j}function Je(e,r,t){return ge(e,!1)}function Ke(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function U(e,r,t){if(e==null)return"";if(typeof e=="function")return ge(e,Ke(e));if(typeof e=="string")return M(e);switch(e){case w:return M("Suspense");case h:return M("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case c:return Je(e.render);case C:return U(e.type,r,t);case P:{var n=e,o=n._payload,s=n._init;try{return U(s(o),r,t)}catch{}}}return""}var Y=Object.prototype.hasOwnProperty,ye={},me=F.ReactDebugCurrentFrame;function B(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);me.setExtraStackFrame(t)}else me.setExtraStackFrame(null)}function Ge(e,r,t,n,o){{var s=Function.call.bind(Y);for(var i in e)if(s(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var m=Error((n||"React class")+": "+t+" 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`.");throw m.name="Invariant Violation",m}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(d){a=d}a&&!(a instanceof Error)&&(B(o),y("%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).",n||"React class",t,i,typeof a),B(null)),a instanceof Error&&!(a.message in ye)&&(ye[a.message]=!0,B(o),y("Failed %s type: %s",t,a.message),B(null))}}}var Xe=Array.isArray;function H(e){return Xe(e)}function He(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ze(e){try{return be(e),!1}catch{return!0}}function be(e){return""+e}function Ee(e){if(Ze(e))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",He(e)),be(e)}var _e=F.ReactCurrentOwner,Qe={key:!0,ref:!0,__self:!0,__source:!0},Re,Se;function er(e){if(Y.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function rr(e){if(Y.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function tr(e,r){typeof e.ref=="string"&&_e.current}function nr(e,r){{var t=function(){Re||(Re=!0,y("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function ar(e,r){{var t=function(){Se||(Se=!0,y("%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)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var ir=function(e,r,t,n,o,s,i){var a={$$typeof:E,type:e,key:r,ref:t,props:i,_owner:s};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function or(e,r,t,n,o){{var s,i={},a=null,m=null;t!==void 0&&(Ee(t),a=""+t),rr(r)&&(Ee(r.key),a=""+r.key),er(r)&&(m=r.ref,tr(r,o));for(s in r)Y.call(r,s)&&!Qe.hasOwnProperty(s)&&(i[s]=r[s]);if(e&&e.defaultProps){var d=e.defaultProps;for(s in d)i[s]===void 0&&(i[s]=d[s])}if(a||m){var v=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&nr(i,v),m&&ar(i,v)}return ir(e,a,m,o,n,_e.current,i)}}var Z=F.ReactCurrentOwner,Te=F.ReactDebugCurrentFrame;function D(e){if(e){var r=e._owner,t=U(e.type,e._source,r?r.type:null);Te.setExtraStackFrame(t)}else Te.setExtraStackFrame(null)}var Q;Q=!1;function ee(e){return typeof e=="object"&&e!==null&&e.$$typeof===E}function we(){{if(Z.current){var e=x(Z.current.type);if(e)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+e+"`."}return""}}function ur(e){return""}var
|
|
23
|
+
Check the render method of \``+e+"`."}return""}}function ur(e){return""}var Ce={};function sr(e){{var r=we();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+t+">.")}return r}}function Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=sr(r);if(
|
|
25
|
+
Check the top-level render call using <`+t+">.")}return r}}function Oe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=sr(r);if(Ce[t])return;Ce[t]=!0;var n="";e&&e._owner&&e._owner!==Z.current&&(n=" It was passed a child from "+x(e._owner.type)+"."),D(e),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),D(null)}}function xe(e,r){{if(typeof e!="object")return;if(H(e))for(var t=0;t<e.length;t++){var n=e[t];ee(n)&&Oe(n,r)}else if(ee(e))e._store&&(e._store.validated=!0);else if(e){var o=$e(e);if(typeof o=="function"&&o!==e.entries)for(var s=o.call(e),i;!(i=s.next()).done;)ee(i.value)&&Oe(i.value,r)}}}function lr(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===c||r.$$typeof===C))t=r.propTypes;else return;if(t){var n=x(r);Ge(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!Q){Q=!0;var o=x(r);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fr(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){D(e),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),D(null);break}}e.ref!==null&&(D(e),y("Invalid attribute `ref` supplied to `React.Fragment`."),D(null))}}var Pe={};function ke(e,r,t,n,o,s){{var i=Ve(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var m=ur();m?a+=m:a+=we();var d;e===null?d="null":H(e)?d="array":e!==void 0&&e.$$typeof===E?(d="<"+(x(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):d=typeof e,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",d,a)}var v=or(e,r,t,o,s);if(v==null)return v;if(i){var _=r.children;if(_!==void 0)if(n)if(H(_)){for(var A=0;A<_.length;A++)xe(_[A],e);Object.freeze&&Object.freeze(_)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else xe(_,e)}if(Y.call(r,"key")){var j=x(e),b=Object.keys(r).filter(function(gr){return gr!=="key"}),re=b.length>0?"{key: someKey, "+b.join(": ..., ")+": ...}":"{key: someKey}";if(!Pe[j+re]){var hr=b.length>0?"{"+b.join(": ..., ")+": ...}":"{}";y(`A props object containing a "key" prop is being spread into JSX:
|
|
26
26
|
let props = %s;
|
|
27
27
|
<%s {...props} />
|
|
28
28
|
React keys must be passed directly to JSX without using spread:
|
|
29
29
|
let props = %s;
|
|
30
|
-
<%s key={someKey} {...props} />`,
|
|
31
|
-
@keyframes
|
|
30
|
+
<%s key={someKey} {...props} />`,re,j,hr,j),Pe[j+re]=!0}}return e===l?fr(v):lr(v),v}}function cr(e,r,t){return ke(e,r,t,!0)}function dr(e,r,t){return ke(e,r,t,!1)}var vr=dr,pr=cr;I.Fragment=l,I.jsx=vr,I.jsxs=pr}()),I}process.env.NODE_ENV==="production"?z.exports=je():z.exports=Fe();var q=z.exports;const N={text:"#ccc",box:"#e0e0e0"},J={};function De(p){if(typeof document>"u")return{};const E=typeof p.type=="string"?p.type:"div",S=`${E}-${p.props.id||""}-${p.props.className||""}`;if(J[S])return J[S];const l=document.createElement(E);p.props.id&&(l.id=p.props.id),p.props.className&&(l.className=p.props.className),p.props.style&&Object.entries(p.props.style).forEach(([T,g])=>{l.style[T]=g}),l.style.display="none",document.body.appendChild(l);const f=window.getComputedStyle(l),u={height:f.height||void 0,width:f.width||"100%",fontSize:f.fontSize||void 0,margin:f.margin||"0",padding:f.padding||"0",borderRadius:f.borderRadius||"0px"};return document.body.removeChild(l),J[S]=u,u}const ae=({children:p})=>{function E(l){if(!R.isValidElement(l))return l;let f={...l.props},u={...f.style};if(f.skeletonrequired==="y"){const g=typeof l.type=="string"?l.type:"div",c=De(l);u.height=u.height||f.height||c.height||"20px",u.width=u.width||f.width||c.width||"100%",u.fontSize=u.fontSize||f.fontSize||c.fontSize||"16px",u.margin=u.margin||f.margin||c.margin||"0",u.padding=u.padding||f.padding||c.padding||"0",u.borderRadius=u.borderRadius||c.borderRadius||"4px";const w=["p","span","h1","h2","h3","h4","h5","h6"].includes(g);u.backgroundColor=w?N.text:N.box,u.color="transparent",u.position="relative",u.overflow="hidden";const h=w?N.text:N.box;u.backgroundImage=`linear-gradient(90deg, ${h} 0%, #f5f5f5 50%, ${h} 100%)`,u.backgroundSize="200% 100%",u.animation="shimmer 1.5s infinite",delete f.skeletonrequired,f.style=u}if(typeof l.type=="function"){const g=l.type(f);return E(g)}const T=R.Children.map(l.props.children,g=>E(g));return R.cloneElement(l,f,T)}const S=R.Children.map(p,E);return q.jsxs(q.Fragment,{children:[q.jsx("style",{children:`
|
|
31
|
+
@keyframes shimmer {
|
|
32
32
|
0% { background-position: -200% 0; }
|
|
33
33
|
100% { background-position: 200% 0; }
|
|
34
34
|
}
|
|
35
|
-
`}),
|
|
35
|
+
`}),S]})};O.SkeletonBlock=ae,O.default=ae,Object.defineProperties(O,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|