react-router-hono-server 2.8.4 → 2.8.5

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,1584 +0,0 @@
1
- import {
2
- __commonJS
3
- } from "./chunk-FTA5RKYX.js";
4
-
5
- // node_modules/react/cjs/react.production.js
6
- var require_react_production = __commonJS({
7
- "node_modules/react/cjs/react.production.js"(exports) {
8
- "use strict";
9
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
10
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
11
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
12
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
13
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
14
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
15
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
16
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
17
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
18
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
19
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
20
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
21
- function getIteratorFn(maybeIterable) {
22
- if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
23
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
24
- return "function" === typeof maybeIterable ? maybeIterable : null;
25
- }
26
- var ReactNoopUpdateQueue = {
27
- isMounted: function() {
28
- return false;
29
- },
30
- enqueueForceUpdate: function() {
31
- },
32
- enqueueReplaceState: function() {
33
- },
34
- enqueueSetState: function() {
35
- }
36
- };
37
- var assign = Object.assign;
38
- var emptyObject = {};
39
- function Component(props, context, updater) {
40
- this.props = props;
41
- this.context = context;
42
- this.refs = emptyObject;
43
- this.updater = updater || ReactNoopUpdateQueue;
44
- }
45
- Component.prototype.isReactComponent = {};
46
- Component.prototype.setState = function(partialState, callback) {
47
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
48
- throw Error(
49
- "takes an object of state variables to update or a function which returns an object of state variables."
50
- );
51
- this.updater.enqueueSetState(this, partialState, callback, "setState");
52
- };
53
- Component.prototype.forceUpdate = function(callback) {
54
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
55
- };
56
- function ComponentDummy() {
57
- }
58
- ComponentDummy.prototype = Component.prototype;
59
- function PureComponent(props, context, updater) {
60
- this.props = props;
61
- this.context = context;
62
- this.refs = emptyObject;
63
- this.updater = updater || ReactNoopUpdateQueue;
64
- }
65
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
66
- pureComponentPrototype.constructor = PureComponent;
67
- assign(pureComponentPrototype, Component.prototype);
68
- pureComponentPrototype.isPureReactComponent = true;
69
- var isArrayImpl = Array.isArray;
70
- var ReactSharedInternals = { H: null, A: null, T: null, S: null };
71
- var hasOwnProperty = Object.prototype.hasOwnProperty;
72
- function ReactElement(type, key, self, source, owner, props) {
73
- self = props.ref;
74
- return {
75
- $$typeof: REACT_ELEMENT_TYPE,
76
- type,
77
- key,
78
- ref: void 0 !== self ? self : null,
79
- props
80
- };
81
- }
82
- function cloneAndReplaceKey(oldElement, newKey) {
83
- return ReactElement(
84
- oldElement.type,
85
- newKey,
86
- void 0,
87
- void 0,
88
- void 0,
89
- oldElement.props
90
- );
91
- }
92
- function isValidElement(object) {
93
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
94
- }
95
- function escape(key) {
96
- var escaperLookup = { "=": "=0", ":": "=2" };
97
- return "$" + key.replace(/[=:]/g, function(match) {
98
- return escaperLookup[match];
99
- });
100
- }
101
- var userProvidedKeyEscapeRegex = /\/+/g;
102
- function getElementKey(element, index) {
103
- return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
104
- }
105
- function noop$1() {
106
- }
107
- function resolveThenable(thenable) {
108
- switch (thenable.status) {
109
- case "fulfilled":
110
- return thenable.value;
111
- case "rejected":
112
- throw thenable.reason;
113
- default:
114
- switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
115
- function(fulfilledValue) {
116
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
117
- },
118
- function(error) {
119
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
120
- }
121
- )), thenable.status) {
122
- case "fulfilled":
123
- return thenable.value;
124
- case "rejected":
125
- throw thenable.reason;
126
- }
127
- }
128
- throw thenable;
129
- }
130
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
131
- var type = typeof children;
132
- if ("undefined" === type || "boolean" === type) children = null;
133
- var invokeCallback = false;
134
- if (null === children) invokeCallback = true;
135
- else
136
- switch (type) {
137
- case "bigint":
138
- case "string":
139
- case "number":
140
- invokeCallback = true;
141
- break;
142
- case "object":
143
- switch (children.$$typeof) {
144
- case REACT_ELEMENT_TYPE:
145
- case REACT_PORTAL_TYPE:
146
- invokeCallback = true;
147
- break;
148
- case REACT_LAZY_TYPE:
149
- return invokeCallback = children._init, mapIntoArray(
150
- invokeCallback(children._payload),
151
- array,
152
- escapedPrefix,
153
- nameSoFar,
154
- callback
155
- );
156
- }
157
- }
158
- if (invokeCallback)
159
- return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
160
- return c;
161
- })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
162
- callback,
163
- escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
164
- userProvidedKeyEscapeRegex,
165
- "$&/"
166
- ) + "/") + invokeCallback
167
- )), array.push(callback)), 1;
168
- invokeCallback = 0;
169
- var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
170
- if (isArrayImpl(children))
171
- for (var i = 0; i < children.length; i++)
172
- nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
173
- nameSoFar,
174
- array,
175
- escapedPrefix,
176
- type,
177
- callback
178
- );
179
- else if (i = getIteratorFn(children), "function" === typeof i)
180
- for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
181
- nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
182
- nameSoFar,
183
- array,
184
- escapedPrefix,
185
- type,
186
- callback
187
- );
188
- else if ("object" === type) {
189
- if ("function" === typeof children.then)
190
- return mapIntoArray(
191
- resolveThenable(children),
192
- array,
193
- escapedPrefix,
194
- nameSoFar,
195
- callback
196
- );
197
- array = String(children);
198
- throw Error(
199
- "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
200
- );
201
- }
202
- return invokeCallback;
203
- }
204
- function mapChildren(children, func, context) {
205
- if (null == children) return children;
206
- var result = [], count = 0;
207
- mapIntoArray(children, result, "", "", function(child) {
208
- return func.call(context, child, count++);
209
- });
210
- return result;
211
- }
212
- function lazyInitializer(payload) {
213
- if (-1 === payload._status) {
214
- var ctor = payload._result;
215
- ctor = ctor();
216
- ctor.then(
217
- function(moduleObject) {
218
- if (0 === payload._status || -1 === payload._status)
219
- payload._status = 1, payload._result = moduleObject;
220
- },
221
- function(error) {
222
- if (0 === payload._status || -1 === payload._status)
223
- payload._status = 2, payload._result = error;
224
- }
225
- );
226
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
227
- }
228
- if (1 === payload._status) return payload._result.default;
229
- throw payload._result;
230
- }
231
- var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
232
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
233
- var event = new window.ErrorEvent("error", {
234
- bubbles: true,
235
- cancelable: true,
236
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
237
- error
238
- });
239
- if (!window.dispatchEvent(event)) return;
240
- } else if ("object" === typeof process && "function" === typeof process.emit) {
241
- process.emit("uncaughtException", error);
242
- return;
243
- }
244
- console.error(error);
245
- };
246
- function noop() {
247
- }
248
- exports.Children = {
249
- map: mapChildren,
250
- forEach: function(children, forEachFunc, forEachContext) {
251
- mapChildren(
252
- children,
253
- function() {
254
- forEachFunc.apply(this, arguments);
255
- },
256
- forEachContext
257
- );
258
- },
259
- count: function(children) {
260
- var n = 0;
261
- mapChildren(children, function() {
262
- n++;
263
- });
264
- return n;
265
- },
266
- toArray: function(children) {
267
- return mapChildren(children, function(child) {
268
- return child;
269
- }) || [];
270
- },
271
- only: function(children) {
272
- if (!isValidElement(children))
273
- throw Error(
274
- "React.Children.only expected to receive a single React element child."
275
- );
276
- return children;
277
- }
278
- };
279
- exports.Component = Component;
280
- exports.Fragment = REACT_FRAGMENT_TYPE;
281
- exports.Profiler = REACT_PROFILER_TYPE;
282
- exports.PureComponent = PureComponent;
283
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
284
- exports.Suspense = REACT_SUSPENSE_TYPE;
285
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
286
- exports.act = function() {
287
- throw Error("act(...) is not supported in production builds of React.");
288
- };
289
- exports.cache = function(fn) {
290
- return function() {
291
- return fn.apply(null, arguments);
292
- };
293
- };
294
- exports.cloneElement = function(element, config, children) {
295
- if (null === element || void 0 === element)
296
- throw Error(
297
- "The argument must be a React element, but you passed " + element + "."
298
- );
299
- var props = assign({}, element.props), key = element.key, owner = void 0;
300
- if (null != config)
301
- for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
302
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
303
- var propName = arguments.length - 2;
304
- if (1 === propName) props.children = children;
305
- else if (1 < propName) {
306
- for (var childArray = Array(propName), i = 0; i < propName; i++)
307
- childArray[i] = arguments[i + 2];
308
- props.children = childArray;
309
- }
310
- return ReactElement(element.type, key, void 0, void 0, owner, props);
311
- };
312
- exports.createContext = function(defaultValue) {
313
- defaultValue = {
314
- $$typeof: REACT_CONTEXT_TYPE,
315
- _currentValue: defaultValue,
316
- _currentValue2: defaultValue,
317
- _threadCount: 0,
318
- Provider: null,
319
- Consumer: null
320
- };
321
- defaultValue.Provider = defaultValue;
322
- defaultValue.Consumer = {
323
- $$typeof: REACT_CONSUMER_TYPE,
324
- _context: defaultValue
325
- };
326
- return defaultValue;
327
- };
328
- exports.createElement = function(type, config, children) {
329
- var propName, props = {}, key = null;
330
- if (null != config)
331
- for (propName in void 0 !== config.key && (key = "" + config.key), config)
332
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
333
- var childrenLength = arguments.length - 2;
334
- if (1 === childrenLength) props.children = children;
335
- else if (1 < childrenLength) {
336
- for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
337
- childArray[i] = arguments[i + 2];
338
- props.children = childArray;
339
- }
340
- if (type && type.defaultProps)
341
- for (propName in childrenLength = type.defaultProps, childrenLength)
342
- void 0 === props[propName] && (props[propName] = childrenLength[propName]);
343
- return ReactElement(type, key, void 0, void 0, null, props);
344
- };
345
- exports.createRef = function() {
346
- return { current: null };
347
- };
348
- exports.forwardRef = function(render) {
349
- return { $$typeof: REACT_FORWARD_REF_TYPE, render };
350
- };
351
- exports.isValidElement = isValidElement;
352
- exports.lazy = function(ctor) {
353
- return {
354
- $$typeof: REACT_LAZY_TYPE,
355
- _payload: { _status: -1, _result: ctor },
356
- _init: lazyInitializer
357
- };
358
- };
359
- exports.memo = function(type, compare) {
360
- return {
361
- $$typeof: REACT_MEMO_TYPE,
362
- type,
363
- compare: void 0 === compare ? null : compare
364
- };
365
- };
366
- exports.startTransition = function(scope) {
367
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
368
- ReactSharedInternals.T = currentTransition;
369
- try {
370
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
371
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
372
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
373
- } catch (error) {
374
- reportGlobalError(error);
375
- } finally {
376
- ReactSharedInternals.T = prevTransition;
377
- }
378
- };
379
- exports.unstable_useCacheRefresh = function() {
380
- return ReactSharedInternals.H.useCacheRefresh();
381
- };
382
- exports.use = function(usable) {
383
- return ReactSharedInternals.H.use(usable);
384
- };
385
- exports.useActionState = function(action, initialState, permalink) {
386
- return ReactSharedInternals.H.useActionState(action, initialState, permalink);
387
- };
388
- exports.useCallback = function(callback, deps) {
389
- return ReactSharedInternals.H.useCallback(callback, deps);
390
- };
391
- exports.useContext = function(Context) {
392
- return ReactSharedInternals.H.useContext(Context);
393
- };
394
- exports.useDebugValue = function() {
395
- };
396
- exports.useDeferredValue = function(value, initialValue) {
397
- return ReactSharedInternals.H.useDeferredValue(value, initialValue);
398
- };
399
- exports.useEffect = function(create, deps) {
400
- return ReactSharedInternals.H.useEffect(create, deps);
401
- };
402
- exports.useId = function() {
403
- return ReactSharedInternals.H.useId();
404
- };
405
- exports.useImperativeHandle = function(ref, create, deps) {
406
- return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
407
- };
408
- exports.useInsertionEffect = function(create, deps) {
409
- return ReactSharedInternals.H.useInsertionEffect(create, deps);
410
- };
411
- exports.useLayoutEffect = function(create, deps) {
412
- return ReactSharedInternals.H.useLayoutEffect(create, deps);
413
- };
414
- exports.useMemo = function(create, deps) {
415
- return ReactSharedInternals.H.useMemo(create, deps);
416
- };
417
- exports.useOptimistic = function(passthrough, reducer) {
418
- return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
419
- };
420
- exports.useReducer = function(reducer, initialArg, init) {
421
- return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
422
- };
423
- exports.useRef = function(initialValue) {
424
- return ReactSharedInternals.H.useRef(initialValue);
425
- };
426
- exports.useState = function(initialState) {
427
- return ReactSharedInternals.H.useState(initialState);
428
- };
429
- exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
430
- return ReactSharedInternals.H.useSyncExternalStore(
431
- subscribe,
432
- getSnapshot,
433
- getServerSnapshot
434
- );
435
- };
436
- exports.useTransition = function() {
437
- return ReactSharedInternals.H.useTransition();
438
- };
439
- exports.version = "19.0.0";
440
- }
441
- });
442
-
443
- // node_modules/react/cjs/react.development.js
444
- var require_react_development = __commonJS({
445
- "node_modules/react/cjs/react.development.js"(exports, module) {
446
- "use strict";
447
- "production" !== process.env.NODE_ENV && function() {
448
- function defineDeprecationWarning(methodName, info) {
449
- Object.defineProperty(Component.prototype, methodName, {
450
- get: function() {
451
- console.warn(
452
- "%s(...) is deprecated in plain JavaScript React classes. %s",
453
- info[0],
454
- info[1]
455
- );
456
- }
457
- });
458
- }
459
- function getIteratorFn(maybeIterable) {
460
- if (null === maybeIterable || "object" !== typeof maybeIterable)
461
- return null;
462
- maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
463
- return "function" === typeof maybeIterable ? maybeIterable : null;
464
- }
465
- function warnNoop(publicInstance, callerName) {
466
- publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
467
- var warningKey = publicInstance + "." + callerName;
468
- didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
469
- "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.",
470
- callerName,
471
- publicInstance
472
- ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
473
- }
474
- function Component(props, context, updater) {
475
- this.props = props;
476
- this.context = context;
477
- this.refs = emptyObject;
478
- this.updater = updater || ReactNoopUpdateQueue;
479
- }
480
- function ComponentDummy() {
481
- }
482
- function PureComponent(props, context, updater) {
483
- this.props = props;
484
- this.context = context;
485
- this.refs = emptyObject;
486
- this.updater = updater || ReactNoopUpdateQueue;
487
- }
488
- function testStringCoercion(value) {
489
- return "" + value;
490
- }
491
- function checkKeyStringCoercion(value) {
492
- try {
493
- testStringCoercion(value);
494
- var JSCompiler_inline_result = false;
495
- } catch (e) {
496
- JSCompiler_inline_result = true;
497
- }
498
- if (JSCompiler_inline_result) {
499
- JSCompiler_inline_result = console;
500
- var JSCompiler_temp_const = JSCompiler_inline_result.error;
501
- var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
502
- JSCompiler_temp_const.call(
503
- JSCompiler_inline_result,
504
- "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
505
- JSCompiler_inline_result$jscomp$0
506
- );
507
- return testStringCoercion(value);
508
- }
509
- }
510
- function getComponentNameFromType(type) {
511
- if (null == type) return null;
512
- if ("function" === typeof type)
513
- return type.$$typeof === REACT_CLIENT_REFERENCE$2 ? null : type.displayName || type.name || null;
514
- if ("string" === typeof type) return type;
515
- switch (type) {
516
- case REACT_FRAGMENT_TYPE:
517
- return "Fragment";
518
- case REACT_PORTAL_TYPE:
519
- return "Portal";
520
- case REACT_PROFILER_TYPE:
521
- return "Profiler";
522
- case REACT_STRICT_MODE_TYPE:
523
- return "StrictMode";
524
- case REACT_SUSPENSE_TYPE:
525
- return "Suspense";
526
- case REACT_SUSPENSE_LIST_TYPE:
527
- return "SuspenseList";
528
- }
529
- if ("object" === typeof type)
530
- switch ("number" === typeof type.tag && console.error(
531
- "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
532
- ), type.$$typeof) {
533
- case REACT_CONTEXT_TYPE:
534
- return (type.displayName || "Context") + ".Provider";
535
- case REACT_CONSUMER_TYPE:
536
- return (type._context.displayName || "Context") + ".Consumer";
537
- case REACT_FORWARD_REF_TYPE:
538
- var innerType = type.render;
539
- type = type.displayName;
540
- type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
541
- return type;
542
- case REACT_MEMO_TYPE:
543
- return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
544
- case REACT_LAZY_TYPE:
545
- innerType = type._payload;
546
- type = type._init;
547
- try {
548
- return getComponentNameFromType(type(innerType));
549
- } catch (x) {
550
- }
551
- }
552
- return null;
553
- }
554
- function isValidElementType(type) {
555
- return "string" === typeof type || "function" === typeof type || type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_OFFSCREEN_TYPE || "object" === typeof type && null !== type && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_CONSUMER_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_CLIENT_REFERENCE$1 || void 0 !== type.getModuleId) ? true : false;
556
- }
557
- function disabledLog() {
558
- }
559
- function disableLogs() {
560
- if (0 === disabledDepth) {
561
- prevLog = console.log;
562
- prevInfo = console.info;
563
- prevWarn = console.warn;
564
- prevError = console.error;
565
- prevGroup = console.group;
566
- prevGroupCollapsed = console.groupCollapsed;
567
- prevGroupEnd = console.groupEnd;
568
- var props = {
569
- configurable: true,
570
- enumerable: true,
571
- value: disabledLog,
572
- writable: true
573
- };
574
- Object.defineProperties(console, {
575
- info: props,
576
- log: props,
577
- warn: props,
578
- error: props,
579
- group: props,
580
- groupCollapsed: props,
581
- groupEnd: props
582
- });
583
- }
584
- disabledDepth++;
585
- }
586
- function reenableLogs() {
587
- disabledDepth--;
588
- if (0 === disabledDepth) {
589
- var props = { configurable: true, enumerable: true, writable: true };
590
- Object.defineProperties(console, {
591
- log: assign({}, props, { value: prevLog }),
592
- info: assign({}, props, { value: prevInfo }),
593
- warn: assign({}, props, { value: prevWarn }),
594
- error: assign({}, props, { value: prevError }),
595
- group: assign({}, props, { value: prevGroup }),
596
- groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
597
- groupEnd: assign({}, props, { value: prevGroupEnd })
598
- });
599
- }
600
- 0 > disabledDepth && console.error(
601
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
602
- );
603
- }
604
- function describeBuiltInComponentFrame(name) {
605
- if (void 0 === prefix)
606
- try {
607
- throw Error();
608
- } catch (x) {
609
- var match = x.stack.trim().match(/\n( *(at )?)/);
610
- prefix = match && match[1] || "";
611
- suffix = -1 < x.stack.indexOf("\n at") ? " (<anonymous>)" : -1 < x.stack.indexOf("@") ? "@unknown:0:0" : "";
612
- }
613
- return "\n" + prefix + name + suffix;
614
- }
615
- function describeNativeComponentFrame(fn, construct) {
616
- if (!fn || reentry) return "";
617
- var frame = componentFrameCache.get(fn);
618
- if (void 0 !== frame) return frame;
619
- reentry = true;
620
- frame = Error.prepareStackTrace;
621
- Error.prepareStackTrace = void 0;
622
- var previousDispatcher = null;
623
- previousDispatcher = ReactSharedInternals.H;
624
- ReactSharedInternals.H = null;
625
- disableLogs();
626
- try {
627
- var RunInRootFrame = {
628
- DetermineComponentFrameRoot: function() {
629
- try {
630
- if (construct) {
631
- var Fake = function() {
632
- throw Error();
633
- };
634
- Object.defineProperty(Fake.prototype, "props", {
635
- set: function() {
636
- throw Error();
637
- }
638
- });
639
- if ("object" === typeof Reflect && Reflect.construct) {
640
- try {
641
- Reflect.construct(Fake, []);
642
- } catch (x) {
643
- var control = x;
644
- }
645
- Reflect.construct(fn, [], Fake);
646
- } else {
647
- try {
648
- Fake.call();
649
- } catch (x$0) {
650
- control = x$0;
651
- }
652
- fn.call(Fake.prototype);
653
- }
654
- } else {
655
- try {
656
- throw Error();
657
- } catch (x$1) {
658
- control = x$1;
659
- }
660
- (Fake = fn()) && "function" === typeof Fake.catch && Fake.catch(function() {
661
- });
662
- }
663
- } catch (sample) {
664
- if (sample && control && "string" === typeof sample.stack)
665
- return [sample.stack, control.stack];
666
- }
667
- return [null, null];
668
- }
669
- };
670
- RunInRootFrame.DetermineComponentFrameRoot.displayName = "DetermineComponentFrameRoot";
671
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
672
- RunInRootFrame.DetermineComponentFrameRoot,
673
- "name"
674
- );
675
- namePropDescriptor && namePropDescriptor.configurable && Object.defineProperty(
676
- RunInRootFrame.DetermineComponentFrameRoot,
677
- "name",
678
- { value: "DetermineComponentFrameRoot" }
679
- );
680
- var _RunInRootFrame$Deter = RunInRootFrame.DetermineComponentFrameRoot(), sampleStack = _RunInRootFrame$Deter[0], controlStack = _RunInRootFrame$Deter[1];
681
- if (sampleStack && controlStack) {
682
- var sampleLines = sampleStack.split("\n"), controlLines = controlStack.split("\n");
683
- for (_RunInRootFrame$Deter = namePropDescriptor = 0; namePropDescriptor < sampleLines.length && !sampleLines[namePropDescriptor].includes(
684
- "DetermineComponentFrameRoot"
685
- ); )
686
- namePropDescriptor++;
687
- for (; _RunInRootFrame$Deter < controlLines.length && !controlLines[_RunInRootFrame$Deter].includes(
688
- "DetermineComponentFrameRoot"
689
- ); )
690
- _RunInRootFrame$Deter++;
691
- if (namePropDescriptor === sampleLines.length || _RunInRootFrame$Deter === controlLines.length)
692
- for (namePropDescriptor = sampleLines.length - 1, _RunInRootFrame$Deter = controlLines.length - 1; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter && sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]; )
693
- _RunInRootFrame$Deter--;
694
- for (; 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter; namePropDescriptor--, _RunInRootFrame$Deter--)
695
- if (sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) {
696
- if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
697
- do
698
- if (namePropDescriptor--, _RunInRootFrame$Deter--, 0 > _RunInRootFrame$Deter || sampleLines[namePropDescriptor] !== controlLines[_RunInRootFrame$Deter]) {
699
- var _frame = "\n" + sampleLines[namePropDescriptor].replace(
700
- " at new ",
701
- " at "
702
- );
703
- fn.displayName && _frame.includes("<anonymous>") && (_frame = _frame.replace("<anonymous>", fn.displayName));
704
- "function" === typeof fn && componentFrameCache.set(fn, _frame);
705
- return _frame;
706
- }
707
- while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
708
- }
709
- break;
710
- }
711
- }
712
- } finally {
713
- reentry = false, ReactSharedInternals.H = previousDispatcher, reenableLogs(), Error.prepareStackTrace = frame;
714
- }
715
- sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "") ? describeBuiltInComponentFrame(sampleLines) : "";
716
- "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
717
- return sampleLines;
718
- }
719
- function describeUnknownElementTypeFrameInDEV(type) {
720
- if (null == type) return "";
721
- if ("function" === typeof type) {
722
- var prototype = type.prototype;
723
- return describeNativeComponentFrame(
724
- type,
725
- !(!prototype || !prototype.isReactComponent)
726
- );
727
- }
728
- if ("string" === typeof type) return describeBuiltInComponentFrame(type);
729
- switch (type) {
730
- case REACT_SUSPENSE_TYPE:
731
- return describeBuiltInComponentFrame("Suspense");
732
- case REACT_SUSPENSE_LIST_TYPE:
733
- return describeBuiltInComponentFrame("SuspenseList");
734
- }
735
- if ("object" === typeof type)
736
- switch (type.$$typeof) {
737
- case REACT_FORWARD_REF_TYPE:
738
- return type = describeNativeComponentFrame(type.render, false), type;
739
- case REACT_MEMO_TYPE:
740
- return describeUnknownElementTypeFrameInDEV(type.type);
741
- case REACT_LAZY_TYPE:
742
- prototype = type._payload;
743
- type = type._init;
744
- try {
745
- return describeUnknownElementTypeFrameInDEV(type(prototype));
746
- } catch (x) {
747
- }
748
- }
749
- return "";
750
- }
751
- function getOwner() {
752
- var dispatcher = ReactSharedInternals.A;
753
- return null === dispatcher ? null : dispatcher.getOwner();
754
- }
755
- function hasValidKey(config) {
756
- if (hasOwnProperty.call(config, "key")) {
757
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
758
- if (getter && getter.isReactWarning) return false;
759
- }
760
- return void 0 !== config.key;
761
- }
762
- function defineKeyPropWarningGetter(props, displayName) {
763
- function warnAboutAccessingKey() {
764
- specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
765
- "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
766
- displayName
767
- ));
768
- }
769
- warnAboutAccessingKey.isReactWarning = true;
770
- Object.defineProperty(props, "key", {
771
- get: warnAboutAccessingKey,
772
- configurable: true
773
- });
774
- }
775
- function elementRefGetterWithDeprecationWarning() {
776
- var componentName = getComponentNameFromType(this.type);
777
- didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
778
- "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
779
- ));
780
- componentName = this.props.ref;
781
- return void 0 !== componentName ? componentName : null;
782
- }
783
- function ReactElement(type, key, self, source, owner, props) {
784
- self = props.ref;
785
- type = {
786
- $$typeof: REACT_ELEMENT_TYPE,
787
- type,
788
- key,
789
- props,
790
- _owner: owner
791
- };
792
- null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
793
- enumerable: false,
794
- get: elementRefGetterWithDeprecationWarning
795
- }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
796
- type._store = {};
797
- Object.defineProperty(type._store, "validated", {
798
- configurable: false,
799
- enumerable: false,
800
- writable: true,
801
- value: 0
802
- });
803
- Object.defineProperty(type, "_debugInfo", {
804
- configurable: false,
805
- enumerable: false,
806
- writable: true,
807
- value: null
808
- });
809
- Object.freeze && (Object.freeze(type.props), Object.freeze(type));
810
- return type;
811
- }
812
- function cloneAndReplaceKey(oldElement, newKey) {
813
- newKey = ReactElement(
814
- oldElement.type,
815
- newKey,
816
- void 0,
817
- void 0,
818
- oldElement._owner,
819
- oldElement.props
820
- );
821
- newKey._store.validated = oldElement._store.validated;
822
- return newKey;
823
- }
824
- function validateChildKeys(node, parentType) {
825
- if ("object" === typeof node && node && node.$$typeof !== REACT_CLIENT_REFERENCE) {
826
- if (isArrayImpl(node))
827
- for (var i = 0; i < node.length; i++) {
828
- var child = node[i];
829
- isValidElement(child) && validateExplicitKey(child, parentType);
830
- }
831
- else if (isValidElement(node))
832
- node._store && (node._store.validated = 1);
833
- else if (i = getIteratorFn(node), "function" === typeof i && i !== node.entries && (i = i.call(node), i !== node))
834
- for (; !(node = i.next()).done; )
835
- isValidElement(node.value) && validateExplicitKey(node.value, parentType);
836
- }
837
- }
838
- function isValidElement(object) {
839
- return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
840
- }
841
- function validateExplicitKey(element, parentType) {
842
- if (element._store && !element._store.validated && null == element.key && (element._store.validated = 1, parentType = getCurrentComponentErrorInfo(parentType), !ownerHasKeyUseWarning[parentType])) {
843
- ownerHasKeyUseWarning[parentType] = true;
844
- var childOwner = "";
845
- element && null != element._owner && element._owner !== getOwner() && (childOwner = null, "number" === typeof element._owner.tag ? childOwner = getComponentNameFromType(element._owner.type) : "string" === typeof element._owner.name && (childOwner = element._owner.name), childOwner = " It was passed a child from " + childOwner + ".");
846
- var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
847
- ReactSharedInternals.getCurrentStack = function() {
848
- var stack = describeUnknownElementTypeFrameInDEV(element.type);
849
- prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
850
- return stack;
851
- };
852
- console.error(
853
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
854
- parentType,
855
- childOwner
856
- );
857
- ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
858
- }
859
- }
860
- function getCurrentComponentErrorInfo(parentType) {
861
- var info = "", owner = getOwner();
862
- owner && (owner = getComponentNameFromType(owner.type)) && (info = "\n\nCheck the render method of `" + owner + "`.");
863
- info || (parentType = getComponentNameFromType(parentType)) && (info = "\n\nCheck the top-level render call using <" + parentType + ">.");
864
- return info;
865
- }
866
- function escape(key) {
867
- var escaperLookup = { "=": "=0", ":": "=2" };
868
- return "$" + key.replace(/[=:]/g, function(match) {
869
- return escaperLookup[match];
870
- });
871
- }
872
- function getElementKey(element, index) {
873
- return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
874
- }
875
- function noop$1() {
876
- }
877
- function resolveThenable(thenable) {
878
- switch (thenable.status) {
879
- case "fulfilled":
880
- return thenable.value;
881
- case "rejected":
882
- throw thenable.reason;
883
- default:
884
- switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
885
- function(fulfilledValue) {
886
- "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
887
- },
888
- function(error) {
889
- "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
890
- }
891
- )), thenable.status) {
892
- case "fulfilled":
893
- return thenable.value;
894
- case "rejected":
895
- throw thenable.reason;
896
- }
897
- }
898
- throw thenable;
899
- }
900
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
901
- var type = typeof children;
902
- if ("undefined" === type || "boolean" === type) children = null;
903
- var invokeCallback = false;
904
- if (null === children) invokeCallback = true;
905
- else
906
- switch (type) {
907
- case "bigint":
908
- case "string":
909
- case "number":
910
- invokeCallback = true;
911
- break;
912
- case "object":
913
- switch (children.$$typeof) {
914
- case REACT_ELEMENT_TYPE:
915
- case REACT_PORTAL_TYPE:
916
- invokeCallback = true;
917
- break;
918
- case REACT_LAZY_TYPE:
919
- return invokeCallback = children._init, mapIntoArray(
920
- invokeCallback(children._payload),
921
- array,
922
- escapedPrefix,
923
- nameSoFar,
924
- callback
925
- );
926
- }
927
- }
928
- if (invokeCallback) {
929
- invokeCallback = children;
930
- callback = callback(invokeCallback);
931
- var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
932
- isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
933
- return c;
934
- })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
935
- callback,
936
- escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
937
- userProvidedKeyEscapeRegex,
938
- "$&/"
939
- ) + "/") + childKey
940
- ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
941
- return 1;
942
- }
943
- invokeCallback = 0;
944
- childKey = "" === nameSoFar ? "." : nameSoFar + ":";
945
- if (isArrayImpl(children))
946
- for (var i = 0; i < children.length; i++)
947
- nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
948
- nameSoFar,
949
- array,
950
- escapedPrefix,
951
- type,
952
- callback
953
- );
954
- else if (i = getIteratorFn(children), "function" === typeof i)
955
- for (i === children.entries && (didWarnAboutMaps || console.warn(
956
- "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
957
- ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
958
- nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
959
- nameSoFar,
960
- array,
961
- escapedPrefix,
962
- type,
963
- callback
964
- );
965
- else if ("object" === type) {
966
- if ("function" === typeof children.then)
967
- return mapIntoArray(
968
- resolveThenable(children),
969
- array,
970
- escapedPrefix,
971
- nameSoFar,
972
- callback
973
- );
974
- array = String(children);
975
- throw Error(
976
- "Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead."
977
- );
978
- }
979
- return invokeCallback;
980
- }
981
- function mapChildren(children, func, context) {
982
- if (null == children) return children;
983
- var result = [], count = 0;
984
- mapIntoArray(children, result, "", "", function(child) {
985
- return func.call(context, child, count++);
986
- });
987
- return result;
988
- }
989
- function lazyInitializer(payload) {
990
- if (-1 === payload._status) {
991
- var ctor = payload._result;
992
- ctor = ctor();
993
- ctor.then(
994
- function(moduleObject) {
995
- if (0 === payload._status || -1 === payload._status)
996
- payload._status = 1, payload._result = moduleObject;
997
- },
998
- function(error) {
999
- if (0 === payload._status || -1 === payload._status)
1000
- payload._status = 2, payload._result = error;
1001
- }
1002
- );
1003
- -1 === payload._status && (payload._status = 0, payload._result = ctor);
1004
- }
1005
- if (1 === payload._status)
1006
- return ctor = payload._result, void 0 === ctor && console.error(
1007
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
1008
- ctor
1009
- ), "default" in ctor || console.error(
1010
- "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
1011
- ctor
1012
- ), ctor.default;
1013
- throw payload._result;
1014
- }
1015
- function resolveDispatcher() {
1016
- var dispatcher = ReactSharedInternals.H;
1017
- null === dispatcher && console.error(
1018
- "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:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
1019
- );
1020
- return dispatcher;
1021
- }
1022
- function noop() {
1023
- }
1024
- function enqueueTask(task) {
1025
- if (null === enqueueTaskImpl)
1026
- try {
1027
- var requireString = ("require" + Math.random()).slice(0, 7);
1028
- enqueueTaskImpl = (module && module[requireString]).call(
1029
- module,
1030
- "timers"
1031
- ).setImmediate;
1032
- } catch (_err) {
1033
- enqueueTaskImpl = function(callback) {
1034
- false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
1035
- "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."
1036
- ));
1037
- var channel = new MessageChannel();
1038
- channel.port1.onmessage = callback;
1039
- channel.port2.postMessage(void 0);
1040
- };
1041
- }
1042
- return enqueueTaskImpl(task);
1043
- }
1044
- function aggregateErrors(errors) {
1045
- return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
1046
- }
1047
- function popActScope(prevActQueue, prevActScopeDepth) {
1048
- prevActScopeDepth !== actScopeDepth - 1 && console.error(
1049
- "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
1050
- );
1051
- actScopeDepth = prevActScopeDepth;
1052
- }
1053
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
1054
- var queue = ReactSharedInternals.actQueue;
1055
- if (null !== queue)
1056
- if (0 !== queue.length)
1057
- try {
1058
- flushActQueue(queue);
1059
- enqueueTask(function() {
1060
- return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
1061
- });
1062
- return;
1063
- } catch (error) {
1064
- ReactSharedInternals.thrownErrors.push(error);
1065
- }
1066
- else ReactSharedInternals.actQueue = null;
1067
- 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
1068
- }
1069
- function flushActQueue(queue) {
1070
- if (!isFlushing) {
1071
- isFlushing = true;
1072
- var i = 0;
1073
- try {
1074
- for (; i < queue.length; i++) {
1075
- var callback = queue[i];
1076
- do {
1077
- ReactSharedInternals.didUsePromise = false;
1078
- var continuation = callback(false);
1079
- if (null !== continuation) {
1080
- if (ReactSharedInternals.didUsePromise) {
1081
- queue[i] = callback;
1082
- queue.splice(0, i);
1083
- return;
1084
- }
1085
- callback = continuation;
1086
- } else break;
1087
- } while (1);
1088
- }
1089
- queue.length = 0;
1090
- } catch (error) {
1091
- queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
1092
- } finally {
1093
- isFlushing = false;
1094
- }
1095
- }
1096
- }
1097
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1098
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1099
- Symbol.for("react.provider");
1100
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
1101
- isMounted: function() {
1102
- return false;
1103
- },
1104
- enqueueForceUpdate: function(publicInstance) {
1105
- warnNoop(publicInstance, "forceUpdate");
1106
- },
1107
- enqueueReplaceState: function(publicInstance) {
1108
- warnNoop(publicInstance, "replaceState");
1109
- },
1110
- enqueueSetState: function(publicInstance) {
1111
- warnNoop(publicInstance, "setState");
1112
- }
1113
- }, assign = Object.assign, emptyObject = {};
1114
- Object.freeze(emptyObject);
1115
- Component.prototype.isReactComponent = {};
1116
- Component.prototype.setState = function(partialState, callback) {
1117
- if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
1118
- throw Error(
1119
- "takes an object of state variables to update or a function which returns an object of state variables."
1120
- );
1121
- this.updater.enqueueSetState(this, partialState, callback, "setState");
1122
- };
1123
- Component.prototype.forceUpdate = function(callback) {
1124
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1125
- };
1126
- var deprecatedAPIs = {
1127
- isMounted: [
1128
- "isMounted",
1129
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1130
- ],
1131
- replaceState: [
1132
- "replaceState",
1133
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1134
- ]
1135
- }, fnName;
1136
- for (fnName in deprecatedAPIs)
1137
- deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1138
- ComponentDummy.prototype = Component.prototype;
1139
- deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1140
- deprecatedAPIs.constructor = PureComponent;
1141
- assign(deprecatedAPIs, Component.prototype);
1142
- deprecatedAPIs.isPureReactComponent = true;
1143
- var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"), ReactSharedInternals = {
1144
- H: null,
1145
- A: null,
1146
- T: null,
1147
- S: null,
1148
- actQueue: null,
1149
- isBatchingLegacy: false,
1150
- didScheduleLegacyUpdate: false,
1151
- didUsePromise: false,
1152
- thrownErrors: [],
1153
- getCurrentStack: null
1154
- }, hasOwnProperty = Object.prototype.hasOwnProperty, REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"), disabledDepth = 0, prevLog, prevInfo, prevWarn, prevError, prevGroup, prevGroupCollapsed, prevGroupEnd;
1155
- disabledLog.__reactDisabledLog = true;
1156
- var prefix, suffix, reentry = false;
1157
- var componentFrameCache = new ("function" === typeof WeakMap ? WeakMap : Map)();
1158
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1159
- var didWarnAboutElementRef = {};
1160
- var ownerHasKeyUseWarning = {}, didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1161
- if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1162
- var event = new window.ErrorEvent("error", {
1163
- bubbles: true,
1164
- cancelable: true,
1165
- message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1166
- error
1167
- });
1168
- if (!window.dispatchEvent(event)) return;
1169
- } else if ("object" === typeof process && "function" === typeof process.emit) {
1170
- process.emit("uncaughtException", error);
1171
- return;
1172
- }
1173
- console.error(error);
1174
- }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1175
- queueMicrotask(function() {
1176
- return queueMicrotask(callback);
1177
- });
1178
- } : enqueueTask;
1179
- exports.Children = {
1180
- map: mapChildren,
1181
- forEach: function(children, forEachFunc, forEachContext) {
1182
- mapChildren(
1183
- children,
1184
- function() {
1185
- forEachFunc.apply(this, arguments);
1186
- },
1187
- forEachContext
1188
- );
1189
- },
1190
- count: function(children) {
1191
- var n = 0;
1192
- mapChildren(children, function() {
1193
- n++;
1194
- });
1195
- return n;
1196
- },
1197
- toArray: function(children) {
1198
- return mapChildren(children, function(child) {
1199
- return child;
1200
- }) || [];
1201
- },
1202
- only: function(children) {
1203
- if (!isValidElement(children))
1204
- throw Error(
1205
- "React.Children.only expected to receive a single React element child."
1206
- );
1207
- return children;
1208
- }
1209
- };
1210
- exports.Component = Component;
1211
- exports.Fragment = REACT_FRAGMENT_TYPE;
1212
- exports.Profiler = REACT_PROFILER_TYPE;
1213
- exports.PureComponent = PureComponent;
1214
- exports.StrictMode = REACT_STRICT_MODE_TYPE;
1215
- exports.Suspense = REACT_SUSPENSE_TYPE;
1216
- exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1217
- exports.act = function(callback) {
1218
- var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1219
- actScopeDepth++;
1220
- var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1221
- try {
1222
- var result = callback();
1223
- } catch (error) {
1224
- ReactSharedInternals.thrownErrors.push(error);
1225
- }
1226
- if (0 < ReactSharedInternals.thrownErrors.length)
1227
- throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1228
- if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1229
- var thenable = result;
1230
- queueSeveralMicrotasks(function() {
1231
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1232
- "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 () => ...);"
1233
- ));
1234
- });
1235
- return {
1236
- then: function(resolve, reject) {
1237
- didAwaitActCall = true;
1238
- thenable.then(
1239
- function(returnValue) {
1240
- popActScope(prevActQueue, prevActScopeDepth);
1241
- if (0 === prevActScopeDepth) {
1242
- try {
1243
- flushActQueue(queue), enqueueTask(function() {
1244
- return recursivelyFlushAsyncActWork(
1245
- returnValue,
1246
- resolve,
1247
- reject
1248
- );
1249
- });
1250
- } catch (error$2) {
1251
- ReactSharedInternals.thrownErrors.push(error$2);
1252
- }
1253
- if (0 < ReactSharedInternals.thrownErrors.length) {
1254
- var _thrownError = aggregateErrors(
1255
- ReactSharedInternals.thrownErrors
1256
- );
1257
- ReactSharedInternals.thrownErrors.length = 0;
1258
- reject(_thrownError);
1259
- }
1260
- } else resolve(returnValue);
1261
- },
1262
- function(error) {
1263
- popActScope(prevActQueue, prevActScopeDepth);
1264
- 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1265
- ReactSharedInternals.thrownErrors
1266
- ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1267
- }
1268
- );
1269
- }
1270
- };
1271
- }
1272
- var returnValue$jscomp$0 = result;
1273
- popActScope(prevActQueue, prevActScopeDepth);
1274
- 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1275
- didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1276
- "A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"
1277
- ));
1278
- }), ReactSharedInternals.actQueue = null);
1279
- if (0 < ReactSharedInternals.thrownErrors.length)
1280
- throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1281
- return {
1282
- then: function(resolve, reject) {
1283
- didAwaitActCall = true;
1284
- 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1285
- return recursivelyFlushAsyncActWork(
1286
- returnValue$jscomp$0,
1287
- resolve,
1288
- reject
1289
- );
1290
- })) : resolve(returnValue$jscomp$0);
1291
- }
1292
- };
1293
- };
1294
- exports.cache = function(fn) {
1295
- return function() {
1296
- return fn.apply(null, arguments);
1297
- };
1298
- };
1299
- exports.cloneElement = function(element, config, children) {
1300
- if (null === element || void 0 === element)
1301
- throw Error(
1302
- "The argument must be a React element, but you passed " + element + "."
1303
- );
1304
- var props = assign({}, element.props), key = element.key, owner = element._owner;
1305
- if (null != config) {
1306
- var JSCompiler_inline_result;
1307
- a: {
1308
- if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1309
- config,
1310
- "ref"
1311
- ).get) && JSCompiler_inline_result.isReactWarning) {
1312
- JSCompiler_inline_result = false;
1313
- break a;
1314
- }
1315
- JSCompiler_inline_result = void 0 !== config.ref;
1316
- }
1317
- JSCompiler_inline_result && (owner = getOwner());
1318
- hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1319
- for (propName in config)
1320
- !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1321
- }
1322
- var propName = arguments.length - 2;
1323
- if (1 === propName) props.children = children;
1324
- else if (1 < propName) {
1325
- JSCompiler_inline_result = Array(propName);
1326
- for (var i = 0; i < propName; i++)
1327
- JSCompiler_inline_result[i] = arguments[i + 2];
1328
- props.children = JSCompiler_inline_result;
1329
- }
1330
- props = ReactElement(element.type, key, void 0, void 0, owner, props);
1331
- for (key = 2; key < arguments.length; key++)
1332
- validateChildKeys(arguments[key], props.type);
1333
- return props;
1334
- };
1335
- exports.createContext = function(defaultValue) {
1336
- defaultValue = {
1337
- $$typeof: REACT_CONTEXT_TYPE,
1338
- _currentValue: defaultValue,
1339
- _currentValue2: defaultValue,
1340
- _threadCount: 0,
1341
- Provider: null,
1342
- Consumer: null
1343
- };
1344
- defaultValue.Provider = defaultValue;
1345
- defaultValue.Consumer = {
1346
- $$typeof: REACT_CONSUMER_TYPE,
1347
- _context: defaultValue
1348
- };
1349
- defaultValue._currentRenderer = null;
1350
- defaultValue._currentRenderer2 = null;
1351
- return defaultValue;
1352
- };
1353
- exports.createElement = function(type, config, children) {
1354
- if (isValidElementType(type))
1355
- for (var i = 2; i < arguments.length; i++)
1356
- validateChildKeys(arguments[i], type);
1357
- else {
1358
- i = "";
1359
- if (void 0 === type || "object" === typeof type && null !== type && 0 === Object.keys(type).length)
1360
- i += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1361
- if (null === type) var typeString = "null";
1362
- else
1363
- isArrayImpl(type) ? typeString = "array" : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE ? (typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />", i = " Did you accidentally export a JSX literal instead of a component?") : typeString = typeof type;
1364
- console.error(
1365
- "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
1366
- typeString,
1367
- i
1368
- );
1369
- }
1370
- var propName;
1371
- i = {};
1372
- typeString = null;
1373
- if (null != config)
1374
- for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1375
- "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1376
- )), hasValidKey(config) && (checkKeyStringCoercion(config.key), typeString = "" + config.key), config)
1377
- hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1378
- var childrenLength = arguments.length - 2;
1379
- if (1 === childrenLength) i.children = children;
1380
- else if (1 < childrenLength) {
1381
- for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1382
- childArray[_i] = arguments[_i + 2];
1383
- Object.freeze && Object.freeze(childArray);
1384
- i.children = childArray;
1385
- }
1386
- if (type && type.defaultProps)
1387
- for (propName in childrenLength = type.defaultProps, childrenLength)
1388
- void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1389
- typeString && defineKeyPropWarningGetter(
1390
- i,
1391
- "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1392
- );
1393
- return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
1394
- };
1395
- exports.createRef = function() {
1396
- var refObject = { current: null };
1397
- Object.seal(refObject);
1398
- return refObject;
1399
- };
1400
- exports.forwardRef = function(render) {
1401
- null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1402
- "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1403
- ) : "function" !== typeof render ? console.error(
1404
- "forwardRef requires a render function but was given %s.",
1405
- null === render ? "null" : typeof render
1406
- ) : 0 !== render.length && 2 !== render.length && console.error(
1407
- "forwardRef render functions accept exactly two parameters: props and ref. %s",
1408
- 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1409
- );
1410
- null != render && null != render.defaultProps && console.error(
1411
- "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1412
- );
1413
- var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1414
- Object.defineProperty(elementType, "displayName", {
1415
- enumerable: false,
1416
- configurable: true,
1417
- get: function() {
1418
- return ownName;
1419
- },
1420
- set: function(name) {
1421
- ownName = name;
1422
- render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1423
- }
1424
- });
1425
- return elementType;
1426
- };
1427
- exports.isValidElement = isValidElement;
1428
- exports.lazy = function(ctor) {
1429
- return {
1430
- $$typeof: REACT_LAZY_TYPE,
1431
- _payload: { _status: -1, _result: ctor },
1432
- _init: lazyInitializer
1433
- };
1434
- };
1435
- exports.memo = function(type, compare) {
1436
- isValidElementType(type) || console.error(
1437
- "memo: The first argument must be a component. Instead received: %s",
1438
- null === type ? "null" : typeof type
1439
- );
1440
- compare = {
1441
- $$typeof: REACT_MEMO_TYPE,
1442
- type,
1443
- compare: void 0 === compare ? null : compare
1444
- };
1445
- var ownName;
1446
- Object.defineProperty(compare, "displayName", {
1447
- enumerable: false,
1448
- configurable: true,
1449
- get: function() {
1450
- return ownName;
1451
- },
1452
- set: function(name) {
1453
- ownName = name;
1454
- type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1455
- }
1456
- });
1457
- return compare;
1458
- };
1459
- exports.startTransition = function(scope) {
1460
- var prevTransition = ReactSharedInternals.T, currentTransition = {};
1461
- ReactSharedInternals.T = currentTransition;
1462
- currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1463
- try {
1464
- var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1465
- null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1466
- "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1467
- } catch (error) {
1468
- reportGlobalError(error);
1469
- } finally {
1470
- null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1471
- "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."
1472
- )), ReactSharedInternals.T = prevTransition;
1473
- }
1474
- };
1475
- exports.unstable_useCacheRefresh = function() {
1476
- return resolveDispatcher().useCacheRefresh();
1477
- };
1478
- exports.use = function(usable) {
1479
- return resolveDispatcher().use(usable);
1480
- };
1481
- exports.useActionState = function(action, initialState, permalink) {
1482
- return resolveDispatcher().useActionState(
1483
- action,
1484
- initialState,
1485
- permalink
1486
- );
1487
- };
1488
- exports.useCallback = function(callback, deps) {
1489
- return resolveDispatcher().useCallback(callback, deps);
1490
- };
1491
- exports.useContext = function(Context) {
1492
- var dispatcher = resolveDispatcher();
1493
- Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1494
- "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1495
- );
1496
- return dispatcher.useContext(Context);
1497
- };
1498
- exports.useDebugValue = function(value, formatterFn) {
1499
- return resolveDispatcher().useDebugValue(value, formatterFn);
1500
- };
1501
- exports.useDeferredValue = function(value, initialValue) {
1502
- return resolveDispatcher().useDeferredValue(value, initialValue);
1503
- };
1504
- exports.useEffect = function(create, deps) {
1505
- return resolveDispatcher().useEffect(create, deps);
1506
- };
1507
- exports.useId = function() {
1508
- return resolveDispatcher().useId();
1509
- };
1510
- exports.useImperativeHandle = function(ref, create, deps) {
1511
- return resolveDispatcher().useImperativeHandle(ref, create, deps);
1512
- };
1513
- exports.useInsertionEffect = function(create, deps) {
1514
- return resolveDispatcher().useInsertionEffect(create, deps);
1515
- };
1516
- exports.useLayoutEffect = function(create, deps) {
1517
- return resolveDispatcher().useLayoutEffect(create, deps);
1518
- };
1519
- exports.useMemo = function(create, deps) {
1520
- return resolveDispatcher().useMemo(create, deps);
1521
- };
1522
- exports.useOptimistic = function(passthrough, reducer) {
1523
- return resolveDispatcher().useOptimistic(passthrough, reducer);
1524
- };
1525
- exports.useReducer = function(reducer, initialArg, init) {
1526
- return resolveDispatcher().useReducer(reducer, initialArg, init);
1527
- };
1528
- exports.useRef = function(initialValue) {
1529
- return resolveDispatcher().useRef(initialValue);
1530
- };
1531
- exports.useState = function(initialState) {
1532
- return resolveDispatcher().useState(initialState);
1533
- };
1534
- exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1535
- return resolveDispatcher().useSyncExternalStore(
1536
- subscribe,
1537
- getSnapshot,
1538
- getServerSnapshot
1539
- );
1540
- };
1541
- exports.useTransition = function() {
1542
- return resolveDispatcher().useTransition();
1543
- };
1544
- exports.version = "19.0.0";
1545
- "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1546
- }();
1547
- }
1548
- });
1549
-
1550
- // node_modules/react/index.js
1551
- var require_react = __commonJS({
1552
- "node_modules/react/index.js"(exports, module) {
1553
- if (process.env.NODE_ENV === "production") {
1554
- module.exports = require_react_production();
1555
- } else {
1556
- module.exports = require_react_development();
1557
- }
1558
- }
1559
- });
1560
- export default require_react();
1561
- /*! Bundled license information:
1562
-
1563
- react/cjs/react.production.js:
1564
- (**
1565
- * @license React
1566
- * react.production.js
1567
- *
1568
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1569
- *
1570
- * This source code is licensed under the MIT license found in the
1571
- * LICENSE file in the root directory of this source tree.
1572
- *)
1573
-
1574
- react/cjs/react.development.js:
1575
- (**
1576
- * @license React
1577
- * react.development.js
1578
- *
1579
- * Copyright (c) Meta Platforms, Inc. and affiliates.
1580
- *
1581
- * This source code is licensed under the MIT license found in the
1582
- * LICENSE file in the root directory of this source tree.
1583
- *)
1584
- */