react-toolkits 2.27.12 → 2.27.14

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