s-platform-landing-section 0.1.0 → 0.1.1

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.
@@ -1,48 +1,2985 @@
1
- import React from 'react';
1
+ function createCommonjsModule(fn, module) {
2
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
3
+ }
2
4
 
3
- const Hero7 = props => {
5
+ /**
6
+ * @license React
7
+ * react.production.min.js
8
+ *
9
+ * Copyright (c) Facebook, Inc. and its affiliates.
10
+ *
11
+ * This source code is licensed under the MIT license found in the
12
+ * LICENSE file in the root directory of this source tree.
13
+ */
14
+ 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}
15
+ 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={};
16
+ 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;
17
+ 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};
18
+ 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}}
19
+ 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)}
20
+ 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=
21
+ 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}
22
+ 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;}
23
+ var U={current:null},V={transition:null},W={ReactCurrentDispatcher:U,ReactCurrentBatchConfig:V,ReactCurrentOwner:K};function X(){throw Error("act(...) is not supported in production builds of React.");}
24
+ var 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}};var Component=E;var Fragment=p;var Profiler=r;var PureComponent=G;var StrictMode=q;var Suspense=w;
25
+ var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W;var act=X;
26
+ var 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);
27
+ 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}};var 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};var createElement=M;var createFactory=function(a){var b=M.bind(null,a);b.type=a;return b};var createRef=function(){return {current:null}};
28
+ var forwardRef=function(a){return {$$typeof:v,render:a}};var isValidElement=O;var lazy=function(a){return {$$typeof:y,_payload:{_status:-1,_result:a},_init:T}};var memo=function(a,b){return {$$typeof:x,type:a,compare:void 0===b?null:b}};var startTransition=function(a){var b=V.transition;V.transition={};try{a();}finally{V.transition=b;}};var unstable_act=X;var useCallback=function(a,b){return U.current.useCallback(a,b)};var useContext=function(a){return U.current.useContext(a)};
29
+ var useDebugValue=function(){};var useDeferredValue=function(a){return U.current.useDeferredValue(a)};var useEffect=function(a,b){return U.current.useEffect(a,b)};var useId=function(){return U.current.useId()};var useImperativeHandle=function(a,b,e){return U.current.useImperativeHandle(a,b,e)};var useInsertionEffect=function(a,b){return U.current.useInsertionEffect(a,b)};var useLayoutEffect=function(a,b){return U.current.useLayoutEffect(a,b)};
30
+ var useMemo=function(a,b){return U.current.useMemo(a,b)};var useReducer=function(a,b,e){return U.current.useReducer(a,b,e)};var useRef=function(a){return U.current.useRef(a)};var useState=function(a){return U.current.useState(a)};var useSyncExternalStore=function(a,b,e){return U.current.useSyncExternalStore(a,b,e)};var useTransition=function(){return U.current.useTransition()};var version="18.3.1";
31
+
32
+ var react_production_min = {
33
+ Children: Children,
34
+ Component: Component,
35
+ Fragment: Fragment,
36
+ Profiler: Profiler,
37
+ PureComponent: PureComponent,
38
+ StrictMode: StrictMode,
39
+ Suspense: Suspense,
40
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
41
+ act: act,
42
+ cloneElement: cloneElement,
43
+ createContext: createContext,
44
+ createElement: createElement,
45
+ createFactory: createFactory,
46
+ createRef: createRef,
47
+ forwardRef: forwardRef,
48
+ isValidElement: isValidElement,
49
+ lazy: lazy,
50
+ memo: memo,
51
+ startTransition: startTransition,
52
+ unstable_act: unstable_act,
53
+ useCallback: useCallback,
54
+ useContext: useContext,
55
+ useDebugValue: useDebugValue,
56
+ useDeferredValue: useDeferredValue,
57
+ useEffect: useEffect,
58
+ useId: useId,
59
+ useImperativeHandle: useImperativeHandle,
60
+ useInsertionEffect: useInsertionEffect,
61
+ useLayoutEffect: useLayoutEffect,
62
+ useMemo: useMemo,
63
+ useReducer: useReducer,
64
+ useRef: useRef,
65
+ useState: useState,
66
+ useSyncExternalStore: useSyncExternalStore,
67
+ useTransition: useTransition,
68
+ version: version
69
+ };
70
+
71
+ var react_development = createCommonjsModule(function (module, exports) {
72
+
73
+ if (process.env.NODE_ENV !== "production") {
74
+ (function() {
75
+
76
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
77
+ if (
78
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
79
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
80
+ 'function'
81
+ ) {
82
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
83
+ }
84
+ var ReactVersion = '18.3.1';
85
+
86
+ // ATTENTION
87
+ // When adding new symbols to this file,
88
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
89
+ // The Symbol used to tag the ReactElement-like types.
90
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
91
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
92
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
93
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
94
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
95
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
96
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
97
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
98
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
99
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
100
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
101
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
102
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
103
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
104
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
105
+ function getIteratorFn(maybeIterable) {
106
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
107
+ return null;
108
+ }
109
+
110
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
111
+
112
+ if (typeof maybeIterator === 'function') {
113
+ return maybeIterator;
114
+ }
115
+
116
+ return null;
117
+ }
118
+
119
+ /**
120
+ * Keeps track of the current dispatcher.
121
+ */
122
+ var ReactCurrentDispatcher = {
123
+ /**
124
+ * @internal
125
+ * @type {ReactComponent}
126
+ */
127
+ current: null
128
+ };
129
+
130
+ /**
131
+ * Keeps track of the current batch's configuration such as how long an update
132
+ * should suspend for if it needs to.
133
+ */
134
+ var ReactCurrentBatchConfig = {
135
+ transition: null
136
+ };
137
+
138
+ var ReactCurrentActQueue = {
139
+ current: null,
140
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode.
141
+ isBatchingLegacy: false,
142
+ didScheduleLegacyUpdate: false
143
+ };
144
+
145
+ /**
146
+ * Keeps track of the current owner.
147
+ *
148
+ * The current owner is the component who should own any components that are
149
+ * currently being constructed.
150
+ */
151
+ var ReactCurrentOwner = {
152
+ /**
153
+ * @internal
154
+ * @type {ReactComponent}
155
+ */
156
+ current: null
157
+ };
158
+
159
+ var ReactDebugCurrentFrame = {};
160
+ var currentExtraStackFrame = null;
161
+ function setExtraStackFrame(stack) {
162
+ {
163
+ currentExtraStackFrame = stack;
164
+ }
165
+ }
166
+
167
+ {
168
+ ReactDebugCurrentFrame.setExtraStackFrame = function (stack) {
169
+ {
170
+ currentExtraStackFrame = stack;
171
+ }
172
+ }; // Stack implementation injected by the current renderer.
173
+
174
+
175
+ ReactDebugCurrentFrame.getCurrentStack = null;
176
+
177
+ ReactDebugCurrentFrame.getStackAddendum = function () {
178
+ var stack = ''; // Add an extra top frame while an element is being validated
179
+
180
+ if (currentExtraStackFrame) {
181
+ stack += currentExtraStackFrame;
182
+ } // Delegate to the injected renderer-specific implementation
183
+
184
+
185
+ var impl = ReactDebugCurrentFrame.getCurrentStack;
186
+
187
+ if (impl) {
188
+ stack += impl() || '';
189
+ }
190
+
191
+ return stack;
192
+ };
193
+ }
194
+
195
+ // -----------------------------------------------------------------------------
196
+
197
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
198
+ var enableCacheElement = false;
199
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
200
+
201
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
202
+ // stuff. Intended to enable React core members to more easily debug scheduling
203
+ // issues in DEV builds.
204
+
205
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
206
+
207
+ var ReactSharedInternals = {
208
+ ReactCurrentDispatcher: ReactCurrentDispatcher,
209
+ ReactCurrentBatchConfig: ReactCurrentBatchConfig,
210
+ ReactCurrentOwner: ReactCurrentOwner
211
+ };
212
+
213
+ {
214
+ ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
215
+ ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
216
+ }
217
+
218
+ // by calls to these methods by a Babel plugin.
219
+ //
220
+ // In PROD (or in packages without access to React internals),
221
+ // they are left as they are instead.
222
+
223
+ function warn(format) {
224
+ {
225
+ {
226
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
227
+ args[_key - 1] = arguments[_key];
228
+ }
229
+
230
+ printWarning('warn', format, args);
231
+ }
232
+ }
233
+ }
234
+ function error(format) {
235
+ {
236
+ {
237
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
238
+ args[_key2 - 1] = arguments[_key2];
239
+ }
240
+
241
+ printWarning('error', format, args);
242
+ }
243
+ }
244
+ }
245
+
246
+ function printWarning(level, format, args) {
247
+ // When changing this logic, you might want to also
248
+ // update consoleWithStackDev.www.js as well.
249
+ {
250
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
251
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
252
+
253
+ if (stack !== '') {
254
+ format += '%s';
255
+ args = args.concat([stack]);
256
+ } // eslint-disable-next-line react-internal/safe-string-coercion
257
+
258
+
259
+ var argsWithFormat = args.map(function (item) {
260
+ return String(item);
261
+ }); // Careful: RN currently depends on this prefix
262
+
263
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
264
+ // breaks IE9: https://github.com/facebook/react/issues/13610
265
+ // eslint-disable-next-line react-internal/no-production-logging
266
+
267
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
268
+ }
269
+ }
270
+
271
+ var didWarnStateUpdateForUnmountedComponent = {};
272
+
273
+ function warnNoop(publicInstance, callerName) {
274
+ {
275
+ var _constructor = publicInstance.constructor;
276
+ var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
277
+ var warningKey = componentName + "." + callerName;
278
+
279
+ if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
280
+ return;
281
+ }
282
+
283
+ 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);
284
+
285
+ didWarnStateUpdateForUnmountedComponent[warningKey] = true;
286
+ }
287
+ }
288
+ /**
289
+ * This is the abstract API for an update queue.
290
+ */
291
+
292
+
293
+ var ReactNoopUpdateQueue = {
294
+ /**
295
+ * Checks whether or not this composite component is mounted.
296
+ * @param {ReactClass} publicInstance The instance we want to test.
297
+ * @return {boolean} True if mounted, false otherwise.
298
+ * @protected
299
+ * @final
300
+ */
301
+ isMounted: function (publicInstance) {
302
+ return false;
303
+ },
304
+
305
+ /**
306
+ * Forces an update. This should only be invoked when it is known with
307
+ * certainty that we are **not** in a DOM transaction.
308
+ *
309
+ * You may want to call this when you know that some deeper aspect of the
310
+ * component's state has changed but `setState` was not called.
311
+ *
312
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
313
+ * `componentWillUpdate` and `componentDidUpdate`.
314
+ *
315
+ * @param {ReactClass} publicInstance The instance that should rerender.
316
+ * @param {?function} callback Called after component is updated.
317
+ * @param {?string} callerName name of the calling function in the public API.
318
+ * @internal
319
+ */
320
+ enqueueForceUpdate: function (publicInstance, callback, callerName) {
321
+ warnNoop(publicInstance, 'forceUpdate');
322
+ },
323
+
324
+ /**
325
+ * Replaces all of the state. Always use this or `setState` to mutate state.
326
+ * You should treat `this.state` as immutable.
327
+ *
328
+ * There is no guarantee that `this.state` will be immediately updated, so
329
+ * accessing `this.state` after calling this method may return the old value.
330
+ *
331
+ * @param {ReactClass} publicInstance The instance that should rerender.
332
+ * @param {object} completeState Next state.
333
+ * @param {?function} callback Called after component is updated.
334
+ * @param {?string} callerName name of the calling function in the public API.
335
+ * @internal
336
+ */
337
+ enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
338
+ warnNoop(publicInstance, 'replaceState');
339
+ },
340
+
341
+ /**
342
+ * Sets a subset of the state. This only exists because _pendingState is
343
+ * internal. This provides a merging strategy that is not available to deep
344
+ * properties which is confusing. TODO: Expose pendingState or don't use it
345
+ * during the merge.
346
+ *
347
+ * @param {ReactClass} publicInstance The instance that should rerender.
348
+ * @param {object} partialState Next partial state to be merged with state.
349
+ * @param {?function} callback Called after component is updated.
350
+ * @param {?string} Name of the calling function in the public API.
351
+ * @internal
352
+ */
353
+ enqueueSetState: function (publicInstance, partialState, callback, callerName) {
354
+ warnNoop(publicInstance, 'setState');
355
+ }
356
+ };
357
+
358
+ var assign = Object.assign;
359
+
360
+ var emptyObject = {};
361
+
362
+ {
363
+ Object.freeze(emptyObject);
364
+ }
365
+ /**
366
+ * Base class helpers for the updating state of a component.
367
+ */
368
+
369
+
370
+ function Component(props, context, updater) {
371
+ this.props = props;
372
+ this.context = context; // If a component has string refs, we will assign a different object later.
373
+
374
+ this.refs = emptyObject; // We initialize the default updater but the real one gets injected by the
375
+ // renderer.
376
+
377
+ this.updater = updater || ReactNoopUpdateQueue;
378
+ }
379
+
380
+ Component.prototype.isReactComponent = {};
381
+ /**
382
+ * Sets a subset of the state. Always use this to mutate
383
+ * state. You should treat `this.state` as immutable.
384
+ *
385
+ * There is no guarantee that `this.state` will be immediately updated, so
386
+ * accessing `this.state` after calling this method may return the old value.
387
+ *
388
+ * There is no guarantee that calls to `setState` will run synchronously,
389
+ * as they may eventually be batched together. You can provide an optional
390
+ * callback that will be executed when the call to setState is actually
391
+ * completed.
392
+ *
393
+ * When a function is provided to setState, it will be called at some point in
394
+ * the future (not synchronously). It will be called with the up to date
395
+ * component arguments (state, props, context). These values can be different
396
+ * from this.* because your function may be called after receiveProps but before
397
+ * shouldComponentUpdate, and this new state, props, and context will not yet be
398
+ * assigned to this.
399
+ *
400
+ * @param {object|function} partialState Next partial state or function to
401
+ * produce next partial state to be merged with current state.
402
+ * @param {?function} callback Called after state is updated.
403
+ * @final
404
+ * @protected
405
+ */
406
+
407
+ Component.prototype.setState = function (partialState, callback) {
408
+ if (typeof partialState !== 'object' && typeof partialState !== 'function' && partialState != null) {
409
+ throw new Error('setState(...): takes an object of state variables to update or a ' + 'function which returns an object of state variables.');
410
+ }
411
+
412
+ this.updater.enqueueSetState(this, partialState, callback, 'setState');
413
+ };
414
+ /**
415
+ * Forces an update. This should only be invoked when it is known with
416
+ * certainty that we are **not** in a DOM transaction.
417
+ *
418
+ * You may want to call this when you know that some deeper aspect of the
419
+ * component's state has changed but `setState` was not called.
420
+ *
421
+ * This will not invoke `shouldComponentUpdate`, but it will invoke
422
+ * `componentWillUpdate` and `componentDidUpdate`.
423
+ *
424
+ * @param {?function} callback Called after update is complete.
425
+ * @final
426
+ * @protected
427
+ */
428
+
429
+
430
+ Component.prototype.forceUpdate = function (callback) {
431
+ this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
432
+ };
433
+ /**
434
+ * Deprecated APIs. These APIs used to exist on classic React classes but since
435
+ * we would like to deprecate them, we're not going to move them over to this
436
+ * modern base class. Instead, we define a getter that warns if it's accessed.
437
+ */
438
+
439
+
440
+ {
441
+ var deprecatedAPIs = {
442
+ isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
443
+ replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
444
+ };
445
+
446
+ var defineDeprecationWarning = function (methodName, info) {
447
+ Object.defineProperty(Component.prototype, methodName, {
448
+ get: function () {
449
+ warn('%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]);
450
+
451
+ return undefined;
452
+ }
453
+ });
454
+ };
455
+
456
+ for (var fnName in deprecatedAPIs) {
457
+ if (deprecatedAPIs.hasOwnProperty(fnName)) {
458
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
459
+ }
460
+ }
461
+ }
462
+
463
+ function ComponentDummy() {}
464
+
465
+ ComponentDummy.prototype = Component.prototype;
466
+ /**
467
+ * Convenience component with default shallow equality check for sCU.
468
+ */
469
+
470
+ function PureComponent(props, context, updater) {
471
+ this.props = props;
472
+ this.context = context; // If a component has string refs, we will assign a different object later.
473
+
474
+ this.refs = emptyObject;
475
+ this.updater = updater || ReactNoopUpdateQueue;
476
+ }
477
+
478
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
479
+ pureComponentPrototype.constructor = PureComponent; // Avoid an extra prototype jump for these methods.
480
+
481
+ assign(pureComponentPrototype, Component.prototype);
482
+ pureComponentPrototype.isPureReactComponent = true;
483
+
484
+ // an immutable object with a single mutable value
485
+ function createRef() {
486
+ var refObject = {
487
+ current: null
488
+ };
489
+
490
+ {
491
+ Object.seal(refObject);
492
+ }
493
+
494
+ return refObject;
495
+ }
496
+
497
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
498
+
499
+ function isArray(a) {
500
+ return isArrayImpl(a);
501
+ }
502
+
503
+ /*
504
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
505
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
506
+ *
507
+ * The functions in this module will throw an easier-to-understand,
508
+ * easier-to-debug exception with a clear errors message message explaining the
509
+ * problem. (Instead of a confusing exception thrown inside the implementation
510
+ * of the `value` object).
511
+ */
512
+ // $FlowFixMe only called in DEV, so void return is not possible.
513
+ function typeName(value) {
514
+ {
515
+ // toStringTag is needed for namespaced types like Temporal.Instant
516
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
517
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
518
+ return type;
519
+ }
520
+ } // $FlowFixMe only called in DEV, so void return is not possible.
521
+
522
+
523
+ function willCoercionThrow(value) {
524
+ {
525
+ try {
526
+ testStringCoercion(value);
527
+ return false;
528
+ } catch (e) {
529
+ return true;
530
+ }
531
+ }
532
+ }
533
+
534
+ function testStringCoercion(value) {
535
+ // If you ended up here by following an exception call stack, here's what's
536
+ // happened: you supplied an object or symbol value to React (as a prop, key,
537
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
538
+ // coerce it to a string using `'' + value`, an exception was thrown.
539
+ //
540
+ // The most common types that will cause this exception are `Symbol` instances
541
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
542
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
543
+ // exception. (Library authors do this to prevent users from using built-in
544
+ // numeric operators like `+` or comparison operators like `>=` because custom
545
+ // methods are needed to perform accurate arithmetic or comparison.)
546
+ //
547
+ // To fix the problem, coerce this object or symbol value to a string before
548
+ // passing it to React. The most reliable way is usually `String(value)`.
549
+ //
550
+ // To find which value is throwing, check the browser or debugger console.
551
+ // Before this exception was thrown, there should be `console.error` output
552
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
553
+ // problem and how that type was used: key, atrribute, input value prop, etc.
554
+ // In most cases, this console output also shows the component and its
555
+ // ancestor components where the exception happened.
556
+ //
557
+ // eslint-disable-next-line react-internal/safe-string-coercion
558
+ return '' + value;
559
+ }
560
+ function checkKeyStringCoercion(value) {
561
+ {
562
+ if (willCoercionThrow(value)) {
563
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
564
+
565
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
566
+ }
567
+ }
568
+ }
569
+
570
+ function getWrappedName(outerType, innerType, wrapperName) {
571
+ var displayName = outerType.displayName;
572
+
573
+ if (displayName) {
574
+ return displayName;
575
+ }
576
+
577
+ var functionName = innerType.displayName || innerType.name || '';
578
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
579
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
580
+
581
+
582
+ function getContextName(type) {
583
+ return type.displayName || 'Context';
584
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
585
+
586
+
587
+ function getComponentNameFromType(type) {
588
+ if (type == null) {
589
+ // Host root, text node or just invalid type.
590
+ return null;
591
+ }
592
+
593
+ {
594
+ if (typeof type.tag === 'number') {
595
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
596
+ }
597
+ }
598
+
599
+ if (typeof type === 'function') {
600
+ return type.displayName || type.name || null;
601
+ }
602
+
603
+ if (typeof type === 'string') {
604
+ return type;
605
+ }
606
+
607
+ switch (type) {
608
+ case REACT_FRAGMENT_TYPE:
609
+ return 'Fragment';
610
+
611
+ case REACT_PORTAL_TYPE:
612
+ return 'Portal';
613
+
614
+ case REACT_PROFILER_TYPE:
615
+ return 'Profiler';
616
+
617
+ case REACT_STRICT_MODE_TYPE:
618
+ return 'StrictMode';
619
+
620
+ case REACT_SUSPENSE_TYPE:
621
+ return 'Suspense';
622
+
623
+ case REACT_SUSPENSE_LIST_TYPE:
624
+ return 'SuspenseList';
625
+
626
+ }
627
+
628
+ if (typeof type === 'object') {
629
+ switch (type.$$typeof) {
630
+ case REACT_CONTEXT_TYPE:
631
+ var context = type;
632
+ return getContextName(context) + '.Consumer';
633
+
634
+ case REACT_PROVIDER_TYPE:
635
+ var provider = type;
636
+ return getContextName(provider._context) + '.Provider';
637
+
638
+ case REACT_FORWARD_REF_TYPE:
639
+ return getWrappedName(type, type.render, 'ForwardRef');
640
+
641
+ case REACT_MEMO_TYPE:
642
+ var outerName = type.displayName || null;
643
+
644
+ if (outerName !== null) {
645
+ return outerName;
646
+ }
647
+
648
+ return getComponentNameFromType(type.type) || 'Memo';
649
+
650
+ case REACT_LAZY_TYPE:
651
+ {
652
+ var lazyComponent = type;
653
+ var payload = lazyComponent._payload;
654
+ var init = lazyComponent._init;
655
+
656
+ try {
657
+ return getComponentNameFromType(init(payload));
658
+ } catch (x) {
659
+ return null;
660
+ }
661
+ }
662
+
663
+ // eslint-disable-next-line no-fallthrough
664
+ }
665
+ }
666
+
667
+ return null;
668
+ }
669
+
670
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
671
+
672
+ var RESERVED_PROPS = {
673
+ key: true,
674
+ ref: true,
675
+ __self: true,
676
+ __source: true
677
+ };
678
+ var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
679
+
680
+ {
681
+ didWarnAboutStringRefs = {};
682
+ }
683
+
684
+ function hasValidRef(config) {
685
+ {
686
+ if (hasOwnProperty.call(config, 'ref')) {
687
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
688
+
689
+ if (getter && getter.isReactWarning) {
690
+ return false;
691
+ }
692
+ }
693
+ }
694
+
695
+ return config.ref !== undefined;
696
+ }
697
+
698
+ function hasValidKey(config) {
699
+ {
700
+ if (hasOwnProperty.call(config, 'key')) {
701
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
702
+
703
+ if (getter && getter.isReactWarning) {
704
+ return false;
705
+ }
706
+ }
707
+ }
708
+
709
+ return config.key !== undefined;
710
+ }
711
+
712
+ function defineKeyPropWarningGetter(props, displayName) {
713
+ var warnAboutAccessingKey = function () {
714
+ {
715
+ if (!specialPropKeyWarningShown) {
716
+ specialPropKeyWarningShown = true;
717
+
718
+ 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);
719
+ }
720
+ }
721
+ };
722
+
723
+ warnAboutAccessingKey.isReactWarning = true;
724
+ Object.defineProperty(props, 'key', {
725
+ get: warnAboutAccessingKey,
726
+ configurable: true
727
+ });
728
+ }
729
+
730
+ function defineRefPropWarningGetter(props, displayName) {
731
+ var warnAboutAccessingRef = function () {
732
+ {
733
+ if (!specialPropRefWarningShown) {
734
+ specialPropRefWarningShown = true;
735
+
736
+ 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);
737
+ }
738
+ }
739
+ };
740
+
741
+ warnAboutAccessingRef.isReactWarning = true;
742
+ Object.defineProperty(props, 'ref', {
743
+ get: warnAboutAccessingRef,
744
+ configurable: true
745
+ });
746
+ }
747
+
748
+ function warnIfStringRefCannotBeAutoConverted(config) {
749
+ {
750
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
751
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
752
+
753
+ if (!didWarnAboutStringRefs[componentName]) {
754
+ 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);
755
+
756
+ didWarnAboutStringRefs[componentName] = true;
757
+ }
758
+ }
759
+ }
760
+ }
761
+ /**
762
+ * Factory method to create a new React element. This no longer adheres to
763
+ * the class pattern, so do not use new to call it. Also, instanceof check
764
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
765
+ * if something is a React Element.
766
+ *
767
+ * @param {*} type
768
+ * @param {*} props
769
+ * @param {*} key
770
+ * @param {string|object} ref
771
+ * @param {*} owner
772
+ * @param {*} self A *temporary* helper to detect places where `this` is
773
+ * different from the `owner` when React.createElement is called, so that we
774
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
775
+ * functions, and as long as `this` and owner are the same, there will be no
776
+ * change in behavior.
777
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
778
+ * indicating filename, line number, and/or other information.
779
+ * @internal
780
+ */
781
+
782
+
783
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
784
+ var element = {
785
+ // This tag allows us to uniquely identify this as a React Element
786
+ $$typeof: REACT_ELEMENT_TYPE,
787
+ // Built-in properties that belong on the element
788
+ type: type,
789
+ key: key,
790
+ ref: ref,
791
+ props: props,
792
+ // Record the component responsible for creating this element.
793
+ _owner: owner
794
+ };
795
+
796
+ {
797
+ // The validation flag is currently mutative. We put it on
798
+ // an external backing store so that we can freeze the whole object.
799
+ // This can be replaced with a WeakMap once they are implemented in
800
+ // commonly used development environments.
801
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
802
+ // the validation flag non-enumerable (where possible, which should
803
+ // include every environment we run tests in), so the test framework
804
+ // ignores it.
805
+
806
+ Object.defineProperty(element._store, 'validated', {
807
+ configurable: false,
808
+ enumerable: false,
809
+ writable: true,
810
+ value: false
811
+ }); // self and source are DEV only properties.
812
+
813
+ Object.defineProperty(element, '_self', {
814
+ configurable: false,
815
+ enumerable: false,
816
+ writable: false,
817
+ value: self
818
+ }); // Two elements created in two different places should be considered
819
+ // equal for testing purposes and therefore we hide it from enumeration.
820
+
821
+ Object.defineProperty(element, '_source', {
822
+ configurable: false,
823
+ enumerable: false,
824
+ writable: false,
825
+ value: source
826
+ });
827
+
828
+ if (Object.freeze) {
829
+ Object.freeze(element.props);
830
+ Object.freeze(element);
831
+ }
832
+ }
833
+
834
+ return element;
835
+ };
836
+ /**
837
+ * Create and return a new ReactElement of the given type.
838
+ * See https://reactjs.org/docs/react-api.html#createelement
839
+ */
840
+
841
+ function createElement(type, config, children) {
842
+ var propName; // Reserved names are extracted
843
+
844
+ var props = {};
845
+ var key = null;
846
+ var ref = null;
847
+ var self = null;
848
+ var source = null;
849
+
850
+ if (config != null) {
851
+ if (hasValidRef(config)) {
852
+ ref = config.ref;
853
+
854
+ {
855
+ warnIfStringRefCannotBeAutoConverted(config);
856
+ }
857
+ }
858
+
859
+ if (hasValidKey(config)) {
860
+ {
861
+ checkKeyStringCoercion(config.key);
862
+ }
863
+
864
+ key = '' + config.key;
865
+ }
866
+
867
+ self = config.__self === undefined ? null : config.__self;
868
+ source = config.__source === undefined ? null : config.__source; // Remaining properties are added to a new props object
869
+
870
+ for (propName in config) {
871
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
872
+ props[propName] = config[propName];
873
+ }
874
+ }
875
+ } // Children can be more than one argument, and those are transferred onto
876
+ // the newly allocated props object.
877
+
878
+
879
+ var childrenLength = arguments.length - 2;
880
+
881
+ if (childrenLength === 1) {
882
+ props.children = children;
883
+ } else if (childrenLength > 1) {
884
+ var childArray = Array(childrenLength);
885
+
886
+ for (var i = 0; i < childrenLength; i++) {
887
+ childArray[i] = arguments[i + 2];
888
+ }
889
+
890
+ {
891
+ if (Object.freeze) {
892
+ Object.freeze(childArray);
893
+ }
894
+ }
895
+
896
+ props.children = childArray;
897
+ } // Resolve default props
898
+
899
+
900
+ if (type && type.defaultProps) {
901
+ var defaultProps = type.defaultProps;
902
+
903
+ for (propName in defaultProps) {
904
+ if (props[propName] === undefined) {
905
+ props[propName] = defaultProps[propName];
906
+ }
907
+ }
908
+ }
909
+
910
+ {
911
+ if (key || ref) {
912
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
913
+
914
+ if (key) {
915
+ defineKeyPropWarningGetter(props, displayName);
916
+ }
917
+
918
+ if (ref) {
919
+ defineRefPropWarningGetter(props, displayName);
920
+ }
921
+ }
922
+ }
923
+
924
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
925
+ }
926
+ function cloneAndReplaceKey(oldElement, newKey) {
927
+ var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
928
+ return newElement;
929
+ }
930
+ /**
931
+ * Clone and return a new ReactElement using element as the starting point.
932
+ * See https://reactjs.org/docs/react-api.html#cloneelement
933
+ */
934
+
935
+ function cloneElement(element, config, children) {
936
+ if (element === null || element === undefined) {
937
+ throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
938
+ }
939
+
940
+ var propName; // Original props are copied
941
+
942
+ var props = assign({}, element.props); // Reserved names are extracted
943
+
944
+ var key = element.key;
945
+ var ref = element.ref; // Self is preserved since the owner is preserved.
946
+
947
+ var self = element._self; // Source is preserved since cloneElement is unlikely to be targeted by a
948
+ // transpiler, and the original source is probably a better indicator of the
949
+ // true owner.
950
+
951
+ var source = element._source; // Owner will be preserved, unless ref is overridden
952
+
953
+ var owner = element._owner;
954
+
955
+ if (config != null) {
956
+ if (hasValidRef(config)) {
957
+ // Silently steal the ref from the parent.
958
+ ref = config.ref;
959
+ owner = ReactCurrentOwner.current;
960
+ }
961
+
962
+ if (hasValidKey(config)) {
963
+ {
964
+ checkKeyStringCoercion(config.key);
965
+ }
966
+
967
+ key = '' + config.key;
968
+ } // Remaining properties override existing props
969
+
970
+
971
+ var defaultProps;
972
+
973
+ if (element.type && element.type.defaultProps) {
974
+ defaultProps = element.type.defaultProps;
975
+ }
976
+
977
+ for (propName in config) {
978
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
979
+ if (config[propName] === undefined && defaultProps !== undefined) {
980
+ // Resolve default props
981
+ props[propName] = defaultProps[propName];
982
+ } else {
983
+ props[propName] = config[propName];
984
+ }
985
+ }
986
+ }
987
+ } // Children can be more than one argument, and those are transferred onto
988
+ // the newly allocated props object.
989
+
990
+
991
+ var childrenLength = arguments.length - 2;
992
+
993
+ if (childrenLength === 1) {
994
+ props.children = children;
995
+ } else if (childrenLength > 1) {
996
+ var childArray = Array(childrenLength);
997
+
998
+ for (var i = 0; i < childrenLength; i++) {
999
+ childArray[i] = arguments[i + 2];
1000
+ }
1001
+
1002
+ props.children = childArray;
1003
+ }
1004
+
1005
+ return ReactElement(element.type, key, ref, self, source, owner, props);
1006
+ }
1007
+ /**
1008
+ * Verifies the object is a ReactElement.
1009
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
1010
+ * @param {?object} object
1011
+ * @return {boolean} True if `object` is a ReactElement.
1012
+ * @final
1013
+ */
1014
+
1015
+ function isValidElement(object) {
1016
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1017
+ }
1018
+
1019
+ var SEPARATOR = '.';
1020
+ var SUBSEPARATOR = ':';
1021
+ /**
1022
+ * Escape and wrap key so it is safe to use as a reactid
1023
+ *
1024
+ * @param {string} key to be escaped.
1025
+ * @return {string} the escaped key.
1026
+ */
1027
+
1028
+ function escape(key) {
1029
+ var escapeRegex = /[=:]/g;
1030
+ var escaperLookup = {
1031
+ '=': '=0',
1032
+ ':': '=2'
1033
+ };
1034
+ var escapedString = key.replace(escapeRegex, function (match) {
1035
+ return escaperLookup[match];
1036
+ });
1037
+ return '$' + escapedString;
1038
+ }
1039
+ /**
1040
+ * TODO: Test that a single child and an array with one item have the same key
1041
+ * pattern.
1042
+ */
1043
+
1044
+
1045
+ var didWarnAboutMaps = false;
1046
+ var userProvidedKeyEscapeRegex = /\/+/g;
1047
+
1048
+ function escapeUserProvidedKey(text) {
1049
+ return text.replace(userProvidedKeyEscapeRegex, '$&/');
1050
+ }
1051
+ /**
1052
+ * Generate a key string that identifies a element within a set.
1053
+ *
1054
+ * @param {*} element A element that could contain a manual key.
1055
+ * @param {number} index Index that is used if a manual key is not provided.
1056
+ * @return {string}
1057
+ */
1058
+
1059
+
1060
+ function getElementKey(element, index) {
1061
+ // Do some typechecking here since we call this blindly. We want to ensure
1062
+ // that we don't block potential future ES APIs.
1063
+ if (typeof element === 'object' && element !== null && element.key != null) {
1064
+ // Explicit key
1065
+ {
1066
+ checkKeyStringCoercion(element.key);
1067
+ }
1068
+
1069
+ return escape('' + element.key);
1070
+ } // Implicit key determined by the index in the set
1071
+
1072
+
1073
+ return index.toString(36);
1074
+ }
1075
+
1076
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1077
+ var type = typeof children;
1078
+
1079
+ if (type === 'undefined' || type === 'boolean') {
1080
+ // All of the above are perceived as null.
1081
+ children = null;
1082
+ }
1083
+
1084
+ var invokeCallback = false;
1085
+
1086
+ if (children === null) {
1087
+ invokeCallback = true;
1088
+ } else {
1089
+ switch (type) {
1090
+ case 'string':
1091
+ case 'number':
1092
+ invokeCallback = true;
1093
+ break;
1094
+
1095
+ case 'object':
1096
+ switch (children.$$typeof) {
1097
+ case REACT_ELEMENT_TYPE:
1098
+ case REACT_PORTAL_TYPE:
1099
+ invokeCallback = true;
1100
+ }
1101
+
1102
+ }
1103
+ }
1104
+
1105
+ if (invokeCallback) {
1106
+ var _child = children;
1107
+ var mappedChild = callback(_child); // If it's the only child, treat the name as if it was wrapped in an array
1108
+ // so that it's consistent if the number of children grows:
1109
+
1110
+ var childKey = nameSoFar === '' ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1111
+
1112
+ if (isArray(mappedChild)) {
1113
+ var escapedChildKey = '';
1114
+
1115
+ if (childKey != null) {
1116
+ escapedChildKey = escapeUserProvidedKey(childKey) + '/';
1117
+ }
1118
+
1119
+ mapIntoArray(mappedChild, array, escapedChildKey, '', function (c) {
1120
+ return c;
1121
+ });
1122
+ } else if (mappedChild != null) {
1123
+ if (isValidElement(mappedChild)) {
1124
+ {
1125
+ // The `if` statement here prevents auto-disabling of the safe
1126
+ // coercion ESLint rule, so we must manually disable it below.
1127
+ // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1128
+ if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
1129
+ checkKeyStringCoercion(mappedChild.key);
1130
+ }
1131
+ }
1132
+
1133
+ mappedChild = cloneAndReplaceKey(mappedChild, // Keep both the (mapped) and old keys if they differ, just as
1134
+ // traverseAllChildren used to do for objects as children
1135
+ escapedPrefix + ( // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1136
+ mappedChild.key && (!_child || _child.key !== mappedChild.key) ? // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1137
+ // eslint-disable-next-line react-internal/safe-string-coercion
1138
+ escapeUserProvidedKey('' + mappedChild.key) + '/' : '') + childKey);
1139
+ }
1140
+
1141
+ array.push(mappedChild);
1142
+ }
1143
+
1144
+ return 1;
1145
+ }
1146
+
1147
+ var child;
1148
+ var nextName;
1149
+ var subtreeCount = 0; // Count of children found in the current subtree.
1150
+
1151
+ var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1152
+
1153
+ if (isArray(children)) {
1154
+ for (var i = 0; i < children.length; i++) {
1155
+ child = children[i];
1156
+ nextName = nextNamePrefix + getElementKey(child, i);
1157
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1158
+ }
1159
+ } else {
1160
+ var iteratorFn = getIteratorFn(children);
1161
+
1162
+ if (typeof iteratorFn === 'function') {
1163
+ var iterableChildren = children;
1164
+
1165
+ {
1166
+ // Warn about using Maps as children
1167
+ if (iteratorFn === iterableChildren.entries) {
1168
+ if (!didWarnAboutMaps) {
1169
+ warn('Using Maps as children is not supported. ' + 'Use an array of keyed ReactElements instead.');
1170
+ }
1171
+
1172
+ didWarnAboutMaps = true;
1173
+ }
1174
+ }
1175
+
1176
+ var iterator = iteratorFn.call(iterableChildren);
1177
+ var step;
1178
+ var ii = 0;
1179
+
1180
+ while (!(step = iterator.next()).done) {
1181
+ child = step.value;
1182
+ nextName = nextNamePrefix + getElementKey(child, ii++);
1183
+ subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1184
+ }
1185
+ } else if (type === 'object') {
1186
+ // eslint-disable-next-line react-internal/safe-string-coercion
1187
+ var childrenString = String(children);
1188
+ 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.');
1189
+ }
1190
+ }
1191
+
1192
+ return subtreeCount;
1193
+ }
1194
+
1195
+ /**
1196
+ * Maps children that are typically specified as `props.children`.
1197
+ *
1198
+ * See https://reactjs.org/docs/react-api.html#reactchildrenmap
1199
+ *
1200
+ * The provided mapFunction(child, index) will be called for each
1201
+ * leaf child.
1202
+ *
1203
+ * @param {?*} children Children tree container.
1204
+ * @param {function(*, int)} func The map function.
1205
+ * @param {*} context Context for mapFunction.
1206
+ * @return {object} Object containing the ordered map of results.
1207
+ */
1208
+ function mapChildren(children, func, context) {
1209
+ if (children == null) {
1210
+ return children;
1211
+ }
1212
+
1213
+ var result = [];
1214
+ var count = 0;
1215
+ mapIntoArray(children, result, '', '', function (child) {
1216
+ return func.call(context, child, count++);
1217
+ });
1218
+ return result;
1219
+ }
1220
+ /**
1221
+ * Count the number of children that are typically specified as
1222
+ * `props.children`.
1223
+ *
1224
+ * See https://reactjs.org/docs/react-api.html#reactchildrencount
1225
+ *
1226
+ * @param {?*} children Children tree container.
1227
+ * @return {number} The number of children.
1228
+ */
1229
+
1230
+
1231
+ function countChildren(children) {
1232
+ var n = 0;
1233
+ mapChildren(children, function () {
1234
+ n++; // Don't return anything
1235
+ });
1236
+ return n;
1237
+ }
1238
+
1239
+ /**
1240
+ * Iterates through children that are typically specified as `props.children`.
1241
+ *
1242
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
1243
+ *
1244
+ * The provided forEachFunc(child, index) will be called for each
1245
+ * leaf child.
1246
+ *
1247
+ * @param {?*} children Children tree container.
1248
+ * @param {function(*, int)} forEachFunc
1249
+ * @param {*} forEachContext Context for forEachContext.
1250
+ */
1251
+ function forEachChildren(children, forEachFunc, forEachContext) {
1252
+ mapChildren(children, function () {
1253
+ forEachFunc.apply(this, arguments); // Don't return anything.
1254
+ }, forEachContext);
1255
+ }
1256
+ /**
1257
+ * Flatten a children object (typically specified as `props.children`) and
1258
+ * return an array with appropriately re-keyed children.
1259
+ *
1260
+ * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
1261
+ */
1262
+
1263
+
1264
+ function toArray(children) {
1265
+ return mapChildren(children, function (child) {
1266
+ return child;
1267
+ }) || [];
1268
+ }
1269
+ /**
1270
+ * Returns the first child in a collection of children and verifies that there
1271
+ * is only one child in the collection.
1272
+ *
1273
+ * See https://reactjs.org/docs/react-api.html#reactchildrenonly
1274
+ *
1275
+ * The current implementation of this function assumes that a single child gets
1276
+ * passed without a wrapper, but the purpose of this helper function is to
1277
+ * abstract away the particular structure of children.
1278
+ *
1279
+ * @param {?object} children Child collection structure.
1280
+ * @return {ReactElement} The first and only `ReactElement` contained in the
1281
+ * structure.
1282
+ */
1283
+
1284
+
1285
+ function onlyChild(children) {
1286
+ if (!isValidElement(children)) {
1287
+ throw new Error('React.Children.only expected to receive a single React element child.');
1288
+ }
1289
+
1290
+ return children;
1291
+ }
1292
+
1293
+ function createContext(defaultValue) {
1294
+ // TODO: Second argument used to be an optional `calculateChangedBits`
1295
+ // function. Warn to reserve for future use?
1296
+ var context = {
1297
+ $$typeof: REACT_CONTEXT_TYPE,
1298
+ // As a workaround to support multiple concurrent renderers, we categorize
1299
+ // some renderers as primary and others as secondary. We only expect
1300
+ // there to be two concurrent renderers at most: React Native (primary) and
1301
+ // Fabric (secondary); React DOM (primary) and React ART (secondary).
1302
+ // Secondary renderers store their context values on separate fields.
1303
+ _currentValue: defaultValue,
1304
+ _currentValue2: defaultValue,
1305
+ // Used to track how many concurrent renderers this context currently
1306
+ // supports within in a single renderer. Such as parallel server rendering.
1307
+ _threadCount: 0,
1308
+ // These are circular
1309
+ Provider: null,
1310
+ Consumer: null,
1311
+ // Add these to use same hidden class in VM as ServerContext
1312
+ _defaultValue: null,
1313
+ _globalName: null
1314
+ };
1315
+ context.Provider = {
1316
+ $$typeof: REACT_PROVIDER_TYPE,
1317
+ _context: context
1318
+ };
1319
+ var hasWarnedAboutUsingNestedContextConsumers = false;
1320
+ var hasWarnedAboutUsingConsumerProvider = false;
1321
+ var hasWarnedAboutDisplayNameOnConsumer = false;
1322
+
1323
+ {
1324
+ // A separate object, but proxies back to the original context object for
1325
+ // backwards compatibility. It has a different $$typeof, so we can properly
1326
+ // warn for the incorrect usage of Context as a Consumer.
1327
+ var Consumer = {
1328
+ $$typeof: REACT_CONTEXT_TYPE,
1329
+ _context: context
1330
+ }; // $FlowFixMe: Flow complains about not setting a value, which is intentional here
1331
+
1332
+ Object.defineProperties(Consumer, {
1333
+ Provider: {
1334
+ get: function () {
1335
+ if (!hasWarnedAboutUsingConsumerProvider) {
1336
+ hasWarnedAboutUsingConsumerProvider = true;
1337
+
1338
+ 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?');
1339
+ }
1340
+
1341
+ return context.Provider;
1342
+ },
1343
+ set: function (_Provider) {
1344
+ context.Provider = _Provider;
1345
+ }
1346
+ },
1347
+ _currentValue: {
1348
+ get: function () {
1349
+ return context._currentValue;
1350
+ },
1351
+ set: function (_currentValue) {
1352
+ context._currentValue = _currentValue;
1353
+ }
1354
+ },
1355
+ _currentValue2: {
1356
+ get: function () {
1357
+ return context._currentValue2;
1358
+ },
1359
+ set: function (_currentValue2) {
1360
+ context._currentValue2 = _currentValue2;
1361
+ }
1362
+ },
1363
+ _threadCount: {
1364
+ get: function () {
1365
+ return context._threadCount;
1366
+ },
1367
+ set: function (_threadCount) {
1368
+ context._threadCount = _threadCount;
1369
+ }
1370
+ },
1371
+ Consumer: {
1372
+ get: function () {
1373
+ if (!hasWarnedAboutUsingNestedContextConsumers) {
1374
+ hasWarnedAboutUsingNestedContextConsumers = true;
1375
+
1376
+ 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?');
1377
+ }
1378
+
1379
+ return context.Consumer;
1380
+ }
1381
+ },
1382
+ displayName: {
1383
+ get: function () {
1384
+ return context.displayName;
1385
+ },
1386
+ set: function (displayName) {
1387
+ if (!hasWarnedAboutDisplayNameOnConsumer) {
1388
+ warn('Setting `displayName` on Context.Consumer has no effect. ' + "You should set it directly on the context with Context.displayName = '%s'.", displayName);
1389
+
1390
+ hasWarnedAboutDisplayNameOnConsumer = true;
1391
+ }
1392
+ }
1393
+ }
1394
+ }); // $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
1395
+
1396
+ context.Consumer = Consumer;
1397
+ }
1398
+
1399
+ {
1400
+ context._currentRenderer = null;
1401
+ context._currentRenderer2 = null;
1402
+ }
1403
+
1404
+ return context;
1405
+ }
1406
+
1407
+ var Uninitialized = -1;
1408
+ var Pending = 0;
1409
+ var Resolved = 1;
1410
+ var Rejected = 2;
1411
+
1412
+ function lazyInitializer(payload) {
1413
+ if (payload._status === Uninitialized) {
1414
+ var ctor = payload._result;
1415
+ var thenable = ctor(); // Transition to the next state.
1416
+ // This might throw either because it's missing or throws. If so, we treat it
1417
+ // as still uninitialized and try again next time. Which is the same as what
1418
+ // happens if the ctor or any wrappers processing the ctor throws. This might
1419
+ // end up fixing it if the resolution was a concurrency bug.
1420
+
1421
+ thenable.then(function (moduleObject) {
1422
+ if (payload._status === Pending || payload._status === Uninitialized) {
1423
+ // Transition to the next state.
1424
+ var resolved = payload;
1425
+ resolved._status = Resolved;
1426
+ resolved._result = moduleObject;
1427
+ }
1428
+ }, function (error) {
1429
+ if (payload._status === Pending || payload._status === Uninitialized) {
1430
+ // Transition to the next state.
1431
+ var rejected = payload;
1432
+ rejected._status = Rejected;
1433
+ rejected._result = error;
1434
+ }
1435
+ });
1436
+
1437
+ if (payload._status === Uninitialized) {
1438
+ // In case, we're still uninitialized, then we're waiting for the thenable
1439
+ // to resolve. Set it as pending in the meantime.
1440
+ var pending = payload;
1441
+ pending._status = Pending;
1442
+ pending._result = thenable;
1443
+ }
1444
+ }
1445
+
1446
+ if (payload._status === Resolved) {
1447
+ var moduleObject = payload._result;
1448
+
1449
+ {
1450
+ if (moduleObject === undefined) {
1451
+ 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.
1452
+ 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))\n\n" + 'Did you accidentally put curly braces around the import?', moduleObject);
1453
+ }
1454
+ }
1455
+
1456
+ {
1457
+ if (!('default' in moduleObject)) {
1458
+ 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.
1459
+ 'const MyComponent = lazy(() => imp' + "ort('./MyComponent'))", moduleObject);
1460
+ }
1461
+ }
1462
+
1463
+ return moduleObject.default;
1464
+ } else {
1465
+ throw payload._result;
1466
+ }
1467
+ }
1468
+
1469
+ function lazy(ctor) {
1470
+ var payload = {
1471
+ // We use these fields to store the result.
1472
+ _status: Uninitialized,
1473
+ _result: ctor
1474
+ };
1475
+ var lazyType = {
1476
+ $$typeof: REACT_LAZY_TYPE,
1477
+ _payload: payload,
1478
+ _init: lazyInitializer
1479
+ };
1480
+
1481
+ {
1482
+ // In production, this would just set it on the object.
1483
+ var defaultProps;
1484
+ var propTypes; // $FlowFixMe
1485
+
1486
+ Object.defineProperties(lazyType, {
1487
+ defaultProps: {
1488
+ configurable: true,
1489
+ get: function () {
1490
+ return defaultProps;
1491
+ },
1492
+ set: function (newDefaultProps) {
1493
+ 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.');
1494
+
1495
+ defaultProps = newDefaultProps; // Match production behavior more closely:
1496
+ // $FlowFixMe
1497
+
1498
+ Object.defineProperty(lazyType, 'defaultProps', {
1499
+ enumerable: true
1500
+ });
1501
+ }
1502
+ },
1503
+ propTypes: {
1504
+ configurable: true,
1505
+ get: function () {
1506
+ return propTypes;
1507
+ },
1508
+ set: function (newPropTypes) {
1509
+ 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.');
1510
+
1511
+ propTypes = newPropTypes; // Match production behavior more closely:
1512
+ // $FlowFixMe
1513
+
1514
+ Object.defineProperty(lazyType, 'propTypes', {
1515
+ enumerable: true
1516
+ });
1517
+ }
1518
+ }
1519
+ });
1520
+ }
1521
+
1522
+ return lazyType;
1523
+ }
1524
+
1525
+ function forwardRef(render) {
1526
+ {
1527
+ if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1528
+ error('forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
1529
+ } else if (typeof render !== 'function') {
1530
+ error('forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
1531
+ } else {
1532
+ if (render.length !== 0 && render.length !== 2) {
1533
+ 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.');
1534
+ }
1535
+ }
1536
+
1537
+ if (render != null) {
1538
+ if (render.defaultProps != null || render.propTypes != null) {
1539
+ error('forwardRef render functions do not support propTypes or defaultProps. ' + 'Did you accidentally pass a React component?');
1540
+ }
1541
+ }
1542
+ }
1543
+
1544
+ var elementType = {
1545
+ $$typeof: REACT_FORWARD_REF_TYPE,
1546
+ render: render
1547
+ };
1548
+
1549
+ {
1550
+ var ownName;
1551
+ Object.defineProperty(elementType, 'displayName', {
1552
+ enumerable: false,
1553
+ configurable: true,
1554
+ get: function () {
1555
+ return ownName;
1556
+ },
1557
+ set: function (name) {
1558
+ ownName = name; // The inner component shouldn't inherit this display name in most cases,
1559
+ // because the component may be used elsewhere.
1560
+ // But it's nice for anonymous functions to inherit the name,
1561
+ // so that our component-stack generation logic will display their frames.
1562
+ // An anonymous function generally suggests a pattern like:
1563
+ // React.forwardRef((props, ref) => {...});
1564
+ // This kind of inner function is not used elsewhere so the side effect is okay.
1565
+
1566
+ if (!render.name && !render.displayName) {
1567
+ render.displayName = name;
1568
+ }
1569
+ }
1570
+ });
1571
+ }
1572
+
1573
+ return elementType;
1574
+ }
1575
+
1576
+ var REACT_MODULE_REFERENCE;
1577
+
1578
+ {
1579
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1580
+ }
1581
+
1582
+ function isValidElementType(type) {
1583
+ if (typeof type === 'string' || typeof type === 'function') {
1584
+ return true;
1585
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1586
+
1587
+
1588
+ 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 ) {
1589
+ return true;
1590
+ }
1591
+
1592
+ if (typeof type === 'object' && type !== null) {
1593
+ 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
1594
+ // types supported by any Flight configuration anywhere since
1595
+ // we don't know which Flight build this will end up being used
1596
+ // with.
1597
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1598
+ return true;
1599
+ }
1600
+ }
1601
+
1602
+ return false;
1603
+ }
1604
+
1605
+ function memo(type, compare) {
1606
+ {
1607
+ if (!isValidElementType(type)) {
1608
+ error('memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
1609
+ }
1610
+ }
1611
+
1612
+ var elementType = {
1613
+ $$typeof: REACT_MEMO_TYPE,
1614
+ type: type,
1615
+ compare: compare === undefined ? null : compare
1616
+ };
1617
+
1618
+ {
1619
+ var ownName;
1620
+ Object.defineProperty(elementType, 'displayName', {
1621
+ enumerable: false,
1622
+ configurable: true,
1623
+ get: function () {
1624
+ return ownName;
1625
+ },
1626
+ set: function (name) {
1627
+ ownName = name; // The inner component shouldn't inherit this display name in most cases,
1628
+ // because the component may be used elsewhere.
1629
+ // But it's nice for anonymous functions to inherit the name,
1630
+ // so that our component-stack generation logic will display their frames.
1631
+ // An anonymous function generally suggests a pattern like:
1632
+ // React.memo((props) => {...});
1633
+ // This kind of inner function is not used elsewhere so the side effect is okay.
1634
+
1635
+ if (!type.name && !type.displayName) {
1636
+ type.displayName = name;
1637
+ }
1638
+ }
1639
+ });
1640
+ }
1641
+
1642
+ return elementType;
1643
+ }
1644
+
1645
+ function resolveDispatcher() {
1646
+ var dispatcher = ReactCurrentDispatcher.current;
1647
+
1648
+ {
1649
+ if (dispatcher === null) {
1650
+ 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.');
1651
+ }
1652
+ } // Will result in a null access error if accessed outside render phase. We
1653
+ // intentionally don't throw our own error because this is in a hot path.
1654
+ // Also helps ensure this is inlined.
1655
+
1656
+
1657
+ return dispatcher;
1658
+ }
1659
+ function useContext(Context) {
1660
+ var dispatcher = resolveDispatcher();
1661
+
1662
+ {
1663
+ // TODO: add a more generic warning for invalid values.
1664
+ if (Context._context !== undefined) {
1665
+ var realContext = Context._context; // Don't deduplicate because this legitimately causes bugs
1666
+ // and nobody should be using this in existing code.
1667
+
1668
+ if (realContext.Consumer === Context) {
1669
+ 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?');
1670
+ } else if (realContext.Provider === Context) {
1671
+ error('Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
1672
+ }
1673
+ }
1674
+ }
1675
+
1676
+ return dispatcher.useContext(Context);
1677
+ }
1678
+ function useState(initialState) {
1679
+ var dispatcher = resolveDispatcher();
1680
+ return dispatcher.useState(initialState);
1681
+ }
1682
+ function useReducer(reducer, initialArg, init) {
1683
+ var dispatcher = resolveDispatcher();
1684
+ return dispatcher.useReducer(reducer, initialArg, init);
1685
+ }
1686
+ function useRef(initialValue) {
1687
+ var dispatcher = resolveDispatcher();
1688
+ return dispatcher.useRef(initialValue);
1689
+ }
1690
+ function useEffect(create, deps) {
1691
+ var dispatcher = resolveDispatcher();
1692
+ return dispatcher.useEffect(create, deps);
1693
+ }
1694
+ function useInsertionEffect(create, deps) {
1695
+ var dispatcher = resolveDispatcher();
1696
+ return dispatcher.useInsertionEffect(create, deps);
1697
+ }
1698
+ function useLayoutEffect(create, deps) {
1699
+ var dispatcher = resolveDispatcher();
1700
+ return dispatcher.useLayoutEffect(create, deps);
1701
+ }
1702
+ function useCallback(callback, deps) {
1703
+ var dispatcher = resolveDispatcher();
1704
+ return dispatcher.useCallback(callback, deps);
1705
+ }
1706
+ function useMemo(create, deps) {
1707
+ var dispatcher = resolveDispatcher();
1708
+ return dispatcher.useMemo(create, deps);
1709
+ }
1710
+ function useImperativeHandle(ref, create, deps) {
1711
+ var dispatcher = resolveDispatcher();
1712
+ return dispatcher.useImperativeHandle(ref, create, deps);
1713
+ }
1714
+ function useDebugValue(value, formatterFn) {
1715
+ {
1716
+ var dispatcher = resolveDispatcher();
1717
+ return dispatcher.useDebugValue(value, formatterFn);
1718
+ }
1719
+ }
1720
+ function useTransition() {
1721
+ var dispatcher = resolveDispatcher();
1722
+ return dispatcher.useTransition();
1723
+ }
1724
+ function useDeferredValue(value) {
1725
+ var dispatcher = resolveDispatcher();
1726
+ return dispatcher.useDeferredValue(value);
1727
+ }
1728
+ function useId() {
1729
+ var dispatcher = resolveDispatcher();
1730
+ return dispatcher.useId();
1731
+ }
1732
+ function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1733
+ var dispatcher = resolveDispatcher();
1734
+ return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1735
+ }
1736
+
1737
+ // Helpers to patch console.logs to avoid logging during side-effect free
1738
+ // replaying on render function. This currently only patches the object
1739
+ // lazily which won't cover if the log function was extracted eagerly.
1740
+ // We could also eagerly patch the method.
1741
+ var disabledDepth = 0;
1742
+ var prevLog;
1743
+ var prevInfo;
1744
+ var prevWarn;
1745
+ var prevError;
1746
+ var prevGroup;
1747
+ var prevGroupCollapsed;
1748
+ var prevGroupEnd;
1749
+
1750
+ function disabledLog() {}
1751
+
1752
+ disabledLog.__reactDisabledLog = true;
1753
+ function disableLogs() {
1754
+ {
1755
+ if (disabledDepth === 0) {
1756
+ /* eslint-disable react-internal/no-production-logging */
1757
+ prevLog = console.log;
1758
+ prevInfo = console.info;
1759
+ prevWarn = console.warn;
1760
+ prevError = console.error;
1761
+ prevGroup = console.group;
1762
+ prevGroupCollapsed = console.groupCollapsed;
1763
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
1764
+
1765
+ var props = {
1766
+ configurable: true,
1767
+ enumerable: true,
1768
+ value: disabledLog,
1769
+ writable: true
1770
+ }; // $FlowFixMe Flow thinks console is immutable.
1771
+
1772
+ Object.defineProperties(console, {
1773
+ info: props,
1774
+ log: props,
1775
+ warn: props,
1776
+ error: props,
1777
+ group: props,
1778
+ groupCollapsed: props,
1779
+ groupEnd: props
1780
+ });
1781
+ /* eslint-enable react-internal/no-production-logging */
1782
+ }
1783
+
1784
+ disabledDepth++;
1785
+ }
1786
+ }
1787
+ function reenableLogs() {
1788
+ {
1789
+ disabledDepth--;
1790
+
1791
+ if (disabledDepth === 0) {
1792
+ /* eslint-disable react-internal/no-production-logging */
1793
+ var props = {
1794
+ configurable: true,
1795
+ enumerable: true,
1796
+ writable: true
1797
+ }; // $FlowFixMe Flow thinks console is immutable.
1798
+
1799
+ Object.defineProperties(console, {
1800
+ log: assign({}, props, {
1801
+ value: prevLog
1802
+ }),
1803
+ info: assign({}, props, {
1804
+ value: prevInfo
1805
+ }),
1806
+ warn: assign({}, props, {
1807
+ value: prevWarn
1808
+ }),
1809
+ error: assign({}, props, {
1810
+ value: prevError
1811
+ }),
1812
+ group: assign({}, props, {
1813
+ value: prevGroup
1814
+ }),
1815
+ groupCollapsed: assign({}, props, {
1816
+ value: prevGroupCollapsed
1817
+ }),
1818
+ groupEnd: assign({}, props, {
1819
+ value: prevGroupEnd
1820
+ })
1821
+ });
1822
+ /* eslint-enable react-internal/no-production-logging */
1823
+ }
1824
+
1825
+ if (disabledDepth < 0) {
1826
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
1827
+ }
1828
+ }
1829
+ }
1830
+
1831
+ var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1832
+ var prefix;
1833
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
1834
+ {
1835
+ if (prefix === undefined) {
1836
+ // Extract the VM specific prefix used by each line.
1837
+ try {
1838
+ throw Error();
1839
+ } catch (x) {
1840
+ var match = x.stack.trim().match(/\n( *(at )?)/);
1841
+ prefix = match && match[1] || '';
1842
+ }
1843
+ } // We use the prefix to ensure our stacks line up with native stack frames.
1844
+
1845
+
1846
+ return '\n' + prefix + name;
1847
+ }
1848
+ }
1849
+ var reentry = false;
1850
+ var componentFrameCache;
1851
+
1852
+ {
1853
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
1854
+ componentFrameCache = new PossiblyWeakMap();
1855
+ }
1856
+
1857
+ function describeNativeComponentFrame(fn, construct) {
1858
+ // If something asked for a stack inside a fake render, it should get ignored.
1859
+ if ( !fn || reentry) {
1860
+ return '';
1861
+ }
1862
+
1863
+ {
1864
+ var frame = componentFrameCache.get(fn);
1865
+
1866
+ if (frame !== undefined) {
1867
+ return frame;
1868
+ }
1869
+ }
1870
+
1871
+ var control;
1872
+ reentry = true;
1873
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
1874
+
1875
+ Error.prepareStackTrace = undefined;
1876
+ var previousDispatcher;
1877
+
1878
+ {
1879
+ previousDispatcher = ReactCurrentDispatcher$1.current; // Set the dispatcher in DEV because this might be call in the render function
1880
+ // for warnings.
1881
+
1882
+ ReactCurrentDispatcher$1.current = null;
1883
+ disableLogs();
1884
+ }
1885
+
1886
+ try {
1887
+ // This should throw.
1888
+ if (construct) {
1889
+ // Something should be setting the props in the constructor.
1890
+ var Fake = function () {
1891
+ throw Error();
1892
+ }; // $FlowFixMe
1893
+
1894
+
1895
+ Object.defineProperty(Fake.prototype, 'props', {
1896
+ set: function () {
1897
+ // We use a throwing setter instead of frozen or non-writable props
1898
+ // because that won't throw in a non-strict mode function.
1899
+ throw Error();
1900
+ }
1901
+ });
1902
+
1903
+ if (typeof Reflect === 'object' && Reflect.construct) {
1904
+ // We construct a different control for this case to include any extra
1905
+ // frames added by the construct call.
1906
+ try {
1907
+ Reflect.construct(Fake, []);
1908
+ } catch (x) {
1909
+ control = x;
1910
+ }
1911
+
1912
+ Reflect.construct(fn, [], Fake);
1913
+ } else {
1914
+ try {
1915
+ Fake.call();
1916
+ } catch (x) {
1917
+ control = x;
1918
+ }
1919
+
1920
+ fn.call(Fake.prototype);
1921
+ }
1922
+ } else {
1923
+ try {
1924
+ throw Error();
1925
+ } catch (x) {
1926
+ control = x;
1927
+ }
1928
+
1929
+ fn();
1930
+ }
1931
+ } catch (sample) {
1932
+ // This is inlined manually because closure doesn't do it for us.
1933
+ if (sample && control && typeof sample.stack === 'string') {
1934
+ // This extracts the first frame from the sample that isn't also in the control.
1935
+ // Skipping one frame that we assume is the frame that calls the two.
1936
+ var sampleLines = sample.stack.split('\n');
1937
+ var controlLines = control.stack.split('\n');
1938
+ var s = sampleLines.length - 1;
1939
+ var c = controlLines.length - 1;
1940
+
1941
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1942
+ // We expect at least one stack frame to be shared.
1943
+ // Typically this will be the root most one. However, stack frames may be
1944
+ // cut off due to maximum stack limits. In this case, one maybe cut off
1945
+ // earlier than the other. We assume that the sample is longer or the same
1946
+ // and there for cut off earlier. So we should find the root most frame in
1947
+ // the sample somewhere in the control.
1948
+ c--;
1949
+ }
1950
+
1951
+ for (; s >= 1 && c >= 0; s--, c--) {
1952
+ // Next we find the first one that isn't the same which should be the
1953
+ // frame that called our sample function and the control.
1954
+ if (sampleLines[s] !== controlLines[c]) {
1955
+ // In V8, the first line is describing the message but other VMs don't.
1956
+ // If we're about to return the first line, and the control is also on the same
1957
+ // line, that's a pretty good indicator that our sample threw at same line as
1958
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
1959
+ // This can happen if you passed a class to function component, or non-function.
1960
+ if (s !== 1 || c !== 1) {
1961
+ do {
1962
+ s--;
1963
+ c--; // We may still have similar intermediate frames from the construct call.
1964
+ // The next one that isn't the same should be our match though.
1965
+
1966
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
1967
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
1968
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
1969
+ // but we have a user-provided "displayName"
1970
+ // splice it in to make the stack more readable.
1971
+
1972
+
1973
+ if (fn.displayName && _frame.includes('<anonymous>')) {
1974
+ _frame = _frame.replace('<anonymous>', fn.displayName);
1975
+ }
1976
+
1977
+ {
1978
+ if (typeof fn === 'function') {
1979
+ componentFrameCache.set(fn, _frame);
1980
+ }
1981
+ } // Return the line we found.
1982
+
1983
+
1984
+ return _frame;
1985
+ }
1986
+ } while (s >= 1 && c >= 0);
1987
+ }
1988
+
1989
+ break;
1990
+ }
1991
+ }
1992
+ }
1993
+ } finally {
1994
+ reentry = false;
1995
+
1996
+ {
1997
+ ReactCurrentDispatcher$1.current = previousDispatcher;
1998
+ reenableLogs();
1999
+ }
2000
+
2001
+ Error.prepareStackTrace = previousPrepareStackTrace;
2002
+ } // Fallback to just using the name if we couldn't make it throw.
2003
+
2004
+
2005
+ var name = fn ? fn.displayName || fn.name : '';
2006
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
2007
+
2008
+ {
2009
+ if (typeof fn === 'function') {
2010
+ componentFrameCache.set(fn, syntheticFrame);
2011
+ }
2012
+ }
2013
+
2014
+ return syntheticFrame;
2015
+ }
2016
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
2017
+ {
2018
+ return describeNativeComponentFrame(fn, false);
2019
+ }
2020
+ }
2021
+
2022
+ function shouldConstruct(Component) {
2023
+ var prototype = Component.prototype;
2024
+ return !!(prototype && prototype.isReactComponent);
2025
+ }
2026
+
2027
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2028
+
2029
+ if (type == null) {
2030
+ return '';
2031
+ }
2032
+
2033
+ if (typeof type === 'function') {
2034
+ {
2035
+ return describeNativeComponentFrame(type, shouldConstruct(type));
2036
+ }
2037
+ }
2038
+
2039
+ if (typeof type === 'string') {
2040
+ return describeBuiltInComponentFrame(type);
2041
+ }
2042
+
2043
+ switch (type) {
2044
+ case REACT_SUSPENSE_TYPE:
2045
+ return describeBuiltInComponentFrame('Suspense');
2046
+
2047
+ case REACT_SUSPENSE_LIST_TYPE:
2048
+ return describeBuiltInComponentFrame('SuspenseList');
2049
+ }
2050
+
2051
+ if (typeof type === 'object') {
2052
+ switch (type.$$typeof) {
2053
+ case REACT_FORWARD_REF_TYPE:
2054
+ return describeFunctionComponentFrame(type.render);
2055
+
2056
+ case REACT_MEMO_TYPE:
2057
+ // Memo may contain any component type so we recursively resolve it.
2058
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2059
+
2060
+ case REACT_LAZY_TYPE:
2061
+ {
2062
+ var lazyComponent = type;
2063
+ var payload = lazyComponent._payload;
2064
+ var init = lazyComponent._init;
2065
+
2066
+ try {
2067
+ // Lazy may contain any component type so we recursively resolve it.
2068
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2069
+ } catch (x) {}
2070
+ }
2071
+ }
2072
+ }
2073
+
2074
+ return '';
2075
+ }
2076
+
2077
+ var loggedTypeFailures = {};
2078
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2079
+
2080
+ function setCurrentlyValidatingElement(element) {
2081
+ {
2082
+ if (element) {
2083
+ var owner = element._owner;
2084
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2085
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2086
+ } else {
2087
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2088
+ }
2089
+ }
2090
+ }
2091
+
2092
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
2093
+ {
2094
+ // $FlowFixMe This is okay but Flow doesn't know it.
2095
+ var has = Function.call.bind(hasOwnProperty);
2096
+
2097
+ for (var typeSpecName in typeSpecs) {
2098
+ if (has(typeSpecs, typeSpecName)) {
2099
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
2100
+ // fail the render phase where it didn't fail before. So we log it.
2101
+ // After these have been cleaned up, we'll let them throw.
2102
+
2103
+ try {
2104
+ // This is intentionally an invariant that gets caught. It's the same
2105
+ // behavior as without this statement except with a better message.
2106
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
2107
+ // eslint-disable-next-line react-internal/prod-error-codes
2108
+ 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`.');
2109
+ err.name = 'Invariant Violation';
2110
+ throw err;
2111
+ }
2112
+
2113
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
2114
+ } catch (ex) {
2115
+ error$1 = ex;
2116
+ }
2117
+
2118
+ if (error$1 && !(error$1 instanceof Error)) {
2119
+ setCurrentlyValidatingElement(element);
2120
+
2121
+ 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);
2122
+
2123
+ setCurrentlyValidatingElement(null);
2124
+ }
2125
+
2126
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2127
+ // Only monitor this failure once because there tends to be a lot of the
2128
+ // same error.
2129
+ loggedTypeFailures[error$1.message] = true;
2130
+ setCurrentlyValidatingElement(element);
2131
+
2132
+ error('Failed %s type: %s', location, error$1.message);
2133
+
2134
+ setCurrentlyValidatingElement(null);
2135
+ }
2136
+ }
2137
+ }
2138
+ }
2139
+ }
2140
+
2141
+ function setCurrentlyValidatingElement$1(element) {
2142
+ {
2143
+ if (element) {
2144
+ var owner = element._owner;
2145
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2146
+ setExtraStackFrame(stack);
2147
+ } else {
2148
+ setExtraStackFrame(null);
2149
+ }
2150
+ }
2151
+ }
2152
+
2153
+ var propTypesMisspellWarningShown;
2154
+
2155
+ {
2156
+ propTypesMisspellWarningShown = false;
2157
+ }
2158
+
2159
+ function getDeclarationErrorAddendum() {
2160
+ if (ReactCurrentOwner.current) {
2161
+ var name = getComponentNameFromType(ReactCurrentOwner.current.type);
2162
+
2163
+ if (name) {
2164
+ return '\n\nCheck the render method of `' + name + '`.';
2165
+ }
2166
+ }
2167
+
2168
+ return '';
2169
+ }
2170
+
2171
+ function getSourceInfoErrorAddendum(source) {
2172
+ if (source !== undefined) {
2173
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
2174
+ var lineNumber = source.lineNumber;
2175
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
2176
+ }
2177
+
2178
+ return '';
2179
+ }
2180
+
2181
+ function getSourceInfoErrorAddendumForProps(elementProps) {
2182
+ if (elementProps !== null && elementProps !== undefined) {
2183
+ return getSourceInfoErrorAddendum(elementProps.__source);
2184
+ }
2185
+
2186
+ return '';
2187
+ }
2188
+ /**
2189
+ * Warn if there's no key explicitly set on dynamic arrays of children or
2190
+ * object keys are not valid. This allows us to keep track of children between
2191
+ * updates.
2192
+ */
2193
+
2194
+
2195
+ var ownerHasKeyUseWarning = {};
2196
+
2197
+ function getCurrentComponentErrorInfo(parentType) {
2198
+ var info = getDeclarationErrorAddendum();
2199
+
2200
+ if (!info) {
2201
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
2202
+
2203
+ if (parentName) {
2204
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
2205
+ }
2206
+ }
2207
+
2208
+ return info;
2209
+ }
2210
+ /**
2211
+ * Warn if the element doesn't have an explicit key assigned to it.
2212
+ * This element is in an array. The array could grow and shrink or be
2213
+ * reordered. All children that haven't already been validated are required to
2214
+ * have a "key" property assigned to it. Error statuses are cached so a warning
2215
+ * will only be shown once.
2216
+ *
2217
+ * @internal
2218
+ * @param {ReactElement} element Element that requires a key.
2219
+ * @param {*} parentType element's parent's type.
2220
+ */
2221
+
2222
+
2223
+ function validateExplicitKey(element, parentType) {
2224
+ if (!element._store || element._store.validated || element.key != null) {
2225
+ return;
2226
+ }
2227
+
2228
+ element._store.validated = true;
2229
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2230
+
2231
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2232
+ return;
2233
+ }
2234
+
2235
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
2236
+ // property, it may be the creator of the child that's responsible for
2237
+ // assigning it a key.
2238
+
2239
+ var childOwner = '';
2240
+
2241
+ if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
2242
+ // Give the component that originally created this child.
2243
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
2244
+ }
2245
+
2246
+ {
2247
+ setCurrentlyValidatingElement$1(element);
2248
+
2249
+ 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);
2250
+
2251
+ setCurrentlyValidatingElement$1(null);
2252
+ }
2253
+ }
2254
+ /**
2255
+ * Ensure that every element either is passed in a static location, in an
2256
+ * array with an explicit keys property defined, or in an object literal
2257
+ * with valid key property.
2258
+ *
2259
+ * @internal
2260
+ * @param {ReactNode} node Statically passed child of any type.
2261
+ * @param {*} parentType node's parent's type.
2262
+ */
2263
+
2264
+
2265
+ function validateChildKeys(node, parentType) {
2266
+ if (typeof node !== 'object') {
2267
+ return;
2268
+ }
2269
+
2270
+ if (isArray(node)) {
2271
+ for (var i = 0; i < node.length; i++) {
2272
+ var child = node[i];
2273
+
2274
+ if (isValidElement(child)) {
2275
+ validateExplicitKey(child, parentType);
2276
+ }
2277
+ }
2278
+ } else if (isValidElement(node)) {
2279
+ // This element was passed in a valid location.
2280
+ if (node._store) {
2281
+ node._store.validated = true;
2282
+ }
2283
+ } else if (node) {
2284
+ var iteratorFn = getIteratorFn(node);
2285
+
2286
+ if (typeof iteratorFn === 'function') {
2287
+ // Entry iterators used to provide implicit keys,
2288
+ // but now we print a separate warning for them later.
2289
+ if (iteratorFn !== node.entries) {
2290
+ var iterator = iteratorFn.call(node);
2291
+ var step;
2292
+
2293
+ while (!(step = iterator.next()).done) {
2294
+ if (isValidElement(step.value)) {
2295
+ validateExplicitKey(step.value, parentType);
2296
+ }
2297
+ }
2298
+ }
2299
+ }
2300
+ }
2301
+ }
2302
+ /**
2303
+ * Given an element, validate that its props follow the propTypes definition,
2304
+ * provided by the type.
2305
+ *
2306
+ * @param {ReactElement} element
2307
+ */
2308
+
2309
+
2310
+ function validatePropTypes(element) {
2311
+ {
2312
+ var type = element.type;
2313
+
2314
+ if (type === null || type === undefined || typeof type === 'string') {
2315
+ return;
2316
+ }
2317
+
2318
+ var propTypes;
2319
+
2320
+ if (typeof type === 'function') {
2321
+ propTypes = type.propTypes;
2322
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
2323
+ // Inner props are checked in the reconciler.
2324
+ type.$$typeof === REACT_MEMO_TYPE)) {
2325
+ propTypes = type.propTypes;
2326
+ } else {
2327
+ return;
2328
+ }
2329
+
2330
+ if (propTypes) {
2331
+ // Intentionally inside to avoid triggering lazy initializers:
2332
+ var name = getComponentNameFromType(type);
2333
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
2334
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
2335
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
2336
+
2337
+ var _name = getComponentNameFromType(type);
2338
+
2339
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
2340
+ }
2341
+
2342
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
2343
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
2344
+ }
2345
+ }
2346
+ }
2347
+ /**
2348
+ * Given a fragment, validate that it can only be provided with fragment props
2349
+ * @param {ReactElement} fragment
2350
+ */
2351
+
2352
+
2353
+ function validateFragmentProps(fragment) {
2354
+ {
2355
+ var keys = Object.keys(fragment.props);
2356
+
2357
+ for (var i = 0; i < keys.length; i++) {
2358
+ var key = keys[i];
2359
+
2360
+ if (key !== 'children' && key !== 'key') {
2361
+ setCurrentlyValidatingElement$1(fragment);
2362
+
2363
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
2364
+
2365
+ setCurrentlyValidatingElement$1(null);
2366
+ break;
2367
+ }
2368
+ }
2369
+
2370
+ if (fragment.ref !== null) {
2371
+ setCurrentlyValidatingElement$1(fragment);
2372
+
2373
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
2374
+
2375
+ setCurrentlyValidatingElement$1(null);
2376
+ }
2377
+ }
2378
+ }
2379
+ function createElementWithValidation(type, props, children) {
2380
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
2381
+ // succeed and there will likely be errors in render.
2382
+
2383
+ if (!validType) {
2384
+ var info = '';
2385
+
2386
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
2387
+ 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.";
2388
+ }
2389
+
2390
+ var sourceInfo = getSourceInfoErrorAddendumForProps(props);
2391
+
2392
+ if (sourceInfo) {
2393
+ info += sourceInfo;
2394
+ } else {
2395
+ info += getDeclarationErrorAddendum();
2396
+ }
2397
+
2398
+ var typeString;
2399
+
2400
+ if (type === null) {
2401
+ typeString = 'null';
2402
+ } else if (isArray(type)) {
2403
+ typeString = 'array';
2404
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
2405
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
2406
+ info = ' Did you accidentally export a JSX literal instead of a component?';
2407
+ } else {
2408
+ typeString = typeof type;
2409
+ }
2410
+
2411
+ {
2412
+ 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);
2413
+ }
2414
+ }
2415
+
2416
+ var element = createElement.apply(this, arguments); // The result can be nullish if a mock or a custom function is used.
2417
+ // TODO: Drop this when these are no longer allowed as the type argument.
2418
+
2419
+ if (element == null) {
2420
+ return element;
2421
+ } // Skip key warning if the type isn't valid since our key validation logic
2422
+ // doesn't expect a non-string/function type and can throw confusing errors.
2423
+ // We don't want exception behavior to differ between dev and prod.
2424
+ // (Rendering will throw with a helpful message and as soon as the type is
2425
+ // fixed, the key warnings will appear.)
2426
+
2427
+
2428
+ if (validType) {
2429
+ for (var i = 2; i < arguments.length; i++) {
2430
+ validateChildKeys(arguments[i], type);
2431
+ }
2432
+ }
2433
+
2434
+ if (type === REACT_FRAGMENT_TYPE) {
2435
+ validateFragmentProps(element);
2436
+ } else {
2437
+ validatePropTypes(element);
2438
+ }
2439
+
2440
+ return element;
2441
+ }
2442
+ var didWarnAboutDeprecatedCreateFactory = false;
2443
+ function createFactoryWithValidation(type) {
2444
+ var validatedFactory = createElementWithValidation.bind(null, type);
2445
+ validatedFactory.type = type;
2446
+
2447
+ {
2448
+ if (!didWarnAboutDeprecatedCreateFactory) {
2449
+ didWarnAboutDeprecatedCreateFactory = true;
2450
+
2451
+ warn('React.createFactory() is deprecated and will be removed in ' + 'a future major release. Consider using JSX ' + 'or use React.createElement() directly instead.');
2452
+ } // Legacy hook: remove it
2453
+
2454
+
2455
+ Object.defineProperty(validatedFactory, 'type', {
2456
+ enumerable: false,
2457
+ get: function () {
2458
+ warn('Factory.type is deprecated. Access the class directly ' + 'before passing it to createFactory.');
2459
+
2460
+ Object.defineProperty(this, 'type', {
2461
+ value: type
2462
+ });
2463
+ return type;
2464
+ }
2465
+ });
2466
+ }
2467
+
2468
+ return validatedFactory;
2469
+ }
2470
+ function cloneElementWithValidation(element, props, children) {
2471
+ var newElement = cloneElement.apply(this, arguments);
2472
+
2473
+ for (var i = 2; i < arguments.length; i++) {
2474
+ validateChildKeys(arguments[i], newElement.type);
2475
+ }
2476
+
2477
+ validatePropTypes(newElement);
2478
+ return newElement;
2479
+ }
2480
+
2481
+ function startTransition(scope, options) {
2482
+ var prevTransition = ReactCurrentBatchConfig.transition;
2483
+ ReactCurrentBatchConfig.transition = {};
2484
+ var currentTransition = ReactCurrentBatchConfig.transition;
2485
+
2486
+ {
2487
+ ReactCurrentBatchConfig.transition._updatedFibers = new Set();
2488
+ }
2489
+
2490
+ try {
2491
+ scope();
2492
+ } finally {
2493
+ ReactCurrentBatchConfig.transition = prevTransition;
2494
+
2495
+ {
2496
+ if (prevTransition === null && currentTransition._updatedFibers) {
2497
+ var updatedFibersCount = currentTransition._updatedFibers.size;
2498
+
2499
+ if (updatedFibersCount > 10) {
2500
+ 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.');
2501
+ }
2502
+
2503
+ currentTransition._updatedFibers.clear();
2504
+ }
2505
+ }
2506
+ }
2507
+ }
2508
+
2509
+ var didWarnAboutMessageChannel = false;
2510
+ var enqueueTaskImpl = null;
2511
+ function enqueueTask(task) {
2512
+ if (enqueueTaskImpl === null) {
2513
+ try {
2514
+ // read require off the module object to get around the bundlers.
2515
+ // we don't want them to detect a require and bundle a Node polyfill.
2516
+ var requireString = ('require' + Math.random()).slice(0, 7);
2517
+ var nodeRequire = module && module[requireString]; // assuming we're in node, let's try to get node's
2518
+ // version of setImmediate, bypassing fake timers if any.
2519
+
2520
+ enqueueTaskImpl = nodeRequire.call(module, 'timers').setImmediate;
2521
+ } catch (_err) {
2522
+ // we're in a browser
2523
+ // we can't use regular timers because they may still be faked
2524
+ // so we try MessageChannel+postMessage instead
2525
+ enqueueTaskImpl = function (callback) {
2526
+ {
2527
+ if (didWarnAboutMessageChannel === false) {
2528
+ didWarnAboutMessageChannel = true;
2529
+
2530
+ if (typeof MessageChannel === 'undefined') {
2531
+ 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.');
2532
+ }
2533
+ }
2534
+ }
2535
+
2536
+ var channel = new MessageChannel();
2537
+ channel.port1.onmessage = callback;
2538
+ channel.port2.postMessage(undefined);
2539
+ };
2540
+ }
2541
+ }
2542
+
2543
+ return enqueueTaskImpl(task);
2544
+ }
2545
+
2546
+ var actScopeDepth = 0;
2547
+ var didWarnNoAwaitAct = false;
2548
+ function act(callback) {
2549
+ {
2550
+ // `act` calls can be nested, so we track the depth. This represents the
2551
+ // number of `act` scopes on the stack.
2552
+ var prevActScopeDepth = actScopeDepth;
2553
+ actScopeDepth++;
2554
+
2555
+ if (ReactCurrentActQueue.current === null) {
2556
+ // This is the outermost `act` scope. Initialize the queue. The reconciler
2557
+ // will detect the queue and use it instead of Scheduler.
2558
+ ReactCurrentActQueue.current = [];
2559
+ }
2560
+
2561
+ var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2562
+ var result;
2563
+
2564
+ try {
2565
+ // Used to reproduce behavior of `batchedUpdates` in legacy mode. Only
2566
+ // set to `true` while the given callback is executed, not for updates
2567
+ // triggered during an async event, because this is how the legacy
2568
+ // implementation of `act` behaved.
2569
+ ReactCurrentActQueue.isBatchingLegacy = true;
2570
+ result = callback(); // Replicate behavior of original `act` implementation in legacy mode,
2571
+ // which flushed updates immediately after the scope function exits, even
2572
+ // if it's an async function.
2573
+
2574
+ if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2575
+ var queue = ReactCurrentActQueue.current;
2576
+
2577
+ if (queue !== null) {
2578
+ ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2579
+ flushActQueue(queue);
2580
+ }
2581
+ }
2582
+ } catch (error) {
2583
+ popActScope(prevActScopeDepth);
2584
+ throw error;
2585
+ } finally {
2586
+ ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2587
+ }
2588
+
2589
+ if (result !== null && typeof result === 'object' && typeof result.then === 'function') {
2590
+ var thenableResult = result; // The callback is an async function (i.e. returned a promise). Wait
2591
+ // for it to resolve before exiting the current scope.
2592
+
2593
+ var wasAwaited = false;
2594
+ var thenable = {
2595
+ then: function (resolve, reject) {
2596
+ wasAwaited = true;
2597
+ thenableResult.then(function (returnValue) {
2598
+ popActScope(prevActScopeDepth);
2599
+
2600
+ if (actScopeDepth === 0) {
2601
+ // We've exited the outermost act scope. Recursively flush the
2602
+ // queue until there's no remaining work.
2603
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2604
+ } else {
2605
+ resolve(returnValue);
2606
+ }
2607
+ }, function (error) {
2608
+ // The callback threw an error.
2609
+ popActScope(prevActScopeDepth);
2610
+ reject(error);
2611
+ });
2612
+ }
2613
+ };
2614
+
2615
+ {
2616
+ if (!didWarnNoAwaitAct && typeof Promise !== 'undefined') {
2617
+ // eslint-disable-next-line no-undef
2618
+ Promise.resolve().then(function () {}).then(function () {
2619
+ if (!wasAwaited) {
2620
+ didWarnNoAwaitAct = true;
2621
+
2622
+ 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 () => ...);');
2623
+ }
2624
+ });
2625
+ }
2626
+ }
2627
+
2628
+ return thenable;
2629
+ } else {
2630
+ var returnValue = result; // The callback is not an async function. Exit the current scope
2631
+ // immediately, without awaiting.
2632
+
2633
+ popActScope(prevActScopeDepth);
2634
+
2635
+ if (actScopeDepth === 0) {
2636
+ // Exiting the outermost act scope. Flush the queue.
2637
+ var _queue = ReactCurrentActQueue.current;
2638
+
2639
+ if (_queue !== null) {
2640
+ flushActQueue(_queue);
2641
+ ReactCurrentActQueue.current = null;
2642
+ } // Return a thenable. If the user awaits it, we'll flush again in
2643
+ // case additional work was scheduled by a microtask.
2644
+
2645
+
2646
+ var _thenable = {
2647
+ then: function (resolve, reject) {
2648
+ // Confirm we haven't re-entered another `act` scope, in case
2649
+ // the user does something weird like await the thenable
2650
+ // multiple times.
2651
+ if (ReactCurrentActQueue.current === null) {
2652
+ // Recursively flush the queue until there's no remaining work.
2653
+ ReactCurrentActQueue.current = [];
2654
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2655
+ } else {
2656
+ resolve(returnValue);
2657
+ }
2658
+ }
2659
+ };
2660
+ return _thenable;
2661
+ } else {
2662
+ // Since we're inside a nested `act` scope, the returned thenable
2663
+ // immediately resolves. The outer scope will flush the queue.
2664
+ var _thenable2 = {
2665
+ then: function (resolve, reject) {
2666
+ resolve(returnValue);
2667
+ }
2668
+ };
2669
+ return _thenable2;
2670
+ }
2671
+ }
2672
+ }
2673
+ }
2674
+
2675
+ function popActScope(prevActScopeDepth) {
2676
+ {
2677
+ if (prevActScopeDepth !== actScopeDepth - 1) {
2678
+ error('You seem to have overlapping act() calls, this is not supported. ' + 'Be sure to await previous act() calls before making a new one. ');
2679
+ }
2680
+
2681
+ actScopeDepth = prevActScopeDepth;
2682
+ }
2683
+ }
2684
+
2685
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2686
+ {
2687
+ var queue = ReactCurrentActQueue.current;
2688
+
2689
+ if (queue !== null) {
2690
+ try {
2691
+ flushActQueue(queue);
2692
+ enqueueTask(function () {
2693
+ if (queue.length === 0) {
2694
+ // No additional work was scheduled. Finish.
2695
+ ReactCurrentActQueue.current = null;
2696
+ resolve(returnValue);
2697
+ } else {
2698
+ // Keep flushing work until there's none left.
2699
+ recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2700
+ }
2701
+ });
2702
+ } catch (error) {
2703
+ reject(error);
2704
+ }
2705
+ } else {
2706
+ resolve(returnValue);
2707
+ }
2708
+ }
2709
+ }
2710
+
2711
+ var isFlushing = false;
2712
+
2713
+ function flushActQueue(queue) {
2714
+ {
2715
+ if (!isFlushing) {
2716
+ // Prevent re-entrance.
2717
+ isFlushing = true;
2718
+ var i = 0;
2719
+
2720
+ try {
2721
+ for (; i < queue.length; i++) {
2722
+ var callback = queue[i];
2723
+
2724
+ do {
2725
+ callback = callback(true);
2726
+ } while (callback !== null);
2727
+ }
2728
+
2729
+ queue.length = 0;
2730
+ } catch (error) {
2731
+ // If something throws, leave the remaining callbacks on the queue.
2732
+ queue = queue.slice(i + 1);
2733
+ throw error;
2734
+ } finally {
2735
+ isFlushing = false;
2736
+ }
2737
+ }
2738
+ }
2739
+ }
2740
+
2741
+ var createElement$1 = createElementWithValidation ;
2742
+ var cloneElement$1 = cloneElementWithValidation ;
2743
+ var createFactory = createFactoryWithValidation ;
2744
+ var Children = {
2745
+ map: mapChildren,
2746
+ forEach: forEachChildren,
2747
+ count: countChildren,
2748
+ toArray: toArray,
2749
+ only: onlyChild
2750
+ };
2751
+
2752
+ exports.Children = Children;
2753
+ exports.Component = Component;
2754
+ exports.Fragment = REACT_FRAGMENT_TYPE;
2755
+ exports.Profiler = REACT_PROFILER_TYPE;
2756
+ exports.PureComponent = PureComponent;
2757
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
2758
+ exports.Suspense = REACT_SUSPENSE_TYPE;
2759
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2760
+ exports.act = act;
2761
+ exports.cloneElement = cloneElement$1;
2762
+ exports.createContext = createContext;
2763
+ exports.createElement = createElement$1;
2764
+ exports.createFactory = createFactory;
2765
+ exports.createRef = createRef;
2766
+ exports.forwardRef = forwardRef;
2767
+ exports.isValidElement = isValidElement;
2768
+ exports.lazy = lazy;
2769
+ exports.memo = memo;
2770
+ exports.startTransition = startTransition;
2771
+ exports.unstable_act = act;
2772
+ exports.useCallback = useCallback;
2773
+ exports.useContext = useContext;
2774
+ exports.useDebugValue = useDebugValue;
2775
+ exports.useDeferredValue = useDeferredValue;
2776
+ exports.useEffect = useEffect;
2777
+ exports.useId = useId;
2778
+ exports.useImperativeHandle = useImperativeHandle;
2779
+ exports.useInsertionEffect = useInsertionEffect;
2780
+ exports.useLayoutEffect = useLayoutEffect;
2781
+ exports.useMemo = useMemo;
2782
+ exports.useReducer = useReducer;
2783
+ exports.useRef = useRef;
2784
+ exports.useState = useState;
2785
+ exports.useSyncExternalStore = useSyncExternalStore;
2786
+ exports.useTransition = useTransition;
2787
+ exports.version = ReactVersion;
2788
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
2789
+ if (
2790
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
2791
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
2792
+ 'function'
2793
+ ) {
2794
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2795
+ }
2796
+
2797
+ })();
2798
+ }
2799
+ });
2800
+
2801
+ var react = createCommonjsModule(function (module) {
2802
+
2803
+ if (process.env.NODE_ENV === 'production') {
2804
+ module.exports = react_production_min;
2805
+ } else {
2806
+ module.exports = react_development;
2807
+ }
2808
+ });
2809
+
2810
+ var Button = function Button(props) {
2811
+ var _props$label = props.label,
2812
+ label = _props$label === void 0 ? "" : _props$label,
2813
+ _props$className = props.className,
2814
+ className = _props$className === void 0 ? "" : _props$className;
2815
+ var _className = "text-textButton bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:ring-blue-300 font-medium rounded-lg text-sm px-4 py-2.5 " + className;
2816
+ return /*#__PURE__*/react.createElement("button", {
2817
+ type: "button",
2818
+ className: _className,
2819
+ style: {}
2820
+ }, label);
2821
+ };
2822
+
2823
+ var Hero7 = function Hero7(props) {
4
2824
  var _data$srcImages, _data$buttons;
5
- const {
6
- shopConfigStyle = {},
7
- data = {}
8
- } = props;
9
- return /*#__PURE__*/React.createElement("div", {
10
- className: "w-full sticky top-16 -z-50"
11
- }, /*#__PURE__*/React.createElement("img", {
2825
+ var _props$data = props.data,
2826
+ data = _props$data === void 0 ? {} : _props$data;
2827
+ return /*#__PURE__*/react.createElement("div", {
2828
+ className: "relative w-full"
2829
+ }, /*#__PURE__*/react.createElement("img", {
12
2830
  src: data === null || data === void 0 ? void 0 : (_data$srcImages = data.srcImages) === null || _data$srcImages === void 0 ? void 0 : _data$srcImages[0],
13
2831
  className: "w-full h-auto"
14
- }), /*#__PURE__*/React.createElement("div", {
2832
+ }), /*#__PURE__*/react.createElement("div", {
15
2833
  className: "absolute top-0 w-full h-full bg-black opacity-40 z-0"
16
- }), /*#__PURE__*/React.createElement("div", {
17
- className: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 z-10 w-[90%] max-w-[1400px] text-center"
18
- }, /*#__PURE__*/React.createElement("div", {
19
- className: " text-white text-lg sm:text-3xl md:text-5xl font-merienda"
20
- }, data === null || data === void 0 ? void 0 : data.title), data === null || data === void 0 ? void 0 : (_data$buttons = data.buttons) === null || _data$buttons === void 0 ? void 0 : _data$buttons.map(button => {
21
- var _shopConfigStyle$colo;
22
- return /*#__PURE__*/React.createElement("a", {
23
- href: button === null || button === void 0 ? void 0 : button.link
24
- }, /*#__PURE__*/React.createElement("div", {
25
- variant: "outline",
26
- className: "font-medium h-9 w-28 sm:h-12 sm:w-36 sm:text-base md:text-lg mt-3 sm:mt-7 md:mt-12 md:h-14 md:w-44 bg-transparent hover:bg-primary/10 font-montserrat",
27
- style: {
28
- color: shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : (_shopConfigStyle$colo = shopConfigStyle.color) === null || _shopConfigStyle$colo === void 0 ? void 0 : _shopConfigStyle$colo.textButton
29
- },
30
- size: "lg"
31
- }, button === null || button === void 0 ? void 0 : button.label));
2834
+ }), /*#__PURE__*/react.createElement("div", {
2835
+ className: "absolute top-0 w-full h-full z-10 flex flex-col gap-4 items-center justify-center"
2836
+ }, /*#__PURE__*/react.createElement("div", {
2837
+ className: "text-4xl text-white"
2838
+ }, data === null || data === void 0 ? void 0 : data.title), data === null || data === void 0 ? void 0 : (_data$buttons = data.buttons) === null || _data$buttons === void 0 ? void 0 : _data$buttons.map(function (button) {
2839
+ return /*#__PURE__*/react.createElement(Button, {
2840
+ label: button === null || button === void 0 ? void 0 : button.label
2841
+ });
32
2842
  })));
33
2843
  };
34
2844
 
35
- const ExampleComponent1 = _ref => {
36
- let {
37
- text
38
- } = _ref;
39
- return /*#__PURE__*/React.createElement("div", {
40
- className: styles.test
41
- }, "Example Component: ", text);
2845
+ var Features7 = function Features7(props) {
2846
+ var _data$items;
2847
+ var _props$shopConfigStyl = props.shopConfigStyle,
2848
+ shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
2849
+ _props$data = props.data,
2850
+ data = _props$data === void 0 ? {} : _props$data,
2851
+ _props$SectionTitle = props.SectionTitle,
2852
+ SectionTitle = _props$SectionTitle === void 0 ? null : _props$SectionTitle;
2853
+ var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
2854
+ _shopConfigStyle$colo2 = _shopConfigStyle$colo.primary,
2855
+ primary = _shopConfigStyle$colo2 === void 0 ? "#000" : _shopConfigStyle$colo2,
2856
+ _shopConfigStyle$colo3 = _shopConfigStyle$colo.secondary,
2857
+ secondary = _shopConfigStyle$colo3 === void 0 ? "#000" : _shopConfigStyle$colo3,
2858
+ _shopConfigStyle$colo4 = _shopConfigStyle$colo.textBody,
2859
+ textBody = _shopConfigStyle$colo4 === void 0 ? "#000" : _shopConfigStyle$colo4,
2860
+ _shopConfigStyle$colo5 = _shopConfigStyle$colo.background,
2861
+ background = _shopConfigStyle$colo5 === void 0 ? "#fff" : _shopConfigStyle$colo5;
2862
+ return /*#__PURE__*/react.createElement("div", {
2863
+ className: "relative w-full pt-10 pb-5",
2864
+ style: {
2865
+ backgroundColor: background
2866
+ }
2867
+ }, /*#__PURE__*/react.createElement("div", {
2868
+ className: "px-4 xl:px-20"
2869
+ }, /*#__PURE__*/react.createElement(SectionTitle, {
2870
+ data: data,
2871
+ shopConfigStyle: shopConfigStyle
2872
+ }), /*#__PURE__*/react.createElement("div", {
2873
+ className: "mt-6 grid grid-cols-3 gap-4 md:gap-8"
2874
+ }, data === null || data === void 0 ? void 0 : (_data$items = data.items) === null || _data$items === void 0 ? void 0 : _data$items.map(function (it, index) {
2875
+ return /*#__PURE__*/react.createElement("div", {
2876
+ key: index,
2877
+ className: "pt-6 md:py-6 col-span-3 md:col-span-1"
2878
+ }, /*#__PURE__*/react.createElement("div", {
2879
+ className: "relative w-40 h-24 flex items-center justify-center m-auto md:m-0"
2880
+ }, /*#__PURE__*/react.createElement("div", {
2881
+ className: "absolute w-40 h-24 rounded-2xl z-10",
2882
+ style: {
2883
+ backgroundColor: primary
2884
+ }
2885
+ }), /*#__PURE__*/react.createElement("div", {
2886
+ className: "absolute w-24 h-16 rounded-2xl -right-2 -top-2 z-0",
2887
+ style: {
2888
+ backgroundColor: secondary
2889
+ }
2890
+ }), /*#__PURE__*/react.createElement("div", {
2891
+ className: "h-16 m-auto bg-center w-16 bg-cover bg-no-repeat z-20",
2892
+ style: {
2893
+ backgroundImage: "url(" + it.srcImage + ")"
2894
+ }
2895
+ })), /*#__PURE__*/react.createElement("p", {
2896
+ className: "mx-auto md:mt-3 md:mx-0 text-xl py-2 font-medium w-fit rounded-lg",
2897
+ style: {
2898
+ color: textBody
2899
+ }
2900
+ }, it.title), /*#__PURE__*/react.createElement("div", {
2901
+ className: "mx-auto md:mx-0 mb-2 w-28 h-2px rounded-full",
2902
+ style: {
2903
+ backgroundColor: secondary
2904
+ }
2905
+ }), /*#__PURE__*/react.createElement("p", {
2906
+ className: "text-base mx-auto md:mb-2 md:mx-0 text-center md:text-start pb-4",
2907
+ style: {
2908
+ color: textBody
2909
+ }
2910
+ }, it.detail));
2911
+ }))), /*#__PURE__*/react.createElement("div", {
2912
+ className: "absolute bottom-0 left-1/2 transform -translate-x-1/2 w-full max-w-[720px] border-b-0",
2913
+ style: {
2914
+ backgroundImage: "repeating-linear-gradient(to right, " + secondary + " 0, " + secondary + " 10px, transparent 10px, transparent 20px)",
2915
+ height: "2px"
2916
+ }
2917
+ }));
2918
+ };
2919
+
2920
+ var SvgIcon = function SvgIcon(_ref) {
2921
+ var className = _ref.className,
2922
+ style = _ref.style;
2923
+ return /*#__PURE__*/react.createElement("svg", {
2924
+ width: "42",
2925
+ height: "42",
2926
+ viewBox: "0 0 42 42",
2927
+ fill: "none",
2928
+ xmlns: "http://www.w3.org/2000/svg",
2929
+ className: "" + className,
2930
+ style: style
2931
+ }, /*#__PURE__*/react.createElement("path", {
2932
+ d: "M21.0006 3C18.7312 3 15.091 6.90509 14.572 11.5982C10.1417 10.0788 5.15787 11.9531 4.22675 14.0991C3.22704 16.4034 5.59115 22.0699 10.1707 24.1839C10.2897 24.2388 10.417 24.2778 10.5387 24.3279C10.4967 24.3782 10.4491 24.4219 10.408 24.4731C7.21527 28.4646 7.53641 34.625 9.42347 36.2318C10.0159 36.7357 11.0046 37 12.183 37C14.7586 36.9993 18.2373 35.7431 20.4297 33.0032C20.6374 32.7437 20.8279 32.4797 21.0019 32.2141C21.181 32.4887 21.3716 32.7533 21.5728 33.0045C23.7645 35.7431 27.2401 37 29.817 37C30.9954 37 31.9853 36.7363 32.5778 36.2331C34.4648 34.625 34.7847 28.4646 31.592 24.4744C31.5521 24.4247 31.5092 24.3829 31.4689 24.3344C31.5897 24.2846 31.713 24.2382 31.8305 24.1839C36.4094 22.0699 38.7729 16.4027 37.7732 14.0991C36.8378 11.9444 31.8174 10.0959 27.4267 11.5916C26.9098 6.86354 23.2507 3 21.0006 3ZM21.0006 4.34011C22.3907 4.34011 25.8805 7.69855 26.1694 12.136C24.0016 13.2466 22.6195 14.9602 21.838 16.2414C21.647 16.5543 21.7382 16.9684 22.0422 17.1654C22.3462 17.3624 22.747 17.2689 22.938 16.9547C23.9669 15.2668 25.4278 13.9249 27.0524 13.1751C31.2559 11.2333 35.9724 13.2276 36.5882 14.6461C37.204 16.0646 35.503 21.0198 31.2989 22.9603C31.0314 23.084 30.7493 23.1895 30.4628 23.2861C29.0772 22.0357 27.5654 21.3484 26.4308 20.9855C26.0865 20.8769 25.7234 21.074 25.6175 21.4278C25.511 21.7809 25.7034 22.1555 26.0463 22.2654C27.3306 22.6761 29.1619 23.542 30.5897 25.3277C33.5213 28.9902 32.9127 34.2083 31.7505 35.1979C30.5884 36.1856 25.5067 35.8138 22.5738 32.15C22.2616 31.7601 21.9827 31.3316 21.7339 30.8805C22.3864 29.478 22.6678 28.11 22.7756 27.0657C22.8132 26.6978 22.5556 26.3684 22.1983 26.3289C21.8449 26.2893 21.5223 26.5558 21.484 26.9243C21.3404 28.3147 20.8663 30.3502 19.4261 32.15C16.4945 35.8138 11.4115 36.1883 10.2507 35.1979C9.08856 34.2089 8.4787 28.9903 11.4103 25.3264C11.5663 25.1318 11.737 24.9533 11.9064 24.7754C12.7322 24.9798 13.5911 25.0961 14.4667 25.0961C15.1448 25.0961 15.8317 25.0343 16.5119 24.9076C16.8652 24.842 17.0995 24.4928 17.0358 24.1289C16.9722 23.7644 16.6343 23.5201 16.2822 23.5871C14.3412 23.9476 12.3588 23.7248 10.7011 22.959C6.49758 21.0185 4.7972 16.0633 5.41301 14.6448C5.98748 13.3195 10.4467 11.3878 14.5174 12.9985C14.5864 15.5355 15.5457 17.5709 16.3634 18.8444C16.4881 19.0394 16.6947 19.1441 16.9052 19.1441C17.0286 19.1441 17.1538 19.1079 17.2642 19.0329C17.5637 18.8285 17.645 18.4132 17.4469 18.105C16.6973 16.9371 15.8039 15.0529 15.8039 12.7158C15.8039 7.9651 19.4936 4.34011 21.0006 4.34011Z",
2933
+ fill: "currentColor"
2934
+ }), /*#__PURE__*/react.createElement("path", {
2935
+ d: "M21.0005 5C18.9982 5 15.7861 8.44567 15.3282 12.5866C11.4191 11.246 7.02165 12.8998 6.20008 14.7933C5.31797 16.8265 7.40395 21.8264 11.4448 23.6917C11.5497 23.7401 11.6621 23.7746 11.7694 23.8187C11.7323 23.8632 11.6904 23.9017 11.6541 23.9469C8.837 27.4688 9.12036 32.9044 10.7854 34.3222C11.3081 34.7668 12.1805 35 13.2203 35C15.4929 34.9994 18.5623 33.891 20.4968 31.4734C20.6801 31.2444 20.8482 31.0115 21.0017 30.7771C21.1597 31.0194 21.3279 31.2529 21.5054 31.4746C23.4393 33.8909 26.506 35 28.7797 35C29.8194 35 30.6929 34.7673 31.2157 34.3233C32.8807 32.9044 33.163 27.4688 30.3458 23.948C30.3107 23.9041 30.2728 23.8673 30.2373 23.8245C30.3439 23.7805 30.4526 23.7396 30.5563 23.6917C34.5966 21.8264 36.682 16.8259 35.7999 14.7933C34.9745 12.8921 30.5448 11.2611 26.6706 12.5808C26.2146 8.40901 22.9859 5 21.0005 5ZM21.0005 6.18245C22.2271 6.18245 25.3063 9.14578 25.5612 13.0612C23.6484 14.0411 22.4289 15.5531 21.7394 16.6836C21.5709 16.9597 21.6514 17.325 21.9196 17.4988C22.1879 17.6727 22.5415 17.5902 22.71 17.3129C23.6179 15.8236 24.9069 14.6396 26.3404 13.9781C30.0494 12.2647 34.2109 14.0244 34.7543 15.276C35.2977 16.5276 33.7968 20.8998 30.0872 22.612C29.8512 22.7212 29.6023 22.8142 29.3495 22.8995C28.127 21.7962 26.793 21.1898 25.7919 20.8695C25.4881 20.7737 25.1677 20.9476 25.0743 21.2598C24.9803 21.5714 25.15 21.9019 25.4527 21.9988C26.5858 22.3613 28.2016 23.1253 29.4615 24.7009C32.0482 27.9326 31.5112 32.5367 30.4858 33.4099C29.4604 34.2814 24.9765 33.9534 22.3887 30.7206C22.1132 30.3766 21.8671 29.9985 21.6476 29.6005C22.2233 28.363 22.4716 27.1559 22.5667 26.2344C22.5999 25.9098 22.3726 25.6192 22.0573 25.5843C21.7455 25.5494 21.4609 25.7845 21.4271 26.1097C21.3004 27.3365 20.882 29.1325 19.6113 30.7206C17.0246 33.9534 12.5396 34.2838 11.5153 33.4099C10.4899 32.5373 9.95179 27.9326 12.5385 24.6998C12.6761 24.5281 12.8268 24.3706 12.9762 24.2136C13.7049 24.394 14.4628 24.4965 15.2353 24.4965C15.8337 24.4965 16.4398 24.442 17.0399 24.3303C17.3517 24.2723 17.5584 23.9642 17.5022 23.6432C17.446 23.3216 17.1479 23.106 16.8372 23.1651C15.1246 23.4832 13.3754 23.2866 11.9127 22.6109C8.20375 20.8987 6.70342 16.5264 7.24678 15.2748C7.75366 14.1054 11.6883 12.401 15.2801 13.8222C15.3409 16.0608 16.1874 17.8567 16.9089 18.9804C17.0189 19.1524 17.2012 19.2448 17.3869 19.2448C17.4958 19.2448 17.6063 19.2129 17.7037 19.1467C17.9679 18.9663 18.0397 18.5999 17.8649 18.3279C17.2035 17.2974 16.4152 15.6349 16.4152 13.5727C16.4152 9.38097 19.6708 6.18245 21.0005 6.18245Z",
2936
+ fill: "currentColor"
2937
+ }), /*#__PURE__*/react.createElement("path", {
2938
+ d: "M21.0006 4C18.8647 4 15.4386 7.67538 14.9501 12.0924C10.7804 10.6624 6.08976 12.4265 5.21342 14.4462C4.2725 16.615 6.49755 21.9481 10.8078 23.9378C10.9197 23.9895 11.0395 24.0262 11.1541 24.0733C11.1145 24.1207 11.0697 24.1618 11.0311 24.21C8.02614 27.9667 8.32839 33.7647 10.1044 35.277C10.662 35.7512 11.5926 36 12.7016 36C15.1257 35.9994 18.3998 34.817 20.4632 32.2383C20.6588 31.994 20.8381 31.7456 21.0018 31.4956C21.1703 31.754 21.3497 32.0031 21.5391 32.2396C23.6019 34.817 26.873 36 29.2984 36C30.4074 36 31.3391 35.7518 31.8967 35.2782C33.6728 33.7647 33.9738 27.9667 30.9689 24.2112C30.9314 24.1644 30.891 24.1251 30.8531 24.0794C30.9668 24.0325 31.0828 23.9889 31.1934 23.9378C35.503 21.9481 37.7275 16.6143 36.7865 14.4462C35.9062 12.4182 31.1811 10.6785 27.0487 12.0862C26.5622 7.63628 23.1183 4 21.0006 4ZM21.0006 5.26128C22.3089 5.26128 25.5934 8.42216 25.8653 12.5986C23.825 13.6439 22.5242 15.2566 21.7887 16.4625C21.6089 16.757 21.6948 17.1467 21.9809 17.3321C22.2671 17.5175 22.6442 17.4296 22.824 17.1338C23.7924 15.5452 25.1674 14.2823 26.6964 13.5766C30.6526 11.749 35.0917 13.626 35.6713 14.961C36.2508 16.2961 34.6499 20.9598 30.6931 22.7861C30.4413 22.9026 30.1758 23.0019 29.9062 23.0928C28.6021 21.9159 27.1792 21.2691 26.1113 20.9275C25.7873 20.8253 25.4456 21.0108 25.3459 21.3438C25.2456 21.6762 25.4267 22.0287 25.7495 22.1321C26.9582 22.5187 28.6818 23.3337 30.0256 25.0143C32.7847 28.4614 32.2119 33.3725 31.1182 34.3039C30.0244 35.2335 25.2416 34.8836 22.4813 31.4353C22.1874 31.0683 21.9249 30.665 21.6908 30.2405C22.3048 28.9205 22.5697 27.633 22.6711 26.65C22.7066 26.3038 22.4641 25.9938 22.1278 25.9566C21.7952 25.9194 21.4916 26.1702 21.4555 26.517C21.3204 27.8256 20.8741 29.7414 19.5187 31.4353C16.7596 34.8836 11.9755 35.236 10.883 34.3039C9.78923 33.3731 9.21525 28.4614 11.9744 25.0131C12.1212 24.8299 12.2819 24.662 12.4413 24.4945C13.2186 24.6869 14.027 24.7963 14.851 24.7963C15.4893 24.7963 16.1357 24.7381 16.7759 24.6189C17.1085 24.5571 17.3289 24.2285 17.269 23.8861C17.2091 23.543 16.8911 23.3131 16.5597 23.3761C14.7329 23.7154 12.8671 23.5057 11.3069 22.7849C7.35067 20.9586 5.75031 16.2949 6.3299 14.9598C6.87057 13.7124 11.0675 11.8944 14.8987 13.4103C14.9637 15.7982 15.8666 17.7138 16.6362 18.9124C16.7535 19.0959 16.9479 19.1945 17.146 19.1945C17.2622 19.1945 17.38 19.1604 17.484 19.0898C17.7658 18.8974 17.8424 18.5066 17.6559 18.2165C16.9504 17.1173 16.1096 15.3439 16.1096 13.1443C16.1096 8.67303 19.5822 5.26128 21.0006 5.26128Z",
2939
+ fill: "currentColor"
2940
+ }));
42
2941
  };
43
- const Hero8 = () => {
44
- return /*#__PURE__*/React.createElement("div", null, "Example Component");
2942
+ var SectionTitle1 = function SectionTitle1(props) {
2943
+ var _props$shopConfigStyl = props.shopConfigStyle,
2944
+ shopConfigStyle = _props$shopConfigStyl === void 0 ? {} : _props$shopConfigStyl,
2945
+ _props$data = props.data,
2946
+ data = _props$data === void 0 ? {} : _props$data;
2947
+ var _shopConfigStyle$colo = shopConfigStyle === null || shopConfigStyle === void 0 ? void 0 : shopConfigStyle.color,
2948
+ _shopConfigStyle$colo2 = _shopConfigStyle$colo.textHeading,
2949
+ textHeading = _shopConfigStyle$colo2 === void 0 ? "#000" : _shopConfigStyle$colo2,
2950
+ _shopConfigStyle$colo3 = _shopConfigStyle$colo.secondary,
2951
+ secondary = _shopConfigStyle$colo3 === void 0 ? "#000" : _shopConfigStyle$colo3,
2952
+ _shopConfigStyle$colo4 = _shopConfigStyle$colo.textSecondary,
2953
+ textSecondary = _shopConfigStyle$colo4 === void 0 ? "#000" : _shopConfigStyle$colo4;
2954
+ return /*#__PURE__*/react.createElement("div", null, data !== null && data !== void 0 && data.sectionTitle ? /*#__PURE__*/react.createElement("div", {
2955
+ className: "text-center text-4xl font-merienda font-semibold leading-relaxed",
2956
+ style: {
2957
+ color: textHeading
2958
+ }
2959
+ }, data === null || data === void 0 ? void 0 : data.sectionTitle) : null, /*#__PURE__*/react.createElement("div", {
2960
+ className: "flex items-center justify-center"
2961
+ }, /*#__PURE__*/react.createElement("div", {
2962
+ className: "w-32 h-0.5 rounded-full",
2963
+ style: {
2964
+ backgroundColor: secondary
2965
+ }
2966
+ }), /*#__PURE__*/react.createElement(SvgIcon, {
2967
+ className: "w-9 h-9",
2968
+ style: {
2969
+ color: secondary
2970
+ }
2971
+ }), /*#__PURE__*/react.createElement("div", {
2972
+ className: " w-32 h-0.5 rounded-full",
2973
+ style: {
2974
+ backgroundColor: secondary
2975
+ }
2976
+ })), data !== null && data !== void 0 && data.sectionDescription ? /*#__PURE__*/react.createElement("div", {
2977
+ className: "text-xl font-medium text-center leading-relaxed",
2978
+ style: {
2979
+ color: textSecondary
2980
+ }
2981
+ }, data === null || data === void 0 ? void 0 : data.sectionDescription) : null);
45
2982
  };
46
2983
 
47
- export { ExampleComponent1, Hero7, Hero8 };
2984
+ export { Features7, Hero7, SectionTitle1 };
48
2985
  //# sourceMappingURL=index.modern.js.map