anim-3d-obj 1.1.18 → 1.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/cjs/components/Card.js +25 -0
  2. package/dist/cjs/components/Card.js.map +1 -0
  3. package/dist/cjs/components/Cuboid.js +29 -0
  4. package/dist/cjs/components/Cuboid.js.map +1 -0
  5. package/dist/cjs/components/Faces/Face.d.ts +1 -2
  6. package/dist/cjs/components/Faces/Face.js +75 -0
  7. package/dist/cjs/components/Faces/Face.js.map +1 -0
  8. package/dist/cjs/components/Ribbon.js +26 -0
  9. package/dist/cjs/components/Ribbon.js.map +1 -0
  10. package/dist/cjs/components/index.d.ts +2 -0
  11. package/dist/cjs/components/index.js +19 -0
  12. package/dist/cjs/components/index.js.map +1 -0
  13. package/dist/cjs/components/styles/AnimWrap.d.ts +0 -1
  14. package/dist/cjs/components/styles/AnimWrap.js +86 -0
  15. package/dist/cjs/components/styles/AnimWrap.js.map +1 -0
  16. package/dist/cjs/components/styles/Anims.d.ts +23 -23
  17. package/dist/cjs/components/styles/Anims.js +275 -0
  18. package/dist/cjs/components/styles/Anims.js.map +1 -0
  19. package/dist/cjs/components/styles/Global.d.ts +1 -1
  20. package/dist/cjs/components/styles/Global.js +14 -0
  21. package/dist/cjs/components/styles/Global.js.map +1 -0
  22. package/dist/cjs/components/styles/Scene.d.ts +0 -1
  23. package/dist/cjs/components/styles/Scene.js +24 -0
  24. package/dist/cjs/components/styles/Scene.js.map +1 -0
  25. package/dist/cjs/index.d.ts +1 -5
  26. package/dist/cjs/index.js +18 -4374
  27. package/dist/cjs/index.js.map +1 -1
  28. package/dist/esm/components/Card.js +18 -0
  29. package/dist/esm/components/Card.js.map +1 -0
  30. package/dist/esm/components/Cuboid.js +22 -0
  31. package/dist/esm/components/Cuboid.js.map +1 -0
  32. package/dist/esm/components/Faces/Face.d.ts +1 -2
  33. package/dist/esm/components/Faces/Face.js +70 -0
  34. package/dist/esm/components/Faces/Face.js.map +1 -0
  35. package/dist/esm/components/Ribbon.js +19 -0
  36. package/dist/esm/components/Ribbon.js.map +1 -0
  37. package/dist/esm/components/index.d.ts +2 -0
  38. package/dist/esm/components/index.js +3 -0
  39. package/dist/esm/components/index.js.map +1 -0
  40. package/dist/esm/components/styles/AnimWrap.d.ts +0 -1
  41. package/dist/esm/components/styles/AnimWrap.js +79 -0
  42. package/dist/esm/components/styles/AnimWrap.js.map +1 -0
  43. package/dist/esm/components/styles/Anims.d.ts +23 -23
  44. package/dist/esm/components/styles/Anims.js +271 -0
  45. package/dist/esm/components/styles/Anims.js.map +1 -0
  46. package/dist/esm/components/styles/Global.d.ts +1 -1
  47. package/dist/esm/components/styles/Global.js +8 -0
  48. package/dist/esm/components/styles/Global.js.map +1 -0
  49. package/dist/esm/components/styles/Scene.d.ts +0 -1
  50. package/dist/esm/components/styles/Scene.js +17 -0
  51. package/dist/esm/components/styles/Scene.js.map +1 -0
  52. package/dist/esm/index.d.ts +1 -5
  53. package/dist/esm/index.js +2 -4367
  54. package/dist/esm/index.js.map +1 -1
  55. package/package.json +46 -89
package/dist/esm/index.js CHANGED
@@ -1,4367 +1,2 @@
1
- /******************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
-
16
- function __makeTemplateObject(cooked, raw) {
17
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
18
- return cooked;
19
- }
20
-
21
- function getDefaultExportFromCjs (x) {
22
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
23
- }
24
-
25
- var reactIs$2 = {exports: {}};
26
-
27
- var reactIs_production_min$1 = {};
28
-
29
- /** @license React v17.0.2
30
- * react-is.production.min.js
31
- *
32
- * Copyright (c) Facebook, Inc. and its affiliates.
33
- *
34
- * This source code is licensed under the MIT license found in the
35
- * LICENSE file in the root directory of this source tree.
36
- */
37
-
38
- var hasRequiredReactIs_production_min$1;
39
-
40
- function requireReactIs_production_min$1 () {
41
- if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
42
- hasRequiredReactIs_production_min$1 = 1;
43
- var b=60103,c=60106,d=60107,e=60108,f=60114,g=60109,h=60110,k=60112,l=60113,m=60120,n=60115,p=60116,q=60121,r=60122,u=60117,v=60129,w=60131;
44
- if("function"===typeof Symbol&&Symbol.for){var x=Symbol.for;b=x("react.element");c=x("react.portal");d=x("react.fragment");e=x("react.strict_mode");f=x("react.profiler");g=x("react.provider");h=x("react.context");k=x("react.forward_ref");l=x("react.suspense");m=x("react.suspense_list");n=x("react.memo");p=x("react.lazy");q=x("react.block");r=x("react.server.block");u=x("react.fundamental");v=x("react.debug_trace_mode");w=x("react.legacy_hidden");}
45
- function y(a){if("object"===typeof a&&null!==a){var t=a.$$typeof;switch(t){case b:switch(a=a.type,a){case d:case f:case e:case l:case m:return a;default:switch(a=a&&a.$$typeof,a){case h:case k:case p:case n:case g:return a;default:return t}}case c:return t}}}var z=g,A=b,B=k,C=d,D=p,E=n,F=c,G=f,H=e,I=l;reactIs_production_min$1.ContextConsumer=h;reactIs_production_min$1.ContextProvider=z;reactIs_production_min$1.Element=A;reactIs_production_min$1.ForwardRef=B;reactIs_production_min$1.Fragment=C;reactIs_production_min$1.Lazy=D;reactIs_production_min$1.Memo=E;reactIs_production_min$1.Portal=F;reactIs_production_min$1.Profiler=G;reactIs_production_min$1.StrictMode=H;
46
- reactIs_production_min$1.Suspense=I;reactIs_production_min$1.isAsyncMode=function(){return !1};reactIs_production_min$1.isConcurrentMode=function(){return !1};reactIs_production_min$1.isContextConsumer=function(a){return y(a)===h};reactIs_production_min$1.isContextProvider=function(a){return y(a)===g};reactIs_production_min$1.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min$1.isForwardRef=function(a){return y(a)===k};reactIs_production_min$1.isFragment=function(a){return y(a)===d};reactIs_production_min$1.isLazy=function(a){return y(a)===p};reactIs_production_min$1.isMemo=function(a){return y(a)===n};
47
- reactIs_production_min$1.isPortal=function(a){return y(a)===c};reactIs_production_min$1.isProfiler=function(a){return y(a)===f};reactIs_production_min$1.isStrictMode=function(a){return y(a)===e};reactIs_production_min$1.isSuspense=function(a){return y(a)===l};reactIs_production_min$1.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===v||a===e||a===l||a===m||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===n||a.$$typeof===g||a.$$typeof===h||a.$$typeof===k||a.$$typeof===u||a.$$typeof===q||a[0]===r)?!0:!1};
48
- reactIs_production_min$1.typeOf=y;
49
- return reactIs_production_min$1;
50
- }
51
-
52
- var reactIs_development$1 = {};
53
-
54
- /** @license React v17.0.2
55
- * react-is.development.js
56
- *
57
- * Copyright (c) Facebook, Inc. and its affiliates.
58
- *
59
- * This source code is licensed under the MIT license found in the
60
- * LICENSE file in the root directory of this source tree.
61
- */
62
-
63
- var hasRequiredReactIs_development$1;
64
-
65
- function requireReactIs_development$1 () {
66
- if (hasRequiredReactIs_development$1) return reactIs_development$1;
67
- hasRequiredReactIs_development$1 = 1;
68
-
69
- if (process.env.NODE_ENV !== "production") {
70
- (function() {
71
-
72
- // ATTENTION
73
- // When adding new symbols to this file,
74
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
75
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
76
- // nor polyfill, then a plain number is used for performance.
77
- var REACT_ELEMENT_TYPE = 0xeac7;
78
- var REACT_PORTAL_TYPE = 0xeaca;
79
- var REACT_FRAGMENT_TYPE = 0xeacb;
80
- var REACT_STRICT_MODE_TYPE = 0xeacc;
81
- var REACT_PROFILER_TYPE = 0xead2;
82
- var REACT_PROVIDER_TYPE = 0xeacd;
83
- var REACT_CONTEXT_TYPE = 0xeace;
84
- var REACT_FORWARD_REF_TYPE = 0xead0;
85
- var REACT_SUSPENSE_TYPE = 0xead1;
86
- var REACT_SUSPENSE_LIST_TYPE = 0xead8;
87
- var REACT_MEMO_TYPE = 0xead3;
88
- var REACT_LAZY_TYPE = 0xead4;
89
- var REACT_BLOCK_TYPE = 0xead9;
90
- var REACT_SERVER_BLOCK_TYPE = 0xeada;
91
- var REACT_FUNDAMENTAL_TYPE = 0xead5;
92
- var REACT_DEBUG_TRACING_MODE_TYPE = 0xeae1;
93
- var REACT_LEGACY_HIDDEN_TYPE = 0xeae3;
94
-
95
- if (typeof Symbol === 'function' && Symbol.for) {
96
- var symbolFor = Symbol.for;
97
- REACT_ELEMENT_TYPE = symbolFor('react.element');
98
- REACT_PORTAL_TYPE = symbolFor('react.portal');
99
- REACT_FRAGMENT_TYPE = symbolFor('react.fragment');
100
- REACT_STRICT_MODE_TYPE = symbolFor('react.strict_mode');
101
- REACT_PROFILER_TYPE = symbolFor('react.profiler');
102
- REACT_PROVIDER_TYPE = symbolFor('react.provider');
103
- REACT_CONTEXT_TYPE = symbolFor('react.context');
104
- REACT_FORWARD_REF_TYPE = symbolFor('react.forward_ref');
105
- REACT_SUSPENSE_TYPE = symbolFor('react.suspense');
106
- REACT_SUSPENSE_LIST_TYPE = symbolFor('react.suspense_list');
107
- REACT_MEMO_TYPE = symbolFor('react.memo');
108
- REACT_LAZY_TYPE = symbolFor('react.lazy');
109
- REACT_BLOCK_TYPE = symbolFor('react.block');
110
- REACT_SERVER_BLOCK_TYPE = symbolFor('react.server.block');
111
- REACT_FUNDAMENTAL_TYPE = symbolFor('react.fundamental');
112
- symbolFor('react.scope');
113
- symbolFor('react.opaque.id');
114
- REACT_DEBUG_TRACING_MODE_TYPE = symbolFor('react.debug_trace_mode');
115
- symbolFor('react.offscreen');
116
- REACT_LEGACY_HIDDEN_TYPE = symbolFor('react.legacy_hidden');
117
- }
118
-
119
- // Filter certain DOM attributes (e.g. src, href) if their values are empty strings.
120
-
121
- var enableScopeAPI = false; // Experimental Create Event Handle API.
122
-
123
- function isValidElementType(type) {
124
- if (typeof type === 'string' || typeof type === 'function') {
125
- return true;
126
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
127
-
128
-
129
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI ) {
130
- return true;
131
- }
132
-
133
- if (typeof type === 'object' && type !== null) {
134
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
135
- return true;
136
- }
137
- }
138
-
139
- return false;
140
- }
141
-
142
- function typeOf(object) {
143
- if (typeof object === 'object' && object !== null) {
144
- var $$typeof = object.$$typeof;
145
-
146
- switch ($$typeof) {
147
- case REACT_ELEMENT_TYPE:
148
- var type = object.type;
149
-
150
- switch (type) {
151
- case REACT_FRAGMENT_TYPE:
152
- case REACT_PROFILER_TYPE:
153
- case REACT_STRICT_MODE_TYPE:
154
- case REACT_SUSPENSE_TYPE:
155
- case REACT_SUSPENSE_LIST_TYPE:
156
- return type;
157
-
158
- default:
159
- var $$typeofType = type && type.$$typeof;
160
-
161
- switch ($$typeofType) {
162
- case REACT_CONTEXT_TYPE:
163
- case REACT_FORWARD_REF_TYPE:
164
- case REACT_LAZY_TYPE:
165
- case REACT_MEMO_TYPE:
166
- case REACT_PROVIDER_TYPE:
167
- return $$typeofType;
168
-
169
- default:
170
- return $$typeof;
171
- }
172
-
173
- }
174
-
175
- case REACT_PORTAL_TYPE:
176
- return $$typeof;
177
- }
178
- }
179
-
180
- return undefined;
181
- }
182
- var ContextConsumer = REACT_CONTEXT_TYPE;
183
- var ContextProvider = REACT_PROVIDER_TYPE;
184
- var Element = REACT_ELEMENT_TYPE;
185
- var ForwardRef = REACT_FORWARD_REF_TYPE;
186
- var Fragment = REACT_FRAGMENT_TYPE;
187
- var Lazy = REACT_LAZY_TYPE;
188
- var Memo = REACT_MEMO_TYPE;
189
- var Portal = REACT_PORTAL_TYPE;
190
- var Profiler = REACT_PROFILER_TYPE;
191
- var StrictMode = REACT_STRICT_MODE_TYPE;
192
- var Suspense = REACT_SUSPENSE_TYPE;
193
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
194
- var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
195
-
196
- function isAsyncMode(object) {
197
- {
198
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
199
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
200
-
201
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
202
- }
203
- }
204
-
205
- return false;
206
- }
207
- function isConcurrentMode(object) {
208
- {
209
- if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
210
- hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
211
-
212
- console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
213
- }
214
- }
215
-
216
- return false;
217
- }
218
- function isContextConsumer(object) {
219
- return typeOf(object) === REACT_CONTEXT_TYPE;
220
- }
221
- function isContextProvider(object) {
222
- return typeOf(object) === REACT_PROVIDER_TYPE;
223
- }
224
- function isElement(object) {
225
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
226
- }
227
- function isForwardRef(object) {
228
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
229
- }
230
- function isFragment(object) {
231
- return typeOf(object) === REACT_FRAGMENT_TYPE;
232
- }
233
- function isLazy(object) {
234
- return typeOf(object) === REACT_LAZY_TYPE;
235
- }
236
- function isMemo(object) {
237
- return typeOf(object) === REACT_MEMO_TYPE;
238
- }
239
- function isPortal(object) {
240
- return typeOf(object) === REACT_PORTAL_TYPE;
241
- }
242
- function isProfiler(object) {
243
- return typeOf(object) === REACT_PROFILER_TYPE;
244
- }
245
- function isStrictMode(object) {
246
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
247
- }
248
- function isSuspense(object) {
249
- return typeOf(object) === REACT_SUSPENSE_TYPE;
250
- }
251
-
252
- reactIs_development$1.ContextConsumer = ContextConsumer;
253
- reactIs_development$1.ContextProvider = ContextProvider;
254
- reactIs_development$1.Element = Element;
255
- reactIs_development$1.ForwardRef = ForwardRef;
256
- reactIs_development$1.Fragment = Fragment;
257
- reactIs_development$1.Lazy = Lazy;
258
- reactIs_development$1.Memo = Memo;
259
- reactIs_development$1.Portal = Portal;
260
- reactIs_development$1.Profiler = Profiler;
261
- reactIs_development$1.StrictMode = StrictMode;
262
- reactIs_development$1.Suspense = Suspense;
263
- reactIs_development$1.isAsyncMode = isAsyncMode;
264
- reactIs_development$1.isConcurrentMode = isConcurrentMode;
265
- reactIs_development$1.isContextConsumer = isContextConsumer;
266
- reactIs_development$1.isContextProvider = isContextProvider;
267
- reactIs_development$1.isElement = isElement;
268
- reactIs_development$1.isForwardRef = isForwardRef;
269
- reactIs_development$1.isFragment = isFragment;
270
- reactIs_development$1.isLazy = isLazy;
271
- reactIs_development$1.isMemo = isMemo;
272
- reactIs_development$1.isPortal = isPortal;
273
- reactIs_development$1.isProfiler = isProfiler;
274
- reactIs_development$1.isStrictMode = isStrictMode;
275
- reactIs_development$1.isSuspense = isSuspense;
276
- reactIs_development$1.isValidElementType = isValidElementType;
277
- reactIs_development$1.typeOf = typeOf;
278
- })();
279
- }
280
- return reactIs_development$1;
281
- }
282
-
283
- (function (module) {
284
-
285
- if (process.env.NODE_ENV === 'production') {
286
- module.exports = requireReactIs_production_min$1();
287
- } else {
288
- module.exports = requireReactIs_development$1();
289
- }
290
- } (reactIs$2));
291
-
292
- var react = {exports: {}};
293
-
294
- var react_production_min = {};
295
-
296
- /**
297
- * @license React
298
- * react.production.min.js
299
- *
300
- * Copyright (c) Facebook, Inc. and its affiliates.
301
- *
302
- * This source code is licensed under the MIT license found in the
303
- * LICENSE file in the root directory of this source tree.
304
- */
305
-
306
- var hasRequiredReact_production_min;
307
-
308
- function requireReact_production_min () {
309
- if (hasRequiredReact_production_min) return react_production_min;
310
- hasRequiredReact_production_min = 1;
311
- var l=Symbol.for("react.element"),n=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),q=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),t=Symbol.for("react.provider"),u=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),x=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),z=Symbol.iterator;function A(a){if(null===a||"object"!==typeof a)return null;a=z&&a[z]||a["@@iterator"];return "function"===typeof a?a:null}
312
- var B={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,D={};function E(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}E.prototype.isReactComponent={};
313
- E.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,b,"setState");};E.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};function F(){}F.prototype=E.prototype;function G(a,b,e){this.props=a;this.context=b;this.refs=D;this.updater=e||B;}var H=G.prototype=new F;
314
- H.constructor=G;C(H,E.prototype);H.isPureReactComponent=!0;var I=Array.isArray,J=Object.prototype.hasOwnProperty,K={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};
315
- function M(a,b,e){var d,c={},k=null,h=null;if(null!=b)for(d in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(k=""+b.key),b)J.call(b,d)&&!L.hasOwnProperty(d)&&(c[d]=b[d]);var g=arguments.length-2;if(1===g)c.children=e;else if(1<g){for(var f=Array(g),m=0;m<g;m++)f[m]=arguments[m+2];c.children=f;}if(a&&a.defaultProps)for(d in g=a.defaultProps,g)void 0===c[d]&&(c[d]=g[d]);return {$$typeof:l,type:a,key:k,ref:h,props:c,_owner:K.current}}
316
- function N(a,b){return {$$typeof:l,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return "object"===typeof a&&null!==a&&a.$$typeof===l}function escape(a){var b={"=":"=0",":":"=2"};return "$"+a.replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g;function Q(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(""+a.key):b.toString(36)}
317
- function R(a,b,e,d,c){var k=typeof a;if("undefined"===k||"boolean"===k)a=null;var h=!1;if(null===a)h=!0;else switch(k){case "string":case "number":h=!0;break;case "object":switch(a.$$typeof){case l:case n:h=!0;}}if(h)return h=a,c=c(h),a=""===d?"."+Q(h,0):d,I(c)?(e="",null!=a&&(e=a.replace(P,"$&/")+"/"),R(c,b,e,"",function(a){return a})):null!=c&&(O(c)&&(c=N(c,e+(!c.key||h&&h.key===c.key?"":(""+c.key).replace(P,"$&/")+"/")+a)),b.push(c)),1;h=0;d=""===d?".":d+":";if(I(a))for(var g=0;g<a.length;g++){k=
318
- a[g];var f=d+Q(k,g);h+=R(k,b,e,f,c);}else if(f=A(a),"function"===typeof f)for(a=f.call(a),g=0;!(k=a.next()).done;)k=k.value,f=d+Q(k,g++),h+=R(k,b,e,f,c);else if("object"===k)throw b=String(a),Error("Objects are not valid as a React child (found: "+("[object Object]"===b?"object with keys {"+Object.keys(a).join(", ")+"}":b)+"). If you meant to render a collection of children, use an array instead.");return h}
319
- function S(a,b,e){if(null==a)return a;var d=[],c=0;R(a,d,"","",function(a){return b.call(e,a,c++)});return d}function T(a){if(-1===a._status){var b=a._result;b=b();b.then(function(b){if(0===a._status||-1===a._status)a._status=1,a._result=b;},function(b){if(0===a._status||-1===a._status)a._status=2,a._result=b;});-1===a._status&&(a._status=0,a._result=b);}if(1===a._status)return a._result.default;throw a._result;}
320
- var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};react_production_min.Children={map:S,forEach:function(a,b,e){S(a,function(){b.apply(this,arguments);},e);},count:function(a){var b=0;S(a,function(){b++;});return b},toArray:function(a){return S(a,function(a){return a})||[]},only:function(a){if(!O(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};react_production_min.Component=E;react_production_min.Fragment=p;
321
- react_production_min.Profiler=r;react_production_min.PureComponent=G;react_production_min.StrictMode=q;react_production_min.Suspense=w;react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;
322
- react_production_min.cloneElement=function(a,b,e){if(null===a||void 0===a)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+a+".");var d=C({},a.props),c=a.key,k=a.ref,h=a._owner;if(null!=b){void 0!==b.ref&&(k=b.ref,h=K.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(f in b)J.call(b,f)&&!L.hasOwnProperty(f)&&(d[f]=void 0===b[f]&&void 0!==g?g[f]:b[f]);}var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){g=Array(f);
323
- for(var m=0;m<f;m++)g[m]=arguments[m+2];d.children=g;}return {$$typeof:l,type:a.type,key:c,ref:k,props:d,_owner:h}};react_production_min.createContext=function(a){a={$$typeof:u,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};a.Provider={$$typeof:t,_context:a};return a.Consumer=a};react_production_min.createElement=M;react_production_min.createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};react_production_min.createRef=function(){return {current:null}};
324
- react_production_min.forwardRef=function(a){return {$$typeof:v,render:a}};react_production_min.isValidElement=O;react_production_min.lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};react_production_min.memo=function(a,b){return {$$typeof:x,type:a,compare:void 0===b?null:b}};react_production_min.startTransition=function(a){var b=V.transition;V.transition={};try{a();}finally{V.transition=b;}};react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.");};
325
- react_production_min.useCallback=function(a,b){return U.current.useCallback(a,b)};react_production_min.useContext=function(a){return U.current.useContext(a)};react_production_min.useDebugValue=function(){};react_production_min.useDeferredValue=function(a){return U.current.useDeferredValue(a)};react_production_min.useEffect=function(a,b){return U.current.useEffect(a,b)};react_production_min.useId=function(){return U.current.useId()};react_production_min.useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};
326
- react_production_min.useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};react_production_min.useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};react_production_min.useMemo=function(a,b){return U.current.useMemo(a,b)};react_production_min.useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};react_production_min.useRef=function(a){return U.current.useRef(a)};react_production_min.useState=function(a){return U.current.useState(a)};react_production_min.useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};
327
- react_production_min.useTransition=function(){return U.current.useTransition()};react_production_min.version="18.2.0";
328
- return react_production_min;
329
- }
330
-
331
- var react_development = {exports: {}};
332
-
333
- /**
334
- * @license React
335
- * react.development.js
336
- *
337
- * Copyright (c) Facebook, Inc. and its affiliates.
338
- *
339
- * This source code is licensed under the MIT license found in the
340
- * LICENSE file in the root directory of this source tree.
341
- */
342
-
343
- var hasRequiredReact_development;
344
-
345
- function requireReact_development () {
346
- if (hasRequiredReact_development) return react_development.exports;
347
- hasRequiredReact_development = 1;
348
- (function (module, exports) {
349
-
350
- if (process.env.NODE_ENV !== "production") {
351
- (function() {
352
-
353
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
354
- if (
355
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
356
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
357
- 'function'
358
- ) {
359
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
360
- }
361
- var ReactVersion = '18.2.0';
362
-
363
- // ATTENTION
364
- // When adding new symbols to this file,
365
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
366
- // The Symbol used to tag the ReactElement-like types.
367
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
368
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
369
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
370
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
371
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
372
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
373
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
374
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
375
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
376
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
377
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
378
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
379
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
380
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
381
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
382
- function getIteratorFn(maybeIterable) {
383
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
384
- return null;
385
- }
386
-
387
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
388
-
389
- if (typeof maybeIterator === 'function') {
390
- return maybeIterator;
391
- }
392
-
393
- return null;
394
- }
395
-
396
- /**
397
- * Keeps track of the current dispatcher.
398
- */
399
- var ReactCurrentDispatcher = {
400
- /**
401
- * @internal
402
- * @type {ReactComponent}
403
- */
404
- current: null
405
- };
406
-
407
- /**
408
- * Keeps track of the current batch's configuration such as how long an update
409
- * should suspend for if it needs to.
410
- */
411
- var ReactCurrentBatchConfig = {
412
- transition: null
413
- };
414
-
415
- var ReactCurrentActQueue = {
416
- current: null,
417
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
418
- isBatchingLegacy: false,
419
- didScheduleLegacyUpdate: false
420
- };
421
-
422
- /**
423
- * Keeps track of the current owner.
424
- *
425
- * The current owner is the component who should own any components that are
426
- * currently being constructed.
427
- */
428
- var ReactCurrentOwner = {
429
- /**
430
- * @internal
431
- * @type {ReactComponent}
432
- */
433
- current: null
434
- };
435
-
436
- var ReactDebugCurrentFrame = {};
437
- var currentExtraStackFrame = null;
438
- function setExtraStackFrame(stack) {
439
- {
440
- currentExtraStackFrame = stack;
441
- }
442
- }
443
-
444
- {
445
- ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
446
- {
447
- currentExtraStackFrame = stack;
448
- }
449
- }; // Stack implementation injected by the current renderer.
450
-
451
-
452
- ReactDebugCurrentFrame.getCurrentStack = null;
453
-
454
- ReactDebugCurrentFrame.getStackAddendum = function () {
455
- var stack = ''; // Add an extra top frame while an element is being validated
456
-
457
- if (currentExtraStackFrame) {
458
- stack += currentExtraStackFrame;
459
- } // Delegate to the injected renderer-specific implementation
460
-
461
-
462
- var impl = ReactDebugCurrentFrame.getCurrentStack;
463
-
464
- if (impl) {
465
- stack += impl() || '';
466
- }
467
-
468
- return stack;
469
- };
470
- }
471
-
472
- // -----------------------------------------------------------------------------
473
-
474
- var enableScopeAPI = false; // Experimental Create Event Handle API.
475
- var enableCacheElement = false;
476
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
477
-
478
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
479
- // stuff. Intended to enable React core members to more easily debug scheduling
480
- // issues in DEV builds.
481
-
482
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
483
-
484
- var ReactSharedInternals = {
485
- ReactCurrentDispatcher: ReactCurrentDispatcher,
486
- ReactCurrentBatchConfig: ReactCurrentBatchConfig,
487
- ReactCurrentOwner: ReactCurrentOwner
488
- };
489
-
490
- {
491
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
492
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
493
- }
494
-
495
- // by calls to these methods by a Babel plugin.
496
- //
497
- // In PROD (or in packages without access to React internals),
498
- // they are left as they are instead.
499
-
500
- function warn(format) {
501
- {
502
- {
503
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
504
- args[_key - 1] = arguments[_key];
505
- }
506
-
507
- printWarning('warn', format, args);
508
- }
509
- }
510
- }
511
- function error(format) {
512
- {
513
- {
514
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
515
- args[_key2 - 1] = arguments[_key2];
516
- }
517
-
518
- printWarning('error', format, args);
519
- }
520
- }
521
- }
522
-
523
- function printWarning(level, format, args) {
524
- // When changing this logic, you might want to also
525
- // update consoleWithStackDev.www.js as well.
526
- {
527
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
528
- var stack = ReactDebugCurrentFrame.getStackAddendum();
529
-
530
- if (stack !== '') {
531
- format += '%s';
532
- args = args.concat([stack]);
533
- } // eslint-disable-next-line react-internal/safe-string-coercion
534
-
535
-
536
- var argsWithFormat = args.map(function (item) {
537
- return String(item);
538
- }); // Careful: RN currently depends on this prefix
539
-
540
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
541
- // breaks IE9: https://github.com/facebook/react/issues/13610
542
- // eslint-disable-next-line react-internal/no-production-logging
543
-
544
- Function.prototype.apply.call(console[level], console, argsWithFormat);
545
- }
546
- }
547
-
548
- var didWarnStateUpdateForUnmountedComponent = {};
549
-
550
- function warnNoop(publicInstance, callerName) {
551
- {
552
- var _constructor = publicInstance.constructor;
553
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
554
- var warningKey = componentName + "." + callerName;
555
-
556
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
557
- return;
558
- }
559
-
560
- error("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.', callerName, componentName);
561
-
562
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
563
- }
564
- }
565
- /**
566
- * This is the abstract API for an update queue.
567
- */
568
-
569
-
570
- var ReactNoopUpdateQueue = {
571
- /**
572
- * Checks whether or not this composite component is mounted.
573
- * @param {ReactClass} publicInstance The instance we want to test.
574
- * @return {boolean} True if mounted, false otherwise.
575
- * @protected
576
- * @final
577
- */
578
- isMounted: function (publicInstance) {
579
- return false;
580
- },
581
-
582
- /**
583
- * Forces an update. This should only be invoked when it is known with
584
- * certainty that we are **not** in a DOM transaction.
585
- *
586
- * You may want to call this when you know that some deeper aspect of the
587
- * component's state has changed but `setState` was not called.
588
- *
589
- * This will not invoke `shouldComponentUpdate`, but it will invoke
590
- * `componentWillUpdate` and `componentDidUpdate`.
591
- *
592
- * @param {ReactClass} publicInstance The instance that should rerender.
593
- * @param {?function} callback Called after component is updated.
594
- * @param {?string} callerName name of the calling function in the public API.
595
- * @internal
596
- */
597
- enqueueForceUpdate: function (publicInstance, callback, callerName) {
598
- warnNoop(publicInstance, 'forceUpdate');
599
- },
600
-
601
- /**
602
- * Replaces all of the state. Always use this or `setState` to mutate state.
603
- * You should treat `this.state` as immutable.
604
- *
605
- * There is no guarantee that `this.state` will be immediately updated, so
606
- * accessing `this.state` after calling this method may return the old value.
607
- *
608
- * @param {ReactClass} publicInstance The instance that should rerender.
609
- * @param {object} completeState Next state.
610
- * @param {?function} callback Called after component is updated.
611
- * @param {?string} callerName name of the calling function in the public API.
612
- * @internal
613
- */
614
- enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
615
- warnNoop(publicInstance, 'replaceState');
616
- },
617
-
618
- /**
619
- * Sets a subset of the state. This only exists because _pendingState is
620
- * internal. This provides a merging strategy that is not available to deep
621
- * properties which is confusing. TODO: Expose pendingState or don't use it
622
- * during the merge.
623
- *
624
- * @param {ReactClass} publicInstance The instance that should rerender.
625
- * @param {object} partialState Next partial state to be merged with state.
626
- * @param {?function} callback Called after component is updated.
627
- * @param {?string} Name of the calling function in the public API.
628
- * @internal
629
- */
630
- enqueueSetState: function (publicInstance, partialState, callback, callerName) {
631
- warnNoop(publicInstance, 'setState');
632
- }
633
- };
634
-
635
- var assign = Object.assign;
636
-
637
- var emptyObject = {};
638
-
639
- {
640
- Object.freeze(emptyObject);
641
- }
642
- /**
643
- * Base class helpers for the updating state of a component.
644
- */
645
-
646
-
647
- function Component(props, context, updater) {
648
- this.props = props;
649
- this.context = context; // If a component has string refs, we will assign a different object later.
650
-
651
- this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
652
- // renderer.
653
-
654
- this.updater = updater || ReactNoopUpdateQueue;
655
- }
656
-
657
- Component.prototype.isReactComponent = {};
658
- /**
659
- * Sets a subset of the state. Always use this to mutate
660
- * state. You should treat `this.state` as immutable.
661
- *
662
- * There is no guarantee that `this.state` will be immediately updated, so
663
- * accessing `this.state` after calling this method may return the old value.
664
- *
665
- * There is no guarantee that calls to `setState` will run synchronously,
666
- * as they may eventually be batched together. You can provide an optional
667
- * callback that will be executed when the call to setState is actually
668
- * completed.
669
- *
670
- * When a function is provided to setState, it will be called at some point in
671
- * the future (not synchronously). It will be called with the up to date
672
- * component arguments (state, props, context). These values can be different
673
- * from this.* because your function may be called after receiveProps but before
674
- * shouldComponentUpdate, and this new state, props, and context will not yet be
675
- * assigned to this.
676
- *
677
- * @param {object|function} partialState Next partial state or function to
678
- * produce next partial state to be merged with current state.
679
- * @param {?function} callback Called after state is updated.
680
- * @final
681
- * @protected
682
- */
683
-
684
- Component.prototype.setState = function (partialState, callback) {
685
- if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {
686
- throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');
687
- }
688
-
689
- this.updater.enqueueSetState(this, partialState, callback, 'setState');
690
- };
691
- /**
692
- * Forces an update. This should only be invoked when it is known with
693
- * certainty that we are **not** in a DOM transaction.
694
- *
695
- * You may want to call this when you know that some deeper aspect of the
696
- * component's state has changed but `setState` was not called.
697
- *
698
- * This will not invoke `shouldComponentUpdate`, but it will invoke
699
- * `componentWillUpdate` and `componentDidUpdate`.
700
- *
701
- * @param {?function} callback Called after update is complete.
702
- * @final
703
- * @protected
704
- */
705
-
706
-
707
- Component.prototype.forceUpdate = function (callback) {
708
- this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
709
- };
710
- /**
711
- * Deprecated APIs. These APIs used to exist on classic React classes but since
712
- * we would like to deprecate them, we're not going to move them over to this
713
- * modern base class. Instead, we define a getter that warns if it's accessed.
714
- */
715
-
716
-
717
- {
718
- var deprecatedAPIs = {
719
- isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
720
- replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
721
- };
722
-
723
- var defineDeprecationWarning = function (methodName, info) {
724
- Object.defineProperty(Component.prototype, methodName, {
725
- get: function () {
726
- warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
727
-
728
- return undefined;
729
- }
730
- });
731
- };
732
-
733
- for (var fnName in deprecatedAPIs) {
734
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
735
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
736
- }
737
- }
738
- }
739
-
740
- function ComponentDummy() {}
741
-
742
- ComponentDummy.prototype = Component.prototype;
743
- /**
744
- * Convenience component with default shallow equality check for sCU.
745
- */
746
-
747
- function PureComponent(props, context, updater) {
748
- this.props = props;
749
- this.context = context; // If a component has string refs, we will assign a different object later.
750
-
751
- this.refs = emptyObject;
752
- this.updater = updater || ReactNoopUpdateQueue;
753
- }
754
-
755
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
756
- pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
757
-
758
- assign(pureComponentPrototype, Component.prototype);
759
- pureComponentPrototype.isPureReactComponent = true;
760
-
761
- // an immutable object with a single mutable value
762
- function createRef() {
763
- var refObject = {
764
- current: null
765
- };
766
-
767
- {
768
- Object.seal(refObject);
769
- }
770
-
771
- return refObject;
772
- }
773
-
774
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
775
-
776
- function isArray(a) {
777
- return isArrayImpl(a);
778
- }
779
-
780
- /*
781
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
782
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
783
- *
784
- * The functions in this module will throw an easier-to-understand,
785
- * easier-to-debug exception with a clear errors message message explaining the
786
- * problem. (Instead of a confusing exception thrown inside the implementation
787
- * of the `value` object).
788
- */
789
- // $FlowFixMe only called in DEV, so void return is not possible.
790
- function typeName(value) {
791
- {
792
- // toStringTag is needed for namespaced types like Temporal.Instant
793
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
794
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
795
- return type;
796
- }
797
- } // $FlowFixMe only called in DEV, so void return is not possible.
798
-
799
-
800
- function willCoercionThrow(value) {
801
- {
802
- try {
803
- testStringCoercion(value);
804
- return false;
805
- } catch (e) {
806
- return true;
807
- }
808
- }
809
- }
810
-
811
- function testStringCoercion(value) {
812
- // If you ended up here by following an exception call stack, here's what's
813
- // happened: you supplied an object or symbol value to React (as a prop, key,
814
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
815
- // coerce it to a string using `'' + value`, an exception was thrown.
816
- //
817
- // The most common types that will cause this exception are `Symbol` instances
818
- // and Temporal objects like `Temporal.Instant`. But any object that has a
819
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
820
- // exception. (Library authors do this to prevent users from using built-in
821
- // numeric operators like `+` or comparison operators like `>=` because custom
822
- // methods are needed to perform accurate arithmetic or comparison.)
823
- //
824
- // To fix the problem, coerce this object or symbol value to a string before
825
- // passing it to React. The most reliable way is usually `String(value)`.
826
- //
827
- // To find which value is throwing, check the browser or debugger console.
828
- // Before this exception was thrown, there should be `console.error` output
829
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
830
- // problem and how that type was used: key, atrribute, input value prop, etc.
831
- // In most cases, this console output also shows the component and its
832
- // ancestor components where the exception happened.
833
- //
834
- // eslint-disable-next-line react-internal/safe-string-coercion
835
- return '' + value;
836
- }
837
- function checkKeyStringCoercion(value) {
838
- {
839
- if (willCoercionThrow(value)) {
840
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
841
-
842
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
843
- }
844
- }
845
- }
846
-
847
- function getWrappedName(outerType, innerType, wrapperName) {
848
- var displayName = outerType.displayName;
849
-
850
- if (displayName) {
851
- return displayName;
852
- }
853
-
854
- var functionName = innerType.displayName || innerType.name || '';
855
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
856
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
857
-
858
-
859
- function getContextName(type) {
860
- return type.displayName || 'Context';
861
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
862
-
863
-
864
- function getComponentNameFromType(type) {
865
- if (type == null) {
866
- // Host root, text node or just invalid type.
867
- return null;
868
- }
869
-
870
- {
871
- if (typeof type.tag === 'number') {
872
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
873
- }
874
- }
875
-
876
- if (typeof type === 'function') {
877
- return type.displayName || type.name || null;
878
- }
879
-
880
- if (typeof type === 'string') {
881
- return type;
882
- }
883
-
884
- switch (type) {
885
- case REACT_FRAGMENT_TYPE:
886
- return 'Fragment';
887
-
888
- case REACT_PORTAL_TYPE:
889
- return 'Portal';
890
-
891
- case REACT_PROFILER_TYPE:
892
- return 'Profiler';
893
-
894
- case REACT_STRICT_MODE_TYPE:
895
- return 'StrictMode';
896
-
897
- case REACT_SUSPENSE_TYPE:
898
- return 'Suspense';
899
-
900
- case REACT_SUSPENSE_LIST_TYPE:
901
- return 'SuspenseList';
902
-
903
- }
904
-
905
- if (typeof type === 'object') {
906
- switch (type.$$typeof) {
907
- case REACT_CONTEXT_TYPE:
908
- var context = type;
909
- return getContextName(context) + '.Consumer';
910
-
911
- case REACT_PROVIDER_TYPE:
912
- var provider = type;
913
- return getContextName(provider._context) + '.Provider';
914
-
915
- case REACT_FORWARD_REF_TYPE:
916
- return getWrappedName(type, type.render, 'ForwardRef');
917
-
918
- case REACT_MEMO_TYPE:
919
- var outerName = type.displayName || null;
920
-
921
- if (outerName !== null) {
922
- return outerName;
923
- }
924
-
925
- return getComponentNameFromType(type.type) || 'Memo';
926
-
927
- case REACT_LAZY_TYPE:
928
- {
929
- var lazyComponent = type;
930
- var payload = lazyComponent._payload;
931
- var init = lazyComponent._init;
932
-
933
- try {
934
- return getComponentNameFromType(init(payload));
935
- } catch (x) {
936
- return null;
937
- }
938
- }
939
-
940
- // eslint-disable-next-line no-fallthrough
941
- }
942
- }
943
-
944
- return null;
945
- }
946
-
947
- var hasOwnProperty = Object.prototype.hasOwnProperty;
948
-
949
- var RESERVED_PROPS = {
950
- key: true,
951
- ref: true,
952
- __self: true,
953
- __source: true
954
- };
955
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
956
-
957
- {
958
- didWarnAboutStringRefs = {};
959
- }
960
-
961
- function hasValidRef(config) {
962
- {
963
- if (hasOwnProperty.call(config, 'ref')) {
964
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
965
-
966
- if (getter && getter.isReactWarning) {
967
- return false;
968
- }
969
- }
970
- }
971
-
972
- return config.ref !== undefined;
973
- }
974
-
975
- function hasValidKey(config) {
976
- {
977
- if (hasOwnProperty.call(config, 'key')) {
978
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
979
-
980
- if (getter && getter.isReactWarning) {
981
- return false;
982
- }
983
- }
984
- }
985
-
986
- return config.key !== undefined;
987
- }
988
-
989
- function defineKeyPropWarningGetter(props, displayName) {
990
- var warnAboutAccessingKey = function () {
991
- {
992
- if (!specialPropKeyWarningShown) {
993
- specialPropKeyWarningShown = true;
994
-
995
- error('%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)', displayName);
996
- }
997
- }
998
- };
999
-
1000
- warnAboutAccessingKey.isReactWarning = true;
1001
- Object.defineProperty(props, 'key', {
1002
- get: warnAboutAccessingKey,
1003
- configurable: true
1004
- });
1005
- }
1006
-
1007
- function defineRefPropWarningGetter(props, displayName) {
1008
- var warnAboutAccessingRef = function () {
1009
- {
1010
- if (!specialPropRefWarningShown) {
1011
- specialPropRefWarningShown = true;
1012
-
1013
- error('%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)', displayName);
1014
- }
1015
- }
1016
- };
1017
-
1018
- warnAboutAccessingRef.isReactWarning = true;
1019
- Object.defineProperty(props, 'ref', {
1020
- get: warnAboutAccessingRef,
1021
- configurable: true
1022
- });
1023
- }
1024
-
1025
- function warnIfStringRefCannotBeAutoConverted(config) {
1026
- {
1027
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
1028
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
1029
-
1030
- if (!didWarnAboutStringRefs[componentName]) {
1031
- error('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', componentName, config.ref);
1032
-
1033
- didWarnAboutStringRefs[componentName] = true;
1034
- }
1035
- }
1036
- }
1037
- }
1038
- /**
1039
- * Factory method to create a new React element. This no longer adheres to
1040
- * the class pattern, so do not use new to call it. Also, instanceof check
1041
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
1042
- * if something is a React Element.
1043
- *
1044
- * @param {*} type
1045
- * @param {*} props
1046
- * @param {*} key
1047
- * @param {string|object} ref
1048
- * @param {*} owner
1049
- * @param {*} self A *temporary* helper to detect places where `this` is
1050
- * different from the `owner` when React.createElement is called, so that we
1051
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
1052
- * functions, and as long as `this` and owner are the same, there will be no
1053
- * change in behavior.
1054
- * @param {*} source An annotation object (added by a transpiler or otherwise)
1055
- * indicating filename, line number, and/or other information.
1056
- * @internal
1057
- */
1058
-
1059
-
1060
- var ReactElement = function (type, key, ref, self, source, owner, props) {
1061
- var element = {
1062
- // This tag allows us to uniquely identify this as a React Element
1063
- $$typeof: REACT_ELEMENT_TYPE,
1064
- // Built-in properties that belong on the element
1065
- type: type,
1066
- key: key,
1067
- ref: ref,
1068
- props: props,
1069
- // Record the component responsible for creating this element.
1070
- _owner: owner
1071
- };
1072
-
1073
- {
1074
- // The validation flag is currently mutative. We put it on
1075
- // an external backing store so that we can freeze the whole object.
1076
- // This can be replaced with a WeakMap once they are implemented in
1077
- // commonly used development environments.
1078
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
1079
- // the validation flag non-enumerable (where possible, which should
1080
- // include every environment we run tests in), so the test framework
1081
- // ignores it.
1082
-
1083
- Object.defineProperty(element._store, 'validated', {
1084
- configurable: false,
1085
- enumerable: false,
1086
- writable: true,
1087
- value: false
1088
- }); // self and source are DEV only properties.
1089
-
1090
- Object.defineProperty(element, '_self', {
1091
- configurable: false,
1092
- enumerable: false,
1093
- writable: false,
1094
- value: self
1095
- }); // Two elements created in two different places should be considered
1096
- // equal for testing purposes and therefore we hide it from enumeration.
1097
-
1098
- Object.defineProperty(element, '_source', {
1099
- configurable: false,
1100
- enumerable: false,
1101
- writable: false,
1102
- value: source
1103
- });
1104
-
1105
- if (Object.freeze) {
1106
- Object.freeze(element.props);
1107
- Object.freeze(element);
1108
- }
1109
- }
1110
-
1111
- return element;
1112
- };
1113
- /**
1114
- * Create and return a new ReactElement of the given type.
1115
- * See https://reactjs.org/docs/react-api.html#createelement
1116
- */
1117
-
1118
- function createElement(type, config, children) {
1119
- var propName; // Reserved names are extracted
1120
-
1121
- var props = {};
1122
- var key = null;
1123
- var ref = null;
1124
- var self = null;
1125
- var source = null;
1126
-
1127
- if (config != null) {
1128
- if (hasValidRef(config)) {
1129
- ref = config.ref;
1130
-
1131
- {
1132
- warnIfStringRefCannotBeAutoConverted(config);
1133
- }
1134
- }
1135
-
1136
- if (hasValidKey(config)) {
1137
- {
1138
- checkKeyStringCoercion(config.key);
1139
- }
1140
-
1141
- key = '' + config.key;
1142
- }
1143
-
1144
- self = config.__self === undefined ? null : config.__self;
1145
- source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
1146
-
1147
- for (propName in config) {
1148
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1149
- props[propName] = config[propName];
1150
- }
1151
- }
1152
- } // Children can be more than one argument, and those are transferred onto
1153
- // the newly allocated props object.
1154
-
1155
-
1156
- var childrenLength = arguments.length - 2;
1157
-
1158
- if (childrenLength === 1) {
1159
- props.children = children;
1160
- } else if (childrenLength > 1) {
1161
- var childArray = Array(childrenLength);
1162
-
1163
- for (var i = 0; i < childrenLength; i++) {
1164
- childArray[i] = arguments[i + 2];
1165
- }
1166
-
1167
- {
1168
- if (Object.freeze) {
1169
- Object.freeze(childArray);
1170
- }
1171
- }
1172
-
1173
- props.children = childArray;
1174
- } // Resolve default props
1175
-
1176
-
1177
- if (type && type.defaultProps) {
1178
- var defaultProps = type.defaultProps;
1179
-
1180
- for (propName in defaultProps) {
1181
- if (props[propName] === undefined) {
1182
- props[propName] = defaultProps[propName];
1183
- }
1184
- }
1185
- }
1186
-
1187
- {
1188
- if (key || ref) {
1189
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
1190
-
1191
- if (key) {
1192
- defineKeyPropWarningGetter(props, displayName);
1193
- }
1194
-
1195
- if (ref) {
1196
- defineRefPropWarningGetter(props, displayName);
1197
- }
1198
- }
1199
- }
1200
-
1201
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1202
- }
1203
- function cloneAndReplaceKey(oldElement, newKey) {
1204
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
1205
- return newElement;
1206
- }
1207
- /**
1208
- * Clone and return a new ReactElement using element as the starting point.
1209
- * See https://reactjs.org/docs/react-api.html#cloneelement
1210
- */
1211
-
1212
- function cloneElement(element, config, children) {
1213
- if (element === null || element === undefined) {
1214
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
1215
- }
1216
-
1217
- var propName; // Original props are copied
1218
-
1219
- var props = assign({}, element.props); // Reserved names are extracted
1220
-
1221
- var key = element.key;
1222
- var ref = element.ref; // Self is preserved since the owner is preserved.
1223
-
1224
- var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
1225
- // transpiler, and the original source is probably a better indicator of the
1226
- // true owner.
1227
-
1228
- var source = element._source; // Owner will be preserved, unless ref is overridden
1229
-
1230
- var owner = element._owner;
1231
-
1232
- if (config != null) {
1233
- if (hasValidRef(config)) {
1234
- // Silently steal the ref from the parent.
1235
- ref = config.ref;
1236
- owner = ReactCurrentOwner.current;
1237
- }
1238
-
1239
- if (hasValidKey(config)) {
1240
- {
1241
- checkKeyStringCoercion(config.key);
1242
- }
1243
-
1244
- key = '' + config.key;
1245
- } // Remaining properties override existing props
1246
-
1247
-
1248
- var defaultProps;
1249
-
1250
- if (element.type && element.type.defaultProps) {
1251
- defaultProps = element.type.defaultProps;
1252
- }
1253
-
1254
- for (propName in config) {
1255
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1256
- if (config[propName] === undefined && defaultProps !== undefined) {
1257
- // Resolve default props
1258
- props[propName] = defaultProps[propName];
1259
- } else {
1260
- props[propName] = config[propName];
1261
- }
1262
- }
1263
- }
1264
- } // Children can be more than one argument, and those are transferred onto
1265
- // the newly allocated props object.
1266
-
1267
-
1268
- var childrenLength = arguments.length - 2;
1269
-
1270
- if (childrenLength === 1) {
1271
- props.children = children;
1272
- } else if (childrenLength > 1) {
1273
- var childArray = Array(childrenLength);
1274
-
1275
- for (var i = 0; i < childrenLength; i++) {
1276
- childArray[i] = arguments[i + 2];
1277
- }
1278
-
1279
- props.children = childArray;
1280
- }
1281
-
1282
- return ReactElement(element.type, key, ref, self, source, owner, props);
1283
- }
1284
- /**
1285
- * Verifies the object is a ReactElement.
1286
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1287
- * @param {?object} object
1288
- * @return {boolean} True if `object` is a ReactElement.
1289
- * @final
1290
- */
1291
-
1292
- function isValidElement(object) {
1293
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1294
- }
1295
-
1296
- var SEPARATOR = '.';
1297
- var SUBSEPARATOR = ':';
1298
- /**
1299
- * Escape and wrap key so it is safe to use as a reactid
1300
- *
1301
- * @param {string} key to be escaped.
1302
- * @return {string} the escaped key.
1303
- */
1304
-
1305
- function escape(key) {
1306
- var escapeRegex = /[=:]/g;
1307
- var escaperLookup = {
1308
- '=': '=0',
1309
- ':': '=2'
1310
- };
1311
- var escapedString = key.replace(escapeRegex, function (match) {
1312
- return escaperLookup[match];
1313
- });
1314
- return '$' + escapedString;
1315
- }
1316
- /**
1317
- * TODO: Test that a single child and an array with one item have the same key
1318
- * pattern.
1319
- */
1320
-
1321
-
1322
- var didWarnAboutMaps = false;
1323
- var userProvidedKeyEscapeRegex = /\/+/g;
1324
-
1325
- function escapeUserProvidedKey(text) {
1326
- return text.replace(userProvidedKeyEscapeRegex, '$&/');
1327
- }
1328
- /**
1329
- * Generate a key string that identifies a element within a set.
1330
- *
1331
- * @param {*} element A element that could contain a manual key.
1332
- * @param {number} index Index that is used if a manual key is not provided.
1333
- * @return {string}
1334
- */
1335
-
1336
-
1337
- function getElementKey(element, index) {
1338
- // Do some typechecking here since we call this blindly. We want to ensure
1339
- // that we don't block potential future ES APIs.
1340
- if (typeof element === 'object' && element !== null && element.key != null) {
1341
- // Explicit key
1342
- {
1343
- checkKeyStringCoercion(element.key);
1344
- }
1345
-
1346
- return escape('' + element.key);
1347
- } // Implicit key determined by the index in the set
1348
-
1349
-
1350
- return index.toString(36);
1351
- }
1352
-
1353
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1354
- var type = typeof children;
1355
-
1356
- if (type === 'undefined' || type === 'boolean') {
1357
- // All of the above are perceived as null.
1358
- children = null;
1359
- }
1360
-
1361
- var invokeCallback = false;
1362
-
1363
- if (children === null) {
1364
- invokeCallback = true;
1365
- } else {
1366
- switch (type) {
1367
- case 'string':
1368
- case 'number':
1369
- invokeCallback = true;
1370
- break;
1371
-
1372
- case 'object':
1373
- switch (children.$$typeof) {
1374
- case REACT_ELEMENT_TYPE:
1375
- case REACT_PORTAL_TYPE:
1376
- invokeCallback = true;
1377
- }
1378
-
1379
- }
1380
- }
1381
-
1382
- if (invokeCallback) {
1383
- var _child = children;
1384
- var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
1385
- // so that it's consistent if the number of children grows:
1386
-
1387
- var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1388
-
1389
- if (isArray(mappedChild)) {
1390
- var escapedChildKey = '';
1391
-
1392
- if (childKey != null) {
1393
- escapedChildKey = escapeUserProvidedKey(childKey) + '/';
1394
- }
1395
-
1396
- mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
1397
- return c;
1398
- });
1399
- } else if (mappedChild != null) {
1400
- if (isValidElement(mappedChild)) {
1401
- {
1402
- // The `if` statement here prevents auto-disabling of the safe
1403
- // coercion ESLint rule, so we must manually disable it below.
1404
- // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1405
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
1406
- checkKeyStringCoercion(mappedChild.key);
1407
- }
1408
- }
1409
-
1410
- mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
1411
- // traverseAllChildren used to do for objects as children
1412
- escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1413
- mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1414
- // eslint-disable-next-line react-internal/safe-string-coercion
1415
- escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
1416
- }
1417
-
1418
- array.push(mappedChild);
1419
- }
1420
-
1421
- return 1;
1422
- }
1423
-
1424
- var child;
1425
- var nextName;
1426
- var subtreeCount = 0; // Count of children found in the current subtree.
1427
-
1428
- var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1429
-
1430
- if (isArray(children)) {
1431
- for (var i = 0; i < children.length; i++) {
1432
- child = children[i];
1433
- nextName = nextNamePrefix + getElementKey(child, i);
1434
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1435
- }
1436
- } else {
1437
- var iteratorFn = getIteratorFn(children);
1438
-
1439
- if (typeof iteratorFn === 'function') {
1440
- var iterableChildren = children;
1441
-
1442
- {
1443
- // Warn about using Maps as children
1444
- if (iteratorFn === iterableChildren.entries) {
1445
- if (!didWarnAboutMaps) {
1446
- warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
1447
- }
1448
-
1449
- didWarnAboutMaps = true;
1450
- }
1451
- }
1452
-
1453
- var iterator = iteratorFn.call(iterableChildren);
1454
- var step;
1455
- var ii = 0;
1456
-
1457
- while (!(step = iterator.next()).done) {
1458
- child = step.value;
1459
- nextName = nextNamePrefix + getElementKey(child, ii++);
1460
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1461
- }
1462
- } else if (type === 'object') {
1463
- // eslint-disable-next-line react-internal/safe-string-coercion
1464
- var childrenString = String(children);
1465
- throw new Error("Objects are not valid as a React child (found: " + (childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString) + "). " + 'If you meant to render a collection of children, use an array ' + 'instead.');
1466
- }
1467
- }
1468
-
1469
- return subtreeCount;
1470
- }
1471
-
1472
- /**
1473
- * Maps children that are typically specified as `props.children`.
1474
- *
1475
- * See https://reactjs.org/docs/react-api.html#reactchildrenmap
1476
- *
1477
- * The provided mapFunction(child, index) will be called for each
1478
- * leaf child.
1479
- *
1480
- * @param {?*} children Children tree container.
1481
- * @param {function(*, int)} func The map function.
1482
- * @param {*} context Context for mapFunction.
1483
- * @return {object} Object containing the ordered map of results.
1484
- */
1485
- function mapChildren(children, func, context) {
1486
- if (children == null) {
1487
- return children;
1488
- }
1489
-
1490
- var result = [];
1491
- var count = 0;
1492
- mapIntoArray(children, result, '', '', function (child) {
1493
- return func.call(context, child, count++);
1494
- });
1495
- return result;
1496
- }
1497
- /**
1498
- * Count the number of children that are typically specified as
1499
- * `props.children`.
1500
- *
1501
- * See https://reactjs.org/docs/react-api.html#reactchildrencount
1502
- *
1503
- * @param {?*} children Children tree container.
1504
- * @return {number} The number of children.
1505
- */
1506
-
1507
-
1508
- function countChildren(children) {
1509
- var n = 0;
1510
- mapChildren(children, function () {
1511
- n++; // Don't return anything
1512
- });
1513
- return n;
1514
- }
1515
-
1516
- /**
1517
- * Iterates through children that are typically specified as `props.children`.
1518
- *
1519
- * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
1520
- *
1521
- * The provided forEachFunc(child, index) will be called for each
1522
- * leaf child.
1523
- *
1524
- * @param {?*} children Children tree container.
1525
- * @param {function(*, int)} forEachFunc
1526
- * @param {*} forEachContext Context for forEachContext.
1527
- */
1528
- function forEachChildren(children, forEachFunc, forEachContext) {
1529
- mapChildren(children, function () {
1530
- forEachFunc.apply(this, arguments); // Don't return anything.
1531
- }, forEachContext);
1532
- }
1533
- /**
1534
- * Flatten a children object (typically specified as `props.children`) and
1535
- * return an array with appropriately re-keyed children.
1536
- *
1537
- * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
1538
- */
1539
-
1540
-
1541
- function toArray(children) {
1542
- return mapChildren(children, function (child) {
1543
- return child;
1544
- }) || [];
1545
- }
1546
- /**
1547
- * Returns the first child in a collection of children and verifies that there
1548
- * is only one child in the collection.
1549
- *
1550
- * See https://reactjs.org/docs/react-api.html#reactchildrenonly
1551
- *
1552
- * The current implementation of this function assumes that a single child gets
1553
- * passed without a wrapper, but the purpose of this helper function is to
1554
- * abstract away the particular structure of children.
1555
- *
1556
- * @param {?object} children Child collection structure.
1557
- * @return {ReactElement} The first and only `ReactElement` contained in the
1558
- * structure.
1559
- */
1560
-
1561
-
1562
- function onlyChild(children) {
1563
- if (!isValidElement(children)) {
1564
- throw new Error('React.Children.only expected to receive a single React element child.');
1565
- }
1566
-
1567
- return children;
1568
- }
1569
-
1570
- function createContext(defaultValue) {
1571
- // TODO: Second argument used to be an optional `calculateChangedBits`
1572
- // function. Warn to reserve for future use?
1573
- var context = {
1574
- $$typeof: REACT_CONTEXT_TYPE,
1575
- // As a workaround to support multiple concurrent renderers, we categorize
1576
- // some renderers as primary and others as secondary. We only expect
1577
- // there to be two concurrent renderers at most: React Native (primary) and
1578
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1579
- // Secondary renderers store their context values on separate fields.
1580
- _currentValue: defaultValue,
1581
- _currentValue2: defaultValue,
1582
- // Used to track how many concurrent renderers this context currently
1583
- // supports within in a single renderer. Such as parallel server rendering.
1584
- _threadCount: 0,
1585
- // These are circular
1586
- Provider: null,
1587
- Consumer: null,
1588
- // Add these to use same hidden class in VM as ServerContext
1589
- _defaultValue: null,
1590
- _globalName: null
1591
- };
1592
- context.Provider = {
1593
- $$typeof: REACT_PROVIDER_TYPE,
1594
- _context: context
1595
- };
1596
- var hasWarnedAboutUsingNestedContextConsumers = false;
1597
- var hasWarnedAboutUsingConsumerProvider = false;
1598
- var hasWarnedAboutDisplayNameOnConsumer = false;
1599
-
1600
- {
1601
- // A separate object, but proxies back to the original context object for
1602
- // backwards compatibility. It has a different $$typeof, so we can properly
1603
- // warn for the incorrect usage of Context as a Consumer.
1604
- var Consumer = {
1605
- $$typeof: REACT_CONTEXT_TYPE,
1606
- _context: context
1607
- }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
1608
-
1609
- Object.defineProperties(Consumer, {
1610
- Provider: {
1611
- get: function () {
1612
- if (!hasWarnedAboutUsingConsumerProvider) {
1613
- hasWarnedAboutUsingConsumerProvider = true;
1614
-
1615
- error('Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
1616
- }
1617
-
1618
- return context.Provider;
1619
- },
1620
- set: function (_Provider) {
1621
- context.Provider = _Provider;
1622
- }
1623
- },
1624
- _currentValue: {
1625
- get: function () {
1626
- return context._currentValue;
1627
- },
1628
- set: function (_currentValue) {
1629
- context._currentValue = _currentValue;
1630
- }
1631
- },
1632
- _currentValue2: {
1633
- get: function () {
1634
- return context._currentValue2;
1635
- },
1636
- set: function (_currentValue2) {
1637
- context._currentValue2 = _currentValue2;
1638
- }
1639
- },
1640
- _threadCount: {
1641
- get: function () {
1642
- return context._threadCount;
1643
- },
1644
- set: function (_threadCount) {
1645
- context._threadCount = _threadCount;
1646
- }
1647
- },
1648
- Consumer: {
1649
- get: function () {
1650
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1651
- hasWarnedAboutUsingNestedContextConsumers = true;
1652
-
1653
- error('Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
1654
- }
1655
-
1656
- return context.Consumer;
1657
- }
1658
- },
1659
- displayName: {
1660
- get: function () {
1661
- return context.displayName;
1662
- },
1663
- set: function (displayName) {
1664
- if (!hasWarnedAboutDisplayNameOnConsumer) {
1665
- warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
1666
-
1667
- hasWarnedAboutDisplayNameOnConsumer = true;
1668
- }
1669
- }
1670
- }
1671
- }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
1672
-
1673
- context.Consumer = Consumer;
1674
- }
1675
-
1676
- {
1677
- context._currentRenderer = null;
1678
- context._currentRenderer2 = null;
1679
- }
1680
-
1681
- return context;
1682
- }
1683
-
1684
- var Uninitialized = -1;
1685
- var Pending = 0;
1686
- var Resolved = 1;
1687
- var Rejected = 2;
1688
-
1689
- function lazyInitializer(payload) {
1690
- if (payload._status === Uninitialized) {
1691
- var ctor = payload._result;
1692
- var thenable = ctor(); // Transition to the next state.
1693
- // This might throw either because it's missing or throws. If so, we treat it
1694
- // as still uninitialized and try again next time. Which is the same as what
1695
- // happens if the ctor or any wrappers processing the ctor throws. This might
1696
- // end up fixing it if the resolution was a concurrency bug.
1697
-
1698
- thenable.then(function (moduleObject) {
1699
- if (payload._status === Pending || payload._status === Uninitialized) {
1700
- // Transition to the next state.
1701
- var resolved = payload;
1702
- resolved._status = Resolved;
1703
- resolved._result = moduleObject;
1704
- }
1705
- }, function (error) {
1706
- if (payload._status === Pending || payload._status === Uninitialized) {
1707
- // Transition to the next state.
1708
- var rejected = payload;
1709
- rejected._status = Rejected;
1710
- rejected._result = error;
1711
- }
1712
- });
1713
-
1714
- if (payload._status === Uninitialized) {
1715
- // In case, we're still uninitialized, then we're waiting for the thenable
1716
- // to resolve. Set it as pending in the meantime.
1717
- var pending = payload;
1718
- pending._status = Pending;
1719
- pending._result = thenable;
1720
- }
1721
- }
1722
-
1723
- if (payload._status === Resolved) {
1724
- var moduleObject = payload._result;
1725
-
1726
- {
1727
- if (moduleObject === undefined) {
1728
- error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
1729
- 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))\n\n" + 'Did you accidentally put curly braces around the import?', moduleObject);
1730
- }
1731
- }
1732
-
1733
- {
1734
- if (!('default' in moduleObject)) {
1735
- error('lazy: Expected the result of a dynamic imp' + 'ort() call. ' + 'Instead received: %s\n\nYour code should look like: \n ' + // Break up imports to avoid accidentally parsing them as dependencies.
1736
- 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
1737
- }
1738
- }
1739
-
1740
- return moduleObject.default;
1741
- } else {
1742
- throw payload._result;
1743
- }
1744
- }
1745
-
1746
- function lazy(ctor) {
1747
- var payload = {
1748
- // We use these fields to store the result.
1749
- _status: Uninitialized,
1750
- _result: ctor
1751
- };
1752
- var lazyType = {
1753
- $$typeof: REACT_LAZY_TYPE,
1754
- _payload: payload,
1755
- _init: lazyInitializer
1756
- };
1757
-
1758
- {
1759
- // In production, this would just set it on the object.
1760
- var defaultProps;
1761
- var propTypes; // $FlowFixMe
1762
-
1763
- Object.defineProperties(lazyType, {
1764
- defaultProps: {
1765
- configurable: true,
1766
- get: function () {
1767
- return defaultProps;
1768
- },
1769
- set: function (newDefaultProps) {
1770
- error('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.');
1771
-
1772
- defaultProps = newDefaultProps; // Match production behavior more closely:
1773
- // $FlowFixMe
1774
-
1775
- Object.defineProperty(lazyType, 'defaultProps', {
1776
- enumerable: true
1777
- });
1778
- }
1779
- },
1780
- propTypes: {
1781
- configurable: true,
1782
- get: function () {
1783
- return propTypes;
1784
- },
1785
- set: function (newPropTypes) {
1786
- error('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.');
1787
-
1788
- propTypes = newPropTypes; // Match production behavior more closely:
1789
- // $FlowFixMe
1790
-
1791
- Object.defineProperty(lazyType, 'propTypes', {
1792
- enumerable: true
1793
- });
1794
- }
1795
- }
1796
- });
1797
- }
1798
-
1799
- return lazyType;
1800
- }
1801
-
1802
- function forwardRef(render) {
1803
- {
1804
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1805
- error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
1806
- } else if (typeof render !== 'function') {
1807
- error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
1808
- } else {
1809
- if (render.length !== 0 && render.length !== 2) {
1810
- error('forwardRef render functions accept exactly two parameters: props and ref. %s', render.length === 1 ? 'Did you forget to use the ref parameter?' : 'Any additional parameter will be undefined.');
1811
- }
1812
- }
1813
-
1814
- if (render != null) {
1815
- if (render.defaultProps != null || render.propTypes != null) {
1816
- error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
1817
- }
1818
- }
1819
- }
1820
-
1821
- var elementType = {
1822
- $$typeof: REACT_FORWARD_REF_TYPE,
1823
- render: render
1824
- };
1825
-
1826
- {
1827
- var ownName;
1828
- Object.defineProperty(elementType, 'displayName', {
1829
- enumerable: false,
1830
- configurable: true,
1831
- get: function () {
1832
- return ownName;
1833
- },
1834
- set: function (name) {
1835
- ownName = name; // The inner component shouldn't inherit this display name in most cases,
1836
- // because the component may be used elsewhere.
1837
- // But it's nice for anonymous functions to inherit the name,
1838
- // so that our component-stack generation logic will display their frames.
1839
- // An anonymous function generally suggests a pattern like:
1840
- // React.forwardRef((props, ref) => {...});
1841
- // This kind of inner function is not used elsewhere so the side effect is okay.
1842
-
1843
- if (!render.name && !render.displayName) {
1844
- render.displayName = name;
1845
- }
1846
- }
1847
- });
1848
- }
1849
-
1850
- return elementType;
1851
- }
1852
-
1853
- var REACT_MODULE_REFERENCE;
1854
-
1855
- {
1856
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1857
- }
1858
-
1859
- function isValidElementType(type) {
1860
- if (typeof type === 'string' || typeof type === 'function') {
1861
- return true;
1862
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1863
-
1864
-
1865
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
1866
- return true;
1867
- }
1868
-
1869
- if (typeof type === 'object' && type !== null) {
1870
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1871
- // types supported by any Flight configuration anywhere since
1872
- // we don't know which Flight build this will end up being used
1873
- // with.
1874
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1875
- return true;
1876
- }
1877
- }
1878
-
1879
- return false;
1880
- }
1881
-
1882
- function memo(type, compare) {
1883
- {
1884
- if (!isValidElementType(type)) {
1885
- error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
1886
- }
1887
- }
1888
-
1889
- var elementType = {
1890
- $$typeof: REACT_MEMO_TYPE,
1891
- type: type,
1892
- compare: compare === undefined ? null : compare
1893
- };
1894
-
1895
- {
1896
- var ownName;
1897
- Object.defineProperty(elementType, 'displayName', {
1898
- enumerable: false,
1899
- configurable: true,
1900
- get: function () {
1901
- return ownName;
1902
- },
1903
- set: function (name) {
1904
- ownName = name; // The inner component shouldn't inherit this display name in most cases,
1905
- // because the component may be used elsewhere.
1906
- // But it's nice for anonymous functions to inherit the name,
1907
- // so that our component-stack generation logic will display their frames.
1908
- // An anonymous function generally suggests a pattern like:
1909
- // React.memo((props) => {...});
1910
- // This kind of inner function is not used elsewhere so the side effect is okay.
1911
-
1912
- if (!type.name && !type.displayName) {
1913
- type.displayName = name;
1914
- }
1915
- }
1916
- });
1917
- }
1918
-
1919
- return elementType;
1920
- }
1921
-
1922
- function resolveDispatcher() {
1923
- var dispatcher = ReactCurrentDispatcher.current;
1924
-
1925
- {
1926
- if (dispatcher === null) {
1927
- error('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:\n' + '1. You might have mismatching versions of React and the renderer (such as React DOM)\n' + '2. You might be breaking the Rules of Hooks\n' + '3. You might have more than one copy of React in the same app\n' + 'See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.');
1928
- }
1929
- } // Will result in a null access error if accessed outside render phase. We
1930
- // intentionally don't throw our own error because this is in a hot path.
1931
- // Also helps ensure this is inlined.
1932
-
1933
-
1934
- return dispatcher;
1935
- }
1936
- function useContext(Context) {
1937
- var dispatcher = resolveDispatcher();
1938
-
1939
- {
1940
- // TODO: add a more generic warning for invalid values.
1941
- if (Context._context !== undefined) {
1942
- var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
1943
- // and nobody should be using this in existing code.
1944
-
1945
- if (realContext.Consumer === Context) {
1946
- error('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?');
1947
- } else if (realContext.Provider === Context) {
1948
- error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
1949
- }
1950
- }
1951
- }
1952
-
1953
- return dispatcher.useContext(Context);
1954
- }
1955
- function useState(initialState) {
1956
- var dispatcher = resolveDispatcher();
1957
- return dispatcher.useState(initialState);
1958
- }
1959
- function useReducer(reducer, initialArg, init) {
1960
- var dispatcher = resolveDispatcher();
1961
- return dispatcher.useReducer(reducer, initialArg, init);
1962
- }
1963
- function useRef(initialValue) {
1964
- var dispatcher = resolveDispatcher();
1965
- return dispatcher.useRef(initialValue);
1966
- }
1967
- function useEffect(create, deps) {
1968
- var dispatcher = resolveDispatcher();
1969
- return dispatcher.useEffect(create, deps);
1970
- }
1971
- function useInsertionEffect(create, deps) {
1972
- var dispatcher = resolveDispatcher();
1973
- return dispatcher.useInsertionEffect(create, deps);
1974
- }
1975
- function useLayoutEffect(create, deps) {
1976
- var dispatcher = resolveDispatcher();
1977
- return dispatcher.useLayoutEffect(create, deps);
1978
- }
1979
- function useCallback(callback, deps) {
1980
- var dispatcher = resolveDispatcher();
1981
- return dispatcher.useCallback(callback, deps);
1982
- }
1983
- function useMemo(create, deps) {
1984
- var dispatcher = resolveDispatcher();
1985
- return dispatcher.useMemo(create, deps);
1986
- }
1987
- function useImperativeHandle(ref, create, deps) {
1988
- var dispatcher = resolveDispatcher();
1989
- return dispatcher.useImperativeHandle(ref, create, deps);
1990
- }
1991
- function useDebugValue(value, formatterFn) {
1992
- {
1993
- var dispatcher = resolveDispatcher();
1994
- return dispatcher.useDebugValue(value, formatterFn);
1995
- }
1996
- }
1997
- function useTransition() {
1998
- var dispatcher = resolveDispatcher();
1999
- return dispatcher.useTransition();
2000
- }
2001
- function useDeferredValue(value) {
2002
- var dispatcher = resolveDispatcher();
2003
- return dispatcher.useDeferredValue(value);
2004
- }
2005
- function useId() {
2006
- var dispatcher = resolveDispatcher();
2007
- return dispatcher.useId();
2008
- }
2009
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
2010
- var dispatcher = resolveDispatcher();
2011
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
2012
- }
2013
-
2014
- // Helpers to patch console.logs to avoid logging during side-effect free
2015
- // replaying on render function. This currently only patches the object
2016
- // lazily which won't cover if the log function was extracted eagerly.
2017
- // We could also eagerly patch the method.
2018
- var disabledDepth = 0;
2019
- var prevLog;
2020
- var prevInfo;
2021
- var prevWarn;
2022
- var prevError;
2023
- var prevGroup;
2024
- var prevGroupCollapsed;
2025
- var prevGroupEnd;
2026
-
2027
- function disabledLog() {}
2028
-
2029
- disabledLog.__reactDisabledLog = true;
2030
- function disableLogs() {
2031
- {
2032
- if (disabledDepth === 0) {
2033
- /* eslint-disable react-internal/no-production-logging */
2034
- prevLog = console.log;
2035
- prevInfo = console.info;
2036
- prevWarn = console.warn;
2037
- prevError = console.error;
2038
- prevGroup = console.group;
2039
- prevGroupCollapsed = console.groupCollapsed;
2040
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
2041
-
2042
- var props = {
2043
- configurable: true,
2044
- enumerable: true,
2045
- value: disabledLog,
2046
- writable: true
2047
- }; // $FlowFixMe Flow thinks console is immutable.
2048
-
2049
- Object.defineProperties(console, {
2050
- info: props,
2051
- log: props,
2052
- warn: props,
2053
- error: props,
2054
- group: props,
2055
- groupCollapsed: props,
2056
- groupEnd: props
2057
- });
2058
- /* eslint-enable react-internal/no-production-logging */
2059
- }
2060
-
2061
- disabledDepth++;
2062
- }
2063
- }
2064
- function reenableLogs() {
2065
- {
2066
- disabledDepth--;
2067
-
2068
- if (disabledDepth === 0) {
2069
- /* eslint-disable react-internal/no-production-logging */
2070
- var props = {
2071
- configurable: true,
2072
- enumerable: true,
2073
- writable: true
2074
- }; // $FlowFixMe Flow thinks console is immutable.
2075
-
2076
- Object.defineProperties(console, {
2077
- log: assign({}, props, {
2078
- value: prevLog
2079
- }),
2080
- info: assign({}, props, {
2081
- value: prevInfo
2082
- }),
2083
- warn: assign({}, props, {
2084
- value: prevWarn
2085
- }),
2086
- error: assign({}, props, {
2087
- value: prevError
2088
- }),
2089
- group: assign({}, props, {
2090
- value: prevGroup
2091
- }),
2092
- groupCollapsed: assign({}, props, {
2093
- value: prevGroupCollapsed
2094
- }),
2095
- groupEnd: assign({}, props, {
2096
- value: prevGroupEnd
2097
- })
2098
- });
2099
- /* eslint-enable react-internal/no-production-logging */
2100
- }
2101
-
2102
- if (disabledDepth < 0) {
2103
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
2104
- }
2105
- }
2106
- }
2107
-
2108
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
2109
- var prefix;
2110
- function describeBuiltInComponentFrame(name, source, ownerFn) {
2111
- {
2112
- if (prefix === undefined) {
2113
- // Extract the VM specific prefix used by each line.
2114
- try {
2115
- throw Error();
2116
- } catch (x) {
2117
- var match = x.stack.trim().match(/\n( *(at )?)/);
2118
- prefix = match && match[1] || '';
2119
- }
2120
- } // We use the prefix to ensure our stacks line up with native stack frames.
2121
-
2122
-
2123
- return '\n' + prefix + name;
2124
- }
2125
- }
2126
- var reentry = false;
2127
- var componentFrameCache;
2128
-
2129
- {
2130
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
2131
- componentFrameCache = new PossiblyWeakMap();
2132
- }
2133
-
2134
- function describeNativeComponentFrame(fn, construct) {
2135
- // If something asked for a stack inside a fake render, it should get ignored.
2136
- if ( !fn || reentry) {
2137
- return '';
2138
- }
2139
-
2140
- {
2141
- var frame = componentFrameCache.get(fn);
2142
-
2143
- if (frame !== undefined) {
2144
- return frame;
2145
- }
2146
- }
2147
-
2148
- var control;
2149
- reentry = true;
2150
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
2151
-
2152
- Error.prepareStackTrace = undefined;
2153
- var previousDispatcher;
2154
-
2155
- {
2156
- previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
2157
- // for warnings.
2158
-
2159
- ReactCurrentDispatcher$1.current = null;
2160
- disableLogs();
2161
- }
2162
-
2163
- try {
2164
- // This should throw.
2165
- if (construct) {
2166
- // Something should be setting the props in the constructor.
2167
- var Fake = function () {
2168
- throw Error();
2169
- }; // $FlowFixMe
2170
-
2171
-
2172
- Object.defineProperty(Fake.prototype, 'props', {
2173
- set: function () {
2174
- // We use a throwing setter instead of frozen or non-writable props
2175
- // because that won't throw in a non-strict mode function.
2176
- throw Error();
2177
- }
2178
- });
2179
-
2180
- if (typeof Reflect === 'object' && Reflect.construct) {
2181
- // We construct a different control for this case to include any extra
2182
- // frames added by the construct call.
2183
- try {
2184
- Reflect.construct(Fake, []);
2185
- } catch (x) {
2186
- control = x;
2187
- }
2188
-
2189
- Reflect.construct(fn, [], Fake);
2190
- } else {
2191
- try {
2192
- Fake.call();
2193
- } catch (x) {
2194
- control = x;
2195
- }
2196
-
2197
- fn.call(Fake.prototype);
2198
- }
2199
- } else {
2200
- try {
2201
- throw Error();
2202
- } catch (x) {
2203
- control = x;
2204
- }
2205
-
2206
- fn();
2207
- }
2208
- } catch (sample) {
2209
- // This is inlined manually because closure doesn't do it for us.
2210
- if (sample && control && typeof sample.stack === 'string') {
2211
- // This extracts the first frame from the sample that isn't also in the control.
2212
- // Skipping one frame that we assume is the frame that calls the two.
2213
- var sampleLines = sample.stack.split('\n');
2214
- var controlLines = control.stack.split('\n');
2215
- var s = sampleLines.length - 1;
2216
- var c = controlLines.length - 1;
2217
-
2218
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2219
- // We expect at least one stack frame to be shared.
2220
- // Typically this will be the root most one. However, stack frames may be
2221
- // cut off due to maximum stack limits. In this case, one maybe cut off
2222
- // earlier than the other. We assume that the sample is longer or the same
2223
- // and there for cut off earlier. So we should find the root most frame in
2224
- // the sample somewhere in the control.
2225
- c--;
2226
- }
2227
-
2228
- for (; s >= 1 && c >= 0; s--, c--) {
2229
- // Next we find the first one that isn't the same which should be the
2230
- // frame that called our sample function and the control.
2231
- if (sampleLines[s] !== controlLines[c]) {
2232
- // In V8, the first line is describing the message but other VMs don't.
2233
- // If we're about to return the first line, and the control is also on the same
2234
- // line, that's a pretty good indicator that our sample threw at same line as
2235
- // the control. I.e. before we entered the sample frame. So we ignore this result.
2236
- // This can happen if you passed a class to function component, or non-function.
2237
- if (s !== 1 || c !== 1) {
2238
- do {
2239
- s--;
2240
- c--; // We may still have similar intermediate frames from the construct call.
2241
- // The next one that isn't the same should be our match though.
2242
-
2243
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
2244
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
2245
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
2246
- // but we have a user-provided "displayName"
2247
- // splice it in to make the stack more readable.
2248
-
2249
-
2250
- if (fn.displayName && _frame.includes('<anonymous>')) {
2251
- _frame = _frame.replace('<anonymous>', fn.displayName);
2252
- }
2253
-
2254
- {
2255
- if (typeof fn === 'function') {
2256
- componentFrameCache.set(fn, _frame);
2257
- }
2258
- } // Return the line we found.
2259
-
2260
-
2261
- return _frame;
2262
- }
2263
- } while (s >= 1 && c >= 0);
2264
- }
2265
-
2266
- break;
2267
- }
2268
- }
2269
- }
2270
- } finally {
2271
- reentry = false;
2272
-
2273
- {
2274
- ReactCurrentDispatcher$1.current = previousDispatcher;
2275
- reenableLogs();
2276
- }
2277
-
2278
- Error.prepareStackTrace = previousPrepareStackTrace;
2279
- } // Fallback to just using the name if we couldn't make it throw.
2280
-
2281
-
2282
- var name = fn ? fn.displayName || fn.name : '';
2283
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2284
-
2285
- {
2286
- if (typeof fn === 'function') {
2287
- componentFrameCache.set(fn, syntheticFrame);
2288
- }
2289
- }
2290
-
2291
- return syntheticFrame;
2292
- }
2293
- function describeFunctionComponentFrame(fn, source, ownerFn) {
2294
- {
2295
- return describeNativeComponentFrame(fn, false);
2296
- }
2297
- }
2298
-
2299
- function shouldConstruct(Component) {
2300
- var prototype = Component.prototype;
2301
- return !!(prototype && prototype.isReactComponent);
2302
- }
2303
-
2304
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2305
-
2306
- if (type == null) {
2307
- return '';
2308
- }
2309
-
2310
- if (typeof type === 'function') {
2311
- {
2312
- return describeNativeComponentFrame(type, shouldConstruct(type));
2313
- }
2314
- }
2315
-
2316
- if (typeof type === 'string') {
2317
- return describeBuiltInComponentFrame(type);
2318
- }
2319
-
2320
- switch (type) {
2321
- case REACT_SUSPENSE_TYPE:
2322
- return describeBuiltInComponentFrame('Suspense');
2323
-
2324
- case REACT_SUSPENSE_LIST_TYPE:
2325
- return describeBuiltInComponentFrame('SuspenseList');
2326
- }
2327
-
2328
- if (typeof type === 'object') {
2329
- switch (type.$$typeof) {
2330
- case REACT_FORWARD_REF_TYPE:
2331
- return describeFunctionComponentFrame(type.render);
2332
-
2333
- case REACT_MEMO_TYPE:
2334
- // Memo may contain any component type so we recursively resolve it.
2335
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2336
-
2337
- case REACT_LAZY_TYPE:
2338
- {
2339
- var lazyComponent = type;
2340
- var payload = lazyComponent._payload;
2341
- var init = lazyComponent._init;
2342
-
2343
- try {
2344
- // Lazy may contain any component type so we recursively resolve it.
2345
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2346
- } catch (x) {}
2347
- }
2348
- }
2349
- }
2350
-
2351
- return '';
2352
- }
2353
-
2354
- var loggedTypeFailures = {};
2355
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2356
-
2357
- function setCurrentlyValidatingElement(element) {
2358
- {
2359
- if (element) {
2360
- var owner = element._owner;
2361
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2362
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2363
- } else {
2364
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2365
- }
2366
- }
2367
- }
2368
-
2369
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
2370
- {
2371
- // $FlowFixMe This is okay but Flow doesn't know it.
2372
- var has = Function.call.bind(hasOwnProperty);
2373
-
2374
- for (var typeSpecName in typeSpecs) {
2375
- if (has(typeSpecs, typeSpecName)) {
2376
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2377
- // fail the render phase where it didn't fail before. So we log it.
2378
- // After these have been cleaned up, we'll let them throw.
2379
-
2380
- try {
2381
- // This is intentionally an invariant that gets caught. It's the same
2382
- // behavior as without this statement except with a better message.
2383
- if (typeof typeSpecs[typeSpecName] !== 'function') {
2384
- // eslint-disable-next-line react-internal/prod-error-codes
2385
- var err = Error((componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' + 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' + 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.');
2386
- err.name = 'Invariant Violation';
2387
- throw err;
2388
- }
2389
-
2390
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2391
- } catch (ex) {
2392
- error$1 = ex;
2393
- }
2394
-
2395
- if (error$1 && !(error$1 instanceof Error)) {
2396
- setCurrentlyValidatingElement(element);
2397
-
2398
- error('%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).', componentName || 'React class', location, typeSpecName, typeof error$1);
2399
-
2400
- setCurrentlyValidatingElement(null);
2401
- }
2402
-
2403
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2404
- // Only monitor this failure once because there tends to be a lot of the
2405
- // same error.
2406
- loggedTypeFailures[error$1.message] = true;
2407
- setCurrentlyValidatingElement(element);
2408
-
2409
- error('Failed %s type: %s', location, error$1.message);
2410
-
2411
- setCurrentlyValidatingElement(null);
2412
- }
2413
- }
2414
- }
2415
- }
2416
- }
2417
-
2418
- function setCurrentlyValidatingElement$1(element) {
2419
- {
2420
- if (element) {
2421
- var owner = element._owner;
2422
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2423
- setExtraStackFrame(stack);
2424
- } else {
2425
- setExtraStackFrame(null);
2426
- }
2427
- }
2428
- }
2429
-
2430
- var propTypesMisspellWarningShown;
2431
-
2432
- {
2433
- propTypesMisspellWarningShown = false;
2434
- }
2435
-
2436
- function getDeclarationErrorAddendum() {
2437
- if (ReactCurrentOwner.current) {
2438
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
2439
-
2440
- if (name) {
2441
- return '\n\nCheck the render method of `' + name + '`.';
2442
- }
2443
- }
2444
-
2445
- return '';
2446
- }
2447
-
2448
- function getSourceInfoErrorAddendum(source) {
2449
- if (source !== undefined) {
2450
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2451
- var lineNumber = source.lineNumber;
2452
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2453
- }
2454
-
2455
- return '';
2456
- }
2457
-
2458
- function getSourceInfoErrorAddendumForProps(elementProps) {
2459
- if (elementProps !== null && elementProps !== undefined) {
2460
- return getSourceInfoErrorAddendum(elementProps.__source);
2461
- }
2462
-
2463
- return '';
2464
- }
2465
- /**
2466
- * Warn if there's no key explicitly set on dynamic arrays of children or
2467
- * object keys are not valid. This allows us to keep track of children between
2468
- * updates.
2469
- */
2470
-
2471
-
2472
- var ownerHasKeyUseWarning = {};
2473
-
2474
- function getCurrentComponentErrorInfo(parentType) {
2475
- var info = getDeclarationErrorAddendum();
2476
-
2477
- if (!info) {
2478
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2479
-
2480
- if (parentName) {
2481
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2482
- }
2483
- }
2484
-
2485
- return info;
2486
- }
2487
- /**
2488
- * Warn if the element doesn't have an explicit key assigned to it.
2489
- * This element is in an array. The array could grow and shrink or be
2490
- * reordered. All children that haven't already been validated are required to
2491
- * have a "key" property assigned to it. Error statuses are cached so a warning
2492
- * will only be shown once.
2493
- *
2494
- * @internal
2495
- * @param {ReactElement} element Element that requires a key.
2496
- * @param {*} parentType element's parent's type.
2497
- */
2498
-
2499
-
2500
- function validateExplicitKey(element, parentType) {
2501
- if (!element._store || element._store.validated || element.key != null) {
2502
- return;
2503
- }
2504
-
2505
- element._store.validated = true;
2506
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2507
-
2508
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2509
- return;
2510
- }
2511
-
2512
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2513
- // property, it may be the creator of the child that's responsible for
2514
- // assigning it a key.
2515
-
2516
- var childOwner = '';
2517
-
2518
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
2519
- // Give the component that originally created this child.
2520
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2521
- }
2522
-
2523
- {
2524
- setCurrentlyValidatingElement$1(element);
2525
-
2526
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2527
-
2528
- setCurrentlyValidatingElement$1(null);
2529
- }
2530
- }
2531
- /**
2532
- * Ensure that every element either is passed in a static location, in an
2533
- * array with an explicit keys property defined, or in an object literal
2534
- * with valid key property.
2535
- *
2536
- * @internal
2537
- * @param {ReactNode} node Statically passed child of any type.
2538
- * @param {*} parentType node's parent's type.
2539
- */
2540
-
2541
-
2542
- function validateChildKeys(node, parentType) {
2543
- if (typeof node !== 'object') {
2544
- return;
2545
- }
2546
-
2547
- if (isArray(node)) {
2548
- for (var i = 0; i < node.length; i++) {
2549
- var child = node[i];
2550
-
2551
- if (isValidElement(child)) {
2552
- validateExplicitKey(child, parentType);
2553
- }
2554
- }
2555
- } else if (isValidElement(node)) {
2556
- // This element was passed in a valid location.
2557
- if (node._store) {
2558
- node._store.validated = true;
2559
- }
2560
- } else if (node) {
2561
- var iteratorFn = getIteratorFn(node);
2562
-
2563
- if (typeof iteratorFn === 'function') {
2564
- // Entry iterators used to provide implicit keys,
2565
- // but now we print a separate warning for them later.
2566
- if (iteratorFn !== node.entries) {
2567
- var iterator = iteratorFn.call(node);
2568
- var step;
2569
-
2570
- while (!(step = iterator.next()).done) {
2571
- if (isValidElement(step.value)) {
2572
- validateExplicitKey(step.value, parentType);
2573
- }
2574
- }
2575
- }
2576
- }
2577
- }
2578
- }
2579
- /**
2580
- * Given an element, validate that its props follow the propTypes definition,
2581
- * provided by the type.
2582
- *
2583
- * @param {ReactElement} element
2584
- */
2585
-
2586
-
2587
- function validatePropTypes(element) {
2588
- {
2589
- var type = element.type;
2590
-
2591
- if (type === null || type === undefined || typeof type === 'string') {
2592
- return;
2593
- }
2594
-
2595
- var propTypes;
2596
-
2597
- if (typeof type === 'function') {
2598
- propTypes = type.propTypes;
2599
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2600
- // Inner props are checked in the reconciler.
2601
- type.$$typeof === REACT_MEMO_TYPE)) {
2602
- propTypes = type.propTypes;
2603
- } else {
2604
- return;
2605
- }
2606
-
2607
- if (propTypes) {
2608
- // Intentionally inside to avoid triggering lazy initializers:
2609
- var name = getComponentNameFromType(type);
2610
- checkPropTypes(propTypes, element.props, 'prop', name, element);
2611
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2612
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
2613
-
2614
- var _name = getComponentNameFromType(type);
2615
-
2616
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
2617
- }
2618
-
2619
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2620
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2621
- }
2622
- }
2623
- }
2624
- /**
2625
- * Given a fragment, validate that it can only be provided with fragment props
2626
- * @param {ReactElement} fragment
2627
- */
2628
-
2629
-
2630
- function validateFragmentProps(fragment) {
2631
- {
2632
- var keys = Object.keys(fragment.props);
2633
-
2634
- for (var i = 0; i < keys.length; i++) {
2635
- var key = keys[i];
2636
-
2637
- if (key !== 'children' && key !== 'key') {
2638
- setCurrentlyValidatingElement$1(fragment);
2639
-
2640
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2641
-
2642
- setCurrentlyValidatingElement$1(null);
2643
- break;
2644
- }
2645
- }
2646
-
2647
- if (fragment.ref !== null) {
2648
- setCurrentlyValidatingElement$1(fragment);
2649
-
2650
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
2651
-
2652
- setCurrentlyValidatingElement$1(null);
2653
- }
2654
- }
2655
- }
2656
- function createElementWithValidation(type, props, children) {
2657
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2658
- // succeed and there will likely be errors in render.
2659
-
2660
- if (!validType) {
2661
- var info = '';
2662
-
2663
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2664
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
2665
- }
2666
-
2667
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
2668
-
2669
- if (sourceInfo) {
2670
- info += sourceInfo;
2671
- } else {
2672
- info += getDeclarationErrorAddendum();
2673
- }
2674
-
2675
- var typeString;
2676
-
2677
- if (type === null) {
2678
- typeString = 'null';
2679
- } else if (isArray(type)) {
2680
- typeString = 'array';
2681
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2682
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
2683
- info = ' Did you accidentally export a JSX literal instead of a component?';
2684
- } else {
2685
- typeString = typeof type;
2686
- }
2687
-
2688
- {
2689
- error('React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
2690
- }
2691
- }
2692
-
2693
- var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
2694
- // TODO: Drop this when these are no longer allowed as the type argument.
2695
-
2696
- if (element == null) {
2697
- return element;
2698
- } // Skip key warning if the type isn't valid since our key validation logic
2699
- // doesn't expect a non-string/function type and can throw confusing errors.
2700
- // We don't want exception behavior to differ between dev and prod.
2701
- // (Rendering will throw with a helpful message and as soon as the type is
2702
- // fixed, the key warnings will appear.)
2703
-
2704
-
2705
- if (validType) {
2706
- for (var i = 2; i < arguments.length; i++) {
2707
- validateChildKeys(arguments[i], type);
2708
- }
2709
- }
2710
-
2711
- if (type === REACT_FRAGMENT_TYPE) {
2712
- validateFragmentProps(element);
2713
- } else {
2714
- validatePropTypes(element);
2715
- }
2716
-
2717
- return element;
2718
- }
2719
- var didWarnAboutDeprecatedCreateFactory = false;
2720
- function createFactoryWithValidation(type) {
2721
- var validatedFactory = createElementWithValidation.bind(null, type);
2722
- validatedFactory.type = type;
2723
-
2724
- {
2725
- if (!didWarnAboutDeprecatedCreateFactory) {
2726
- didWarnAboutDeprecatedCreateFactory = true;
2727
-
2728
- warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
2729
- } // Legacy hook: remove it
2730
-
2731
-
2732
- Object.defineProperty(validatedFactory, 'type', {
2733
- enumerable: false,
2734
- get: function () {
2735
- warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
2736
-
2737
- Object.defineProperty(this, 'type', {
2738
- value: type
2739
- });
2740
- return type;
2741
- }
2742
- });
2743
- }
2744
-
2745
- return validatedFactory;
2746
- }
2747
- function cloneElementWithValidation(element, props, children) {
2748
- var newElement = cloneElement.apply(this, arguments);
2749
-
2750
- for (var i = 2; i < arguments.length; i++) {
2751
- validateChildKeys(arguments[i], newElement.type);
2752
- }
2753
-
2754
- validatePropTypes(newElement);
2755
- return newElement;
2756
- }
2757
-
2758
- function startTransition(scope, options) {
2759
- var prevTransition = ReactCurrentBatchConfig.transition;
2760
- ReactCurrentBatchConfig.transition = {};
2761
- var currentTransition = ReactCurrentBatchConfig.transition;
2762
-
2763
- {
2764
- ReactCurrentBatchConfig.transition._updatedFibers = new Set();
2765
- }
2766
-
2767
- try {
2768
- scope();
2769
- } finally {
2770
- ReactCurrentBatchConfig.transition = prevTransition;
2771
-
2772
- {
2773
- if (prevTransition === null && currentTransition._updatedFibers) {
2774
- var updatedFibersCount = currentTransition._updatedFibers.size;
2775
-
2776
- if (updatedFibersCount > 10) {
2777
- warn('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.');
2778
- }
2779
-
2780
- currentTransition._updatedFibers.clear();
2781
- }
2782
- }
2783
- }
2784
- }
2785
-
2786
- var didWarnAboutMessageChannel = false;
2787
- var enqueueTaskImpl = null;
2788
- function enqueueTask(task) {
2789
- if (enqueueTaskImpl === null) {
2790
- try {
2791
- // read require off the module object to get around the bundlers.
2792
- // we don't want them to detect a require and bundle a Node polyfill.
2793
- var requireString = ('require' + Math.random()).slice(0, 7);
2794
- var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's
2795
- // version of setImmediate, bypassing fake timers if any.
2796
-
2797
- enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;
2798
- } catch (_err) {
2799
- // we're in a browser
2800
- // we can't use regular timers because they may still be faked
2801
- // so we try MessageChannel+postMessage instead
2802
- enqueueTaskImpl = function (callback) {
2803
- {
2804
- if (didWarnAboutMessageChannel === false) {
2805
- didWarnAboutMessageChannel = true;
2806
-
2807
- if (typeof MessageChannel === 'undefined') {
2808
- error('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.');
2809
- }
2810
- }
2811
- }
2812
-
2813
- var channel = new MessageChannel();
2814
- channel.port1.onmessage = callback;
2815
- channel.port2.postMessage(undefined);
2816
- };
2817
- }
2818
- }
2819
-
2820
- return enqueueTaskImpl(task);
2821
- }
2822
-
2823
- var actScopeDepth = 0;
2824
- var didWarnNoAwaitAct = false;
2825
- function act(callback) {
2826
- {
2827
- // `act` calls can be nested, so we track the depth. This represents the
2828
- // number of `act` scopes on the stack.
2829
- var prevActScopeDepth = actScopeDepth;
2830
- actScopeDepth++;
2831
-
2832
- if (ReactCurrentActQueue.current === null) {
2833
- // This is the outermost `act` scope. Initialize the queue. The reconciler
2834
- // will detect the queue and use it instead of Scheduler.
2835
- ReactCurrentActQueue.current = [];
2836
- }
2837
-
2838
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2839
- var result;
2840
-
2841
- try {
2842
- // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only
2843
- // set to `true` while the given callback is executed, not for updates
2844
- // triggered during an async event, because this is how the legacy
2845
- // implementation of `act` behaved.
2846
- ReactCurrentActQueue.isBatchingLegacy = true;
2847
- result = callback(); // Replicate behavior of original `act` implementation in legacy mode,
2848
- // which flushed updates immediately after the scope function exits, even
2849
- // if it's an async function.
2850
-
2851
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2852
- var queue = ReactCurrentActQueue.current;
2853
-
2854
- if (queue !== null) {
2855
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2856
- flushActQueue(queue);
2857
- }
2858
- }
2859
- } catch (error) {
2860
- popActScope(prevActScopeDepth);
2861
- throw error;
2862
- } finally {
2863
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2864
- }
2865
-
2866
- if (result !== null && typeof result === 'object' && typeof result.then === 'function') {
2867
- var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait
2868
- // for it to resolve before exiting the current scope.
2869
-
2870
- var wasAwaited = false;
2871
- var thenable = {
2872
- then: function (resolve, reject) {
2873
- wasAwaited = true;
2874
- thenableResult.then(function (returnValue) {
2875
- popActScope(prevActScopeDepth);
2876
-
2877
- if (actScopeDepth === 0) {
2878
- // We've exited the outermost act scope. Recursively flush the
2879
- // queue until there's no remaining work.
2880
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2881
- } else {
2882
- resolve(returnValue);
2883
- }
2884
- }, function (error) {
2885
- // The callback threw an error.
2886
- popActScope(prevActScopeDepth);
2887
- reject(error);
2888
- });
2889
- }
2890
- };
2891
-
2892
- {
2893
- if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {
2894
- // eslint-disable-next-line no-undef
2895
- Promise.resolve().then(function () {}).then(function () {
2896
- if (!wasAwaited) {
2897
- didWarnNoAwaitAct = true;
2898
-
2899
- error('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 () => ...);');
2900
- }
2901
- });
2902
- }
2903
- }
2904
-
2905
- return thenable;
2906
- } else {
2907
- var returnValue = result; // The callback is not an async function. Exit the current scope
2908
- // immediately, without awaiting.
2909
-
2910
- popActScope(prevActScopeDepth);
2911
-
2912
- if (actScopeDepth === 0) {
2913
- // Exiting the outermost act scope. Flush the queue.
2914
- var _queue = ReactCurrentActQueue.current;
2915
-
2916
- if (_queue !== null) {
2917
- flushActQueue(_queue);
2918
- ReactCurrentActQueue.current = null;
2919
- } // Return a thenable. If the user awaits it, we'll flush again in
2920
- // case additional work was scheduled by a microtask.
2921
-
2922
-
2923
- var _thenable = {
2924
- then: function (resolve, reject) {
2925
- // Confirm we haven't re-entered another `act` scope, in case
2926
- // the user does something weird like await the thenable
2927
- // multiple times.
2928
- if (ReactCurrentActQueue.current === null) {
2929
- // Recursively flush the queue until there's no remaining work.
2930
- ReactCurrentActQueue.current = [];
2931
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2932
- } else {
2933
- resolve(returnValue);
2934
- }
2935
- }
2936
- };
2937
- return _thenable;
2938
- } else {
2939
- // Since we're inside a nested `act` scope, the returned thenable
2940
- // immediately resolves. The outer scope will flush the queue.
2941
- var _thenable2 = {
2942
- then: function (resolve, reject) {
2943
- resolve(returnValue);
2944
- }
2945
- };
2946
- return _thenable2;
2947
- }
2948
- }
2949
- }
2950
- }
2951
-
2952
- function popActScope(prevActScopeDepth) {
2953
- {
2954
- if (prevActScopeDepth !== actScopeDepth - 1) {
2955
- error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');
2956
- }
2957
-
2958
- actScopeDepth = prevActScopeDepth;
2959
- }
2960
- }
2961
-
2962
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2963
- {
2964
- var queue = ReactCurrentActQueue.current;
2965
-
2966
- if (queue !== null) {
2967
- try {
2968
- flushActQueue(queue);
2969
- enqueueTask(function () {
2970
- if (queue.length === 0) {
2971
- // No additional work was scheduled. Finish.
2972
- ReactCurrentActQueue.current = null;
2973
- resolve(returnValue);
2974
- } else {
2975
- // Keep flushing work until there's none left.
2976
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2977
- }
2978
- });
2979
- } catch (error) {
2980
- reject(error);
2981
- }
2982
- } else {
2983
- resolve(returnValue);
2984
- }
2985
- }
2986
- }
2987
-
2988
- var isFlushing = false;
2989
-
2990
- function flushActQueue(queue) {
2991
- {
2992
- if (!isFlushing) {
2993
- // Prevent re-entrance.
2994
- isFlushing = true;
2995
- var i = 0;
2996
-
2997
- try {
2998
- for (; i < queue.length; i++) {
2999
- var callback = queue[i];
3000
-
3001
- do {
3002
- callback = callback(true);
3003
- } while (callback !== null);
3004
- }
3005
-
3006
- queue.length = 0;
3007
- } catch (error) {
3008
- // If something throws, leave the remaining callbacks on the queue.
3009
- queue = queue.slice(i + 1);
3010
- throw error;
3011
- } finally {
3012
- isFlushing = false;
3013
- }
3014
- }
3015
- }
3016
- }
3017
-
3018
- var createElement$1 = createElementWithValidation ;
3019
- var cloneElement$1 = cloneElementWithValidation ;
3020
- var createFactory = createFactoryWithValidation ;
3021
- var Children = {
3022
- map: mapChildren,
3023
- forEach: forEachChildren,
3024
- count: countChildren,
3025
- toArray: toArray,
3026
- only: onlyChild
3027
- };
3028
-
3029
- exports.Children = Children;
3030
- exports.Component = Component;
3031
- exports.Fragment = REACT_FRAGMENT_TYPE;
3032
- exports.Profiler = REACT_PROFILER_TYPE;
3033
- exports.PureComponent = PureComponent;
3034
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
3035
- exports.Suspense = REACT_SUSPENSE_TYPE;
3036
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
3037
- exports.cloneElement = cloneElement$1;
3038
- exports.createContext = createContext;
3039
- exports.createElement = createElement$1;
3040
- exports.createFactory = createFactory;
3041
- exports.createRef = createRef;
3042
- exports.forwardRef = forwardRef;
3043
- exports.isValidElement = isValidElement;
3044
- exports.lazy = lazy;
3045
- exports.memo = memo;
3046
- exports.startTransition = startTransition;
3047
- exports.unstable_act = act;
3048
- exports.useCallback = useCallback;
3049
- exports.useContext = useContext;
3050
- exports.useDebugValue = useDebugValue;
3051
- exports.useDeferredValue = useDeferredValue;
3052
- exports.useEffect = useEffect;
3053
- exports.useId = useId;
3054
- exports.useImperativeHandle = useImperativeHandle;
3055
- exports.useInsertionEffect = useInsertionEffect;
3056
- exports.useLayoutEffect = useLayoutEffect;
3057
- exports.useMemo = useMemo;
3058
- exports.useReducer = useReducer;
3059
- exports.useRef = useRef;
3060
- exports.useState = useState;
3061
- exports.useSyncExternalStore = useSyncExternalStore;
3062
- exports.useTransition = useTransition;
3063
- exports.version = ReactVersion;
3064
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
3065
- if (
3066
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
3067
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
3068
- 'function'
3069
- ) {
3070
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
3071
- }
3072
-
3073
- })();
3074
- }
3075
- } (react_development, react_development.exports));
3076
- return react_development.exports;
3077
- }
3078
-
3079
- (function (module) {
3080
-
3081
- if (process.env.NODE_ENV === 'production') {
3082
- module.exports = requireReact_production_min();
3083
- } else {
3084
- module.exports = requireReact_development();
3085
- }
3086
- } (react));
3087
-
3088
- var r = /*@__PURE__*/getDefaultExportFromCjs(react.exports);
3089
-
3090
- function stylis_min (W) {
3091
- function M(d, c, e, h, a) {
3092
- for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
3093
- g = e.charCodeAt(l);
3094
- l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
3095
-
3096
- if (0 === b + n + v + m) {
3097
- if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
3098
- switch (g) {
3099
- case 32:
3100
- case 9:
3101
- case 59:
3102
- case 13:
3103
- case 10:
3104
- break;
3105
-
3106
- default:
3107
- f += e.charAt(l);
3108
- }
3109
-
3110
- g = 59;
3111
- }
3112
-
3113
- switch (g) {
3114
- case 123:
3115
- f = f.trim();
3116
- q = f.charCodeAt(0);
3117
- k = 1;
3118
-
3119
- for (t = ++l; l < B;) {
3120
- switch (g = e.charCodeAt(l)) {
3121
- case 123:
3122
- k++;
3123
- break;
3124
-
3125
- case 125:
3126
- k--;
3127
- break;
3128
-
3129
- case 47:
3130
- switch (g = e.charCodeAt(l + 1)) {
3131
- case 42:
3132
- case 47:
3133
- a: {
3134
- for (u = l + 1; u < J; ++u) {
3135
- switch (e.charCodeAt(u)) {
3136
- case 47:
3137
- if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
3138
- l = u + 1;
3139
- break a;
3140
- }
3141
-
3142
- break;
3143
-
3144
- case 10:
3145
- if (47 === g) {
3146
- l = u + 1;
3147
- break a;
3148
- }
3149
-
3150
- }
3151
- }
3152
-
3153
- l = u;
3154
- }
3155
-
3156
- }
3157
-
3158
- break;
3159
-
3160
- case 91:
3161
- g++;
3162
-
3163
- case 40:
3164
- g++;
3165
-
3166
- case 34:
3167
- case 39:
3168
- for (; l++ < J && e.charCodeAt(l) !== g;) {
3169
- }
3170
-
3171
- }
3172
-
3173
- if (0 === k) break;
3174
- l++;
3175
- }
3176
-
3177
- k = e.substring(t, l);
3178
- 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
3179
-
3180
- switch (q) {
3181
- case 64:
3182
- 0 < r && (f = f.replace(N, ''));
3183
- g = f.charCodeAt(1);
3184
-
3185
- switch (g) {
3186
- case 100:
3187
- case 109:
3188
- case 115:
3189
- case 45:
3190
- r = c;
3191
- break;
3192
-
3193
- default:
3194
- r = O;
3195
- }
3196
-
3197
- k = M(c, r, k, g, a + 1);
3198
- t = k.length;
3199
- 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
3200
- if (0 < t) switch (g) {
3201
- case 115:
3202
- f = f.replace(da, ea);
3203
-
3204
- case 100:
3205
- case 109:
3206
- case 45:
3207
- k = f + '{' + k + '}';
3208
- break;
3209
-
3210
- case 107:
3211
- f = f.replace(fa, '$1 $2');
3212
- k = f + '{' + k + '}';
3213
- k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
3214
- break;
3215
-
3216
- default:
3217
- k = f + k, 112 === h && (k = (p += k, ''));
3218
- } else k = '';
3219
- break;
3220
-
3221
- default:
3222
- k = M(c, X(c, f, I), k, h, a + 1);
3223
- }
3224
-
3225
- F += k;
3226
- k = I = r = u = q = 0;
3227
- f = '';
3228
- g = e.charCodeAt(++l);
3229
- break;
3230
-
3231
- case 125:
3232
- case 59:
3233
- f = (0 < r ? f.replace(N, '') : f).trim();
3234
- if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
3235
- case 0:
3236
- break;
3237
-
3238
- case 64:
3239
- if (105 === g || 99 === g) {
3240
- G += f + e.charAt(l);
3241
- break;
3242
- }
3243
-
3244
- default:
3245
- 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
3246
- }
3247
- I = r = u = q = 0;
3248
- f = '';
3249
- g = e.charCodeAt(++l);
3250
- }
3251
- }
3252
-
3253
- switch (g) {
3254
- case 13:
3255
- case 10:
3256
- 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
3257
- 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
3258
- z = 1;
3259
- D++;
3260
- break;
3261
-
3262
- case 59:
3263
- case 125:
3264
- if (0 === b + n + v + m) {
3265
- z++;
3266
- break;
3267
- }
3268
-
3269
- default:
3270
- z++;
3271
- y = e.charAt(l);
3272
-
3273
- switch (g) {
3274
- case 9:
3275
- case 32:
3276
- if (0 === n + m + b) switch (x) {
3277
- case 44:
3278
- case 58:
3279
- case 9:
3280
- case 32:
3281
- y = '';
3282
- break;
3283
-
3284
- default:
3285
- 32 !== g && (y = ' ');
3286
- }
3287
- break;
3288
-
3289
- case 0:
3290
- y = '\\0';
3291
- break;
3292
-
3293
- case 12:
3294
- y = '\\f';
3295
- break;
3296
-
3297
- case 11:
3298
- y = '\\v';
3299
- break;
3300
-
3301
- case 38:
3302
- 0 === n + b + m && (r = I = 1, y = '\f' + y);
3303
- break;
3304
-
3305
- case 108:
3306
- if (0 === n + b + m + E && 0 < u) switch (l - u) {
3307
- case 2:
3308
- 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
3309
-
3310
- case 8:
3311
- 111 === K && (E = K);
3312
- }
3313
- break;
3314
-
3315
- case 58:
3316
- 0 === n + b + m && (u = l);
3317
- break;
3318
-
3319
- case 44:
3320
- 0 === b + v + n + m && (r = 1, y += '\r');
3321
- break;
3322
-
3323
- case 34:
3324
- case 39:
3325
- 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
3326
- break;
3327
-
3328
- case 91:
3329
- 0 === n + b + v && m++;
3330
- break;
3331
-
3332
- case 93:
3333
- 0 === n + b + v && m--;
3334
- break;
3335
-
3336
- case 41:
3337
- 0 === n + b + m && v--;
3338
- break;
3339
-
3340
- case 40:
3341
- if (0 === n + b + m) {
3342
- if (0 === q) switch (2 * x + 3 * K) {
3343
- case 533:
3344
- break;
3345
-
3346
- default:
3347
- q = 1;
3348
- }
3349
- v++;
3350
- }
3351
-
3352
- break;
3353
-
3354
- case 64:
3355
- 0 === b + v + n + m + u + k && (k = 1);
3356
- break;
3357
-
3358
- case 42:
3359
- case 47:
3360
- if (!(0 < n + m + v)) switch (b) {
3361
- case 0:
3362
- switch (2 * g + 3 * e.charCodeAt(l + 1)) {
3363
- case 235:
3364
- b = 47;
3365
- break;
3366
-
3367
- case 220:
3368
- t = l, b = 42;
3369
- }
3370
-
3371
- break;
3372
-
3373
- case 42:
3374
- 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
3375
- }
3376
- }
3377
-
3378
- 0 === b && (f += y);
3379
- }
3380
-
3381
- K = x;
3382
- x = g;
3383
- l++;
3384
- }
3385
-
3386
- t = p.length;
3387
-
3388
- if (0 < t) {
3389
- r = c;
3390
- if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
3391
- p = r.join(',') + '{' + p + '}';
3392
-
3393
- if (0 !== w * E) {
3394
- 2 !== w || L(p, 2) || (E = 0);
3395
-
3396
- switch (E) {
3397
- case 111:
3398
- p = p.replace(ha, ':-moz-$1') + p;
3399
- break;
3400
-
3401
- case 112:
3402
- p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
3403
- }
3404
-
3405
- E = 0;
3406
- }
3407
- }
3408
-
3409
- return G + p + F;
3410
- }
3411
-
3412
- function X(d, c, e) {
3413
- var h = c.trim().split(ia);
3414
- c = h;
3415
- var a = h.length,
3416
- m = d.length;
3417
-
3418
- switch (m) {
3419
- case 0:
3420
- case 1:
3421
- var b = 0;
3422
-
3423
- for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
3424
- c[b] = Z(d, c[b], e).trim();
3425
- }
3426
-
3427
- break;
3428
-
3429
- default:
3430
- var v = b = 0;
3431
-
3432
- for (c = []; b < a; ++b) {
3433
- for (var n = 0; n < m; ++n) {
3434
- c[v++] = Z(d[n] + ' ', h[b], e).trim();
3435
- }
3436
- }
3437
-
3438
- }
3439
-
3440
- return c;
3441
- }
3442
-
3443
- function Z(d, c, e) {
3444
- var h = c.charCodeAt(0);
3445
- 33 > h && (h = (c = c.trim()).charCodeAt(0));
3446
-
3447
- switch (h) {
3448
- case 38:
3449
- return c.replace(F, '$1' + d.trim());
3450
-
3451
- case 58:
3452
- return d.trim() + c.replace(F, '$1' + d.trim());
3453
-
3454
- default:
3455
- if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
3456
- }
3457
-
3458
- return d + c;
3459
- }
3460
-
3461
- function P(d, c, e, h) {
3462
- var a = d + ';',
3463
- m = 2 * c + 3 * e + 4 * h;
3464
-
3465
- if (944 === m) {
3466
- d = a.indexOf(':', 9) + 1;
3467
- var b = a.substring(d, a.length - 1).trim();
3468
- b = a.substring(0, d).trim() + b + ';';
3469
- return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
3470
- }
3471
-
3472
- if (0 === w || 2 === w && !L(a, 1)) return a;
3473
-
3474
- switch (m) {
3475
- case 1015:
3476
- return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
3477
-
3478
- case 951:
3479
- return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
3480
-
3481
- case 963:
3482
- return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
3483
-
3484
- case 1009:
3485
- if (100 !== a.charCodeAt(4)) break;
3486
-
3487
- case 969:
3488
- case 942:
3489
- return '-webkit-' + a + a;
3490
-
3491
- case 978:
3492
- return '-webkit-' + a + '-moz-' + a + a;
3493
-
3494
- case 1019:
3495
- case 983:
3496
- return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
3497
-
3498
- case 883:
3499
- if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
3500
- if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
3501
- break;
3502
-
3503
- case 932:
3504
- if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
3505
- case 103:
3506
- return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
3507
-
3508
- case 115:
3509
- return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
3510
-
3511
- case 98:
3512
- return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
3513
- }
3514
- return '-webkit-' + a + '-ms-' + a + a;
3515
-
3516
- case 964:
3517
- return '-webkit-' + a + '-ms-flex-' + a + a;
3518
-
3519
- case 1023:
3520
- if (99 !== a.charCodeAt(8)) break;
3521
- b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
3522
- return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
3523
-
3524
- case 1005:
3525
- return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
3526
-
3527
- case 1e3:
3528
- b = a.substring(13).trim();
3529
- c = b.indexOf('-') + 1;
3530
-
3531
- switch (b.charCodeAt(0) + b.charCodeAt(c)) {
3532
- case 226:
3533
- b = a.replace(G, 'tb');
3534
- break;
3535
-
3536
- case 232:
3537
- b = a.replace(G, 'tb-rl');
3538
- break;
3539
-
3540
- case 220:
3541
- b = a.replace(G, 'lr');
3542
- break;
3543
-
3544
- default:
3545
- return a;
3546
- }
3547
-
3548
- return '-webkit-' + a + '-ms-' + b + a;
3549
-
3550
- case 1017:
3551
- if (-1 === a.indexOf('sticky', 9)) break;
3552
-
3553
- case 975:
3554
- c = (a = d).length - 10;
3555
- b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
3556
-
3557
- switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
3558
- case 203:
3559
- if (111 > b.charCodeAt(8)) break;
3560
-
3561
- case 115:
3562
- a = a.replace(b, '-webkit-' + b) + ';' + a;
3563
- break;
3564
-
3565
- case 207:
3566
- case 102:
3567
- a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
3568
- }
3569
-
3570
- return a + ';';
3571
-
3572
- case 938:
3573
- if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
3574
- case 105:
3575
- return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
3576
-
3577
- case 115:
3578
- return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
3579
-
3580
- default:
3581
- return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
3582
- }
3583
- break;
3584
-
3585
- case 973:
3586
- case 989:
3587
- if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
3588
-
3589
- case 931:
3590
- case 953:
3591
- if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
3592
- break;
3593
-
3594
- case 962:
3595
- if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
3596
- }
3597
-
3598
- return a;
3599
- }
3600
-
3601
- function L(d, c) {
3602
- var e = d.indexOf(1 === c ? ':' : '{'),
3603
- h = d.substring(0, 3 !== c ? e : 10);
3604
- e = d.substring(e + 1, d.length - 1);
3605
- return R(2 !== c ? h : h.replace(na, '$1'), e, c);
3606
- }
3607
-
3608
- function ea(d, c) {
3609
- var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
3610
- return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
3611
- }
3612
-
3613
- function H(d, c, e, h, a, m, b, v, n, q) {
3614
- for (var g = 0, x = c, w; g < A; ++g) {
3615
- switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
3616
- case void 0:
3617
- case !1:
3618
- case !0:
3619
- case null:
3620
- break;
3621
-
3622
- default:
3623
- x = w;
3624
- }
3625
- }
3626
-
3627
- if (x !== c) return x;
3628
- }
3629
-
3630
- function T(d) {
3631
- switch (d) {
3632
- case void 0:
3633
- case null:
3634
- A = S.length = 0;
3635
- break;
3636
-
3637
- default:
3638
- if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
3639
- T(d[c]);
3640
- } else Y = !!d | 0;
3641
- }
3642
-
3643
- return T;
3644
- }
3645
-
3646
- function U(d) {
3647
- d = d.prefix;
3648
- void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
3649
- return U;
3650
- }
3651
-
3652
- function B(d, c) {
3653
- var e = d;
3654
- 33 > e.charCodeAt(0) && (e = e.trim());
3655
- V = e;
3656
- e = [V];
3657
-
3658
- if (0 < A) {
3659
- var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
3660
- void 0 !== h && 'string' === typeof h && (c = h);
3661
- }
3662
-
3663
- var a = M(O, e, c, 0, 0);
3664
- 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
3665
- V = '';
3666
- E = 0;
3667
- z = D = 1;
3668
- return a;
3669
- }
3670
-
3671
- var ca = /^\0+/g,
3672
- N = /[\0\r\f]/g,
3673
- aa = /: */g,
3674
- ka = /zoo|gra/,
3675
- ma = /([,: ])(transform)/g,
3676
- ia = /,\r+?/g,
3677
- F = /([\t\r\n ])*\f?&/g,
3678
- fa = /@(k\w+)\s*(\S*)\s*/,
3679
- Q = /::(place)/g,
3680
- ha = /:(read-only)/g,
3681
- G = /[svh]\w+-[tblr]{2}/,
3682
- da = /\(\s*(.*)\s*\)/g,
3683
- oa = /([\s\S]*?);/g,
3684
- ba = /-self|flex-/g,
3685
- na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
3686
- la = /stretch|:\s*\w+\-(?:conte|avail)/,
3687
- ja = /([^-])(image-set\()/,
3688
- z = 1,
3689
- D = 1,
3690
- E = 0,
3691
- w = 1,
3692
- O = [],
3693
- S = [],
3694
- A = 0,
3695
- R = null,
3696
- Y = 0,
3697
- V = '';
3698
- B.use = T;
3699
- B.set = U;
3700
- void 0 !== W && U(W);
3701
- return B;
3702
- }
3703
-
3704
- var unitlessKeys = {
3705
- animationIterationCount: 1,
3706
- borderImageOutset: 1,
3707
- borderImageSlice: 1,
3708
- borderImageWidth: 1,
3709
- boxFlex: 1,
3710
- boxFlexGroup: 1,
3711
- boxOrdinalGroup: 1,
3712
- columnCount: 1,
3713
- columns: 1,
3714
- flex: 1,
3715
- flexGrow: 1,
3716
- flexPositive: 1,
3717
- flexShrink: 1,
3718
- flexNegative: 1,
3719
- flexOrder: 1,
3720
- gridRow: 1,
3721
- gridRowEnd: 1,
3722
- gridRowSpan: 1,
3723
- gridRowStart: 1,
3724
- gridColumn: 1,
3725
- gridColumnEnd: 1,
3726
- gridColumnSpan: 1,
3727
- gridColumnStart: 1,
3728
- msGridRow: 1,
3729
- msGridRowSpan: 1,
3730
- msGridColumn: 1,
3731
- msGridColumnSpan: 1,
3732
- fontWeight: 1,
3733
- lineHeight: 1,
3734
- opacity: 1,
3735
- order: 1,
3736
- orphans: 1,
3737
- tabSize: 1,
3738
- widows: 1,
3739
- zIndex: 1,
3740
- zoom: 1,
3741
- WebkitLineClamp: 1,
3742
- // SVG-related properties
3743
- fillOpacity: 1,
3744
- floodOpacity: 1,
3745
- stopOpacity: 1,
3746
- strokeDasharray: 1,
3747
- strokeDashoffset: 1,
3748
- strokeMiterlimit: 1,
3749
- strokeOpacity: 1,
3750
- strokeWidth: 1
3751
- };
3752
-
3753
- function memoize(fn) {
3754
- var cache = Object.create(null);
3755
- return function (arg) {
3756
- if (cache[arg] === undefined) cache[arg] = fn(arg);
3757
- return cache[arg];
3758
- };
3759
- }
3760
-
3761
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
3762
-
3763
- var isPropValid = /* #__PURE__ */memoize(function (prop) {
3764
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
3765
- /* o */
3766
- && prop.charCodeAt(1) === 110
3767
- /* n */
3768
- && prop.charCodeAt(2) < 91;
3769
- }
3770
- /* Z+1 */
3771
- );
3772
-
3773
- var reactIs$1 = {exports: {}};
3774
-
3775
- var reactIs_production_min = {};
3776
-
3777
- /** @license React v16.13.1
3778
- * react-is.production.min.js
3779
- *
3780
- * Copyright (c) Facebook, Inc. and its affiliates.
3781
- *
3782
- * This source code is licensed under the MIT license found in the
3783
- * LICENSE file in the root directory of this source tree.
3784
- */
3785
-
3786
- var hasRequiredReactIs_production_min;
3787
-
3788
- function requireReactIs_production_min () {
3789
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
3790
- hasRequiredReactIs_production_min = 1;
3791
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
3792
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
3793
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
3794
- reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
3795
- reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
3796
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
3797
- return reactIs_production_min;
3798
- }
3799
-
3800
- var reactIs_development = {};
3801
-
3802
- /** @license React v16.13.1
3803
- * react-is.development.js
3804
- *
3805
- * Copyright (c) Facebook, Inc. and its affiliates.
3806
- *
3807
- * This source code is licensed under the MIT license found in the
3808
- * LICENSE file in the root directory of this source tree.
3809
- */
3810
-
3811
- var hasRequiredReactIs_development;
3812
-
3813
- function requireReactIs_development () {
3814
- if (hasRequiredReactIs_development) return reactIs_development;
3815
- hasRequiredReactIs_development = 1;
3816
-
3817
-
3818
-
3819
- if (process.env.NODE_ENV !== "production") {
3820
- (function() {
3821
-
3822
- // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
3823
- // nor polyfill, then a plain number is used for performance.
3824
- var hasSymbol = typeof Symbol === 'function' && Symbol.for;
3825
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
3826
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
3827
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
3828
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
3829
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
3830
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
3831
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
3832
- // (unstable) APIs that have been removed. Can we remove the symbols?
3833
-
3834
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
3835
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
3836
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
3837
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
3838
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
3839
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
3840
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
3841
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
3842
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
3843
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
3844
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
3845
-
3846
- function isValidElementType(type) {
3847
- return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
3848
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
3849
- }
3850
-
3851
- function typeOf(object) {
3852
- if (typeof object === 'object' && object !== null) {
3853
- var $$typeof = object.$$typeof;
3854
-
3855
- switch ($$typeof) {
3856
- case REACT_ELEMENT_TYPE:
3857
- var type = object.type;
3858
-
3859
- switch (type) {
3860
- case REACT_ASYNC_MODE_TYPE:
3861
- case REACT_CONCURRENT_MODE_TYPE:
3862
- case REACT_FRAGMENT_TYPE:
3863
- case REACT_PROFILER_TYPE:
3864
- case REACT_STRICT_MODE_TYPE:
3865
- case REACT_SUSPENSE_TYPE:
3866
- return type;
3867
-
3868
- default:
3869
- var $$typeofType = type && type.$$typeof;
3870
-
3871
- switch ($$typeofType) {
3872
- case REACT_CONTEXT_TYPE:
3873
- case REACT_FORWARD_REF_TYPE:
3874
- case REACT_LAZY_TYPE:
3875
- case REACT_MEMO_TYPE:
3876
- case REACT_PROVIDER_TYPE:
3877
- return $$typeofType;
3878
-
3879
- default:
3880
- return $$typeof;
3881
- }
3882
-
3883
- }
3884
-
3885
- case REACT_PORTAL_TYPE:
3886
- return $$typeof;
3887
- }
3888
- }
3889
-
3890
- return undefined;
3891
- } // AsyncMode is deprecated along with isAsyncMode
3892
-
3893
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
3894
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
3895
- var ContextConsumer = REACT_CONTEXT_TYPE;
3896
- var ContextProvider = REACT_PROVIDER_TYPE;
3897
- var Element = REACT_ELEMENT_TYPE;
3898
- var ForwardRef = REACT_FORWARD_REF_TYPE;
3899
- var Fragment = REACT_FRAGMENT_TYPE;
3900
- var Lazy = REACT_LAZY_TYPE;
3901
- var Memo = REACT_MEMO_TYPE;
3902
- var Portal = REACT_PORTAL_TYPE;
3903
- var Profiler = REACT_PROFILER_TYPE;
3904
- var StrictMode = REACT_STRICT_MODE_TYPE;
3905
- var Suspense = REACT_SUSPENSE_TYPE;
3906
- var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
3907
-
3908
- function isAsyncMode(object) {
3909
- {
3910
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
3911
- hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
3912
-
3913
- console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
3914
- }
3915
- }
3916
-
3917
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
3918
- }
3919
- function isConcurrentMode(object) {
3920
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
3921
- }
3922
- function isContextConsumer(object) {
3923
- return typeOf(object) === REACT_CONTEXT_TYPE;
3924
- }
3925
- function isContextProvider(object) {
3926
- return typeOf(object) === REACT_PROVIDER_TYPE;
3927
- }
3928
- function isElement(object) {
3929
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
3930
- }
3931
- function isForwardRef(object) {
3932
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
3933
- }
3934
- function isFragment(object) {
3935
- return typeOf(object) === REACT_FRAGMENT_TYPE;
3936
- }
3937
- function isLazy(object) {
3938
- return typeOf(object) === REACT_LAZY_TYPE;
3939
- }
3940
- function isMemo(object) {
3941
- return typeOf(object) === REACT_MEMO_TYPE;
3942
- }
3943
- function isPortal(object) {
3944
- return typeOf(object) === REACT_PORTAL_TYPE;
3945
- }
3946
- function isProfiler(object) {
3947
- return typeOf(object) === REACT_PROFILER_TYPE;
3948
- }
3949
- function isStrictMode(object) {
3950
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
3951
- }
3952
- function isSuspense(object) {
3953
- return typeOf(object) === REACT_SUSPENSE_TYPE;
3954
- }
3955
-
3956
- reactIs_development.AsyncMode = AsyncMode;
3957
- reactIs_development.ConcurrentMode = ConcurrentMode;
3958
- reactIs_development.ContextConsumer = ContextConsumer;
3959
- reactIs_development.ContextProvider = ContextProvider;
3960
- reactIs_development.Element = Element;
3961
- reactIs_development.ForwardRef = ForwardRef;
3962
- reactIs_development.Fragment = Fragment;
3963
- reactIs_development.Lazy = Lazy;
3964
- reactIs_development.Memo = Memo;
3965
- reactIs_development.Portal = Portal;
3966
- reactIs_development.Profiler = Profiler;
3967
- reactIs_development.StrictMode = StrictMode;
3968
- reactIs_development.Suspense = Suspense;
3969
- reactIs_development.isAsyncMode = isAsyncMode;
3970
- reactIs_development.isConcurrentMode = isConcurrentMode;
3971
- reactIs_development.isContextConsumer = isContextConsumer;
3972
- reactIs_development.isContextProvider = isContextProvider;
3973
- reactIs_development.isElement = isElement;
3974
- reactIs_development.isForwardRef = isForwardRef;
3975
- reactIs_development.isFragment = isFragment;
3976
- reactIs_development.isLazy = isLazy;
3977
- reactIs_development.isMemo = isMemo;
3978
- reactIs_development.isPortal = isPortal;
3979
- reactIs_development.isProfiler = isProfiler;
3980
- reactIs_development.isStrictMode = isStrictMode;
3981
- reactIs_development.isSuspense = isSuspense;
3982
- reactIs_development.isValidElementType = isValidElementType;
3983
- reactIs_development.typeOf = typeOf;
3984
- })();
3985
- }
3986
- return reactIs_development;
3987
- }
3988
-
3989
- (function (module) {
3990
-
3991
- if (process.env.NODE_ENV === 'production') {
3992
- module.exports = requireReactIs_production_min();
3993
- } else {
3994
- module.exports = requireReactIs_development();
3995
- }
3996
- } (reactIs$1));
3997
-
3998
- var reactIs = reactIs$1.exports;
3999
-
4000
- /**
4001
- * Copyright 2015, Yahoo! Inc.
4002
- * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
4003
- */
4004
- var REACT_STATICS = {
4005
- childContextTypes: true,
4006
- contextType: true,
4007
- contextTypes: true,
4008
- defaultProps: true,
4009
- displayName: true,
4010
- getDefaultProps: true,
4011
- getDerivedStateFromError: true,
4012
- getDerivedStateFromProps: true,
4013
- mixins: true,
4014
- propTypes: true,
4015
- type: true
4016
- };
4017
- var KNOWN_STATICS = {
4018
- name: true,
4019
- length: true,
4020
- prototype: true,
4021
- caller: true,
4022
- callee: true,
4023
- arguments: true,
4024
- arity: true
4025
- };
4026
- var FORWARD_REF_STATICS = {
4027
- '$$typeof': true,
4028
- render: true,
4029
- defaultProps: true,
4030
- displayName: true,
4031
- propTypes: true
4032
- };
4033
- var MEMO_STATICS = {
4034
- '$$typeof': true,
4035
- compare: true,
4036
- defaultProps: true,
4037
- displayName: true,
4038
- propTypes: true,
4039
- type: true
4040
- };
4041
- var TYPE_STATICS = {};
4042
- TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
4043
- TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
4044
-
4045
- function getStatics(component) {
4046
- // React v16.11 and below
4047
- if (reactIs.isMemo(component)) {
4048
- return MEMO_STATICS;
4049
- } // React v16.12 and above
4050
-
4051
-
4052
- return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
4053
- }
4054
-
4055
- var defineProperty = Object.defineProperty;
4056
- var getOwnPropertyNames = Object.getOwnPropertyNames;
4057
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
4058
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
4059
- var getPrototypeOf = Object.getPrototypeOf;
4060
- var objectPrototype = Object.prototype;
4061
- function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
4062
- if (typeof sourceComponent !== 'string') {
4063
- // don't hoist over string (html) components
4064
- if (objectPrototype) {
4065
- var inheritedComponent = getPrototypeOf(sourceComponent);
4066
-
4067
- if (inheritedComponent && inheritedComponent !== objectPrototype) {
4068
- hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
4069
- }
4070
- }
4071
-
4072
- var keys = getOwnPropertyNames(sourceComponent);
4073
-
4074
- if (getOwnPropertySymbols) {
4075
- keys = keys.concat(getOwnPropertySymbols(sourceComponent));
4076
- }
4077
-
4078
- var targetStatics = getStatics(targetComponent);
4079
- var sourceStatics = getStatics(sourceComponent);
4080
-
4081
- for (var i = 0; i < keys.length; ++i) {
4082
- var key = keys[i];
4083
-
4084
- if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
4085
- var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
4086
-
4087
- try {
4088
- // Avoid failures from read-only properties
4089
- defineProperty(targetComponent, key, descriptor);
4090
- } catch (e) {}
4091
- }
4092
- }
4093
- }
4094
-
4095
- return targetComponent;
4096
- }
4097
-
4098
- var hoistNonReactStatics_cjs = hoistNonReactStatics;
4099
-
4100
- function y(){return (y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e}).apply(this,arguments)}var v=function(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n},g=function(t){return null!==t&&"object"==typeof t&&"[object Object]"===(t.toString?t.toString():Object.prototype.toString.call(t))&&!reactIs$2.exports.typeOf(t)},S=Object.freeze([]),w=Object.freeze({});function E(e){return "function"==typeof e}function b(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function _(e){return e&&"string"==typeof e.styledComponentId}var N="undefined"!=typeof process&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",C="undefined"!=typeof window&&"HTMLElement"in window,I=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),O="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"}:{};function R(){for(var e=arguments.length<=0?void 0:arguments[0],t=[],n=1,r=arguments.length;n<r;n+=1)t.push(n<0||arguments.length<=n?void 0:arguments[n]);return t.forEach((function(t){e=e.replace(/%[a-z]/,t);})),e}function D(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw "production"===process.env.NODE_ENV?new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):"")):new Error(R.apply(void 0,[O[e]].concat(n)).trim())}var j=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)(o<<=1)<0&&D(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var s=r;s<o;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=0,c=t.length;a<c;a++)this.tag.insertRule(i,t[a])&&(this.groupSizes[e]++,i++);},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n);}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,s=r;s<o;s++)t+=this.tag.getRule(s)+"/*!sc*/\n";return t},e}(),T=new Map,x=new Map,k=1,V=function(e){if(T.has(e))return T.get(e);for(;x.has(k);)k++;var t=k++;return "production"!==process.env.NODE_ENV&&((0|t)<0||t>1<<30)&&D(16,""+t),T.set(e,t),x.set(t,e),t},z=function(e){return x.get(e)},B=function(e,t){t>=k&&(k=t+1),T.set(e,t),x.set(t,e);},M="style["+N+'][data-styled-version="5.3.5"]',G=new RegExp("^"+N+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),L=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r);},F=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],o=0,s=n.length;o<s;o++){var i=n[o].trim();if(i){var a=i.match(G);if(a){var c=0|parseInt(a[1],10),u=a[2];0!==c&&(B(u,c),L(e,u,a[3]),e.getTag().insertRules(c,r)),r.length=0;}else r.push(i);}}},Y=function(){return "undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},q=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(N))return r}}(n),s=void 0!==o?o.nextSibling:null;r.setAttribute(N,"active"),r.setAttribute("data-styled-version","5.3.5");var i=Y();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},H=function(){function e(e){var t=this.element=q(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}D(17);}(t),this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),$=function(){function e(e){var t=this.element=q(e);this.nodes=t.childNodes,this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return !1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),W=function(){function e(e){this.rules=[],this.length=0;}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--;},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),U=C,J={isServer:!C,useCSSOMInjection:!I},X=function(){function e(e,t,n){void 0===e&&(e=w),void 0===t&&(t={}),this.options=y({},J,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&C&&U&&(U=!1,function(e){for(var t=document.querySelectorAll(M),n=0,r=t.length;n<r;n++){var o=t[n];o&&"active"!==o.getAttribute(N)&&(F(e,o),o.parentNode&&o.parentNode.removeChild(o));}}(this));}e.registerId=function(e){return V(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(y({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,o=t.target,e=n?new W(o):r?new H(o):new $(o),new j(e)));var e,t,n,r,o;},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(V(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(V(e),n);},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},t.clearRules=function(e){this.getTag().clearGroup(V(e)),this.clearNames(e);},t.clearTag=function(){this.tag=void 0;},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=0;o<n;o++){var s=z(o);if(void 0!==s){var i=e.names.get(s),a=t.getGroup(o);if(i&&a&&i.size){var c=N+".g"+o+'[id="'+s+'"]',u="";void 0!==i&&i.forEach((function(e){e.length>0&&(u+=e+",");})),r+=""+a+c+'{content:"'+u+'"}/*!sc*/\n';}}}return r}(this)},e}(),Z=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Q(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=K(t%52)+n;return (K(t%52)+n).replace(Z,"$1-$2")}var ee=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},te=function(e){return ee(5381,e)};function ne(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(E(n)&&!_(n))return !1}return !0}var re=te("5.3.5"),oe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&ne(e),this.componentId=t,this.baseHash=ee(re,t),this.baseStyle=n,X.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,o=[];if(this.baseStyle&&o.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))o.push(this.staticRulesId);else {var s=_e(this.rules,e,t,n).join(""),i=Q(ee(this.baseHash,s)>>>0);if(!t.hasNameForId(r,i)){var a=n(s,"."+i,void 0,r);t.insertRules(r,i,a);}o.push(i),this.staticRulesId=i;}else {for(var c=this.rules.length,u=ee(this.baseHash,n.hash),l="",d=0;d<c;d++){var h=this.rules[d];if("string"==typeof h)l+=h,"production"!==process.env.NODE_ENV&&(u=ee(u,h+d));else if(h){var p=_e(h,e,t,n),f=Array.isArray(p)?p.join(""):p;u=ee(u,f+d),l+=f;}}if(l){var m=Q(u>>>0);if(!t.hasNameForId(r,m)){var y=n(l,"."+m,void 0,r);t.insertRules(r,m,y);}o.push(m);}}return o.join(" ")},e}(),se=/^\s*\/\/.*$/gm,ie=[":","[",".","#"];function ae(e){var t,n,r,o,s=void 0===e?w:e,i=s.options,a=void 0===i?w:i,c=s.plugins,u=void 0===c?S:c,l=new stylis_min(a),d=[],p=function(e){function t(t){if(t)try{e(t+"}");}catch(e){}}return function(n,r,o,s,i,a,c,u,l,d){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t);}}}((function(e){d.push(e);})),f=function(e,r,s){return 0===r&&-1!==ie.indexOf(s[n.length])||s.match(o)?e:"."+t};function m(e,s,i,a){void 0===a&&(a="&");var c=e.replace(se,""),u=s&&i?i+" "+s+" { "+c+" }":c;return t=a,n=s,r=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),l(i||!s?"":s,u)}return l.use([].concat(u,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(r,f));},p,function(e){if(-2===e){var t=d;return d=[],t}}])),m.hash=u.length?u.reduce((function(e,t){return t.name||D(15),ee(e,t.name)}),5381).toString():"",m}var ce=r.createContext();ce.Consumer;var le=r.createContext(),de=(le.Consumer,new X),he=ae();function pe(){return react.exports.useContext(ce)||de}function fe(){return react.exports.useContext(le)||he}var ye=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=he);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"));},this.toString=function(){return D(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t;}return e.prototype.getName=function(e){return void 0===e&&(e=he),this.name+e.hash},e}(),ve=/([A-Z])/,ge=/([A-Z])/g,Se=/^ms-/,we=function(e){return "-"+e.toLowerCase()};function Ee(e){return ve.test(e)?e.replace(ge,we).replace(Se,"-ms-"):e}var be=function(e){return null==e||!1===e||""===e};function _e(e,n,r,o){if(Array.isArray(e)){for(var s,i=[],a=0,c=e.length;a<c;a+=1)""!==(s=_e(e[a],n,r,o))&&(Array.isArray(s)?i.push.apply(i,s):i.push(s));return i}if(be(e))return "";if(_(e))return "."+e.styledComponentId;if(E(e)){if("function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!n)return e;var u=e(n);return "production"!==process.env.NODE_ENV&&reactIs$2.exports.isElement(u)&&console.warn(b(e)+" is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."),_e(u,n,r,o)}var l;return e instanceof ye?r?(e.inject(r,o),e.getName(o)):e:g(e)?function e(t,n){var r,o,s=[];for(var i in t)t.hasOwnProperty(i)&&!be(t[i])&&(Array.isArray(t[i])&&t[i].isCss||E(t[i])?s.push(Ee(i)+":",t[i],";"):g(t[i])?s.push.apply(s,e(t[i],i)):s.push(Ee(i)+": "+(r=i,null==(o=t[i])||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||r in unitlessKeys?String(o).trim():o+"px")+";"));return n?[n+" {"].concat(s,["}"]):s}(e):e.toString()}var Ne=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return E(e)||g(e)?Ne(_e(v(S,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:Ne(_e(v(e,n)))}var Ce=/invalid hook call/i,Ie=new Set,Pe=function(e,t){if("production"!==process.env.NODE_ENV){var n="The component "+e+(t?' with the id of "'+t+'"':"")+" has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",r=console.error;try{var o=!0;console.error=function(e){if(Ce.test(e))o=!1,Ie.delete(n);else {for(var t=arguments.length,s=new Array(t>1?t-1:0),i=1;i<t;i++)s[i-1]=arguments[i];r.apply(void 0,[e].concat(s));}},react.exports.useRef(),o&&!Ie.has(n)&&(console.warn(n),Ie.add(n));}catch(e){Ce.test(e.message)&&Ie.delete(n);}finally{console.error=r;}}},Oe=function(e,t,n){return void 0===n&&(n=w),e.theme!==n.theme&&e.theme||t||n.theme},Re=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,De=/(^-|-$)/g;function je(e){return e.replace(Re,"-").replace(De,"")}var Te=function(e){return Q(te(e)>>>0)};function xe(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var ke=function(e){return "function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ve=function(e){return "__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ze(e,t,n){var r=e[n];ke(t)&&ke(r)?Be(r,t):e[n]=t;}function Be(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var o=0,s=n;o<s.length;o++){var i=s[o];if(ke(i))for(var a in i)Ve(a)&&ze(e,i[a],a);}return e}var Me=r.createContext();Me.Consumer;var Fe={};function Ye(e,t,n){var o=_(e),i=!xe(e),a=t.attrs,c=void 0===a?S:a,d=t.componentId,h=void 0===d?function(e,t){var n="string"!=typeof e?"sc":je(e);Fe[n]=(Fe[n]||0)+1;var r=n+"-"+Te("5.3.5"+n+Fe[n]);return t?t+"-"+r:r}(t.displayName,t.parentComponentId):d,p=t.displayName,v=void 0===p?function(e){return xe(e)?"styled."+e:"Styled("+b(e)+")"}(e):p,g=t.displayName&&t.componentId?je(t.displayName)+"-"+t.componentId:t.componentId||h,N=o&&e.attrs?Array.prototype.concat(e.attrs,c).filter(Boolean):c,A=t.shouldForwardProp;o&&e.shouldForwardProp&&(A=t.shouldForwardProp?function(n,r,o){return e.shouldForwardProp(n,r,o)&&t.shouldForwardProp(n,r,o)}:e.shouldForwardProp);var C,I=new oe(n,g,o?e.componentStyle:void 0),P=I.isStatic&&0===c.length,O=function(e,t){return function(e,t,n,r){var o=e.attrs,i=e.componentStyle,a=e.defaultProps,c=e.foldedComponentIds,d=e.shouldForwardProp,h=e.styledComponentId,p=e.target;"production"!==process.env.NODE_ENV&&react.exports.useDebugValue(h);var m=function(e,t,n){void 0===e&&(e=w);var r=y({},t,{theme:e}),o={};return n.forEach((function(e){var t,n,s,i=e;for(t in E(i)&&(i=i(r)),i)r[t]=o[t]="className"===t?(n=o[t],s=i[t],n&&s?n+" "+s:n||s):i[t];})),[r,o]}(Oe(t,react.exports.useContext(Me),a)||w,t,o),v=m[0],g=m[1],S=function(e,t,n,r){var o=pe(),s=fe(),i=t?e.generateAndInjectStyles(w,o,s):e.generateAndInjectStyles(n,o,s);return "production"!==process.env.NODE_ENV&&react.exports.useDebugValue(i),"production"!==process.env.NODE_ENV&&!t&&r&&r(i),i}(i,r,v,"production"!==process.env.NODE_ENV?e.warnTooManyClasses:void 0),b=n,_=g.$as||t.$as||g.as||t.as||p,N=xe(_),A=g!==t?y({},t,{},g):t,C={};for(var I in A)"$"!==I[0]&&"as"!==I&&("forwardedAs"===I?C.as=A[I]:(d?d(I,isPropValid,_):!N||isPropValid(I))&&(C[I]=A[I]));return t.style&&g.style!==t.style&&(C.style=y({},t.style,{},g.style)),C.className=Array.prototype.concat(c,h,S!==h?S:null,t.className,g.className).filter(Boolean).join(" "),C.ref=b,react.exports.createElement(_,C)}(C,e,t,P)};return O.displayName=v,(C=r.forwardRef(O)).attrs=N,C.componentStyle=I,C.displayName=v,C.shouldForwardProp=A,C.foldedComponentIds=o?Array.prototype.concat(e.foldedComponentIds,e.styledComponentId):S,C.styledComponentId=g,C.target=o?e.target:e,C.withComponent=function(e){var r=t.componentId,o=function(e,t){if(null==e)return {};var n,r,o={},s=Object.keys(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(t,["componentId"]),s=r&&r+"-"+(xe(e)?e:je(b(e)));return Ye(e,y({},o,{attrs:N,componentId:s}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=o?Be({},e.defaultProps,t):t;}}),"production"!==process.env.NODE_ENV&&(Pe(v,g),C.warnTooManyClasses=function(e,t){var n={},r=!1;return function(o){if(!r&&(n[o]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'+t+'"':"";console.warn("Over 200 classes were generated for component "+e+s+".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),r=!0,n={};}}}(v,g)),C.toString=function(){return "."+C.styledComponentId},i&&hoistNonReactStatics_cjs(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var qe=function(e){return function e(t,r,o){if(void 0===o&&(o=w),!reactIs$2.exports.isValidElementType(r))return D(1,String(r));var s=function(){return t(r,o,Ae.apply(void 0,arguments))};return s.withConfig=function(n){return e(t,r,y({},o,{},n))},s.attrs=function(n){return e(t,r,y({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},s}(Ye,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){qe[e]=qe(e);}));function We(e){"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=Ae.apply(void 0,[e].concat(n)).join(""),s=Te(o);return new ye(s,o)}"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"),"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window["__styled-components-init__"]=window["__styled-components-init__"]||0,1===window["__styled-components-init__"]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window["__styled-components-init__"]+=1);
4101
-
4102
- var Face = function (props) {
4103
- var _a = props.height, height = _a === void 0 ? 10 : _a, _b = props.tranz, tranz = _b === void 0 ? 80 : _b, _c = props.width, width = _c === void 0 ? 100 : _c;
4104
- var _d = props.depth, depth = _d === void 0 ? 10 : _d, faceType = props.faceType, _e = props.global, global = _e === void 0 ? {} : _e, _f = props.custom, custom = _f === void 0 ? false : _f;
4105
- var transform;
4106
- var styles = custom[faceType] && custom[faceType].css ? custom[faceType].css : global.css;
4107
- var body = custom[faceType] && custom[faceType].body ? custom[faceType].body : global.body;
4108
- if (faceType === 'bottom') {
4109
- tranz = +height - +depth / 2;
4110
- height = +depth;
4111
- transform = "transform: rotateX(-90deg) translateZ(".concat(tranz, "px);");
4112
- //styles = custom["top"] ? custom : global;
4113
- }
4114
- else if (faceType === 'top') {
4115
- height = +depth;
4116
- if (depth)
4117
- tranz = +depth / 2;
4118
- transform = "transform: rotateX(90deg) translateZ(".concat(tranz, "px);");
4119
- }
4120
- else if (faceType === 'front') {
4121
- if (depth)
4122
- tranz = +depth / 2;
4123
- transform = "transform: rotateY(0deg) translateZ(".concat(tranz, "px);");
4124
- }
4125
- else if (faceType === 'back') {
4126
- if (depth)
4127
- tranz = +depth / 2;
4128
- transform = "transform: rotateY(180deg) translateZ(".concat(tranz, "px);");
4129
- }
4130
- else if (faceType === 'right') {
4131
- if (height > width && !depth) {
4132
- tranz = -(+height / 2 - +width);
4133
- width = +height;
4134
- }
4135
- else if (width > height && !depth) {
4136
- tranz = +height / 2;
4137
- height = +width;
4138
- }
4139
- else {
4140
- tranz = +width - +depth / 2;
4141
- width = +depth;
4142
- }
4143
- transform = "transform: rotateY(90deg) translateZ(".concat(tranz, "px);");
4144
- // topr is to of Ribbon which points back
4145
- }
4146
- else if (faceType === 'topr') {
4147
- height = +depth;
4148
- if (depth)
4149
- tranz = +depth / 2;
4150
- //let offset = depth / 2;
4151
- transform = "transform: rotateX(90deg) translateZ(".concat(tranz, "px ); ");
4152
- }
4153
- else {
4154
- if (height > width && !depth) {
4155
- tranz = -(+height / 2 - +width);
4156
- width = +height;
4157
- }
4158
- else if (width > height && !depth) {
4159
- tranz = +height / 2;
4160
- height = +width;
4161
- }
4162
- else {
4163
- tranz = +depth / 2;
4164
- width = +depth;
4165
- }
4166
- transform = "transform: rotateY(-90deg) translateZ(".concat(tranz, "px);");
4167
- }
4168
- //const BackFlip: any = styled.section``;
4169
- var Specs = qe.section(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n ", "\n width: ", "px;\n position: absolute;\n height: ", "px;\n ", ";\n "], ["\n ", "\n width: ", "px;\n position: absolute;\n height: ", "px;\n ", ";\n "])), styles, width, height, transform);
4170
- return React.createElement(Specs, null, body);
4171
- };
4172
- var templateObject_1$4;
4173
-
4174
- var allAnims = function (props) {
4175
- var _a = props.degreesLow, degreesLow = _a === void 0 ? 0 : _a, _b = props.degreesHi, degreesHi = _b === void 0 ? 0 : _b;
4176
- var X360 = We(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateX(360deg);\n transform: rotateX(360deg);\n }\n to {\n -webkit-transform: rotateX(0deg);\n transform: rotateX(0deg);\n }\n}"], ["\n from {\n -webkit-transform: rotateX(360deg);\n transform: rotateX(360deg);\n }\n to {\n -webkit-transform: rotateX(0deg);\n transform: rotateX(0deg);\n }\n}"
4177
- //////// Y360
4178
- ])));
4179
- //////// Y360
4180
- var Y360 = We(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateY(360deg);\n transform: rotateY(360deg);\n }\n to {\n -webkit-transform: rotateY(0deg);\n transform: rotateY(0deg);\n }"], ["\n from {\n -webkit-transform: rotateY(360deg);\n transform: rotateY(360deg);\n }\n to {\n -webkit-transform: rotateY(0deg);\n transform: rotateY(0deg);\n }"])));
4181
- var fadeInkf = We(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }"], ["\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }"])));
4182
- var wobY = We(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n 0% {\n -webkit-transform: rotateY(", "deg);\n transform: rotateY(", "deg);\n }\n 50% {\n -webkit-transform: rotateY(", "deg);\n transform: rotateY(", "deg);\n }\n 100% {\n -webkit-transform: rotateY(", "deg);\n transform: rotateY(", "deg);\n }"], ["\n 0% {\n -webkit-transform: rotateY(", "deg);\n transform: rotateY(", "deg);\n }\n 50% {\n -webkit-transform: rotateY(", "deg);\n transform: rotateY(", "deg);\n }\n 100% {\n -webkit-transform: rotateY(", "deg);\n transform: rotateY(", "deg);\n }"])), degreesLow, degreesLow, degreesHi, degreesHi, degreesLow, degreesLow);
4183
- var wobX = We(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n 0% {\n -webkit-transform: rotateX(", "deg);\n transform: rotateX(", "deg);\n }\n 50% {\n -webkit-transform: rotateX(", "deg);\n transform: rotateX(", "deg);\n }\n 100% {\n -webkit-transform: rotateX(", "deg);\n transform: rotateX(", "deg);\n }"], ["\n 0% {\n -webkit-transform: rotateX(", "deg);\n transform: rotateX(", "deg);\n }\n 50% {\n -webkit-transform: rotateX(", "deg);\n transform: rotateX(", "deg);\n }\n 100% {\n -webkit-transform: rotateX(", "deg);\n transform: rotateX(", "deg);\n }"
4184
- /* ============================== x-axis 0-180 >180 - 360 */
4185
- ])), degreesLow, degreesLow, degreesHi, degreesHi, degreesLow, degreesLow);
4186
- /* ============================== x-axis 0-180 >180 - 360 */
4187
- var fwdx018 = We(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateX(360deg);\n transform: rotateX(360deg);\n }\n to {\n -webkit-transform: rotateX(180deg);\n transform: rotateX(180deg);\n }"], ["\n from {\n -webkit-transform: rotateX(360deg);\n transform: rotateX(360deg);\n }\n to {\n -webkit-transform: rotateX(180deg);\n transform: rotateX(180deg);\n }"])));
4188
- var fwdx1836 = We(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateX(180deg);\n transform: rotateX(180deg);\n }\n to {\n -webkit-transform: rotateX(0deg);\n transform: rotateX(0deg);\n }"], ["\n from {\n -webkit-transform: rotateX(180deg);\n transform: rotateX(180deg);\n }\n to {\n -webkit-transform: rotateX(0deg);\n transform: rotateX(0deg);\n }"
4189
- /* ============================= x-axis 0-90, 90-180, 180-270, 270-360 */
4190
- ])));
4191
- /* ============================= x-axis 0-90, 90-180, 180-270, 270-360 */
4192
- var fwdx09 = We(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateX(360deg);\n transform: rotateX(360deg);\n }\n to {\n -webkit-transform: rotateX(90deg);\n transform: rotateX(90deg);\n }"], ["\n from {\n -webkit-transform: rotateX(360deg);\n transform: rotateX(360deg);\n }\n to {\n -webkit-transform: rotateX(90deg);\n transform: rotateX(90deg);\n }"])));
4193
- var fwdx918 = We(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateX(-90deg);\n transform: rotateX(-90deg);\n }\n to {\n -webkit-transform: rotateX(-180deg);\n transform: rotateX(-180deg);\n }"], ["\n from {\n -webkit-transform: rotateX(-90deg);\n transform: rotateX(-90deg);\n }\n to {\n -webkit-transform: rotateX(-180deg);\n transform: rotateX(-180deg);\n }"])));
4194
- var fwdx1827 = We(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateX(-180deg);\n transform: rotateX(-180deg);\n }\n to {\n -webkit-transform: rotateX(-270deg);\n transform: rotateX(-270deg);\n }"], ["\n from {\n -webkit-transform: rotateX(-180deg);\n transform: rotateX(-180deg);\n }\n to {\n -webkit-transform: rotateX(-270deg);\n transform: rotateX(-270deg);\n }"])));
4195
- var fwdx2736 = We(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateX(-270deg);\n transform: rotateX(-270deg);\n }\n to {\n -webkit-transform: rotateX(-360deg);\n transform: rotateX(-360deg);\n }"], ["\n from {\n -webkit-transform: rotateX(-270deg);\n transform: rotateX(-270deg);\n }\n to {\n -webkit-transform: rotateX(-360deg);\n transform: rotateX(-360deg);\n }"
4196
- /* ============================== y-axis 0-180 >180 - 360 */
4197
- ])));
4198
- /* ============================== y-axis 0-180 >180 - 360 */
4199
- var fwdy018 = We(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateY(360deg);\n transform: rotateY(360deg);\n }\n to {\n -webkit-transform: rotateY(180deg);\n transform: rotateY(180deg);\n }"], ["\n from {\n -webkit-transform: rotateY(360deg);\n transform: rotateY(360deg);\n }\n to {\n -webkit-transform: rotateY(180deg);\n transform: rotateY(180deg);\n }"])));
4200
- var fwdy1836 = We(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateY(180deg);\n transform: rotateY(180deg);\n }\n to {\n -webkit-transform: rotateY(0deg);\n transform: rotateY(0deg);\n }"], ["\n from {\n -webkit-transform: rotateY(180deg);\n transform: rotateY(180deg);\n }\n to {\n -webkit-transform: rotateY(0deg);\n transform: rotateY(0deg);\n }"
4201
- /* ============================= y-axis 0-90, 90-180, 180-270, 270-360 */
4202
- ])));
4203
- /* ============================= y-axis 0-90, 90-180, 180-270, 270-360 */
4204
- var fwdy09 = We(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateY(360deg);\n transform: rotateY(360deg);\n }\n to {\n -webkit-transform: rotateY(90deg);\n transform: rotateY(90deg);\n }"], ["\n from {\n -webkit-transform: rotateY(360deg);\n transform: rotateY(360deg);\n }\n to {\n -webkit-transform: rotateY(90deg);\n transform: rotateY(90deg);\n }"])));
4205
- var fwdy918 = We(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateY(-90deg);\n transform: rotateY(-90deg);\n }\n to {\n -webkit-transform: rotateY(-180deg);\n transform: rotateY(-180deg);\n }"], ["\n from {\n -webkit-transform: rotateY(-90deg);\n transform: rotateY(-90deg);\n }\n to {\n -webkit-transform: rotateY(-180deg);\n transform: rotateY(-180deg);\n }"])));
4206
- var fwdy1827 = We(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateY(-180deg);\n transform: rotateY(-180deg);\n }\n to {\n -webkit-transform: rotateY(-270deg);\n transform: rotateY(-270deg);\n }"], ["\n from {\n -webkit-transform: rotateY(-180deg);\n transform: rotateY(-180deg);\n }\n to {\n -webkit-transform: rotateY(-270deg);\n transform: rotateY(-270deg);\n }"])));
4207
- var fwdy2736 = We(templateObject_17 || (templateObject_17 = __makeTemplateObject(["\n from {\n -webkit-transform: rotateY(-270deg);\n transform: rotateY(-270deg);\n }\n to {\n -webkit-transform: rotateY(-360deg);\n transform: rotateY(-360deg);\n }"], ["\n from {\n -webkit-transform: rotateY(-270deg);\n transform: rotateY(-270deg);\n }\n to {\n -webkit-transform: rotateY(-360deg);\n transform: rotateY(-360deg);\n }"
4208
- /* ============================= floating */
4209
- ])));
4210
- /* ============================= floating */
4211
- var floatX = We(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n 0% { -webkit-transform: translate(0, 0px); -ms-transform: translate(0, 0px); transform: translate(0, 0px); }\n 50% { -webkit-transform: translate(0, 15px); -ms-transform: translate(0, 15px); transform: translate(0, 15px); }\n 100% { -webkit-transform: translate(0, -0px); -ms-transform: translate(0, -0px); transform: translate(0, -0px); }"], ["\n 0% { -webkit-transform: translate(0, 0px); -ms-transform: translate(0, 0px); transform: translate(0, 0px); }\n 50% { -webkit-transform: translate(0, 15px); -ms-transform: translate(0, 15px); transform: translate(0, 15px); }\n 100% { -webkit-transform: translate(0, -0px); -ms-transform: translate(0, -0px); transform: translate(0, -0px); }"])));
4212
- var floatShadow = We(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n 0% {\n -webkit-box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);\n box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);\n -webkit-transform: translateY(0px);\n -ms-transform: translateY(0px);\n transform: translateY(0px);\n }\n 50% {\n -webkit-box-shadow: 0 25px 15px 0px rgba(0,0,0,0.2);\n box-shadow: 0 25px 15px 0px rgba(0,0,0,0.2);\n -webkit-transform: translateY(-20px);\n -ms-transform: translateY(-20px);\n transform: translateY(-20px);\n }\n 100% {\n -webkit-box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);\n box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);\n -webkit-transform: translateY(0px);\n -ms-transform: translateY(0px);\n transform: translateY(0px);\n }"], ["\n 0% {\n -webkit-box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);\n box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);\n -webkit-transform: translateY(0px);\n -ms-transform: translateY(0px);\n transform: translateY(0px);\n }\n 50% {\n -webkit-box-shadow: 0 25px 15px 0px rgba(0,0,0,0.2);\n box-shadow: 0 25px 15px 0px rgba(0,0,0,0.2);\n -webkit-transform: translateY(-20px);\n -ms-transform: translateY(-20px);\n transform: translateY(-20px);\n }\n 100% {\n -webkit-box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);\n box-shadow: 0 5px 15px 0px rgba(0,0,0,0.6);\n -webkit-transform: translateY(0px);\n -ms-transform: translateY(0px);\n transform: translateY(0px);\n }"])));
4213
- var pulseSM = We(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n 0% {\n -webkit-transform: scale(0.9);\n -ms-transform: scale(0.9);\n transform: scale(0.9);\n }\n 70% {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n 100% {\n -webkit-transform: scale(0.9);\n -ms-transform: scale(0.9);\n transform: scale(0.9);\n }"], ["\n 0% {\n -webkit-transform: scale(0.9);\n -ms-transform: scale(0.9);\n transform: scale(0.9);\n }\n 70% {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n 100% {\n -webkit-transform: scale(0.9);\n -ms-transform: scale(0.9);\n transform: scale(0.9);\n }"])));
4214
- var pulseMD = We(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n 0% {\n -webkit-transform: scale(0.7);\n -ms-transform: scale(0.7);\n transform: scale(0.7);\n }\n 70% {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n 100% {\n -webkit-transform: scale(0.7);\n -ms-transform: scale(0.7);\n transform: scale(0.7);\n }"], ["\n 0% {\n -webkit-transform: scale(0.7);\n -ms-transform: scale(0.7);\n transform: scale(0.7);\n }\n 70% {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n 100% {\n -webkit-transform: scale(0.7);\n -ms-transform: scale(0.7);\n transform: scale(0.7);\n }"])));
4215
- var pulseLG = We(templateObject_22 || (templateObject_22 = __makeTemplateObject(["\n 0% {\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n }\n 70% {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n 100% {\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n }"], ["\n 0% {\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n }\n 70% {\n -webkit-transform: scale(1);\n -ms-transform: scale(1);\n transform: scale(1);\n }\n 100% {\n -webkit-transform: scale(0.5);\n -ms-transform: scale(0.5);\n transform: scale(0.5);\n }"])));
4216
- var noAnim = We(templateObject_23 || (templateObject_23 = __makeTemplateObject([""], [""])));
4217
- return {
4218
- X360: X360,
4219
- Y360: Y360,
4220
- fadeInkf: fadeInkf,
4221
- wobY: wobY,
4222
- wobX: wobX,
4223
- fwdx018: fwdx018,
4224
- fwdx1836: fwdx1836,
4225
- fwdx09: fwdx09,
4226
- fwdx918: fwdx918,
4227
- fwdx1827: fwdx1827,
4228
- fwdx2736: fwdx2736,
4229
- fwdy018: fwdy018,
4230
- fwdy1836: fwdy1836,
4231
- fwdy09: fwdy09,
4232
- fwdy918: fwdy918,
4233
- fwdy1827: fwdy1827,
4234
- fwdy2736: fwdy2736,
4235
- floatX: floatX,
4236
- floatShadow: floatShadow,
4237
- pulseSM: pulseSM,
4238
- pulseMD: pulseMD,
4239
- pulseLG: pulseLG,
4240
- noAnim: noAnim,
4241
- };
4242
- };
4243
- var templateObject_1$3, templateObject_2$1, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
4244
-
4245
- var AnimWrap = function (props) {
4246
- var children = props.children, animSpecs = props.animSpecs;
4247
- var AS = animSpecs;
4248
- var _a = allAnims({
4249
- degreesHi: AS && AS.degreesHi ? AS.degreesHi : 0,
4250
- degreesLow: AS && AS.degreesLow ? AS.degreesLow : 0,
4251
- }), X360 = _a.X360, Y360 = _a.Y360, fadeInkf = _a.fadeInkf, wobY = _a.wobY, wobX = _a.wobX, fwdx018 = _a.fwdx018, fwdx1836 = _a.fwdx1836, fwdx09 = _a.fwdx09, fwdx918 = _a.fwdx918, fwdx1827 = _a.fwdx1827, fwdx2736 = _a.fwdx2736, fwdy018 = _a.fwdy018, fwdy1836 = _a.fwdy1836, fwdy09 = _a.fwdy09, fwdy918 = _a.fwdy918, fwdy1827 = _a.fwdy1827, fwdy2736 = _a.fwdy2736, floatX = _a.floatX, floatShadow = _a.floatShadow, pulseSM = _a.pulseSM, pulseMD = _a.pulseMD, pulseLG = _a.pulseLG, noAnim = _a.noAnim;
4252
- var theAnim = 'noAnim';
4253
- // need to iterate through all animation posibilities and not use eval() to satisfy TS
4254
- if (AS && AS.name) {
4255
- if (AS.name === 'X360')
4256
- theAnim = X360;
4257
- else if (AS.name === 'Y360')
4258
- theAnim = Y360;
4259
- else if (AS.name === 'fadeInkf')
4260
- theAnim = fadeInkf;
4261
- else if (AS.name === 'wobX')
4262
- theAnim = wobX;
4263
- else if (AS.name === 'wobY')
4264
- theAnim = wobY;
4265
- else if (AS.name === 'fwdx018')
4266
- theAnim = fwdx018;
4267
- else if (AS.name === 'fwdx1836')
4268
- theAnim = fwdx1836;
4269
- else if (AS.name === 'fwdx09')
4270
- theAnim = fwdx09;
4271
- else if (AS.name === 'fwdx918')
4272
- theAnim = fwdx918;
4273
- else if (AS.name === 'fwdx1827')
4274
- theAnim = fwdx1827;
4275
- else if (AS.name === 'fwdx2736')
4276
- theAnim = fwdx2736;
4277
- else if (AS.name === 'fwdy018')
4278
- theAnim = fwdy018;
4279
- else if (AS.name === 'fwdy1836')
4280
- theAnim = fwdy1836;
4281
- else if (AS.name === 'fwdy09')
4282
- theAnim = fwdy09;
4283
- else if (AS.name === 'fwdy918')
4284
- theAnim = fwdy918;
4285
- else if (AS.name === 'fwdy1827')
4286
- theAnim = fwdy1827;
4287
- else if (AS.name === 'fwdy2736')
4288
- theAnim = fwdy2736;
4289
- else if (AS.name === 'floatX')
4290
- theAnim = floatX;
4291
- else if (AS.name === 'floatShadow')
4292
- theAnim = floatShadow;
4293
- else if (AS.name === 'pulseSM')
4294
- theAnim = pulseSM;
4295
- else if (AS.name === 'pulseMD')
4296
- theAnim = pulseMD;
4297
- else if (AS.name === 'pulseLG')
4298
- theAnim = pulseLG;
4299
- }
4300
- else
4301
- theAnim = noAnim;
4302
- var AnimWrapDiv = qe.div(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject([""], [""])));
4303
- if (AS) {
4304
- AnimWrapDiv = qe.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n position: relative;\n transform-style: preserve-3d;\n border: ", ";\n -webkit-animation-duration: ", "s;\n animation-duration: ", "s;\n -webkit-animation-iteration-count: ", ";\n animation-iteration-count: ", ";\n -webkit-animation-name: ", ";\n animation-name: ", ";\n -webkit-animation-fill-mode: ", ";\n animation-fill-mode: ", ";\n animation-direction: ", ";\n -webkit-animation-direction: ", ";\n -webkit-animation-timing-function: ", ";\n animation-timing-function: ", ";\n -webkit-animation-delay: ", "s;\n animation-delay: ", "s;\n "], ["\n width: 100%;\n height: 100%;\n position: relative;\n transform-style: preserve-3d;\n border: ", ";\n -webkit-animation-duration: ", "s;\n animation-duration: ", "s;\n -webkit-animation-iteration-count: ", ";\n animation-iteration-count: ", ";\n -webkit-animation-name: ", ";\n animation-name: ", ";\n -webkit-animation-fill-mode: ", ";\n animation-fill-mode: ", ";\n animation-direction: ", ";\n -webkit-animation-direction: ", ";\n -webkit-animation-timing-function: ", ";\n animation-timing-function: ", ";\n -webkit-animation-delay: ", "s;\n animation-delay: ", "s;\n "])), AS.border || '', AS.duration || 1, AS.duration || 1, AS.iterationCount || 1, AS.iterationCount || 1, theAnim || 'noAnim', theAnim || 'noAnim', AS.fillMode || 'forwards', AS.fillMode || 'forwards', AS.direction || 'normal', AS.direction || 'normal', AS.timing || 'linear', AS.timing || 'linear', AS.delay || 0, AS.delay || 0);
4305
- }
4306
- return React.createElement(AnimWrapDiv, null, children);
4307
- };
4308
- var templateObject_1$2, templateObject_2;
4309
-
4310
- var SceneStyle = function (props) {
4311
- var _a = props.width, width = _a === void 0 ? 0 : _a, _b = props.height, height = _b === void 0 ? 0 : _b, _c = props.perspective, perspective = _c === void 0 ? 600 : _c, _d = props.perspectiveOrigin, perspectiveOrigin = _d === void 0 ? '50% 50%' : _d, _e = props.zIndex, zIndex = _e === void 0 ? 10 : _e, _f = props.children, children = _f === void 0 ? {} : _f;
4312
- var SceneStyleDiv = qe.div(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n width: ", "px;\n height: ", "px;\n -webkit-perspective: ", "px;\n perspective: ", "px;\n -webkit-perspective-origin: ", ";\n perspective-origin: ", ";\n "], ["\n width: ", "px;\n height: ", "px;\n -webkit-perspective: ", "px;\n perspective: ", "px;\n -webkit-perspective-origin: ", ";\n perspective-origin: ", ";\n "])), width, height, perspective, perspective, perspectiveOrigin, perspectiveOrigin);
4313
- return (React.createElement("div", { style: { zIndex: zIndex } },
4314
- React.createElement(SceneStyleDiv, null, children)));
4315
- };
4316
- var templateObject_1$1;
4317
-
4318
- var ObjWrapper = qe.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n position: relative;\n transform-style: preserve-3d;\n"], ["\n width: 100%;\n height: 100%;\n position: relative;\n transform-style: preserve-3d;\n"])));
4319
- var templateObject_1;
4320
-
4321
- //import React from 'react'
4322
- var Cuboid = function (props) {
4323
- var anim1Specs = props.anim1Specs, anim2Specs = props.anim2Specs, _a = props.width, width = _a === void 0 ? 5 : _a, _b = props.height, height = _b === void 0 ? 5 : _b, _c = props.depth, depth = _c === void 0 ? 5 : _c, faces = props.faces, _d = props.global, global = _d === void 0 ? {} : _d, _e = props.custom, custom = _e === void 0 ? {} : _e, _f = props.tranz, tranz = _f === void 0 ? (+height / 2) | 0 : _f, perspective = props.perspective, perspectiveOrigin = props.perspectiveOrigin, zIndex = props.zIndex;
4324
- var buildFace = function (faceType) {
4325
- return (React.createElement(Face, { width: width, height: height, depth: depth, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom }));
4326
- };
4327
- return (React.createElement(SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
4328
- React.createElement(AnimWrap, { animSpecs: anim1Specs },
4329
- React.createElement(AnimWrap, { animSpecs: anim2Specs },
4330
- React.createElement(ObjWrapper, null,
4331
- faces && faces.front ? buildFace('front') : null,
4332
- faces && faces.right ? buildFace('right') : null,
4333
- faces && faces.back ? buildFace('back') : null,
4334
- faces && faces.left ? buildFace('left') : null,
4335
- faces && faces.top ? buildFace('top') : null,
4336
- faces && faces.bottom ? buildFace('bottom') : null)))));
4337
- };
4338
-
4339
- var Ribbon = function (props) {
4340
- var anim1Specs = props.anim1Specs, anim2Specs = props.anim2Specs, _a = props.width, width = _a === void 0 ? 5 : _a, _b = props.height, height = _b === void 0 ? 5 : _b, _c = props.depth, depth = _c === void 0 ? 5 : _c, faces = props.faces, _d = props.global, global = _d === void 0 ? {} : _d, _e = props.custom, custom = _e === void 0 ? {} : _e, _f = props.tranz, tranz = _f === void 0 ? (+height / 2) | 0 : _f, perspective = props.perspective, perspectiveOrigin = props.perspectiveOrigin, zIndex = props.zIndex;
4341
- var buildFace = function (faceType) {
4342
- return (React.createElement(Face, { width: width, height: height, depth: depth, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom }));
4343
- };
4344
- return (React.createElement(SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
4345
- React.createElement(AnimWrap, { animSpecs: anim1Specs },
4346
- React.createElement(AnimWrap, { animSpecs: anim2Specs },
4347
- React.createElement(ObjWrapper, null,
4348
- faces && faces.bottom ? buildFace('bottom') : null,
4349
- faces && faces.back ? buildFace('back') : null,
4350
- faces && faces.top ? buildFace('topr') : null)))));
4351
- };
4352
-
4353
- var Card = function (props) {
4354
- var anim1Specs = props.anim1Specs, anim2Specs = props.anim2Specs, _a = props.width, width = _a === void 0 ? 5 : _a, _b = props.height, height = _b === void 0 ? 5 : _b, faces = props.faces, _c = props.global, global = _c === void 0 ? {} : _c, _d = props.custom, custom = _d === void 0 ? {} : _d, _e = props.tranz, tranz = _e === void 0 ? (+height / 2) | 0 : _e, perspective = props.perspective, perspectiveOrigin = props.perspectiveOrigin, zIndex = props.zIndex;
4355
- var buildFace = function (faceType) {
4356
- return (React.createElement(Face, { width: width, height: height, depth: 0.1, faceType: faceType, id: faceType, tranz: tranz, global: global, custom: custom }));
4357
- };
4358
- return (React.createElement(SceneStyle, { width: width, height: height, perspective: perspective, perspectiveOrigin: perspectiveOrigin, zIndex: zIndex },
4359
- React.createElement(AnimWrap, { animSpecs: anim1Specs },
4360
- React.createElement(AnimWrap, { animSpecs: anim2Specs },
4361
- React.createElement(ObjWrapper, null,
4362
- faces && faces.front ? buildFace('front') : null,
4363
- faces && faces.back ? buildFace('back') : null)))));
4364
- };
4365
-
4366
- export { Card, Cuboid, Face, Ribbon };
4367
- //# sourceMappingURL=index.js.map
1
+ export * from './components';
2
+ //# sourceMappingURL=index.js.map