@wrdagency/react-islands 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -44,3091 +44,1721 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
44
44
  ));
45
45
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
46
46
 
47
- // node_modules/react/cjs/react.production.min.js
48
- var require_react_production_min = __commonJS({
49
- "node_modules/react/cjs/react.production.min.js"(exports2) {
47
+ // node_modules/react/cjs/react.production.js
48
+ var require_react_production = __commonJS({
49
+ "node_modules/react/cjs/react.production.js"(exports2) {
50
50
  "use strict";
51
- var l = Symbol.for("react.element");
52
- var n = Symbol.for("react.portal");
53
- var p = Symbol.for("react.fragment");
54
- var q = Symbol.for("react.strict_mode");
55
- var r = Symbol.for("react.profiler");
56
- var t = Symbol.for("react.provider");
57
- var u = Symbol.for("react.context");
58
- var v = Symbol.for("react.forward_ref");
59
- var w = Symbol.for("react.suspense");
60
- var x = Symbol.for("react.memo");
61
- var y = Symbol.for("react.lazy");
62
- var z = Symbol.iterator;
63
- function A(a) {
64
- if (null === a || "object" !== typeof a)
51
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
52
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
53
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
54
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
55
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
56
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
57
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
58
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
59
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
60
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
61
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
62
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
63
+ function getIteratorFn(maybeIterable) {
64
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
65
65
  return null;
66
- a = z && a[z] || a["@@iterator"];
67
- return "function" === typeof a ? a : null;
66
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
67
+ return "function" === typeof maybeIterable ? maybeIterable : null;
68
68
  }
69
- var B = { isMounted: function() {
70
- return false;
71
- }, enqueueForceUpdate: function() {
72
- }, enqueueReplaceState: function() {
73
- }, enqueueSetState: function() {
74
- } };
75
- var C = Object.assign;
76
- var D = {};
77
- function E(a, b, e) {
78
- this.props = a;
79
- this.context = b;
80
- this.refs = D;
81
- this.updater = e || B;
69
+ var ReactNoopUpdateQueue = {
70
+ isMounted: function() {
71
+ return false;
72
+ },
73
+ enqueueForceUpdate: function() {
74
+ },
75
+ enqueueReplaceState: function() {
76
+ },
77
+ enqueueSetState: function() {
78
+ }
79
+ };
80
+ var assign = Object.assign;
81
+ var emptyObject = {};
82
+ function Component(props, context, updater) {
83
+ this.props = props;
84
+ this.context = context;
85
+ this.refs = emptyObject;
86
+ this.updater = updater || ReactNoopUpdateQueue;
82
87
  }
83
- E.prototype.isReactComponent = {};
84
- E.prototype.setState = function(a, b) {
85
- if ("object" !== typeof a && "function" !== typeof a && null != a)
86
- throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
87
- this.updater.enqueueSetState(this, a, b, "setState");
88
+ Component.prototype.isReactComponent = {};
89
+ Component.prototype.setState = function(partialState, callback) {
90
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
91
+ throw Error(
92
+ "takes an object of state variables to update or a function which returns an object of state variables."
93
+ );
94
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
88
95
  };
89
- E.prototype.forceUpdate = function(a) {
90
- this.updater.enqueueForceUpdate(this, a, "forceUpdate");
96
+ Component.prototype.forceUpdate = function(callback) {
97
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
91
98
  };
92
- function F() {
99
+ function ComponentDummy() {
93
100
  }
94
- F.prototype = E.prototype;
95
- function G(a, b, e) {
96
- this.props = a;
97
- this.context = b;
98
- this.refs = D;
99
- this.updater = e || B;
101
+ ComponentDummy.prototype = Component.prototype;
102
+ function PureComponent(props, context, updater) {
103
+ this.props = props;
104
+ this.context = context;
105
+ this.refs = emptyObject;
106
+ this.updater = updater || ReactNoopUpdateQueue;
100
107
  }
101
- var H = G.prototype = new F();
102
- H.constructor = G;
103
- C(H, E.prototype);
104
- H.isPureReactComponent = true;
105
- var I = Array.isArray;
106
- var J = Object.prototype.hasOwnProperty;
107
- var K = { current: null };
108
- var L = { key: true, ref: true, __self: true, __source: true };
109
- function M(a, b, e) {
110
- var d, c = {}, k = null, h = null;
111
- if (null != b)
112
- for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b)
113
- J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
114
- var g = arguments.length - 2;
115
- if (1 === g)
116
- c.children = e;
117
- else if (1 < g) {
118
- for (var f = Array(g), m = 0; m < g; m++)
119
- f[m] = arguments[m + 2];
120
- c.children = f;
121
- }
122
- if (a && a.defaultProps)
123
- for (d in g = a.defaultProps, g)
124
- void 0 === c[d] && (c[d] = g[d]);
125
- return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
108
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
109
+ pureComponentPrototype.constructor = PureComponent;
110
+ assign(pureComponentPrototype, Component.prototype);
111
+ pureComponentPrototype.isPureReactComponent = true;
112
+ var isArrayImpl = Array.isArray;
113
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
114
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
115
+ function ReactElement(type, key, self, source, owner, props) {
116
+ self = props.ref;
117
+ return {
118
+ $$typeof: REACT_ELEMENT_TYPE,
119
+ type,
120
+ key,
121
+ ref: void 0 !== self ? self : null,
122
+ props
123
+ };
126
124
  }
127
- function N(a, b) {
128
- return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
125
+ function cloneAndReplaceKey(oldElement, newKey) {
126
+ return ReactElement(
127
+ oldElement.type,
128
+ newKey,
129
+ void 0,
130
+ void 0,
131
+ void 0,
132
+ oldElement.props
133
+ );
129
134
  }
130
- function O(a) {
131
- return "object" === typeof a && null !== a && a.$$typeof === l;
135
+ function isValidElement(object) {
136
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
132
137
  }
133
- function escape(a) {
134
- var b = { "=": "=0", ":": "=2" };
135
- return "$" + a.replace(/[=:]/g, function(a2) {
136
- return b[a2];
138
+ function escape(key) {
139
+ var escaperLookup = { "=": "=0", ":": "=2" };
140
+ return "$" + key.replace(/[=:]/g, function(match) {
141
+ return escaperLookup[match];
137
142
  });
138
143
  }
139
- var P = /\/+/g;
140
- function Q(a, b) {
141
- return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
144
+ var userProvidedKeyEscapeRegex = /\/+/g;
145
+ function getElementKey(element, index) {
146
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
147
+ }
148
+ function noop$1() {
142
149
  }
143
- function R(a, b, e, d, c) {
144
- var k = typeof a;
145
- if ("undefined" === k || "boolean" === k)
146
- a = null;
147
- var h = false;
148
- if (null === a)
149
- h = true;
150
+ function resolveThenable(thenable) {
151
+ switch (thenable.status) {
152
+ case "fulfilled":
153
+ return thenable.value;
154
+ case "rejected":
155
+ throw thenable.reason;
156
+ default:
157
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
158
+ function(fulfilledValue) {
159
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
160
+ },
161
+ function(error) {
162
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
163
+ }
164
+ )), thenable.status) {
165
+ case "fulfilled":
166
+ return thenable.value;
167
+ case "rejected":
168
+ throw thenable.reason;
169
+ }
170
+ }
171
+ throw thenable;
172
+ }
173
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
174
+ var type = typeof children;
175
+ if ("undefined" === type || "boolean" === type)
176
+ children = null;
177
+ var invokeCallback = false;
178
+ if (null === children)
179
+ invokeCallback = true;
150
180
  else
151
- switch (k) {
181
+ switch (type) {
182
+ case "bigint":
152
183
  case "string":
153
184
  case "number":
154
- h = true;
185
+ invokeCallback = true;
155
186
  break;
156
187
  case "object":
157
- switch (a.$$typeof) {
158
- case l:
159
- case n:
160
- h = true;
188
+ switch (children.$$typeof) {
189
+ case REACT_ELEMENT_TYPE:
190
+ case REACT_PORTAL_TYPE:
191
+ invokeCallback = true;
192
+ break;
193
+ case REACT_LAZY_TYPE:
194
+ return invokeCallback = children._init, mapIntoArray(
195
+ invokeCallback(children._payload),
196
+ array,
197
+ escapedPrefix,
198
+ nameSoFar,
199
+ callback
200
+ );
161
201
  }
162
202
  }
163
- if (h)
164
- return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
165
- return a2;
166
- })) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
167
- h = 0;
168
- d = "" === d ? "." : d + ":";
169
- if (I(a))
170
- for (var g = 0; g < a.length; g++) {
171
- k = a[g];
172
- var f = d + Q(k, g);
173
- h += R(k, b, e, f, c);
174
- }
175
- else if (f = A(a), "function" === typeof f)
176
- for (a = f.call(a), g = 0; !(k = a.next()).done; )
177
- k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
178
- else if ("object" === k)
179
- throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
180
- return h;
203
+ if (invokeCallback)
204
+ 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) {
205
+ return c;
206
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
207
+ callback,
208
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
209
+ userProvidedKeyEscapeRegex,
210
+ "$&/"
211
+ ) + "/") + invokeCallback
212
+ )), array.push(callback)), 1;
213
+ invokeCallback = 0;
214
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
215
+ if (isArrayImpl(children))
216
+ for (var i = 0; i < children.length; i++)
217
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
218
+ nameSoFar,
219
+ array,
220
+ escapedPrefix,
221
+ type,
222
+ callback
223
+ );
224
+ else if (i = getIteratorFn(children), "function" === typeof i)
225
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
226
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
227
+ nameSoFar,
228
+ array,
229
+ escapedPrefix,
230
+ type,
231
+ callback
232
+ );
233
+ else if ("object" === type) {
234
+ if ("function" === typeof children.then)
235
+ return mapIntoArray(
236
+ resolveThenable(children),
237
+ array,
238
+ escapedPrefix,
239
+ nameSoFar,
240
+ callback
241
+ );
242
+ array = String(children);
243
+ throw Error(
244
+ "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."
245
+ );
246
+ }
247
+ return invokeCallback;
181
248
  }
182
- function S(a, b, e) {
183
- if (null == a)
184
- return a;
185
- var d = [], c = 0;
186
- R(a, d, "", "", function(a2) {
187
- return b.call(e, a2, c++);
249
+ function mapChildren(children, func, context) {
250
+ if (null == children)
251
+ return children;
252
+ var result = [], count = 0;
253
+ mapIntoArray(children, result, "", "", function(child) {
254
+ return func.call(context, child, count++);
188
255
  });
189
- return d;
256
+ return result;
257
+ }
258
+ function lazyInitializer(payload) {
259
+ if (-1 === payload._status) {
260
+ var ctor = payload._result;
261
+ ctor = ctor();
262
+ ctor.then(
263
+ function(moduleObject) {
264
+ if (0 === payload._status || -1 === payload._status)
265
+ payload._status = 1, payload._result = moduleObject;
266
+ },
267
+ function(error) {
268
+ if (0 === payload._status || -1 === payload._status)
269
+ payload._status = 2, payload._result = error;
270
+ }
271
+ );
272
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
273
+ }
274
+ if (1 === payload._status)
275
+ return payload._result.default;
276
+ throw payload._result;
190
277
  }
191
- function T(a) {
192
- if (-1 === a._status) {
193
- var b = a._result;
194
- b = b();
195
- b.then(function(b2) {
196
- if (0 === a._status || -1 === a._status)
197
- a._status = 1, a._result = b2;
198
- }, function(b2) {
199
- if (0 === a._status || -1 === a._status)
200
- a._status = 2, a._result = b2;
278
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
279
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
280
+ var event = new window.ErrorEvent("error", {
281
+ bubbles: true,
282
+ cancelable: true,
283
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
284
+ error
201
285
  });
202
- -1 === a._status && (a._status = 0, a._result = b);
286
+ if (!window.dispatchEvent(event))
287
+ return;
288
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
289
+ process.emit("uncaughtException", error);
290
+ return;
203
291
  }
204
- if (1 === a._status)
205
- return a._result.default;
206
- throw a._result;
292
+ console.error(error);
293
+ };
294
+ function noop() {
207
295
  }
208
- var U = { current: null };
209
- var V = { transition: null };
210
- var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
211
- exports2.Children = { map: S, forEach: function(a, b, e) {
212
- S(a, function() {
213
- b.apply(this, arguments);
214
- }, e);
215
- }, count: function(a) {
216
- var b = 0;
217
- S(a, function() {
218
- b++;
219
- });
220
- return b;
221
- }, toArray: function(a) {
222
- return S(a, function(a2) {
223
- return a2;
224
- }) || [];
225
- }, only: function(a) {
226
- if (!O(a))
227
- throw Error("React.Children.only expected to receive a single React element child.");
228
- return a;
229
- } };
230
- exports2.Component = E;
231
- exports2.Fragment = p;
232
- exports2.Profiler = r;
233
- exports2.PureComponent = G;
234
- exports2.StrictMode = q;
235
- exports2.Suspense = w;
236
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
237
- exports2.cloneElement = function(a, b, e) {
238
- if (null === a || void 0 === a)
239
- throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
240
- var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
241
- if (null != b) {
242
- void 0 !== b.ref && (k = b.ref, h = K.current);
243
- void 0 !== b.key && (c = "" + b.key);
244
- if (a.type && a.type.defaultProps)
245
- var g = a.type.defaultProps;
246
- for (f in b)
247
- J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
296
+ exports2.Children = {
297
+ map: mapChildren,
298
+ forEach: function(children, forEachFunc, forEachContext) {
299
+ mapChildren(
300
+ children,
301
+ function() {
302
+ forEachFunc.apply(this, arguments);
303
+ },
304
+ forEachContext
305
+ );
306
+ },
307
+ count: function(children) {
308
+ var n = 0;
309
+ mapChildren(children, function() {
310
+ n++;
311
+ });
312
+ return n;
313
+ },
314
+ toArray: function(children) {
315
+ return mapChildren(children, function(child) {
316
+ return child;
317
+ }) || [];
318
+ },
319
+ only: function(children) {
320
+ if (!isValidElement(children))
321
+ throw Error(
322
+ "React.Children.only expected to receive a single React element child."
323
+ );
324
+ return children;
248
325
  }
249
- var f = arguments.length - 2;
250
- if (1 === f)
251
- d.children = e;
252
- else if (1 < f) {
253
- g = Array(f);
254
- for (var m = 0; m < f; m++)
255
- g[m] = arguments[m + 2];
256
- d.children = g;
326
+ };
327
+ exports2.Component = Component;
328
+ exports2.Fragment = REACT_FRAGMENT_TYPE;
329
+ exports2.Profiler = REACT_PROFILER_TYPE;
330
+ exports2.PureComponent = PureComponent;
331
+ exports2.StrictMode = REACT_STRICT_MODE_TYPE;
332
+ exports2.Suspense = REACT_SUSPENSE_TYPE;
333
+ exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
334
+ exports2.__COMPILER_RUNTIME = {
335
+ __proto__: null,
336
+ c: function(size) {
337
+ return ReactSharedInternals.H.useMemoCache(size);
338
+ }
339
+ };
340
+ exports2.cache = function(fn) {
341
+ return function() {
342
+ return fn.apply(null, arguments);
343
+ };
344
+ };
345
+ exports2.cloneElement = function(element, config, children) {
346
+ if (null === element || void 0 === element)
347
+ throw Error(
348
+ "The argument must be a React element, but you passed " + element + "."
349
+ );
350
+ var props = assign({}, element.props), key = element.key, owner = void 0;
351
+ if (null != config)
352
+ for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
353
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
354
+ var propName = arguments.length - 2;
355
+ if (1 === propName)
356
+ props.children = children;
357
+ else if (1 < propName) {
358
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
359
+ childArray[i] = arguments[i + 2];
360
+ props.children = childArray;
257
361
  }
258
- return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
362
+ return ReactElement(element.type, key, void 0, void 0, owner, props);
259
363
  };
260
- exports2.createContext = function(a) {
261
- a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
262
- a.Provider = { $$typeof: t, _context: a };
263
- return a.Consumer = a;
364
+ exports2.createContext = function(defaultValue) {
365
+ defaultValue = {
366
+ $$typeof: REACT_CONTEXT_TYPE,
367
+ _currentValue: defaultValue,
368
+ _currentValue2: defaultValue,
369
+ _threadCount: 0,
370
+ Provider: null,
371
+ Consumer: null
372
+ };
373
+ defaultValue.Provider = defaultValue;
374
+ defaultValue.Consumer = {
375
+ $$typeof: REACT_CONSUMER_TYPE,
376
+ _context: defaultValue
377
+ };
378
+ return defaultValue;
264
379
  };
265
- exports2.createElement = M;
266
- exports2.createFactory = function(a) {
267
- var b = M.bind(null, a);
268
- b.type = a;
269
- return b;
380
+ exports2.createElement = function(type, config, children) {
381
+ var propName, props = {}, key = null;
382
+ if (null != config)
383
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
384
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
385
+ var childrenLength = arguments.length - 2;
386
+ if (1 === childrenLength)
387
+ props.children = children;
388
+ else if (1 < childrenLength) {
389
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
390
+ childArray[i] = arguments[i + 2];
391
+ props.children = childArray;
392
+ }
393
+ if (type && type.defaultProps)
394
+ for (propName in childrenLength = type.defaultProps, childrenLength)
395
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
396
+ return ReactElement(type, key, void 0, void 0, null, props);
270
397
  };
271
398
  exports2.createRef = function() {
272
399
  return { current: null };
273
400
  };
274
- exports2.forwardRef = function(a) {
275
- return { $$typeof: v, render: a };
401
+ exports2.forwardRef = function(render) {
402
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
276
403
  };
277
- exports2.isValidElement = O;
278
- exports2.lazy = function(a) {
279
- return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
404
+ exports2.isValidElement = isValidElement;
405
+ exports2.lazy = function(ctor) {
406
+ return {
407
+ $$typeof: REACT_LAZY_TYPE,
408
+ _payload: { _status: -1, _result: ctor },
409
+ _init: lazyInitializer
410
+ };
280
411
  };
281
- exports2.memo = function(a, b) {
282
- return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
412
+ exports2.memo = function(type, compare) {
413
+ return {
414
+ $$typeof: REACT_MEMO_TYPE,
415
+ type,
416
+ compare: void 0 === compare ? null : compare
417
+ };
283
418
  };
284
- exports2.startTransition = function(a) {
285
- var b = V.transition;
286
- V.transition = {};
419
+ exports2.startTransition = function(scope) {
420
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
421
+ ReactSharedInternals.T = currentTransition;
287
422
  try {
288
- a();
423
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
424
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
425
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
426
+ } catch (error) {
427
+ reportGlobalError(error);
289
428
  } finally {
290
- V.transition = b;
429
+ ReactSharedInternals.T = prevTransition;
291
430
  }
292
431
  };
293
- exports2.unstable_act = function() {
294
- throw Error("act(...) is not supported in production builds of React.");
295
- };
296
- exports2.useCallback = function(a, b) {
297
- return U.current.useCallback(a, b);
432
+ exports2.unstable_useCacheRefresh = function() {
433
+ return ReactSharedInternals.H.useCacheRefresh();
298
434
  };
299
- exports2.useContext = function(a) {
300
- return U.current.useContext(a);
435
+ exports2.use = function(usable) {
436
+ return ReactSharedInternals.H.use(usable);
301
437
  };
302
- exports2.useDebugValue = function() {
438
+ exports2.useActionState = function(action, initialState, permalink) {
439
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
303
440
  };
304
- exports2.useDeferredValue = function(a) {
305
- return U.current.useDeferredValue(a);
441
+ exports2.useCallback = function(callback, deps) {
442
+ return ReactSharedInternals.H.useCallback(callback, deps);
306
443
  };
307
- exports2.useEffect = function(a, b) {
308
- return U.current.useEffect(a, b);
444
+ exports2.useContext = function(Context) {
445
+ return ReactSharedInternals.H.useContext(Context);
309
446
  };
310
- exports2.useId = function() {
311
- return U.current.useId();
447
+ exports2.useDebugValue = function() {
312
448
  };
313
- exports2.useImperativeHandle = function(a, b, e) {
314
- return U.current.useImperativeHandle(a, b, e);
449
+ exports2.useDeferredValue = function(value, initialValue) {
450
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
315
451
  };
316
- exports2.useInsertionEffect = function(a, b) {
317
- return U.current.useInsertionEffect(a, b);
452
+ exports2.useEffect = function(create, createDeps, update) {
453
+ var dispatcher = ReactSharedInternals.H;
454
+ if ("function" === typeof update)
455
+ throw Error(
456
+ "useEffect CRUD overload is not enabled in this build of React."
457
+ );
458
+ return dispatcher.useEffect(create, createDeps);
318
459
  };
319
- exports2.useLayoutEffect = function(a, b) {
320
- return U.current.useLayoutEffect(a, b);
460
+ exports2.useId = function() {
461
+ return ReactSharedInternals.H.useId();
321
462
  };
322
- exports2.useMemo = function(a, b) {
323
- return U.current.useMemo(a, b);
463
+ exports2.useImperativeHandle = function(ref, create, deps) {
464
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
324
465
  };
325
- exports2.useReducer = function(a, b, e) {
326
- return U.current.useReducer(a, b, e);
466
+ exports2.useInsertionEffect = function(create, deps) {
467
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
327
468
  };
328
- exports2.useRef = function(a) {
329
- return U.current.useRef(a);
469
+ exports2.useLayoutEffect = function(create, deps) {
470
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
330
471
  };
331
- exports2.useState = function(a) {
332
- return U.current.useState(a);
472
+ exports2.useMemo = function(create, deps) {
473
+ return ReactSharedInternals.H.useMemo(create, deps);
333
474
  };
334
- exports2.useSyncExternalStore = function(a, b, e) {
335
- return U.current.useSyncExternalStore(a, b, e);
475
+ exports2.useOptimistic = function(passthrough, reducer) {
476
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
336
477
  };
337
- exports2.useTransition = function() {
338
- return U.current.useTransition();
478
+ exports2.useReducer = function(reducer, initialArg, init) {
479
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
339
480
  };
340
- exports2.version = "18.2.0";
341
- }
342
- });
343
-
344
- // node_modules/react/cjs/react.development.js
345
- var require_react_development = __commonJS({
346
- "node_modules/react/cjs/react.development.js"(exports2, module2) {
347
- "use strict";
348
- if (process.env.NODE_ENV !== "production") {
349
- (function() {
350
- "use strict";
351
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
352
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
353
- }
354
- var ReactVersion = "18.2.0";
355
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
356
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
357
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
358
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
359
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
360
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
361
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
362
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
363
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
364
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
365
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
366
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
367
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
368
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
369
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
370
- function getIteratorFn(maybeIterable) {
371
- if (maybeIterable === null || typeof maybeIterable !== "object") {
372
- return null;
373
- }
374
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
375
- if (typeof maybeIterator === "function") {
376
- return maybeIterator;
377
- }
378
- return null;
379
- }
380
- var ReactCurrentDispatcher = {
381
- /**
382
- * @internal
383
- * @type {ReactComponent}
384
- */
385
- current: null
386
- };
387
- var ReactCurrentBatchConfig = {
388
- transition: null
389
- };
390
- var ReactCurrentActQueue = {
391
- current: null,
392
- // Used to reproduce behavior of `batchedUpdates` in legacy mode.
393
- isBatchingLegacy: false,
394
- didScheduleLegacyUpdate: false
395
- };
396
- var ReactCurrentOwner = {
397
- /**
398
- * @internal
399
- * @type {ReactComponent}
400
- */
401
- current: null
402
- };
403
- var ReactDebugCurrentFrame = {};
404
- var currentExtraStackFrame = null;
405
- function setExtraStackFrame(stack) {
406
- {
407
- currentExtraStackFrame = stack;
408
- }
409
- }
410
- {
411
- ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
412
- {
413
- currentExtraStackFrame = stack;
414
- }
415
- };
416
- ReactDebugCurrentFrame.getCurrentStack = null;
417
- ReactDebugCurrentFrame.getStackAddendum = function() {
418
- var stack = "";
419
- if (currentExtraStackFrame) {
420
- stack += currentExtraStackFrame;
421
- }
422
- var impl = ReactDebugCurrentFrame.getCurrentStack;
423
- if (impl) {
424
- stack += impl() || "";
425
- }
426
- return stack;
427
- };
428
- }
429
- var enableScopeAPI = false;
430
- var enableCacheElement = false;
431
- var enableTransitionTracing = false;
432
- var enableLegacyHidden = false;
433
- var enableDebugTracing = false;
434
- var ReactSharedInternals = {
435
- ReactCurrentDispatcher,
436
- ReactCurrentBatchConfig,
437
- ReactCurrentOwner
438
- };
439
- {
440
- ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
441
- ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
442
- }
443
- function warn(format) {
444
- {
445
- {
446
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
447
- args[_key - 1] = arguments[_key];
448
- }
449
- printWarning("warn", format, args);
450
- }
451
- }
452
- }
453
- function error(format) {
454
- {
455
- {
456
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
457
- args[_key2 - 1] = arguments[_key2];
458
- }
459
- printWarning("error", format, args);
460
- }
461
- }
462
- }
463
- function printWarning(level, format, args) {
464
- {
465
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
466
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
467
- if (stack !== "") {
468
- format += "%s";
469
- args = args.concat([stack]);
470
- }
471
- var argsWithFormat = args.map(function(item) {
472
- return String(item);
473
- });
474
- argsWithFormat.unshift("Warning: " + format);
475
- Function.prototype.apply.call(console[level], console, argsWithFormat);
476
- }
477
- }
478
- var didWarnStateUpdateForUnmountedComponent = {};
479
- function warnNoop(publicInstance, callerName) {
480
- {
481
- var _constructor = publicInstance.constructor;
482
- var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
483
- var warningKey = componentName + "." + callerName;
484
- if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
485
- return;
486
- }
487
- error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
488
- didWarnStateUpdateForUnmountedComponent[warningKey] = true;
489
- }
490
- }
491
- var ReactNoopUpdateQueue = {
492
- /**
493
- * Checks whether or not this composite component is mounted.
494
- * @param {ReactClass} publicInstance The instance we want to test.
495
- * @return {boolean} True if mounted, false otherwise.
496
- * @protected
497
- * @final
498
- */
499
- isMounted: function(publicInstance) {
500
- return false;
501
- },
502
- /**
503
- * Forces an update. This should only be invoked when it is known with
504
- * certainty that we are **not** in a DOM transaction.
505
- *
506
- * You may want to call this when you know that some deeper aspect of the
507
- * component's state has changed but `setState` was not called.
508
- *
509
- * This will not invoke `shouldComponentUpdate`, but it will invoke
510
- * `componentWillUpdate` and `componentDidUpdate`.
511
- *
512
- * @param {ReactClass} publicInstance The instance that should rerender.
513
- * @param {?function} callback Called after component is updated.
514
- * @param {?string} callerName name of the calling function in the public API.
515
- * @internal
516
- */
517
- enqueueForceUpdate: function(publicInstance, callback, callerName) {
518
- warnNoop(publicInstance, "forceUpdate");
519
- },
520
- /**
521
- * Replaces all of the state. Always use this or `setState` to mutate state.
522
- * You should treat `this.state` as immutable.
523
- *
524
- * There is no guarantee that `this.state` will be immediately updated, so
525
- * accessing `this.state` after calling this method may return the old value.
526
- *
527
- * @param {ReactClass} publicInstance The instance that should rerender.
528
- * @param {object} completeState Next state.
529
- * @param {?function} callback Called after component is updated.
530
- * @param {?string} callerName name of the calling function in the public API.
531
- * @internal
532
- */
533
- enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
534
- warnNoop(publicInstance, "replaceState");
535
- },
536
- /**
537
- * Sets a subset of the state. This only exists because _pendingState is
538
- * internal. This provides a merging strategy that is not available to deep
539
- * properties which is confusing. TODO: Expose pendingState or don't use it
540
- * during the merge.
541
- *
542
- * @param {ReactClass} publicInstance The instance that should rerender.
543
- * @param {object} partialState Next partial state to be merged with state.
544
- * @param {?function} callback Called after component is updated.
545
- * @param {?string} Name of the calling function in the public API.
546
- * @internal
547
- */
548
- enqueueSetState: function(publicInstance, partialState, callback, callerName) {
549
- warnNoop(publicInstance, "setState");
550
- }
551
- };
552
- var assign = Object.assign;
553
- var emptyObject = {};
554
- {
555
- Object.freeze(emptyObject);
556
- }
557
- function Component(props, context, updater) {
558
- this.props = props;
559
- this.context = context;
560
- this.refs = emptyObject;
561
- this.updater = updater || ReactNoopUpdateQueue;
562
- }
563
- Component.prototype.isReactComponent = {};
564
- Component.prototype.setState = function(partialState, callback) {
565
- if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
566
- throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
567
- }
568
- this.updater.enqueueSetState(this, partialState, callback, "setState");
569
- };
570
- Component.prototype.forceUpdate = function(callback) {
571
- this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
572
- };
573
- {
574
- var deprecatedAPIs = {
575
- isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
576
- replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
577
- };
578
- var defineDeprecationWarning = function(methodName, info) {
579
- Object.defineProperty(Component.prototype, methodName, {
580
- get: function() {
581
- warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
582
- return void 0;
583
- }
584
- });
585
- };
586
- for (var fnName in deprecatedAPIs) {
587
- if (deprecatedAPIs.hasOwnProperty(fnName)) {
588
- defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
589
- }
590
- }
591
- }
592
- function ComponentDummy() {
593
- }
594
- ComponentDummy.prototype = Component.prototype;
595
- function PureComponent(props, context, updater) {
596
- this.props = props;
597
- this.context = context;
598
- this.refs = emptyObject;
599
- this.updater = updater || ReactNoopUpdateQueue;
600
- }
601
- var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
602
- pureComponentPrototype.constructor = PureComponent;
603
- assign(pureComponentPrototype, Component.prototype);
604
- pureComponentPrototype.isPureReactComponent = true;
605
- function createRef() {
606
- var refObject = {
607
- current: null
608
- };
609
- {
610
- Object.seal(refObject);
611
- }
612
- return refObject;
613
- }
614
- var isArrayImpl = Array.isArray;
615
- function isArray(a) {
616
- return isArrayImpl(a);
617
- }
618
- function typeName(value) {
619
- {
620
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
621
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
622
- return type;
623
- }
624
- }
625
- function willCoercionThrow(value) {
626
- {
627
- try {
628
- testStringCoercion(value);
629
- return false;
630
- } catch (e) {
631
- return true;
632
- }
633
- }
634
- }
635
- function testStringCoercion(value) {
636
- return "" + value;
637
- }
638
- function checkKeyStringCoercion(value) {
639
- {
640
- if (willCoercionThrow(value)) {
641
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
642
- return testStringCoercion(value);
643
- }
644
- }
645
- }
646
- function getWrappedName(outerType, innerType, wrapperName) {
647
- var displayName = outerType.displayName;
648
- if (displayName) {
649
- return displayName;
650
- }
651
- var functionName = innerType.displayName || innerType.name || "";
652
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
653
- }
654
- function getContextName(type) {
655
- return type.displayName || "Context";
656
- }
657
- function getComponentNameFromType(type) {
658
- if (type == null) {
659
- return null;
660
- }
661
- {
662
- if (typeof type.tag === "number") {
663
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
664
- }
665
- }
666
- if (typeof type === "function") {
667
- return type.displayName || type.name || null;
668
- }
669
- if (typeof type === "string") {
670
- return type;
671
- }
672
- switch (type) {
673
- case REACT_FRAGMENT_TYPE:
674
- return "Fragment";
675
- case REACT_PORTAL_TYPE:
676
- return "Portal";
677
- case REACT_PROFILER_TYPE:
678
- return "Profiler";
679
- case REACT_STRICT_MODE_TYPE:
680
- return "StrictMode";
681
- case REACT_SUSPENSE_TYPE:
682
- return "Suspense";
683
- case REACT_SUSPENSE_LIST_TYPE:
684
- return "SuspenseList";
685
- }
686
- if (typeof type === "object") {
687
- switch (type.$$typeof) {
688
- case REACT_CONTEXT_TYPE:
689
- var context = type;
690
- return getContextName(context) + ".Consumer";
691
- case REACT_PROVIDER_TYPE:
692
- var provider = type;
693
- return getContextName(provider._context) + ".Provider";
694
- case REACT_FORWARD_REF_TYPE:
695
- return getWrappedName(type, type.render, "ForwardRef");
696
- case REACT_MEMO_TYPE:
697
- var outerName = type.displayName || null;
698
- if (outerName !== null) {
699
- return outerName;
700
- }
701
- return getComponentNameFromType(type.type) || "Memo";
702
- case REACT_LAZY_TYPE: {
703
- var lazyComponent = type;
704
- var payload = lazyComponent._payload;
705
- var init = lazyComponent._init;
706
- try {
707
- return getComponentNameFromType(init(payload));
708
- } catch (x) {
709
- return null;
710
- }
711
- }
712
- }
713
- }
714
- return null;
715
- }
716
- var hasOwnProperty = Object.prototype.hasOwnProperty;
717
- var RESERVED_PROPS = {
718
- key: true,
719
- ref: true,
720
- __self: true,
721
- __source: true
722
- };
723
- var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
724
- {
725
- didWarnAboutStringRefs = {};
726
- }
727
- function hasValidRef(config) {
728
- {
729
- if (hasOwnProperty.call(config, "ref")) {
730
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
731
- if (getter && getter.isReactWarning) {
732
- return false;
733
- }
734
- }
735
- }
736
- return config.ref !== void 0;
737
- }
738
- function hasValidKey(config) {
739
- {
740
- if (hasOwnProperty.call(config, "key")) {
741
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
742
- if (getter && getter.isReactWarning) {
743
- return false;
744
- }
745
- }
746
- }
747
- return config.key !== void 0;
748
- }
749
- function defineKeyPropWarningGetter(props, displayName) {
750
- var warnAboutAccessingKey = function() {
751
- {
752
- if (!specialPropKeyWarningShown) {
753
- specialPropKeyWarningShown = true;
754
- error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
755
- }
756
- }
757
- };
758
- warnAboutAccessingKey.isReactWarning = true;
759
- Object.defineProperty(props, "key", {
760
- get: warnAboutAccessingKey,
761
- configurable: true
762
- });
763
- }
764
- function defineRefPropWarningGetter(props, displayName) {
765
- var warnAboutAccessingRef = function() {
766
- {
767
- if (!specialPropRefWarningShown) {
768
- specialPropRefWarningShown = true;
769
- error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
770
- }
771
- }
772
- };
773
- warnAboutAccessingRef.isReactWarning = true;
774
- Object.defineProperty(props, "ref", {
775
- get: warnAboutAccessingRef,
776
- configurable: true
777
- });
778
- }
779
- function warnIfStringRefCannotBeAutoConverted(config) {
780
- {
781
- if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
782
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
783
- if (!didWarnAboutStringRefs[componentName]) {
784
- error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
785
- didWarnAboutStringRefs[componentName] = true;
786
- }
787
- }
788
- }
789
- }
790
- var ReactElement = function(type, key, ref, self, source, owner, props) {
791
- var element = {
792
- // This tag allows us to uniquely identify this as a React Element
793
- $$typeof: REACT_ELEMENT_TYPE,
794
- // Built-in properties that belong on the element
795
- type,
796
- key,
797
- ref,
798
- props,
799
- // Record the component responsible for creating this element.
800
- _owner: owner
801
- };
802
- {
803
- element._store = {};
804
- Object.defineProperty(element._store, "validated", {
805
- configurable: false,
806
- enumerable: false,
807
- writable: true,
808
- value: false
809
- });
810
- Object.defineProperty(element, "_self", {
811
- configurable: false,
812
- enumerable: false,
813
- writable: false,
814
- value: self
815
- });
816
- Object.defineProperty(element, "_source", {
817
- configurable: false,
818
- enumerable: false,
819
- writable: false,
820
- value: source
821
- });
822
- if (Object.freeze) {
823
- Object.freeze(element.props);
824
- Object.freeze(element);
825
- }
826
- }
827
- return element;
828
- };
829
- function createElement(type, config, children) {
830
- var propName;
831
- var props = {};
832
- var key = null;
833
- var ref = null;
834
- var self = null;
835
- var source = null;
836
- if (config != null) {
837
- if (hasValidRef(config)) {
838
- ref = config.ref;
839
- {
840
- warnIfStringRefCannotBeAutoConverted(config);
841
- }
842
- }
843
- if (hasValidKey(config)) {
844
- {
845
- checkKeyStringCoercion(config.key);
846
- }
847
- key = "" + config.key;
848
- }
849
- self = config.__self === void 0 ? null : config.__self;
850
- source = config.__source === void 0 ? null : config.__source;
851
- for (propName in config) {
852
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
853
- props[propName] = config[propName];
854
- }
855
- }
856
- }
857
- var childrenLength = arguments.length - 2;
858
- if (childrenLength === 1) {
859
- props.children = children;
860
- } else if (childrenLength > 1) {
861
- var childArray = Array(childrenLength);
862
- for (var i = 0; i < childrenLength; i++) {
863
- childArray[i] = arguments[i + 2];
864
- }
865
- {
866
- if (Object.freeze) {
867
- Object.freeze(childArray);
868
- }
869
- }
870
- props.children = childArray;
871
- }
872
- if (type && type.defaultProps) {
873
- var defaultProps = type.defaultProps;
874
- for (propName in defaultProps) {
875
- if (props[propName] === void 0) {
876
- props[propName] = defaultProps[propName];
877
- }
878
- }
879
- }
880
- {
881
- if (key || ref) {
882
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
883
- if (key) {
884
- defineKeyPropWarningGetter(props, displayName);
885
- }
886
- if (ref) {
887
- defineRefPropWarningGetter(props, displayName);
888
- }
889
- }
890
- }
891
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
892
- }
893
- function cloneAndReplaceKey(oldElement, newKey) {
894
- var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
895
- return newElement;
896
- }
897
- function cloneElement(element, config, children) {
898
- if (element === null || element === void 0) {
899
- throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
900
- }
901
- var propName;
902
- var props = assign({}, element.props);
903
- var key = element.key;
904
- var ref = element.ref;
905
- var self = element._self;
906
- var source = element._source;
907
- var owner = element._owner;
908
- if (config != null) {
909
- if (hasValidRef(config)) {
910
- ref = config.ref;
911
- owner = ReactCurrentOwner.current;
912
- }
913
- if (hasValidKey(config)) {
914
- {
915
- checkKeyStringCoercion(config.key);
916
- }
917
- key = "" + config.key;
918
- }
919
- var defaultProps;
920
- if (element.type && element.type.defaultProps) {
921
- defaultProps = element.type.defaultProps;
922
- }
923
- for (propName in config) {
924
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
925
- if (config[propName] === void 0 && defaultProps !== void 0) {
926
- props[propName] = defaultProps[propName];
927
- } else {
928
- props[propName] = config[propName];
929
- }
930
- }
931
- }
932
- }
933
- var childrenLength = arguments.length - 2;
934
- if (childrenLength === 1) {
935
- props.children = children;
936
- } else if (childrenLength > 1) {
937
- var childArray = Array(childrenLength);
938
- for (var i = 0; i < childrenLength; i++) {
939
- childArray[i] = arguments[i + 2];
940
- }
941
- props.children = childArray;
942
- }
943
- return ReactElement(element.type, key, ref, self, source, owner, props);
944
- }
945
- function isValidElement(object) {
946
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
947
- }
948
- var SEPARATOR = ".";
949
- var SUBSEPARATOR = ":";
950
- function escape(key) {
951
- var escapeRegex = /[=:]/g;
952
- var escaperLookup = {
953
- "=": "=0",
954
- ":": "=2"
955
- };
956
- var escapedString = key.replace(escapeRegex, function(match) {
957
- return escaperLookup[match];
958
- });
959
- return "$" + escapedString;
960
- }
961
- var didWarnAboutMaps = false;
962
- var userProvidedKeyEscapeRegex = /\/+/g;
963
- function escapeUserProvidedKey(text) {
964
- return text.replace(userProvidedKeyEscapeRegex, "$&/");
965
- }
966
- function getElementKey(element, index) {
967
- if (typeof element === "object" && element !== null && element.key != null) {
968
- {
969
- checkKeyStringCoercion(element.key);
970
- }
971
- return escape("" + element.key);
972
- }
973
- return index.toString(36);
974
- }
975
- function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
976
- var type = typeof children;
977
- if (type === "undefined" || type === "boolean") {
978
- children = null;
979
- }
980
- var invokeCallback = false;
981
- if (children === null) {
982
- invokeCallback = true;
983
- } else {
984
- switch (type) {
985
- case "string":
986
- case "number":
987
- invokeCallback = true;
988
- break;
989
- case "object":
990
- switch (children.$$typeof) {
991
- case REACT_ELEMENT_TYPE:
992
- case REACT_PORTAL_TYPE:
993
- invokeCallback = true;
994
- }
995
- }
996
- }
997
- if (invokeCallback) {
998
- var _child = children;
999
- var mappedChild = callback(_child);
1000
- var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
1001
- if (isArray(mappedChild)) {
1002
- var escapedChildKey = "";
1003
- if (childKey != null) {
1004
- escapedChildKey = escapeUserProvidedKey(childKey) + "/";
1005
- }
1006
- mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
1007
- return c;
1008
- });
1009
- } else if (mappedChild != null) {
1010
- if (isValidElement(mappedChild)) {
1011
- {
1012
- if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
1013
- checkKeyStringCoercion(mappedChild.key);
1014
- }
1015
- }
1016
- mappedChild = cloneAndReplaceKey(
1017
- mappedChild,
1018
- // Keep both the (mapped) and old keys if they differ, just as
1019
- // traverseAllChildren used to do for objects as children
1020
- escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
1021
- (mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
1022
- // $FlowFixMe Flow incorrectly thinks existing element's key can be a number
1023
- // eslint-disable-next-line react-internal/safe-string-coercion
1024
- escapeUserProvidedKey("" + mappedChild.key) + "/"
1025
- ) : "") + childKey
1026
- );
1027
- }
1028
- array.push(mappedChild);
1029
- }
1030
- return 1;
1031
- }
1032
- var child;
1033
- var nextName;
1034
- var subtreeCount = 0;
1035
- var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
1036
- if (isArray(children)) {
1037
- for (var i = 0; i < children.length; i++) {
1038
- child = children[i];
1039
- nextName = nextNamePrefix + getElementKey(child, i);
1040
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1041
- }
1042
- } else {
1043
- var iteratorFn = getIteratorFn(children);
1044
- if (typeof iteratorFn === "function") {
1045
- var iterableChildren = children;
1046
- {
1047
- if (iteratorFn === iterableChildren.entries) {
1048
- if (!didWarnAboutMaps) {
1049
- warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
1050
- }
1051
- didWarnAboutMaps = true;
1052
- }
1053
- }
1054
- var iterator = iteratorFn.call(iterableChildren);
1055
- var step;
1056
- var ii = 0;
1057
- while (!(step = iterator.next()).done) {
1058
- child = step.value;
1059
- nextName = nextNamePrefix + getElementKey(child, ii++);
1060
- subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
1061
- }
1062
- } else if (type === "object") {
1063
- var childrenString = String(children);
1064
- throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
1065
- }
1066
- }
1067
- return subtreeCount;
1068
- }
1069
- function mapChildren(children, func, context) {
1070
- if (children == null) {
1071
- return children;
1072
- }
1073
- var result = [];
1074
- var count = 0;
1075
- mapIntoArray(children, result, "", "", function(child) {
1076
- return func.call(context, child, count++);
1077
- });
1078
- return result;
1079
- }
1080
- function countChildren(children) {
1081
- var n = 0;
1082
- mapChildren(children, function() {
1083
- n++;
1084
- });
1085
- return n;
1086
- }
1087
- function forEachChildren(children, forEachFunc, forEachContext) {
1088
- mapChildren(children, function() {
1089
- forEachFunc.apply(this, arguments);
1090
- }, forEachContext);
1091
- }
1092
- function toArray(children) {
1093
- return mapChildren(children, function(child) {
1094
- return child;
1095
- }) || [];
1096
- }
1097
- function onlyChild(children) {
1098
- if (!isValidElement(children)) {
1099
- throw new Error("React.Children.only expected to receive a single React element child.");
1100
- }
1101
- return children;
1102
- }
1103
- function createContext(defaultValue) {
1104
- var context = {
1105
- $$typeof: REACT_CONTEXT_TYPE,
1106
- // As a workaround to support multiple concurrent renderers, we categorize
1107
- // some renderers as primary and others as secondary. We only expect
1108
- // there to be two concurrent renderers at most: React Native (primary) and
1109
- // Fabric (secondary); React DOM (primary) and React ART (secondary).
1110
- // Secondary renderers store their context values on separate fields.
1111
- _currentValue: defaultValue,
1112
- _currentValue2: defaultValue,
1113
- // Used to track how many concurrent renderers this context currently
1114
- // supports within in a single renderer. Such as parallel server rendering.
1115
- _threadCount: 0,
1116
- // These are circular
1117
- Provider: null,
1118
- Consumer: null,
1119
- // Add these to use same hidden class in VM as ServerContext
1120
- _defaultValue: null,
1121
- _globalName: null
1122
- };
1123
- context.Provider = {
1124
- $$typeof: REACT_PROVIDER_TYPE,
1125
- _context: context
1126
- };
1127
- var hasWarnedAboutUsingNestedContextConsumers = false;
1128
- var hasWarnedAboutUsingConsumerProvider = false;
1129
- var hasWarnedAboutDisplayNameOnConsumer = false;
1130
- {
1131
- var Consumer = {
1132
- $$typeof: REACT_CONTEXT_TYPE,
1133
- _context: context
1134
- };
1135
- Object.defineProperties(Consumer, {
1136
- Provider: {
1137
- get: function() {
1138
- if (!hasWarnedAboutUsingConsumerProvider) {
1139
- hasWarnedAboutUsingConsumerProvider = true;
1140
- error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
1141
- }
1142
- return context.Provider;
1143
- },
1144
- set: function(_Provider) {
1145
- context.Provider = _Provider;
1146
- }
1147
- },
1148
- _currentValue: {
1149
- get: function() {
1150
- return context._currentValue;
1151
- },
1152
- set: function(_currentValue) {
1153
- context._currentValue = _currentValue;
1154
- }
1155
- },
1156
- _currentValue2: {
1157
- get: function() {
1158
- return context._currentValue2;
1159
- },
1160
- set: function(_currentValue2) {
1161
- context._currentValue2 = _currentValue2;
1162
- }
1163
- },
1164
- _threadCount: {
1165
- get: function() {
1166
- return context._threadCount;
1167
- },
1168
- set: function(_threadCount) {
1169
- context._threadCount = _threadCount;
1170
- }
1171
- },
1172
- Consumer: {
1173
- get: function() {
1174
- if (!hasWarnedAboutUsingNestedContextConsumers) {
1175
- hasWarnedAboutUsingNestedContextConsumers = true;
1176
- error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
1177
- }
1178
- return context.Consumer;
1179
- }
1180
- },
1181
- displayName: {
1182
- get: function() {
1183
- return context.displayName;
1184
- },
1185
- set: function(displayName) {
1186
- if (!hasWarnedAboutDisplayNameOnConsumer) {
1187
- warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
1188
- hasWarnedAboutDisplayNameOnConsumer = true;
1189
- }
1190
- }
1191
- }
1192
- });
1193
- context.Consumer = Consumer;
1194
- }
1195
- {
1196
- context._currentRenderer = null;
1197
- context._currentRenderer2 = null;
1198
- }
1199
- return context;
1200
- }
1201
- var Uninitialized = -1;
1202
- var Pending = 0;
1203
- var Resolved = 1;
1204
- var Rejected = 2;
1205
- function lazyInitializer(payload) {
1206
- if (payload._status === Uninitialized) {
1207
- var ctor = payload._result;
1208
- var thenable = ctor();
1209
- thenable.then(function(moduleObject2) {
1210
- if (payload._status === Pending || payload._status === Uninitialized) {
1211
- var resolved = payload;
1212
- resolved._status = Resolved;
1213
- resolved._result = moduleObject2;
1214
- }
1215
- }, function(error2) {
1216
- if (payload._status === Pending || payload._status === Uninitialized) {
1217
- var rejected = payload;
1218
- rejected._status = Rejected;
1219
- rejected._result = error2;
1220
- }
1221
- });
1222
- if (payload._status === Uninitialized) {
1223
- var pending = payload;
1224
- pending._status = Pending;
1225
- pending._result = thenable;
1226
- }
1227
- }
1228
- if (payload._status === Resolved) {
1229
- var moduleObject = payload._result;
1230
- {
1231
- if (moduleObject === void 0) {
1232
- error("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?", moduleObject);
1233
- }
1234
- }
1235
- {
1236
- if (!("default" in moduleObject)) {
1237
- error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
1238
- }
1239
- }
1240
- return moduleObject.default;
1241
- } else {
1242
- throw payload._result;
1243
- }
1244
- }
1245
- function lazy(ctor) {
1246
- var payload = {
1247
- // We use these fields to store the result.
1248
- _status: Uninitialized,
1249
- _result: ctor
1250
- };
1251
- var lazyType = {
1252
- $$typeof: REACT_LAZY_TYPE,
1253
- _payload: payload,
1254
- _init: lazyInitializer
1255
- };
1256
- {
1257
- var defaultProps;
1258
- var propTypes;
1259
- Object.defineProperties(lazyType, {
1260
- defaultProps: {
1261
- configurable: true,
1262
- get: function() {
1263
- return defaultProps;
1264
- },
1265
- set: function(newDefaultProps) {
1266
- error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1267
- defaultProps = newDefaultProps;
1268
- Object.defineProperty(lazyType, "defaultProps", {
1269
- enumerable: true
1270
- });
1271
- }
1272
- },
1273
- propTypes: {
1274
- configurable: true,
1275
- get: function() {
1276
- return propTypes;
1277
- },
1278
- set: function(newPropTypes) {
1279
- error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
1280
- propTypes = newPropTypes;
1281
- Object.defineProperty(lazyType, "propTypes", {
1282
- enumerable: true
1283
- });
1284
- }
1285
- }
1286
- });
1287
- }
1288
- return lazyType;
1289
- }
1290
- function forwardRef(render) {
1291
- {
1292
- if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
1293
- error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
1294
- } else if (typeof render !== "function") {
1295
- error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
1296
- } else {
1297
- if (render.length !== 0 && render.length !== 2) {
1298
- error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
1299
- }
1300
- }
1301
- if (render != null) {
1302
- if (render.defaultProps != null || render.propTypes != null) {
1303
- error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
1304
- }
1305
- }
1306
- }
1307
- var elementType = {
1308
- $$typeof: REACT_FORWARD_REF_TYPE,
1309
- render
1310
- };
1311
- {
1312
- var ownName;
1313
- Object.defineProperty(elementType, "displayName", {
1314
- enumerable: false,
1315
- configurable: true,
1316
- get: function() {
1317
- return ownName;
1318
- },
1319
- set: function(name) {
1320
- ownName = name;
1321
- if (!render.name && !render.displayName) {
1322
- render.displayName = name;
1323
- }
1324
- }
1325
- });
1326
- }
1327
- return elementType;
1328
- }
1329
- var REACT_MODULE_REFERENCE;
1330
- {
1331
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
1332
- }
1333
- function isValidElementType(type) {
1334
- if (typeof type === "string" || typeof type === "function") {
1335
- return true;
1336
- }
1337
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1338
- return true;
1339
- }
1340
- if (typeof type === "object" && type !== null) {
1341
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
1342
- // types supported by any Flight configuration anywhere since
1343
- // we don't know which Flight build this will end up being used
1344
- // with.
1345
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
1346
- return true;
1347
- }
1348
- }
1349
- return false;
1350
- }
1351
- function memo(type, compare) {
1352
- {
1353
- if (!isValidElementType(type)) {
1354
- error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
1355
- }
1356
- }
1357
- var elementType = {
1358
- $$typeof: REACT_MEMO_TYPE,
1359
- type,
1360
- compare: compare === void 0 ? null : compare
1361
- };
1362
- {
1363
- var ownName;
1364
- Object.defineProperty(elementType, "displayName", {
1365
- enumerable: false,
1366
- configurable: true,
1367
- get: function() {
1368
- return ownName;
1369
- },
1370
- set: function(name) {
1371
- ownName = name;
1372
- if (!type.name && !type.displayName) {
1373
- type.displayName = name;
1374
- }
1375
- }
1376
- });
1377
- }
1378
- return elementType;
1379
- }
1380
- function resolveDispatcher() {
1381
- var dispatcher = ReactCurrentDispatcher.current;
1382
- {
1383
- if (dispatcher === null) {
1384
- error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
1385
- }
1386
- }
1387
- return dispatcher;
1388
- }
1389
- function useContext(Context) {
1390
- var dispatcher = resolveDispatcher();
1391
- {
1392
- if (Context._context !== void 0) {
1393
- var realContext = Context._context;
1394
- if (realContext.Consumer === Context) {
1395
- error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
1396
- } else if (realContext.Provider === Context) {
1397
- error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
1398
- }
1399
- }
1400
- }
1401
- return dispatcher.useContext(Context);
1402
- }
1403
- function useState(initialState) {
1404
- var dispatcher = resolveDispatcher();
1405
- return dispatcher.useState(initialState);
1406
- }
1407
- function useReducer(reducer, initialArg, init) {
1408
- var dispatcher = resolveDispatcher();
1409
- return dispatcher.useReducer(reducer, initialArg, init);
1410
- }
1411
- function useRef2(initialValue) {
1412
- var dispatcher = resolveDispatcher();
1413
- return dispatcher.useRef(initialValue);
1414
- }
1415
- function useEffect2(create, deps) {
1416
- var dispatcher = resolveDispatcher();
1417
- return dispatcher.useEffect(create, deps);
1418
- }
1419
- function useInsertionEffect(create, deps) {
1420
- var dispatcher = resolveDispatcher();
1421
- return dispatcher.useInsertionEffect(create, deps);
1422
- }
1423
- function useLayoutEffect(create, deps) {
1424
- var dispatcher = resolveDispatcher();
1425
- return dispatcher.useLayoutEffect(create, deps);
1426
- }
1427
- function useCallback(callback, deps) {
1428
- var dispatcher = resolveDispatcher();
1429
- return dispatcher.useCallback(callback, deps);
1430
- }
1431
- function useMemo(create, deps) {
1432
- var dispatcher = resolveDispatcher();
1433
- return dispatcher.useMemo(create, deps);
1434
- }
1435
- function useImperativeHandle(ref, create, deps) {
1436
- var dispatcher = resolveDispatcher();
1437
- return dispatcher.useImperativeHandle(ref, create, deps);
1438
- }
1439
- function useDebugValue(value, formatterFn) {
1440
- {
1441
- var dispatcher = resolveDispatcher();
1442
- return dispatcher.useDebugValue(value, formatterFn);
1443
- }
1444
- }
1445
- function useTransition() {
1446
- var dispatcher = resolveDispatcher();
1447
- return dispatcher.useTransition();
1448
- }
1449
- function useDeferredValue(value) {
1450
- var dispatcher = resolveDispatcher();
1451
- return dispatcher.useDeferredValue(value);
1452
- }
1453
- function useId() {
1454
- var dispatcher = resolveDispatcher();
1455
- return dispatcher.useId();
1456
- }
1457
- function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
1458
- var dispatcher = resolveDispatcher();
1459
- return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
1460
- }
1461
- var disabledDepth = 0;
1462
- var prevLog;
1463
- var prevInfo;
1464
- var prevWarn;
1465
- var prevError;
1466
- var prevGroup;
1467
- var prevGroupCollapsed;
1468
- var prevGroupEnd;
1469
- function disabledLog() {
1470
- }
1471
- disabledLog.__reactDisabledLog = true;
1472
- function disableLogs() {
1473
- {
1474
- if (disabledDepth === 0) {
1475
- prevLog = console.log;
1476
- prevInfo = console.info;
1477
- prevWarn = console.warn;
1478
- prevError = console.error;
1479
- prevGroup = console.group;
1480
- prevGroupCollapsed = console.groupCollapsed;
1481
- prevGroupEnd = console.groupEnd;
1482
- var props = {
1483
- configurable: true,
1484
- enumerable: true,
1485
- value: disabledLog,
1486
- writable: true
1487
- };
1488
- Object.defineProperties(console, {
1489
- info: props,
1490
- log: props,
1491
- warn: props,
1492
- error: props,
1493
- group: props,
1494
- groupCollapsed: props,
1495
- groupEnd: props
1496
- });
1497
- }
1498
- disabledDepth++;
1499
- }
1500
- }
1501
- function reenableLogs() {
1502
- {
1503
- disabledDepth--;
1504
- if (disabledDepth === 0) {
1505
- var props = {
1506
- configurable: true,
1507
- enumerable: true,
1508
- writable: true
1509
- };
1510
- Object.defineProperties(console, {
1511
- log: assign({}, props, {
1512
- value: prevLog
1513
- }),
1514
- info: assign({}, props, {
1515
- value: prevInfo
1516
- }),
1517
- warn: assign({}, props, {
1518
- value: prevWarn
1519
- }),
1520
- error: assign({}, props, {
1521
- value: prevError
1522
- }),
1523
- group: assign({}, props, {
1524
- value: prevGroup
1525
- }),
1526
- groupCollapsed: assign({}, props, {
1527
- value: prevGroupCollapsed
1528
- }),
1529
- groupEnd: assign({}, props, {
1530
- value: prevGroupEnd
1531
- })
1532
- });
1533
- }
1534
- if (disabledDepth < 0) {
1535
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
1536
- }
1537
- }
1538
- }
1539
- var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
1540
- var prefix;
1541
- function describeBuiltInComponentFrame(name, source, ownerFn) {
1542
- {
1543
- if (prefix === void 0) {
1544
- try {
1545
- throw Error();
1546
- } catch (x) {
1547
- var match = x.stack.trim().match(/\n( *(at )?)/);
1548
- prefix = match && match[1] || "";
1549
- }
1550
- }
1551
- return "\n" + prefix + name;
1552
- }
1553
- }
1554
- var reentry = false;
1555
- var componentFrameCache;
1556
- {
1557
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
1558
- componentFrameCache = new PossiblyWeakMap();
1559
- }
1560
- function describeNativeComponentFrame(fn, construct) {
1561
- if (!fn || reentry) {
1562
- return "";
1563
- }
1564
- {
1565
- var frame = componentFrameCache.get(fn);
1566
- if (frame !== void 0) {
1567
- return frame;
1568
- }
1569
- }
1570
- var control;
1571
- reentry = true;
1572
- var previousPrepareStackTrace = Error.prepareStackTrace;
1573
- Error.prepareStackTrace = void 0;
1574
- var previousDispatcher;
1575
- {
1576
- previousDispatcher = ReactCurrentDispatcher$1.current;
1577
- ReactCurrentDispatcher$1.current = null;
1578
- disableLogs();
1579
- }
1580
- try {
1581
- if (construct) {
1582
- var Fake = function() {
1583
- throw Error();
1584
- };
1585
- Object.defineProperty(Fake.prototype, "props", {
1586
- set: function() {
1587
- throw Error();
1588
- }
1589
- });
1590
- if (typeof Reflect === "object" && Reflect.construct) {
1591
- try {
1592
- Reflect.construct(Fake, []);
1593
- } catch (x) {
1594
- control = x;
1595
- }
1596
- Reflect.construct(fn, [], Fake);
1597
- } else {
1598
- try {
1599
- Fake.call();
1600
- } catch (x) {
1601
- control = x;
1602
- }
1603
- fn.call(Fake.prototype);
1604
- }
1605
- } else {
1606
- try {
1607
- throw Error();
1608
- } catch (x) {
1609
- control = x;
1610
- }
1611
- fn();
1612
- }
1613
- } catch (sample) {
1614
- if (sample && control && typeof sample.stack === "string") {
1615
- var sampleLines = sample.stack.split("\n");
1616
- var controlLines = control.stack.split("\n");
1617
- var s = sampleLines.length - 1;
1618
- var c = controlLines.length - 1;
1619
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
1620
- c--;
1621
- }
1622
- for (; s >= 1 && c >= 0; s--, c--) {
1623
- if (sampleLines[s] !== controlLines[c]) {
1624
- if (s !== 1 || c !== 1) {
1625
- do {
1626
- s--;
1627
- c--;
1628
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
1629
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
1630
- if (fn.displayName && _frame.includes("<anonymous>")) {
1631
- _frame = _frame.replace("<anonymous>", fn.displayName);
1632
- }
1633
- {
1634
- if (typeof fn === "function") {
1635
- componentFrameCache.set(fn, _frame);
1636
- }
1637
- }
1638
- return _frame;
1639
- }
1640
- } while (s >= 1 && c >= 0);
1641
- }
1642
- break;
1643
- }
1644
- }
1645
- }
1646
- } finally {
1647
- reentry = false;
1648
- {
1649
- ReactCurrentDispatcher$1.current = previousDispatcher;
1650
- reenableLogs();
1651
- }
1652
- Error.prepareStackTrace = previousPrepareStackTrace;
1653
- }
1654
- var name = fn ? fn.displayName || fn.name : "";
1655
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
1656
- {
1657
- if (typeof fn === "function") {
1658
- componentFrameCache.set(fn, syntheticFrame);
1659
- }
1660
- }
1661
- return syntheticFrame;
1662
- }
1663
- function describeFunctionComponentFrame(fn, source, ownerFn) {
1664
- {
1665
- return describeNativeComponentFrame(fn, false);
1666
- }
1667
- }
1668
- function shouldConstruct(Component2) {
1669
- var prototype = Component2.prototype;
1670
- return !!(prototype && prototype.isReactComponent);
1671
- }
1672
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
1673
- if (type == null) {
1674
- return "";
1675
- }
1676
- if (typeof type === "function") {
1677
- {
1678
- return describeNativeComponentFrame(type, shouldConstruct(type));
1679
- }
1680
- }
1681
- if (typeof type === "string") {
1682
- return describeBuiltInComponentFrame(type);
1683
- }
1684
- switch (type) {
1685
- case REACT_SUSPENSE_TYPE:
1686
- return describeBuiltInComponentFrame("Suspense");
1687
- case REACT_SUSPENSE_LIST_TYPE:
1688
- return describeBuiltInComponentFrame("SuspenseList");
1689
- }
1690
- if (typeof type === "object") {
1691
- switch (type.$$typeof) {
1692
- case REACT_FORWARD_REF_TYPE:
1693
- return describeFunctionComponentFrame(type.render);
1694
- case REACT_MEMO_TYPE:
1695
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
1696
- case REACT_LAZY_TYPE: {
1697
- var lazyComponent = type;
1698
- var payload = lazyComponent._payload;
1699
- var init = lazyComponent._init;
1700
- try {
1701
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
1702
- } catch (x) {
1703
- }
1704
- }
1705
- }
1706
- }
1707
- return "";
1708
- }
1709
- var loggedTypeFailures = {};
1710
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1711
- function setCurrentlyValidatingElement(element) {
1712
- {
1713
- if (element) {
1714
- var owner = element._owner;
1715
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1716
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1717
- } else {
1718
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1719
- }
1720
- }
1721
- }
1722
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
1723
- {
1724
- var has = Function.call.bind(hasOwnProperty);
1725
- for (var typeSpecName in typeSpecs) {
1726
- if (has(typeSpecs, typeSpecName)) {
1727
- var error$1 = void 0;
1728
- try {
1729
- if (typeof typeSpecs[typeSpecName] !== "function") {
1730
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
1731
- err.name = "Invariant Violation";
1732
- throw err;
1733
- }
1734
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
1735
- } catch (ex) {
1736
- error$1 = ex;
1737
- }
1738
- if (error$1 && !(error$1 instanceof Error)) {
1739
- setCurrentlyValidatingElement(element);
1740
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
1741
- setCurrentlyValidatingElement(null);
1742
- }
1743
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
1744
- loggedTypeFailures[error$1.message] = true;
1745
- setCurrentlyValidatingElement(element);
1746
- error("Failed %s type: %s", location, error$1.message);
1747
- setCurrentlyValidatingElement(null);
1748
- }
1749
- }
1750
- }
1751
- }
1752
- }
1753
- function setCurrentlyValidatingElement$1(element) {
1754
- {
1755
- if (element) {
1756
- var owner = element._owner;
1757
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1758
- setExtraStackFrame(stack);
1759
- } else {
1760
- setExtraStackFrame(null);
1761
- }
1762
- }
1763
- }
1764
- var propTypesMisspellWarningShown;
1765
- {
1766
- propTypesMisspellWarningShown = false;
1767
- }
1768
- function getDeclarationErrorAddendum() {
1769
- if (ReactCurrentOwner.current) {
1770
- var name = getComponentNameFromType(ReactCurrentOwner.current.type);
1771
- if (name) {
1772
- return "\n\nCheck the render method of `" + name + "`.";
1773
- }
1774
- }
1775
- return "";
1776
- }
1777
- function getSourceInfoErrorAddendum(source) {
1778
- if (source !== void 0) {
1779
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
1780
- var lineNumber = source.lineNumber;
1781
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
1782
- }
1783
- return "";
1784
- }
1785
- function getSourceInfoErrorAddendumForProps(elementProps) {
1786
- if (elementProps !== null && elementProps !== void 0) {
1787
- return getSourceInfoErrorAddendum(elementProps.__source);
1788
- }
1789
- return "";
1790
- }
1791
- var ownerHasKeyUseWarning = {};
1792
- function getCurrentComponentErrorInfo(parentType) {
1793
- var info = getDeclarationErrorAddendum();
1794
- if (!info) {
1795
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
1796
- if (parentName) {
1797
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1798
- }
1799
- }
1800
- return info;
1801
- }
1802
- function validateExplicitKey(element, parentType) {
1803
- if (!element._store || element._store.validated || element.key != null) {
1804
- return;
1805
- }
1806
- element._store.validated = true;
1807
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1808
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1809
- return;
1810
- }
1811
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
1812
- var childOwner = "";
1813
- if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
1814
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1815
- }
1816
- {
1817
- setCurrentlyValidatingElement$1(element);
1818
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1819
- setCurrentlyValidatingElement$1(null);
1820
- }
1821
- }
1822
- function validateChildKeys(node, parentType) {
1823
- if (typeof node !== "object") {
1824
- return;
1825
- }
1826
- if (isArray(node)) {
1827
- for (var i = 0; i < node.length; i++) {
1828
- var child = node[i];
1829
- if (isValidElement(child)) {
1830
- validateExplicitKey(child, parentType);
1831
- }
1832
- }
1833
- } else if (isValidElement(node)) {
1834
- if (node._store) {
1835
- node._store.validated = true;
1836
- }
1837
- } else if (node) {
1838
- var iteratorFn = getIteratorFn(node);
1839
- if (typeof iteratorFn === "function") {
1840
- if (iteratorFn !== node.entries) {
1841
- var iterator = iteratorFn.call(node);
1842
- var step;
1843
- while (!(step = iterator.next()).done) {
1844
- if (isValidElement(step.value)) {
1845
- validateExplicitKey(step.value, parentType);
1846
- }
1847
- }
1848
- }
1849
- }
1850
- }
1851
- }
1852
- function validatePropTypes(element) {
1853
- {
1854
- var type = element.type;
1855
- if (type === null || type === void 0 || typeof type === "string") {
1856
- return;
1857
- }
1858
- var propTypes;
1859
- if (typeof type === "function") {
1860
- propTypes = type.propTypes;
1861
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1862
- // Inner props are checked in the reconciler.
1863
- type.$$typeof === REACT_MEMO_TYPE)) {
1864
- propTypes = type.propTypes;
1865
- } else {
1866
- return;
1867
- }
1868
- if (propTypes) {
1869
- var name = getComponentNameFromType(type);
1870
- checkPropTypes(propTypes, element.props, "prop", name, element);
1871
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
1872
- propTypesMisspellWarningShown = true;
1873
- var _name = getComponentNameFromType(type);
1874
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
1875
- }
1876
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
1877
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
1878
- }
1879
- }
1880
- }
1881
- function validateFragmentProps(fragment) {
1882
- {
1883
- var keys = Object.keys(fragment.props);
1884
- for (var i = 0; i < keys.length; i++) {
1885
- var key = keys[i];
1886
- if (key !== "children" && key !== "key") {
1887
- setCurrentlyValidatingElement$1(fragment);
1888
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
1889
- setCurrentlyValidatingElement$1(null);
1890
- break;
1891
- }
1892
- }
1893
- if (fragment.ref !== null) {
1894
- setCurrentlyValidatingElement$1(fragment);
1895
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
1896
- setCurrentlyValidatingElement$1(null);
1897
- }
1898
- }
1899
- }
1900
- function createElementWithValidation(type, props, children) {
1901
- var validType = isValidElementType(type);
1902
- if (!validType) {
1903
- var info = "";
1904
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
1905
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1906
- }
1907
- var sourceInfo = getSourceInfoErrorAddendumForProps(props);
1908
- if (sourceInfo) {
1909
- info += sourceInfo;
1910
- } else {
1911
- info += getDeclarationErrorAddendum();
1912
- }
1913
- var typeString;
1914
- if (type === null) {
1915
- typeString = "null";
1916
- } else if (isArray(type)) {
1917
- typeString = "array";
1918
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
1919
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
1920
- info = " Did you accidentally export a JSX literal instead of a component?";
1921
- } else {
1922
- typeString = typeof type;
1923
- }
1924
- {
1925
- error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
1926
- }
1927
- }
1928
- var element = createElement.apply(this, arguments);
1929
- if (element == null) {
1930
- return element;
1931
- }
1932
- if (validType) {
1933
- for (var i = 2; i < arguments.length; i++) {
1934
- validateChildKeys(arguments[i], type);
1935
- }
1936
- }
1937
- if (type === REACT_FRAGMENT_TYPE) {
1938
- validateFragmentProps(element);
1939
- } else {
1940
- validatePropTypes(element);
1941
- }
1942
- return element;
1943
- }
1944
- var didWarnAboutDeprecatedCreateFactory = false;
1945
- function createFactoryWithValidation(type) {
1946
- var validatedFactory = createElementWithValidation.bind(null, type);
1947
- validatedFactory.type = type;
1948
- {
1949
- if (!didWarnAboutDeprecatedCreateFactory) {
1950
- didWarnAboutDeprecatedCreateFactory = true;
1951
- warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
1952
- }
1953
- Object.defineProperty(validatedFactory, "type", {
1954
- enumerable: false,
1955
- get: function() {
1956
- warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
1957
- Object.defineProperty(this, "type", {
1958
- value: type
1959
- });
1960
- return type;
1961
- }
1962
- });
1963
- }
1964
- return validatedFactory;
1965
- }
1966
- function cloneElementWithValidation(element, props, children) {
1967
- var newElement = cloneElement.apply(this, arguments);
1968
- for (var i = 2; i < arguments.length; i++) {
1969
- validateChildKeys(arguments[i], newElement.type);
1970
- }
1971
- validatePropTypes(newElement);
1972
- return newElement;
1973
- }
1974
- function startTransition(scope, options) {
1975
- var prevTransition = ReactCurrentBatchConfig.transition;
1976
- ReactCurrentBatchConfig.transition = {};
1977
- var currentTransition = ReactCurrentBatchConfig.transition;
1978
- {
1979
- ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
1980
- }
1981
- try {
1982
- scope();
1983
- } finally {
1984
- ReactCurrentBatchConfig.transition = prevTransition;
1985
- {
1986
- if (prevTransition === null && currentTransition._updatedFibers) {
1987
- var updatedFibersCount = currentTransition._updatedFibers.size;
1988
- if (updatedFibersCount > 10) {
1989
- warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
1990
- }
1991
- currentTransition._updatedFibers.clear();
1992
- }
1993
- }
1994
- }
1995
- }
1996
- var didWarnAboutMessageChannel = false;
1997
- var enqueueTaskImpl = null;
1998
- function enqueueTask(task) {
1999
- if (enqueueTaskImpl === null) {
2000
- try {
2001
- var requireString = ("require" + Math.random()).slice(0, 7);
2002
- var nodeRequire = module2 && module2[requireString];
2003
- enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
2004
- } catch (_err) {
2005
- enqueueTaskImpl = function(callback) {
2006
- {
2007
- if (didWarnAboutMessageChannel === false) {
2008
- didWarnAboutMessageChannel = true;
2009
- if (typeof MessageChannel === "undefined") {
2010
- error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
2011
- }
2012
- }
2013
- }
2014
- var channel = new MessageChannel();
2015
- channel.port1.onmessage = callback;
2016
- channel.port2.postMessage(void 0);
2017
- };
2018
- }
2019
- }
2020
- return enqueueTaskImpl(task);
2021
- }
2022
- var actScopeDepth = 0;
2023
- var didWarnNoAwaitAct = false;
2024
- function act(callback) {
2025
- {
2026
- var prevActScopeDepth = actScopeDepth;
2027
- actScopeDepth++;
2028
- if (ReactCurrentActQueue.current === null) {
2029
- ReactCurrentActQueue.current = [];
2030
- }
2031
- var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
2032
- var result;
2033
- try {
2034
- ReactCurrentActQueue.isBatchingLegacy = true;
2035
- result = callback();
2036
- if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
2037
- var queue = ReactCurrentActQueue.current;
2038
- if (queue !== null) {
2039
- ReactCurrentActQueue.didScheduleLegacyUpdate = false;
2040
- flushActQueue(queue);
2041
- }
2042
- }
2043
- } catch (error2) {
2044
- popActScope(prevActScopeDepth);
2045
- throw error2;
2046
- } finally {
2047
- ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
2048
- }
2049
- if (result !== null && typeof result === "object" && typeof result.then === "function") {
2050
- var thenableResult = result;
2051
- var wasAwaited = false;
2052
- var thenable = {
2053
- then: function(resolve, reject) {
2054
- wasAwaited = true;
2055
- thenableResult.then(function(returnValue2) {
2056
- popActScope(prevActScopeDepth);
2057
- if (actScopeDepth === 0) {
2058
- recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
2059
- } else {
2060
- resolve(returnValue2);
2061
- }
2062
- }, function(error2) {
2063
- popActScope(prevActScopeDepth);
2064
- reject(error2);
2065
- });
2066
- }
2067
- };
2068
- {
2069
- if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
2070
- Promise.resolve().then(function() {
2071
- }).then(function() {
2072
- if (!wasAwaited) {
2073
- didWarnNoAwaitAct = true;
2074
- error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
2075
- }
2076
- });
2077
- }
2078
- }
2079
- return thenable;
2080
- } else {
2081
- var returnValue = result;
2082
- popActScope(prevActScopeDepth);
2083
- if (actScopeDepth === 0) {
2084
- var _queue = ReactCurrentActQueue.current;
2085
- if (_queue !== null) {
2086
- flushActQueue(_queue);
2087
- ReactCurrentActQueue.current = null;
2088
- }
2089
- var _thenable = {
2090
- then: function(resolve, reject) {
2091
- if (ReactCurrentActQueue.current === null) {
2092
- ReactCurrentActQueue.current = [];
2093
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2094
- } else {
2095
- resolve(returnValue);
2096
- }
2097
- }
2098
- };
2099
- return _thenable;
2100
- } else {
2101
- var _thenable2 = {
2102
- then: function(resolve, reject) {
2103
- resolve(returnValue);
2104
- }
2105
- };
2106
- return _thenable2;
2107
- }
2108
- }
2109
- }
2110
- }
2111
- function popActScope(prevActScopeDepth) {
2112
- {
2113
- if (prevActScopeDepth !== actScopeDepth - 1) {
2114
- error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
2115
- }
2116
- actScopeDepth = prevActScopeDepth;
2117
- }
2118
- }
2119
- function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2120
- {
2121
- var queue = ReactCurrentActQueue.current;
2122
- if (queue !== null) {
2123
- try {
2124
- flushActQueue(queue);
2125
- enqueueTask(function() {
2126
- if (queue.length === 0) {
2127
- ReactCurrentActQueue.current = null;
2128
- resolve(returnValue);
2129
- } else {
2130
- recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2131
- }
2132
- });
2133
- } catch (error2) {
2134
- reject(error2);
2135
- }
2136
- } else {
2137
- resolve(returnValue);
2138
- }
2139
- }
2140
- }
2141
- var isFlushing = false;
2142
- function flushActQueue(queue) {
2143
- {
2144
- if (!isFlushing) {
2145
- isFlushing = true;
2146
- var i = 0;
2147
- try {
2148
- for (; i < queue.length; i++) {
2149
- var callback = queue[i];
2150
- do {
2151
- callback = callback(true);
2152
- } while (callback !== null);
2153
- }
2154
- queue.length = 0;
2155
- } catch (error2) {
2156
- queue = queue.slice(i + 1);
2157
- throw error2;
2158
- } finally {
2159
- isFlushing = false;
2160
- }
2161
- }
2162
- }
2163
- }
2164
- var createElement$1 = createElementWithValidation;
2165
- var cloneElement$1 = cloneElementWithValidation;
2166
- var createFactory = createFactoryWithValidation;
2167
- var Children = {
2168
- map: mapChildren,
2169
- forEach: forEachChildren,
2170
- count: countChildren,
2171
- toArray,
2172
- only: onlyChild
2173
- };
2174
- exports2.Children = Children;
2175
- exports2.Component = Component;
2176
- exports2.Fragment = REACT_FRAGMENT_TYPE;
2177
- exports2.Profiler = REACT_PROFILER_TYPE;
2178
- exports2.PureComponent = PureComponent;
2179
- exports2.StrictMode = REACT_STRICT_MODE_TYPE;
2180
- exports2.Suspense = REACT_SUSPENSE_TYPE;
2181
- exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
2182
- exports2.cloneElement = cloneElement$1;
2183
- exports2.createContext = createContext;
2184
- exports2.createElement = createElement$1;
2185
- exports2.createFactory = createFactory;
2186
- exports2.createRef = createRef;
2187
- exports2.forwardRef = forwardRef;
2188
- exports2.isValidElement = isValidElement;
2189
- exports2.lazy = lazy;
2190
- exports2.memo = memo;
2191
- exports2.startTransition = startTransition;
2192
- exports2.unstable_act = act;
2193
- exports2.useCallback = useCallback;
2194
- exports2.useContext = useContext;
2195
- exports2.useDebugValue = useDebugValue;
2196
- exports2.useDeferredValue = useDeferredValue;
2197
- exports2.useEffect = useEffect2;
2198
- exports2.useId = useId;
2199
- exports2.useImperativeHandle = useImperativeHandle;
2200
- exports2.useInsertionEffect = useInsertionEffect;
2201
- exports2.useLayoutEffect = useLayoutEffect;
2202
- exports2.useMemo = useMemo;
2203
- exports2.useReducer = useReducer;
2204
- exports2.useRef = useRef2;
2205
- exports2.useState = useState;
2206
- exports2.useSyncExternalStore = useSyncExternalStore;
2207
- exports2.useTransition = useTransition;
2208
- exports2.version = ReactVersion;
2209
- if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
2210
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
2211
- }
2212
- })();
2213
- }
2214
- }
2215
- });
2216
-
2217
- // node_modules/react/index.js
2218
- var require_react = __commonJS({
2219
- "node_modules/react/index.js"(exports2, module2) {
2220
- "use strict";
2221
- if (process.env.NODE_ENV === "production") {
2222
- module2.exports = require_react_production_min();
2223
- } else {
2224
- module2.exports = require_react_development();
2225
- }
2226
- }
2227
- });
2228
-
2229
- // node_modules/react/cjs/react-jsx-runtime.production.min.js
2230
- var require_react_jsx_runtime_production_min = __commonJS({
2231
- "node_modules/react/cjs/react-jsx-runtime.production.min.js"(exports2) {
2232
- "use strict";
2233
- var f = require_react();
2234
- var k = Symbol.for("react.element");
2235
- var l = Symbol.for("react.fragment");
2236
- var m = Object.prototype.hasOwnProperty;
2237
- var n = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;
2238
- var p = { key: true, ref: true, __self: true, __source: true };
2239
- function q(c, a, g) {
2240
- var b, d = {}, e = null, h = null;
2241
- void 0 !== g && (e = "" + g);
2242
- void 0 !== a.key && (e = "" + a.key);
2243
- void 0 !== a.ref && (h = a.ref);
2244
- for (b in a)
2245
- m.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
2246
- if (c && c.defaultProps)
2247
- for (b in a = c.defaultProps, a)
2248
- void 0 === d[b] && (d[b] = a[b]);
2249
- return { $$typeof: k, type: c, key: e, ref: h, props: d, _owner: n.current };
2250
- }
2251
- exports2.Fragment = l;
2252
- exports2.jsx = q;
2253
- exports2.jsxs = q;
2254
- }
2255
- });
2256
-
2257
- // node_modules/react/cjs/react-jsx-runtime.development.js
2258
- var require_react_jsx_runtime_development = __commonJS({
2259
- "node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
2260
- "use strict";
2261
- if (process.env.NODE_ENV !== "production") {
2262
- (function() {
2263
- "use strict";
2264
- var React = require_react();
2265
- var REACT_ELEMENT_TYPE = Symbol.for("react.element");
2266
- var REACT_PORTAL_TYPE = Symbol.for("react.portal");
2267
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
2268
- var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
2269
- var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2270
- var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
2271
- var REACT_CONTEXT_TYPE = Symbol.for("react.context");
2272
- var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
2273
- var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
2274
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
2275
- var REACT_MEMO_TYPE = Symbol.for("react.memo");
2276
- var REACT_LAZY_TYPE = Symbol.for("react.lazy");
2277
- var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
2278
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
2279
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
2280
- function getIteratorFn(maybeIterable) {
2281
- if (maybeIterable === null || typeof maybeIterable !== "object") {
2282
- return null;
2283
- }
2284
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
2285
- if (typeof maybeIterator === "function") {
2286
- return maybeIterator;
2287
- }
2288
- return null;
2289
- }
2290
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
2291
- function error(format) {
2292
- {
2293
- {
2294
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
2295
- args[_key2 - 1] = arguments[_key2];
2296
- }
2297
- printWarning("error", format, args);
2298
- }
2299
- }
2300
- }
2301
- function printWarning(level, format, args) {
2302
- {
2303
- var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
2304
- var stack = ReactDebugCurrentFrame2.getStackAddendum();
2305
- if (stack !== "") {
2306
- format += "%s";
2307
- args = args.concat([stack]);
2308
- }
2309
- var argsWithFormat = args.map(function(item) {
2310
- return String(item);
2311
- });
2312
- argsWithFormat.unshift("Warning: " + format);
2313
- Function.prototype.apply.call(console[level], console, argsWithFormat);
2314
- }
2315
- }
2316
- var enableScopeAPI = false;
2317
- var enableCacheElement = false;
2318
- var enableTransitionTracing = false;
2319
- var enableLegacyHidden = false;
2320
- var enableDebugTracing = false;
2321
- var REACT_MODULE_REFERENCE;
2322
- {
2323
- REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
2324
- }
2325
- function isValidElementType(type) {
2326
- if (typeof type === "string" || typeof type === "function") {
2327
- return true;
2328
- }
2329
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
2330
- return true;
2331
- }
2332
- if (typeof type === "object" && type !== null) {
2333
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
2334
- // types supported by any Flight configuration anywhere since
2335
- // we don't know which Flight build this will end up being used
2336
- // with.
2337
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
2338
- return true;
2339
- }
2340
- }
2341
- return false;
2342
- }
2343
- function getWrappedName(outerType, innerType, wrapperName) {
2344
- var displayName = outerType.displayName;
2345
- if (displayName) {
2346
- return displayName;
2347
- }
2348
- var functionName = innerType.displayName || innerType.name || "";
2349
- return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
2350
- }
2351
- function getContextName(type) {
2352
- return type.displayName || "Context";
2353
- }
2354
- function getComponentNameFromType(type) {
2355
- if (type == null) {
2356
- return null;
2357
- }
2358
- {
2359
- if (typeof type.tag === "number") {
2360
- error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
2361
- }
2362
- }
2363
- if (typeof type === "function") {
2364
- return type.displayName || type.name || null;
2365
- }
2366
- if (typeof type === "string") {
2367
- return type;
2368
- }
2369
- switch (type) {
2370
- case REACT_FRAGMENT_TYPE:
2371
- return "Fragment";
2372
- case REACT_PORTAL_TYPE:
2373
- return "Portal";
2374
- case REACT_PROFILER_TYPE:
2375
- return "Profiler";
2376
- case REACT_STRICT_MODE_TYPE:
2377
- return "StrictMode";
2378
- case REACT_SUSPENSE_TYPE:
2379
- return "Suspense";
2380
- case REACT_SUSPENSE_LIST_TYPE:
2381
- return "SuspenseList";
2382
- }
2383
- if (typeof type === "object") {
2384
- switch (type.$$typeof) {
2385
- case REACT_CONTEXT_TYPE:
2386
- var context = type;
2387
- return getContextName(context) + ".Consumer";
2388
- case REACT_PROVIDER_TYPE:
2389
- var provider = type;
2390
- return getContextName(provider._context) + ".Provider";
2391
- case REACT_FORWARD_REF_TYPE:
2392
- return getWrappedName(type, type.render, "ForwardRef");
2393
- case REACT_MEMO_TYPE:
2394
- var outerName = type.displayName || null;
2395
- if (outerName !== null) {
2396
- return outerName;
2397
- }
2398
- return getComponentNameFromType(type.type) || "Memo";
2399
- case REACT_LAZY_TYPE: {
2400
- var lazyComponent = type;
2401
- var payload = lazyComponent._payload;
2402
- var init = lazyComponent._init;
2403
- try {
2404
- return getComponentNameFromType(init(payload));
2405
- } catch (x) {
2406
- return null;
2407
- }
2408
- }
2409
- }
2410
- }
2411
- return null;
2412
- }
2413
- var assign = Object.assign;
2414
- var disabledDepth = 0;
2415
- var prevLog;
2416
- var prevInfo;
2417
- var prevWarn;
2418
- var prevError;
2419
- var prevGroup;
2420
- var prevGroupCollapsed;
2421
- var prevGroupEnd;
2422
- function disabledLog() {
2423
- }
2424
- disabledLog.__reactDisabledLog = true;
2425
- function disableLogs() {
2426
- {
2427
- if (disabledDepth === 0) {
2428
- prevLog = console.log;
2429
- prevInfo = console.info;
2430
- prevWarn = console.warn;
2431
- prevError = console.error;
2432
- prevGroup = console.group;
2433
- prevGroupCollapsed = console.groupCollapsed;
2434
- prevGroupEnd = console.groupEnd;
2435
- var props = {
2436
- configurable: true,
2437
- enumerable: true,
2438
- value: disabledLog,
2439
- writable: true
2440
- };
2441
- Object.defineProperties(console, {
2442
- info: props,
2443
- log: props,
2444
- warn: props,
2445
- error: props,
2446
- group: props,
2447
- groupCollapsed: props,
2448
- groupEnd: props
2449
- });
2450
- }
2451
- disabledDepth++;
2452
- }
2453
- }
2454
- function reenableLogs() {
2455
- {
2456
- disabledDepth--;
2457
- if (disabledDepth === 0) {
2458
- var props = {
2459
- configurable: true,
2460
- enumerable: true,
2461
- writable: true
2462
- };
2463
- Object.defineProperties(console, {
2464
- log: assign({}, props, {
2465
- value: prevLog
2466
- }),
2467
- info: assign({}, props, {
2468
- value: prevInfo
2469
- }),
2470
- warn: assign({}, props, {
2471
- value: prevWarn
2472
- }),
2473
- error: assign({}, props, {
2474
- value: prevError
2475
- }),
2476
- group: assign({}, props, {
2477
- value: prevGroup
2478
- }),
2479
- groupCollapsed: assign({}, props, {
2480
- value: prevGroupCollapsed
2481
- }),
2482
- groupEnd: assign({}, props, {
2483
- value: prevGroupEnd
2484
- })
2485
- });
2486
- }
2487
- if (disabledDepth < 0) {
2488
- error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
2489
- }
2490
- }
2491
- }
2492
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
2493
- var prefix;
2494
- function describeBuiltInComponentFrame(name, source, ownerFn) {
2495
- {
2496
- if (prefix === void 0) {
2497
- try {
2498
- throw Error();
2499
- } catch (x) {
2500
- var match = x.stack.trim().match(/\n( *(at )?)/);
2501
- prefix = match && match[1] || "";
2502
- }
2503
- }
2504
- return "\n" + prefix + name;
2505
- }
2506
- }
2507
- var reentry = false;
2508
- var componentFrameCache;
2509
- {
2510
- var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
2511
- componentFrameCache = new PossiblyWeakMap();
2512
- }
2513
- function describeNativeComponentFrame(fn, construct) {
2514
- if (!fn || reentry) {
2515
- return "";
2516
- }
2517
- {
2518
- var frame = componentFrameCache.get(fn);
2519
- if (frame !== void 0) {
2520
- return frame;
2521
- }
2522
- }
2523
- var control;
2524
- reentry = true;
2525
- var previousPrepareStackTrace = Error.prepareStackTrace;
2526
- Error.prepareStackTrace = void 0;
2527
- var previousDispatcher;
2528
- {
2529
- previousDispatcher = ReactCurrentDispatcher.current;
2530
- ReactCurrentDispatcher.current = null;
2531
- disableLogs();
2532
- }
2533
- try {
2534
- if (construct) {
2535
- var Fake = function() {
2536
- throw Error();
2537
- };
2538
- Object.defineProperty(Fake.prototype, "props", {
2539
- set: function() {
2540
- throw Error();
2541
- }
2542
- });
2543
- if (typeof Reflect === "object" && Reflect.construct) {
2544
- try {
2545
- Reflect.construct(Fake, []);
2546
- } catch (x) {
2547
- control = x;
2548
- }
2549
- Reflect.construct(fn, [], Fake);
2550
- } else {
2551
- try {
2552
- Fake.call();
2553
- } catch (x) {
2554
- control = x;
2555
- }
2556
- fn.call(Fake.prototype);
2557
- }
2558
- } else {
2559
- try {
2560
- throw Error();
2561
- } catch (x) {
2562
- control = x;
2563
- }
2564
- fn();
2565
- }
2566
- } catch (sample) {
2567
- if (sample && control && typeof sample.stack === "string") {
2568
- var sampleLines = sample.stack.split("\n");
2569
- var controlLines = control.stack.split("\n");
2570
- var s = sampleLines.length - 1;
2571
- var c = controlLines.length - 1;
2572
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
2573
- c--;
2574
- }
2575
- for (; s >= 1 && c >= 0; s--, c--) {
2576
- if (sampleLines[s] !== controlLines[c]) {
2577
- if (s !== 1 || c !== 1) {
2578
- do {
2579
- s--;
2580
- c--;
2581
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
2582
- var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
2583
- if (fn.displayName && _frame.includes("<anonymous>")) {
2584
- _frame = _frame.replace("<anonymous>", fn.displayName);
2585
- }
2586
- {
2587
- if (typeof fn === "function") {
2588
- componentFrameCache.set(fn, _frame);
2589
- }
2590
- }
2591
- return _frame;
2592
- }
2593
- } while (s >= 1 && c >= 0);
2594
- }
2595
- break;
2596
- }
2597
- }
2598
- }
2599
- } finally {
2600
- reentry = false;
2601
- {
2602
- ReactCurrentDispatcher.current = previousDispatcher;
2603
- reenableLogs();
2604
- }
2605
- Error.prepareStackTrace = previousPrepareStackTrace;
2606
- }
2607
- var name = fn ? fn.displayName || fn.name : "";
2608
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
2609
- {
2610
- if (typeof fn === "function") {
2611
- componentFrameCache.set(fn, syntheticFrame);
2612
- }
2613
- }
2614
- return syntheticFrame;
2615
- }
2616
- function describeFunctionComponentFrame(fn, source, ownerFn) {
2617
- {
2618
- return describeNativeComponentFrame(fn, false);
2619
- }
2620
- }
2621
- function shouldConstruct(Component) {
2622
- var prototype = Component.prototype;
2623
- return !!(prototype && prototype.isReactComponent);
2624
- }
2625
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
2626
- if (type == null) {
2627
- return "";
2628
- }
2629
- if (typeof type === "function") {
2630
- {
2631
- return describeNativeComponentFrame(type, shouldConstruct(type));
2632
- }
2633
- }
2634
- if (typeof type === "string") {
2635
- return describeBuiltInComponentFrame(type);
2636
- }
2637
- switch (type) {
2638
- case REACT_SUSPENSE_TYPE:
2639
- return describeBuiltInComponentFrame("Suspense");
2640
- case REACT_SUSPENSE_LIST_TYPE:
2641
- return describeBuiltInComponentFrame("SuspenseList");
2642
- }
2643
- if (typeof type === "object") {
2644
- switch (type.$$typeof) {
2645
- case REACT_FORWARD_REF_TYPE:
2646
- return describeFunctionComponentFrame(type.render);
2647
- case REACT_MEMO_TYPE:
2648
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
2649
- case REACT_LAZY_TYPE: {
2650
- var lazyComponent = type;
2651
- var payload = lazyComponent._payload;
2652
- var init = lazyComponent._init;
2653
- try {
2654
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
2655
- } catch (x) {
2656
- }
2657
- }
2658
- }
2659
- }
2660
- return "";
2661
- }
2662
- var hasOwnProperty = Object.prototype.hasOwnProperty;
2663
- var loggedTypeFailures = {};
2664
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
2665
- function setCurrentlyValidatingElement(element) {
2666
- {
2667
- if (element) {
2668
- var owner = element._owner;
2669
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2670
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
2671
- } else {
2672
- ReactDebugCurrentFrame.setExtraStackFrame(null);
2673
- }
2674
- }
2675
- }
2676
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
2677
- {
2678
- var has = Function.call.bind(hasOwnProperty);
2679
- for (var typeSpecName in typeSpecs) {
2680
- if (has(typeSpecs, typeSpecName)) {
2681
- var error$1 = void 0;
2682
- try {
2683
- if (typeof typeSpecs[typeSpecName] !== "function") {
2684
- var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
2685
- err.name = "Invariant Violation";
2686
- throw err;
2687
- }
2688
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
2689
- } catch (ex) {
2690
- error$1 = ex;
2691
- }
2692
- if (error$1 && !(error$1 instanceof Error)) {
2693
- setCurrentlyValidatingElement(element);
2694
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
2695
- setCurrentlyValidatingElement(null);
2696
- }
2697
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
2698
- loggedTypeFailures[error$1.message] = true;
2699
- setCurrentlyValidatingElement(element);
2700
- error("Failed %s type: %s", location, error$1.message);
2701
- setCurrentlyValidatingElement(null);
2702
- }
2703
- }
2704
- }
2705
- }
2706
- }
2707
- var isArrayImpl = Array.isArray;
2708
- function isArray(a) {
2709
- return isArrayImpl(a);
2710
- }
2711
- function typeName(value) {
2712
- {
2713
- var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
2714
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
2715
- return type;
2716
- }
2717
- }
2718
- function willCoercionThrow(value) {
2719
- {
2720
- try {
2721
- testStringCoercion(value);
2722
- return false;
2723
- } catch (e) {
2724
- return true;
2725
- }
2726
- }
2727
- }
2728
- function testStringCoercion(value) {
2729
- return "" + value;
2730
- }
2731
- function checkKeyStringCoercion(value) {
2732
- {
2733
- if (willCoercionThrow(value)) {
2734
- error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
2735
- return testStringCoercion(value);
2736
- }
2737
- }
2738
- }
2739
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
2740
- var RESERVED_PROPS = {
2741
- key: true,
2742
- ref: true,
2743
- __self: true,
2744
- __source: true
2745
- };
2746
- var specialPropKeyWarningShown;
2747
- var specialPropRefWarningShown;
2748
- var didWarnAboutStringRefs;
2749
- {
2750
- didWarnAboutStringRefs = {};
2751
- }
2752
- function hasValidRef(config) {
2753
- {
2754
- if (hasOwnProperty.call(config, "ref")) {
2755
- var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
2756
- if (getter && getter.isReactWarning) {
2757
- return false;
2758
- }
2759
- }
2760
- }
2761
- return config.ref !== void 0;
2762
- }
2763
- function hasValidKey(config) {
2764
- {
2765
- if (hasOwnProperty.call(config, "key")) {
2766
- var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2767
- if (getter && getter.isReactWarning) {
2768
- return false;
2769
- }
2770
- }
2771
- }
2772
- return config.key !== void 0;
2773
- }
2774
- function warnIfStringRefCannotBeAutoConverted(config, self) {
2775
- {
2776
- if (typeof config.ref === "string" && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
2777
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
2778
- if (!didWarnAboutStringRefs[componentName]) {
2779
- error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
2780
- didWarnAboutStringRefs[componentName] = true;
2781
- }
2782
- }
2783
- }
2784
- }
2785
- function defineKeyPropWarningGetter(props, displayName) {
2786
- {
2787
- var warnAboutAccessingKey = function() {
2788
- if (!specialPropKeyWarningShown) {
2789
- specialPropKeyWarningShown = true;
2790
- error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
2791
- }
2792
- };
2793
- warnAboutAccessingKey.isReactWarning = true;
2794
- Object.defineProperty(props, "key", {
2795
- get: warnAboutAccessingKey,
2796
- configurable: true
2797
- });
2798
- }
2799
- }
2800
- function defineRefPropWarningGetter(props, displayName) {
2801
- {
2802
- var warnAboutAccessingRef = function() {
2803
- if (!specialPropRefWarningShown) {
2804
- specialPropRefWarningShown = true;
2805
- error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
2806
- }
2807
- };
2808
- warnAboutAccessingRef.isReactWarning = true;
2809
- Object.defineProperty(props, "ref", {
2810
- get: warnAboutAccessingRef,
2811
- configurable: true
2812
- });
2813
- }
2814
- }
2815
- var ReactElement = function(type, key, ref, self, source, owner, props) {
2816
- var element = {
2817
- // This tag allows us to uniquely identify this as a React Element
2818
- $$typeof: REACT_ELEMENT_TYPE,
2819
- // Built-in properties that belong on the element
2820
- type,
2821
- key,
2822
- ref,
2823
- props,
2824
- // Record the component responsible for creating this element.
2825
- _owner: owner
2826
- };
2827
- {
2828
- element._store = {};
2829
- Object.defineProperty(element._store, "validated", {
2830
- configurable: false,
2831
- enumerable: false,
2832
- writable: true,
2833
- value: false
2834
- });
2835
- Object.defineProperty(element, "_self", {
2836
- configurable: false,
2837
- enumerable: false,
2838
- writable: false,
2839
- value: self
2840
- });
2841
- Object.defineProperty(element, "_source", {
2842
- configurable: false,
2843
- enumerable: false,
2844
- writable: false,
2845
- value: source
2846
- });
2847
- if (Object.freeze) {
2848
- Object.freeze(element.props);
2849
- Object.freeze(element);
2850
- }
2851
- }
2852
- return element;
2853
- };
2854
- function jsxDEV(type, config, maybeKey, source, self) {
2855
- {
2856
- var propName;
2857
- var props = {};
2858
- var key = null;
2859
- var ref = null;
2860
- if (maybeKey !== void 0) {
2861
- {
2862
- checkKeyStringCoercion(maybeKey);
2863
- }
2864
- key = "" + maybeKey;
2865
- }
2866
- if (hasValidKey(config)) {
2867
- {
2868
- checkKeyStringCoercion(config.key);
2869
- }
2870
- key = "" + config.key;
2871
- }
2872
- if (hasValidRef(config)) {
2873
- ref = config.ref;
2874
- warnIfStringRefCannotBeAutoConverted(config, self);
2875
- }
2876
- for (propName in config) {
2877
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
2878
- props[propName] = config[propName];
2879
- }
2880
- }
2881
- if (type && type.defaultProps) {
2882
- var defaultProps = type.defaultProps;
2883
- for (propName in defaultProps) {
2884
- if (props[propName] === void 0) {
2885
- props[propName] = defaultProps[propName];
2886
- }
2887
- }
2888
- }
2889
- if (key || ref) {
2890
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
2891
- if (key) {
2892
- defineKeyPropWarningGetter(props, displayName);
2893
- }
2894
- if (ref) {
2895
- defineRefPropWarningGetter(props, displayName);
2896
- }
2897
- }
2898
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
2899
- }
2900
- }
2901
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
2902
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
2903
- function setCurrentlyValidatingElement$1(element) {
2904
- {
2905
- if (element) {
2906
- var owner = element._owner;
2907
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
2908
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
2909
- } else {
2910
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
2911
- }
2912
- }
2913
- }
2914
- var propTypesMisspellWarningShown;
2915
- {
2916
- propTypesMisspellWarningShown = false;
2917
- }
2918
- function isValidElement(object) {
2919
- {
2920
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
481
+ exports2.useRef = function(initialValue) {
482
+ return ReactSharedInternals.H.useRef(initialValue);
483
+ };
484
+ exports2.useState = function(initialState) {
485
+ return ReactSharedInternals.H.useState(initialState);
486
+ };
487
+ exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
488
+ return ReactSharedInternals.H.useSyncExternalStore(
489
+ subscribe,
490
+ getSnapshot,
491
+ getServerSnapshot
492
+ );
493
+ };
494
+ exports2.useTransition = function() {
495
+ return ReactSharedInternals.H.useTransition();
496
+ };
497
+ exports2.version = "19.1.0";
498
+ }
499
+ });
500
+
501
+ // node_modules/react/cjs/react.development.js
502
+ var require_react_development = __commonJS({
503
+ "node_modules/react/cjs/react.development.js"(exports2, module2) {
504
+ "use strict";
505
+ "production" !== process.env.NODE_ENV && function() {
506
+ function defineDeprecationWarning(methodName, info) {
507
+ Object.defineProperty(Component.prototype, methodName, {
508
+ get: function() {
509
+ console.warn(
510
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
511
+ info[0],
512
+ info[1]
513
+ );
2921
514
  }
515
+ });
516
+ }
517
+ function getIteratorFn(maybeIterable) {
518
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
519
+ return null;
520
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
521
+ return "function" === typeof maybeIterable ? maybeIterable : null;
522
+ }
523
+ function warnNoop(publicInstance, callerName) {
524
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
525
+ var warningKey = publicInstance + "." + callerName;
526
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
527
+ "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.",
528
+ callerName,
529
+ publicInstance
530
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
531
+ }
532
+ function Component(props, context, updater) {
533
+ this.props = props;
534
+ this.context = context;
535
+ this.refs = emptyObject;
536
+ this.updater = updater || ReactNoopUpdateQueue;
537
+ }
538
+ function ComponentDummy() {
539
+ }
540
+ function PureComponent(props, context, updater) {
541
+ this.props = props;
542
+ this.context = context;
543
+ this.refs = emptyObject;
544
+ this.updater = updater || ReactNoopUpdateQueue;
545
+ }
546
+ function testStringCoercion(value) {
547
+ return "" + value;
548
+ }
549
+ function checkKeyStringCoercion(value) {
550
+ try {
551
+ testStringCoercion(value);
552
+ var JSCompiler_inline_result = false;
553
+ } catch (e) {
554
+ JSCompiler_inline_result = true;
555
+ }
556
+ if (JSCompiler_inline_result) {
557
+ JSCompiler_inline_result = console;
558
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
559
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
560
+ JSCompiler_temp_const.call(
561
+ JSCompiler_inline_result,
562
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
563
+ JSCompiler_inline_result$jscomp$0
564
+ );
565
+ return testStringCoercion(value);
2922
566
  }
2923
- function getDeclarationErrorAddendum() {
2924
- {
2925
- if (ReactCurrentOwner$1.current) {
2926
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
2927
- if (name) {
2928
- return "\n\nCheck the render method of `" + name + "`.";
567
+ }
568
+ function getComponentNameFromType(type) {
569
+ if (null == type)
570
+ return null;
571
+ if ("function" === typeof type)
572
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
573
+ if ("string" === typeof type)
574
+ return type;
575
+ switch (type) {
576
+ case REACT_FRAGMENT_TYPE:
577
+ return "Fragment";
578
+ case REACT_PROFILER_TYPE:
579
+ return "Profiler";
580
+ case REACT_STRICT_MODE_TYPE:
581
+ return "StrictMode";
582
+ case REACT_SUSPENSE_TYPE:
583
+ return "Suspense";
584
+ case REACT_SUSPENSE_LIST_TYPE:
585
+ return "SuspenseList";
586
+ case REACT_ACTIVITY_TYPE:
587
+ return "Activity";
588
+ }
589
+ if ("object" === typeof type)
590
+ switch ("number" === typeof type.tag && console.error(
591
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
592
+ ), type.$$typeof) {
593
+ case REACT_PORTAL_TYPE:
594
+ return "Portal";
595
+ case REACT_CONTEXT_TYPE:
596
+ return (type.displayName || "Context") + ".Provider";
597
+ case REACT_CONSUMER_TYPE:
598
+ return (type._context.displayName || "Context") + ".Consumer";
599
+ case REACT_FORWARD_REF_TYPE:
600
+ var innerType = type.render;
601
+ type = type.displayName;
602
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
603
+ return type;
604
+ case REACT_MEMO_TYPE:
605
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
606
+ case REACT_LAZY_TYPE:
607
+ innerType = type._payload;
608
+ type = type._init;
609
+ try {
610
+ return getComponentNameFromType(type(innerType));
611
+ } catch (x) {
2929
612
  }
2930
- }
2931
- return "";
2932
613
  }
614
+ return null;
615
+ }
616
+ function getTaskName(type) {
617
+ if (type === REACT_FRAGMENT_TYPE)
618
+ return "<>";
619
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
620
+ return "<...>";
621
+ try {
622
+ var name = getComponentNameFromType(type);
623
+ return name ? "<" + name + ">" : "<...>";
624
+ } catch (x) {
625
+ return "<...>";
2933
626
  }
2934
- function getSourceInfoErrorAddendum(source) {
2935
- {
2936
- if (source !== void 0) {
2937
- var fileName = source.fileName.replace(/^.*[\\\/]/, "");
2938
- var lineNumber = source.lineNumber;
2939
- return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
2940
- }
2941
- return "";
2942
- }
627
+ }
628
+ function getOwner() {
629
+ var dispatcher = ReactSharedInternals.A;
630
+ return null === dispatcher ? null : dispatcher.getOwner();
631
+ }
632
+ function UnknownOwner() {
633
+ return Error("react-stack-top-frame");
634
+ }
635
+ function hasValidKey(config) {
636
+ if (hasOwnProperty.call(config, "key")) {
637
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
638
+ if (getter && getter.isReactWarning)
639
+ return false;
2943
640
  }
2944
- var ownerHasKeyUseWarning = {};
2945
- function getCurrentComponentErrorInfo(parentType) {
2946
- {
2947
- var info = getDeclarationErrorAddendum();
2948
- if (!info) {
2949
- var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
2950
- if (parentName) {
2951
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
641
+ return void 0 !== config.key;
642
+ }
643
+ function defineKeyPropWarningGetter(props, displayName) {
644
+ function warnAboutAccessingKey() {
645
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
646
+ "%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)",
647
+ displayName
648
+ ));
649
+ }
650
+ warnAboutAccessingKey.isReactWarning = true;
651
+ Object.defineProperty(props, "key", {
652
+ get: warnAboutAccessingKey,
653
+ configurable: true
654
+ });
655
+ }
656
+ function elementRefGetterWithDeprecationWarning() {
657
+ var componentName = getComponentNameFromType(this.type);
658
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
659
+ "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."
660
+ ));
661
+ componentName = this.props.ref;
662
+ return void 0 !== componentName ? componentName : null;
663
+ }
664
+ function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
665
+ self = props.ref;
666
+ type = {
667
+ $$typeof: REACT_ELEMENT_TYPE,
668
+ type,
669
+ key,
670
+ props,
671
+ _owner: owner
672
+ };
673
+ null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
674
+ enumerable: false,
675
+ get: elementRefGetterWithDeprecationWarning
676
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
677
+ type._store = {};
678
+ Object.defineProperty(type._store, "validated", {
679
+ configurable: false,
680
+ enumerable: false,
681
+ writable: true,
682
+ value: 0
683
+ });
684
+ Object.defineProperty(type, "_debugInfo", {
685
+ configurable: false,
686
+ enumerable: false,
687
+ writable: true,
688
+ value: null
689
+ });
690
+ Object.defineProperty(type, "_debugStack", {
691
+ configurable: false,
692
+ enumerable: false,
693
+ writable: true,
694
+ value: debugStack
695
+ });
696
+ Object.defineProperty(type, "_debugTask", {
697
+ configurable: false,
698
+ enumerable: false,
699
+ writable: true,
700
+ value: debugTask
701
+ });
702
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
703
+ return type;
704
+ }
705
+ function cloneAndReplaceKey(oldElement, newKey) {
706
+ newKey = ReactElement(
707
+ oldElement.type,
708
+ newKey,
709
+ void 0,
710
+ void 0,
711
+ oldElement._owner,
712
+ oldElement.props,
713
+ oldElement._debugStack,
714
+ oldElement._debugTask
715
+ );
716
+ oldElement._store && (newKey._store.validated = oldElement._store.validated);
717
+ return newKey;
718
+ }
719
+ function isValidElement(object) {
720
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
721
+ }
722
+ function escape(key) {
723
+ var escaperLookup = { "=": "=0", ":": "=2" };
724
+ return "$" + key.replace(/[=:]/g, function(match) {
725
+ return escaperLookup[match];
726
+ });
727
+ }
728
+ function getElementKey(element, index) {
729
+ return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
730
+ }
731
+ function noop$1() {
732
+ }
733
+ function resolveThenable(thenable) {
734
+ switch (thenable.status) {
735
+ case "fulfilled":
736
+ return thenable.value;
737
+ case "rejected":
738
+ throw thenable.reason;
739
+ default:
740
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
741
+ function(fulfilledValue) {
742
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
743
+ },
744
+ function(error) {
745
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
2952
746
  }
747
+ )), thenable.status) {
748
+ case "fulfilled":
749
+ return thenable.value;
750
+ case "rejected":
751
+ throw thenable.reason;
2953
752
  }
2954
- return info;
2955
- }
2956
753
  }
2957
- function validateExplicitKey(element, parentType) {
2958
- {
2959
- if (!element._store || element._store.validated || element.key != null) {
2960
- return;
2961
- }
2962
- element._store.validated = true;
2963
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
2964
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
2965
- return;
2966
- }
2967
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
2968
- var childOwner = "";
2969
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
2970
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
754
+ throw thenable;
755
+ }
756
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
757
+ var type = typeof children;
758
+ if ("undefined" === type || "boolean" === type)
759
+ children = null;
760
+ var invokeCallback = false;
761
+ if (null === children)
762
+ invokeCallback = true;
763
+ else
764
+ switch (type) {
765
+ case "bigint":
766
+ case "string":
767
+ case "number":
768
+ invokeCallback = true;
769
+ break;
770
+ case "object":
771
+ switch (children.$$typeof) {
772
+ case REACT_ELEMENT_TYPE:
773
+ case REACT_PORTAL_TYPE:
774
+ invokeCallback = true;
775
+ break;
776
+ case REACT_LAZY_TYPE:
777
+ return invokeCallback = children._init, mapIntoArray(
778
+ invokeCallback(children._payload),
779
+ array,
780
+ escapedPrefix,
781
+ nameSoFar,
782
+ callback
783
+ );
784
+ }
785
+ }
786
+ if (invokeCallback) {
787
+ invokeCallback = children;
788
+ callback = callback(invokeCallback);
789
+ var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
790
+ isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
791
+ return c;
792
+ })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
793
+ callback,
794
+ escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
795
+ userProvidedKeyEscapeRegex,
796
+ "$&/"
797
+ ) + "/") + childKey
798
+ ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
799
+ return 1;
800
+ }
801
+ invokeCallback = 0;
802
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
803
+ if (isArrayImpl(children))
804
+ for (var i = 0; i < children.length; i++)
805
+ nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
806
+ nameSoFar,
807
+ array,
808
+ escapedPrefix,
809
+ type,
810
+ callback
811
+ );
812
+ else if (i = getIteratorFn(children), "function" === typeof i)
813
+ for (i === children.entries && (didWarnAboutMaps || console.warn(
814
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
815
+ ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
816
+ nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
817
+ nameSoFar,
818
+ array,
819
+ escapedPrefix,
820
+ type,
821
+ callback
822
+ );
823
+ else if ("object" === type) {
824
+ if ("function" === typeof children.then)
825
+ return mapIntoArray(
826
+ resolveThenable(children),
827
+ array,
828
+ escapedPrefix,
829
+ nameSoFar,
830
+ callback
831
+ );
832
+ array = String(children);
833
+ throw Error(
834
+ "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."
835
+ );
836
+ }
837
+ return invokeCallback;
838
+ }
839
+ function mapChildren(children, func, context) {
840
+ if (null == children)
841
+ return children;
842
+ var result = [], count = 0;
843
+ mapIntoArray(children, result, "", "", function(child) {
844
+ return func.call(context, child, count++);
845
+ });
846
+ return result;
847
+ }
848
+ function lazyInitializer(payload) {
849
+ if (-1 === payload._status) {
850
+ var ctor = payload._result;
851
+ ctor = ctor();
852
+ ctor.then(
853
+ function(moduleObject) {
854
+ if (0 === payload._status || -1 === payload._status)
855
+ payload._status = 1, payload._result = moduleObject;
856
+ },
857
+ function(error) {
858
+ if (0 === payload._status || -1 === payload._status)
859
+ payload._status = 2, payload._result = error;
2971
860
  }
2972
- setCurrentlyValidatingElement$1(element);
2973
- error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
2974
- setCurrentlyValidatingElement$1(null);
861
+ );
862
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
863
+ }
864
+ if (1 === payload._status)
865
+ return ctor = payload._result, void 0 === ctor && console.error(
866
+ "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?",
867
+ ctor
868
+ ), "default" in ctor || console.error(
869
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
870
+ ctor
871
+ ), ctor.default;
872
+ throw payload._result;
873
+ }
874
+ function resolveDispatcher() {
875
+ var dispatcher = ReactSharedInternals.H;
876
+ null === dispatcher && console.error(
877
+ "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."
878
+ );
879
+ return dispatcher;
880
+ }
881
+ function noop() {
882
+ }
883
+ function enqueueTask(task) {
884
+ if (null === enqueueTaskImpl)
885
+ try {
886
+ var requireString = ("require" + Math.random()).slice(0, 7);
887
+ enqueueTaskImpl = (module2 && module2[requireString]).call(
888
+ module2,
889
+ "timers"
890
+ ).setImmediate;
891
+ } catch (_err) {
892
+ enqueueTaskImpl = function(callback) {
893
+ false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
894
+ "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."
895
+ ));
896
+ var channel = new MessageChannel();
897
+ channel.port1.onmessage = callback;
898
+ channel.port2.postMessage(void 0);
899
+ };
2975
900
  }
2976
- }
2977
- function validateChildKeys(node, parentType) {
2978
- {
2979
- if (typeof node !== "object") {
901
+ return enqueueTaskImpl(task);
902
+ }
903
+ function aggregateErrors(errors) {
904
+ return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
905
+ }
906
+ function popActScope(prevActQueue, prevActScopeDepth) {
907
+ prevActScopeDepth !== actScopeDepth - 1 && console.error(
908
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
909
+ );
910
+ actScopeDepth = prevActScopeDepth;
911
+ }
912
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
913
+ var queue = ReactSharedInternals.actQueue;
914
+ if (null !== queue)
915
+ if (0 !== queue.length)
916
+ try {
917
+ flushActQueue(queue);
918
+ enqueueTask(function() {
919
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
920
+ });
2980
921
  return;
922
+ } catch (error) {
923
+ ReactSharedInternals.thrownErrors.push(error);
2981
924
  }
2982
- if (isArray(node)) {
2983
- for (var i = 0; i < node.length; i++) {
2984
- var child = node[i];
2985
- if (isValidElement(child)) {
2986
- validateExplicitKey(child, parentType);
2987
- }
2988
- }
2989
- } else if (isValidElement(node)) {
2990
- if (node._store) {
2991
- node._store.validated = true;
2992
- }
2993
- } else if (node) {
2994
- var iteratorFn = getIteratorFn(node);
2995
- if (typeof iteratorFn === "function") {
2996
- if (iteratorFn !== node.entries) {
2997
- var iterator = iteratorFn.call(node);
2998
- var step;
2999
- while (!(step = iterator.next()).done) {
3000
- if (isValidElement(step.value)) {
3001
- validateExplicitKey(step.value, parentType);
3002
- }
925
+ else
926
+ ReactSharedInternals.actQueue = null;
927
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
928
+ }
929
+ function flushActQueue(queue) {
930
+ if (!isFlushing) {
931
+ isFlushing = true;
932
+ var i = 0;
933
+ try {
934
+ for (; i < queue.length; i++) {
935
+ var callback = queue[i];
936
+ do {
937
+ ReactSharedInternals.didUsePromise = false;
938
+ var continuation = callback(false);
939
+ if (null !== continuation) {
940
+ if (ReactSharedInternals.didUsePromise) {
941
+ queue[i] = callback;
942
+ queue.splice(0, i);
943
+ return;
3003
944
  }
3004
- }
3005
- }
945
+ callback = continuation;
946
+ } else
947
+ break;
948
+ } while (1);
3006
949
  }
950
+ queue.length = 0;
951
+ } catch (error) {
952
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
953
+ } finally {
954
+ isFlushing = false;
3007
955
  }
3008
956
  }
3009
- function validatePropTypes(element) {
3010
- {
3011
- var type = element.type;
3012
- if (type === null || type === void 0 || typeof type === "string") {
3013
- return;
3014
- }
3015
- var propTypes;
3016
- if (typeof type === "function") {
3017
- propTypes = type.propTypes;
3018
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
3019
- // Inner props are checked in the reconciler.
3020
- type.$$typeof === REACT_MEMO_TYPE)) {
3021
- propTypes = type.propTypes;
3022
- } else {
3023
- return;
3024
- }
3025
- if (propTypes) {
3026
- var name = getComponentNameFromType(type);
3027
- checkPropTypes(propTypes, element.props, "prop", name, element);
3028
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
3029
- propTypesMisspellWarningShown = true;
3030
- var _name = getComponentNameFromType(type);
3031
- error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
3032
- }
3033
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
3034
- error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
3035
- }
3036
- }
957
+ }
958
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
959
+ 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");
960
+ Symbol.for("react.provider");
961
+ 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_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
962
+ isMounted: function() {
963
+ return false;
964
+ },
965
+ enqueueForceUpdate: function(publicInstance) {
966
+ warnNoop(publicInstance, "forceUpdate");
967
+ },
968
+ enqueueReplaceState: function(publicInstance) {
969
+ warnNoop(publicInstance, "replaceState");
970
+ },
971
+ enqueueSetState: function(publicInstance) {
972
+ warnNoop(publicInstance, "setState");
973
+ }
974
+ }, assign = Object.assign, emptyObject = {};
975
+ Object.freeze(emptyObject);
976
+ Component.prototype.isReactComponent = {};
977
+ Component.prototype.setState = function(partialState, callback) {
978
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
979
+ throw Error(
980
+ "takes an object of state variables to update or a function which returns an object of state variables."
981
+ );
982
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
983
+ };
984
+ Component.prototype.forceUpdate = function(callback) {
985
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
986
+ };
987
+ var deprecatedAPIs = {
988
+ isMounted: [
989
+ "isMounted",
990
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
991
+ ],
992
+ replaceState: [
993
+ "replaceState",
994
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
995
+ ]
996
+ }, fnName;
997
+ for (fnName in deprecatedAPIs)
998
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
999
+ ComponentDummy.prototype = Component.prototype;
1000
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1001
+ deprecatedAPIs.constructor = PureComponent;
1002
+ assign(deprecatedAPIs, Component.prototype);
1003
+ deprecatedAPIs.isPureReactComponent = true;
1004
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
1005
+ H: null,
1006
+ A: null,
1007
+ T: null,
1008
+ S: null,
1009
+ V: null,
1010
+ actQueue: null,
1011
+ isBatchingLegacy: false,
1012
+ didScheduleLegacyUpdate: false,
1013
+ didUsePromise: false,
1014
+ thrownErrors: [],
1015
+ getCurrentStack: null,
1016
+ recentlyCreatedOwnerStacks: 0
1017
+ }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
1018
+ return null;
1019
+ };
1020
+ deprecatedAPIs = {
1021
+ "react-stack-bottom-frame": function(callStackForError) {
1022
+ return callStackForError();
1023
+ }
1024
+ };
1025
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1026
+ var didWarnAboutElementRef = {};
1027
+ var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
1028
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1029
+ var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1030
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1031
+ var event = new window.ErrorEvent("error", {
1032
+ bubbles: true,
1033
+ cancelable: true,
1034
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1035
+ error
1036
+ });
1037
+ if (!window.dispatchEvent(event))
1038
+ return;
1039
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
1040
+ process.emit("uncaughtException", error);
1041
+ return;
1042
+ }
1043
+ console.error(error);
1044
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1045
+ queueMicrotask(function() {
1046
+ return queueMicrotask(callback);
1047
+ });
1048
+ } : enqueueTask;
1049
+ deprecatedAPIs = Object.freeze({
1050
+ __proto__: null,
1051
+ c: function(size) {
1052
+ return resolveDispatcher().useMemoCache(size);
3037
1053
  }
3038
- function validateFragmentProps(fragment) {
3039
- {
3040
- var keys = Object.keys(fragment.props);
3041
- for (var i = 0; i < keys.length; i++) {
3042
- var key = keys[i];
3043
- if (key !== "children" && key !== "key") {
3044
- setCurrentlyValidatingElement$1(fragment);
3045
- error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
3046
- setCurrentlyValidatingElement$1(null);
3047
- break;
3048
- }
3049
- }
3050
- if (fragment.ref !== null) {
3051
- setCurrentlyValidatingElement$1(fragment);
3052
- error("Invalid attribute `ref` supplied to `React.Fragment`.");
3053
- setCurrentlyValidatingElement$1(null);
3054
- }
3055
- }
1054
+ });
1055
+ exports2.Children = {
1056
+ map: mapChildren,
1057
+ forEach: function(children, forEachFunc, forEachContext) {
1058
+ mapChildren(
1059
+ children,
1060
+ function() {
1061
+ forEachFunc.apply(this, arguments);
1062
+ },
1063
+ forEachContext
1064
+ );
1065
+ },
1066
+ count: function(children) {
1067
+ var n = 0;
1068
+ mapChildren(children, function() {
1069
+ n++;
1070
+ });
1071
+ return n;
1072
+ },
1073
+ toArray: function(children) {
1074
+ return mapChildren(children, function(child) {
1075
+ return child;
1076
+ }) || [];
1077
+ },
1078
+ only: function(children) {
1079
+ if (!isValidElement(children))
1080
+ throw Error(
1081
+ "React.Children.only expected to receive a single React element child."
1082
+ );
1083
+ return children;
3056
1084
  }
3057
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
3058
- {
3059
- var validType = isValidElementType(type);
3060
- if (!validType) {
3061
- var info = "";
3062
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
3063
- info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
3064
- }
3065
- var sourceInfo = getSourceInfoErrorAddendum(source);
3066
- if (sourceInfo) {
3067
- info += sourceInfo;
3068
- } else {
3069
- info += getDeclarationErrorAddendum();
3070
- }
3071
- var typeString;
3072
- if (type === null) {
3073
- typeString = "null";
3074
- } else if (isArray(type)) {
3075
- typeString = "array";
3076
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
3077
- typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
3078
- info = " Did you accidentally export a JSX literal instead of a component?";
3079
- } else {
3080
- typeString = typeof type;
3081
- }
3082
- error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
3083
- }
3084
- var element = jsxDEV(type, props, key, source, self);
3085
- if (element == null) {
3086
- return element;
3087
- }
3088
- if (validType) {
3089
- var children = props.children;
3090
- if (children !== void 0) {
3091
- if (isStaticChildren) {
3092
- if (isArray(children)) {
3093
- for (var i = 0; i < children.length; i++) {
3094
- validateChildKeys(children[i], type);
1085
+ };
1086
+ exports2.Component = Component;
1087
+ exports2.Fragment = REACT_FRAGMENT_TYPE;
1088
+ exports2.Profiler = REACT_PROFILER_TYPE;
1089
+ exports2.PureComponent = PureComponent;
1090
+ exports2.StrictMode = REACT_STRICT_MODE_TYPE;
1091
+ exports2.Suspense = REACT_SUSPENSE_TYPE;
1092
+ exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1093
+ exports2.__COMPILER_RUNTIME = deprecatedAPIs;
1094
+ exports2.act = function(callback) {
1095
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1096
+ actScopeDepth++;
1097
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1098
+ try {
1099
+ var result = callback();
1100
+ } catch (error) {
1101
+ ReactSharedInternals.thrownErrors.push(error);
1102
+ }
1103
+ if (0 < ReactSharedInternals.thrownErrors.length)
1104
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1105
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1106
+ var thenable = result;
1107
+ queueSeveralMicrotasks(function() {
1108
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1109
+ "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 () => ...);"
1110
+ ));
1111
+ });
1112
+ return {
1113
+ then: function(resolve, reject) {
1114
+ didAwaitActCall = true;
1115
+ thenable.then(
1116
+ function(returnValue) {
1117
+ popActScope(prevActQueue, prevActScopeDepth);
1118
+ if (0 === prevActScopeDepth) {
1119
+ try {
1120
+ flushActQueue(queue), enqueueTask(function() {
1121
+ return recursivelyFlushAsyncActWork(
1122
+ returnValue,
1123
+ resolve,
1124
+ reject
1125
+ );
1126
+ });
1127
+ } catch (error$0) {
1128
+ ReactSharedInternals.thrownErrors.push(error$0);
3095
1129
  }
3096
- if (Object.freeze) {
3097
- Object.freeze(children);
1130
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1131
+ var _thrownError = aggregateErrors(
1132
+ ReactSharedInternals.thrownErrors
1133
+ );
1134
+ ReactSharedInternals.thrownErrors.length = 0;
1135
+ reject(_thrownError);
3098
1136
  }
3099
- } else {
3100
- error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
3101
- }
3102
- } else {
3103
- validateChildKeys(children, type);
1137
+ } else
1138
+ resolve(returnValue);
1139
+ },
1140
+ function(error) {
1141
+ popActScope(prevActQueue, prevActScopeDepth);
1142
+ 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1143
+ ReactSharedInternals.thrownErrors
1144
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
3104
1145
  }
3105
- }
1146
+ );
3106
1147
  }
3107
- if (type === REACT_FRAGMENT_TYPE) {
3108
- validateFragmentProps(element);
3109
- } else {
3110
- validatePropTypes(element);
3111
- }
3112
- return element;
3113
- }
1148
+ };
3114
1149
  }
3115
- function jsxWithValidationStatic(type, props, key) {
3116
- {
3117
- return jsxWithValidation(type, props, key, true);
1150
+ var returnValue$jscomp$0 = result;
1151
+ popActScope(prevActQueue, prevActScopeDepth);
1152
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1153
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1154
+ "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(() => ...)"
1155
+ ));
1156
+ }), ReactSharedInternals.actQueue = null);
1157
+ if (0 < ReactSharedInternals.thrownErrors.length)
1158
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1159
+ return {
1160
+ then: function(resolve, reject) {
1161
+ didAwaitActCall = true;
1162
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1163
+ return recursivelyFlushAsyncActWork(
1164
+ returnValue$jscomp$0,
1165
+ resolve,
1166
+ reject
1167
+ );
1168
+ })) : resolve(returnValue$jscomp$0);
3118
1169
  }
3119
- }
3120
- function jsxWithValidationDynamic(type, props, key) {
3121
- {
3122
- return jsxWithValidation(type, props, key, false);
1170
+ };
1171
+ };
1172
+ exports2.cache = function(fn) {
1173
+ return function() {
1174
+ return fn.apply(null, arguments);
1175
+ };
1176
+ };
1177
+ exports2.captureOwnerStack = function() {
1178
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1179
+ return null === getCurrentStack ? null : getCurrentStack();
1180
+ };
1181
+ exports2.cloneElement = function(element, config, children) {
1182
+ if (null === element || void 0 === element)
1183
+ throw Error(
1184
+ "The argument must be a React element, but you passed " + element + "."
1185
+ );
1186
+ var props = assign({}, element.props), key = element.key, owner = element._owner;
1187
+ if (null != config) {
1188
+ var JSCompiler_inline_result;
1189
+ a: {
1190
+ if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1191
+ config,
1192
+ "ref"
1193
+ ).get) && JSCompiler_inline_result.isReactWarning) {
1194
+ JSCompiler_inline_result = false;
1195
+ break a;
1196
+ }
1197
+ JSCompiler_inline_result = void 0 !== config.ref;
1198
+ }
1199
+ JSCompiler_inline_result && (owner = getOwner());
1200
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1201
+ for (propName in config)
1202
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1203
+ }
1204
+ var propName = arguments.length - 2;
1205
+ if (1 === propName)
1206
+ props.children = children;
1207
+ else if (1 < propName) {
1208
+ JSCompiler_inline_result = Array(propName);
1209
+ for (var i = 0; i < propName; i++)
1210
+ JSCompiler_inline_result[i] = arguments[i + 2];
1211
+ props.children = JSCompiler_inline_result;
1212
+ }
1213
+ props = ReactElement(
1214
+ element.type,
1215
+ key,
1216
+ void 0,
1217
+ void 0,
1218
+ owner,
1219
+ props,
1220
+ element._debugStack,
1221
+ element._debugTask
1222
+ );
1223
+ for (key = 2; key < arguments.length; key++)
1224
+ owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1225
+ return props;
1226
+ };
1227
+ exports2.createContext = function(defaultValue) {
1228
+ defaultValue = {
1229
+ $$typeof: REACT_CONTEXT_TYPE,
1230
+ _currentValue: defaultValue,
1231
+ _currentValue2: defaultValue,
1232
+ _threadCount: 0,
1233
+ Provider: null,
1234
+ Consumer: null
1235
+ };
1236
+ defaultValue.Provider = defaultValue;
1237
+ defaultValue.Consumer = {
1238
+ $$typeof: REACT_CONSUMER_TYPE,
1239
+ _context: defaultValue
1240
+ };
1241
+ defaultValue._currentRenderer = null;
1242
+ defaultValue._currentRenderer2 = null;
1243
+ return defaultValue;
1244
+ };
1245
+ exports2.createElement = function(type, config, children) {
1246
+ for (var i = 2; i < arguments.length; i++) {
1247
+ var node = arguments[i];
1248
+ isValidElement(node) && node._store && (node._store.validated = 1);
1249
+ }
1250
+ i = {};
1251
+ node = null;
1252
+ if (null != config)
1253
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1254
+ "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"
1255
+ )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
1256
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1257
+ var childrenLength = arguments.length - 2;
1258
+ if (1 === childrenLength)
1259
+ i.children = children;
1260
+ else if (1 < childrenLength) {
1261
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1262
+ childArray[_i] = arguments[_i + 2];
1263
+ Object.freeze && Object.freeze(childArray);
1264
+ i.children = childArray;
1265
+ }
1266
+ if (type && type.defaultProps)
1267
+ for (propName in childrenLength = type.defaultProps, childrenLength)
1268
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1269
+ node && defineKeyPropWarningGetter(
1270
+ i,
1271
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1272
+ );
1273
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1274
+ return ReactElement(
1275
+ type,
1276
+ node,
1277
+ void 0,
1278
+ void 0,
1279
+ getOwner(),
1280
+ i,
1281
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1282
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1283
+ );
1284
+ };
1285
+ exports2.createRef = function() {
1286
+ var refObject = { current: null };
1287
+ Object.seal(refObject);
1288
+ return refObject;
1289
+ };
1290
+ exports2.forwardRef = function(render) {
1291
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1292
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1293
+ ) : "function" !== typeof render ? console.error(
1294
+ "forwardRef requires a render function but was given %s.",
1295
+ null === render ? "null" : typeof render
1296
+ ) : 0 !== render.length && 2 !== render.length && console.error(
1297
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1298
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1299
+ );
1300
+ null != render && null != render.defaultProps && console.error(
1301
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1302
+ );
1303
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1304
+ Object.defineProperty(elementType, "displayName", {
1305
+ enumerable: false,
1306
+ configurable: true,
1307
+ get: function() {
1308
+ return ownName;
1309
+ },
1310
+ set: function(name) {
1311
+ ownName = name;
1312
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
3123
1313
  }
3124
- }
3125
- var jsx2 = jsxWithValidationDynamic;
3126
- var jsxs = jsxWithValidationStatic;
3127
- exports2.Fragment = REACT_FRAGMENT_TYPE;
3128
- exports2.jsx = jsx2;
3129
- exports2.jsxs = jsxs;
3130
- })();
1314
+ });
1315
+ return elementType;
1316
+ };
1317
+ exports2.isValidElement = isValidElement;
1318
+ exports2.lazy = function(ctor) {
1319
+ return {
1320
+ $$typeof: REACT_LAZY_TYPE,
1321
+ _payload: { _status: -1, _result: ctor },
1322
+ _init: lazyInitializer
1323
+ };
1324
+ };
1325
+ exports2.memo = function(type, compare) {
1326
+ null == type && console.error(
1327
+ "memo: The first argument must be a component. Instead received: %s",
1328
+ null === type ? "null" : typeof type
1329
+ );
1330
+ compare = {
1331
+ $$typeof: REACT_MEMO_TYPE,
1332
+ type,
1333
+ compare: void 0 === compare ? null : compare
1334
+ };
1335
+ var ownName;
1336
+ Object.defineProperty(compare, "displayName", {
1337
+ enumerable: false,
1338
+ configurable: true,
1339
+ get: function() {
1340
+ return ownName;
1341
+ },
1342
+ set: function(name) {
1343
+ ownName = name;
1344
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1345
+ }
1346
+ });
1347
+ return compare;
1348
+ };
1349
+ exports2.startTransition = function(scope) {
1350
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
1351
+ ReactSharedInternals.T = currentTransition;
1352
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1353
+ try {
1354
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1355
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1356
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1357
+ } catch (error) {
1358
+ reportGlobalError(error);
1359
+ } finally {
1360
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1361
+ "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."
1362
+ )), ReactSharedInternals.T = prevTransition;
1363
+ }
1364
+ };
1365
+ exports2.unstable_useCacheRefresh = function() {
1366
+ return resolveDispatcher().useCacheRefresh();
1367
+ };
1368
+ exports2.use = function(usable) {
1369
+ return resolveDispatcher().use(usable);
1370
+ };
1371
+ exports2.useActionState = function(action, initialState, permalink) {
1372
+ return resolveDispatcher().useActionState(
1373
+ action,
1374
+ initialState,
1375
+ permalink
1376
+ );
1377
+ };
1378
+ exports2.useCallback = function(callback, deps) {
1379
+ return resolveDispatcher().useCallback(callback, deps);
1380
+ };
1381
+ exports2.useContext = function(Context) {
1382
+ var dispatcher = resolveDispatcher();
1383
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1384
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1385
+ );
1386
+ return dispatcher.useContext(Context);
1387
+ };
1388
+ exports2.useDebugValue = function(value, formatterFn) {
1389
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1390
+ };
1391
+ exports2.useDeferredValue = function(value, initialValue) {
1392
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1393
+ };
1394
+ exports2.useEffect = function(create, createDeps, update) {
1395
+ null == create && console.warn(
1396
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1397
+ );
1398
+ var dispatcher = resolveDispatcher();
1399
+ if ("function" === typeof update)
1400
+ throw Error(
1401
+ "useEffect CRUD overload is not enabled in this build of React."
1402
+ );
1403
+ return dispatcher.useEffect(create, createDeps);
1404
+ };
1405
+ exports2.useId = function() {
1406
+ return resolveDispatcher().useId();
1407
+ };
1408
+ exports2.useImperativeHandle = function(ref, create, deps) {
1409
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1410
+ };
1411
+ exports2.useInsertionEffect = function(create, deps) {
1412
+ null == create && console.warn(
1413
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1414
+ );
1415
+ return resolveDispatcher().useInsertionEffect(create, deps);
1416
+ };
1417
+ exports2.useLayoutEffect = function(create, deps) {
1418
+ null == create && console.warn(
1419
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1420
+ );
1421
+ return resolveDispatcher().useLayoutEffect(create, deps);
1422
+ };
1423
+ exports2.useMemo = function(create, deps) {
1424
+ return resolveDispatcher().useMemo(create, deps);
1425
+ };
1426
+ exports2.useOptimistic = function(passthrough, reducer) {
1427
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1428
+ };
1429
+ exports2.useReducer = function(reducer, initialArg, init) {
1430
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1431
+ };
1432
+ exports2.useRef = function(initialValue) {
1433
+ return resolveDispatcher().useRef(initialValue);
1434
+ };
1435
+ exports2.useState = function(initialState) {
1436
+ return resolveDispatcher().useState(initialState);
1437
+ };
1438
+ exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1439
+ return resolveDispatcher().useSyncExternalStore(
1440
+ subscribe,
1441
+ getSnapshot,
1442
+ getServerSnapshot
1443
+ );
1444
+ };
1445
+ exports2.useTransition = function() {
1446
+ return resolveDispatcher().useTransition();
1447
+ };
1448
+ exports2.version = "19.1.0";
1449
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1450
+ }();
1451
+ }
1452
+ });
1453
+
1454
+ // node_modules/react/index.js
1455
+ var require_react = __commonJS({
1456
+ "node_modules/react/index.js"(exports2, module2) {
1457
+ "use strict";
1458
+ if (process.env.NODE_ENV === "production") {
1459
+ module2.exports = require_react_production();
1460
+ } else {
1461
+ module2.exports = require_react_development();
1462
+ }
1463
+ }
1464
+ });
1465
+
1466
+ // node_modules/react/cjs/react-jsx-runtime.production.js
1467
+ var require_react_jsx_runtime_production = __commonJS({
1468
+ "node_modules/react/cjs/react-jsx-runtime.production.js"(exports2) {
1469
+ "use strict";
1470
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
1471
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
1472
+ function jsxProd(type, config, maybeKey) {
1473
+ var key = null;
1474
+ void 0 !== maybeKey && (key = "" + maybeKey);
1475
+ void 0 !== config.key && (key = "" + config.key);
1476
+ if ("key" in config) {
1477
+ maybeKey = {};
1478
+ for (var propName in config)
1479
+ "key" !== propName && (maybeKey[propName] = config[propName]);
1480
+ } else
1481
+ maybeKey = config;
1482
+ config = maybeKey.ref;
1483
+ return {
1484
+ $$typeof: REACT_ELEMENT_TYPE,
1485
+ type,
1486
+ key,
1487
+ ref: void 0 !== config ? config : null,
1488
+ props: maybeKey
1489
+ };
3131
1490
  }
1491
+ exports2.Fragment = REACT_FRAGMENT_TYPE;
1492
+ exports2.jsx = jsxProd;
1493
+ exports2.jsxs = jsxProd;
1494
+ }
1495
+ });
1496
+
1497
+ // node_modules/react/cjs/react-jsx-runtime.development.js
1498
+ var require_react_jsx_runtime_development = __commonJS({
1499
+ "node_modules/react/cjs/react-jsx-runtime.development.js"(exports2) {
1500
+ "use strict";
1501
+ "production" !== process.env.NODE_ENV && function() {
1502
+ function getComponentNameFromType(type) {
1503
+ if (null == type)
1504
+ return null;
1505
+ if ("function" === typeof type)
1506
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
1507
+ if ("string" === typeof type)
1508
+ return type;
1509
+ switch (type) {
1510
+ case REACT_FRAGMENT_TYPE:
1511
+ return "Fragment";
1512
+ case REACT_PROFILER_TYPE:
1513
+ return "Profiler";
1514
+ case REACT_STRICT_MODE_TYPE:
1515
+ return "StrictMode";
1516
+ case REACT_SUSPENSE_TYPE:
1517
+ return "Suspense";
1518
+ case REACT_SUSPENSE_LIST_TYPE:
1519
+ return "SuspenseList";
1520
+ case REACT_ACTIVITY_TYPE:
1521
+ return "Activity";
1522
+ }
1523
+ if ("object" === typeof type)
1524
+ switch ("number" === typeof type.tag && console.error(
1525
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1526
+ ), type.$$typeof) {
1527
+ case REACT_PORTAL_TYPE:
1528
+ return "Portal";
1529
+ case REACT_CONTEXT_TYPE:
1530
+ return (type.displayName || "Context") + ".Provider";
1531
+ case REACT_CONSUMER_TYPE:
1532
+ return (type._context.displayName || "Context") + ".Consumer";
1533
+ case REACT_FORWARD_REF_TYPE:
1534
+ var innerType = type.render;
1535
+ type = type.displayName;
1536
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
1537
+ return type;
1538
+ case REACT_MEMO_TYPE:
1539
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
1540
+ case REACT_LAZY_TYPE:
1541
+ innerType = type._payload;
1542
+ type = type._init;
1543
+ try {
1544
+ return getComponentNameFromType(type(innerType));
1545
+ } catch (x) {
1546
+ }
1547
+ }
1548
+ return null;
1549
+ }
1550
+ function testStringCoercion(value) {
1551
+ return "" + value;
1552
+ }
1553
+ function checkKeyStringCoercion(value) {
1554
+ try {
1555
+ testStringCoercion(value);
1556
+ var JSCompiler_inline_result = false;
1557
+ } catch (e) {
1558
+ JSCompiler_inline_result = true;
1559
+ }
1560
+ if (JSCompiler_inline_result) {
1561
+ JSCompiler_inline_result = console;
1562
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
1563
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
1564
+ JSCompiler_temp_const.call(
1565
+ JSCompiler_inline_result,
1566
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1567
+ JSCompiler_inline_result$jscomp$0
1568
+ );
1569
+ return testStringCoercion(value);
1570
+ }
1571
+ }
1572
+ function getTaskName(type) {
1573
+ if (type === REACT_FRAGMENT_TYPE)
1574
+ return "<>";
1575
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
1576
+ return "<...>";
1577
+ try {
1578
+ var name = getComponentNameFromType(type);
1579
+ return name ? "<" + name + ">" : "<...>";
1580
+ } catch (x) {
1581
+ return "<...>";
1582
+ }
1583
+ }
1584
+ function getOwner() {
1585
+ var dispatcher = ReactSharedInternals.A;
1586
+ return null === dispatcher ? null : dispatcher.getOwner();
1587
+ }
1588
+ function UnknownOwner() {
1589
+ return Error("react-stack-top-frame");
1590
+ }
1591
+ function hasValidKey(config) {
1592
+ if (hasOwnProperty.call(config, "key")) {
1593
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1594
+ if (getter && getter.isReactWarning)
1595
+ return false;
1596
+ }
1597
+ return void 0 !== config.key;
1598
+ }
1599
+ function defineKeyPropWarningGetter(props, displayName) {
1600
+ function warnAboutAccessingKey() {
1601
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
1602
+ "%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)",
1603
+ displayName
1604
+ ));
1605
+ }
1606
+ warnAboutAccessingKey.isReactWarning = true;
1607
+ Object.defineProperty(props, "key", {
1608
+ get: warnAboutAccessingKey,
1609
+ configurable: true
1610
+ });
1611
+ }
1612
+ function elementRefGetterWithDeprecationWarning() {
1613
+ var componentName = getComponentNameFromType(this.type);
1614
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
1615
+ "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."
1616
+ ));
1617
+ componentName = this.props.ref;
1618
+ return void 0 !== componentName ? componentName : null;
1619
+ }
1620
+ function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
1621
+ self = props.ref;
1622
+ type = {
1623
+ $$typeof: REACT_ELEMENT_TYPE,
1624
+ type,
1625
+ key,
1626
+ props,
1627
+ _owner: owner
1628
+ };
1629
+ null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
1630
+ enumerable: false,
1631
+ get: elementRefGetterWithDeprecationWarning
1632
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1633
+ type._store = {};
1634
+ Object.defineProperty(type._store, "validated", {
1635
+ configurable: false,
1636
+ enumerable: false,
1637
+ writable: true,
1638
+ value: 0
1639
+ });
1640
+ Object.defineProperty(type, "_debugInfo", {
1641
+ configurable: false,
1642
+ enumerable: false,
1643
+ writable: true,
1644
+ value: null
1645
+ });
1646
+ Object.defineProperty(type, "_debugStack", {
1647
+ configurable: false,
1648
+ enumerable: false,
1649
+ writable: true,
1650
+ value: debugStack
1651
+ });
1652
+ Object.defineProperty(type, "_debugTask", {
1653
+ configurable: false,
1654
+ enumerable: false,
1655
+ writable: true,
1656
+ value: debugTask
1657
+ });
1658
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1659
+ return type;
1660
+ }
1661
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
1662
+ var children = config.children;
1663
+ if (void 0 !== children)
1664
+ if (isStaticChildren)
1665
+ if (isArrayImpl(children)) {
1666
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
1667
+ validateChildKeys(children[isStaticChildren]);
1668
+ Object.freeze && Object.freeze(children);
1669
+ } else
1670
+ console.error(
1671
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1672
+ );
1673
+ else
1674
+ validateChildKeys(children);
1675
+ if (hasOwnProperty.call(config, "key")) {
1676
+ children = getComponentNameFromType(type);
1677
+ var keys = Object.keys(config).filter(function(k) {
1678
+ return "key" !== k;
1679
+ });
1680
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
1681
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
1682
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
1683
+ isStaticChildren,
1684
+ children,
1685
+ keys,
1686
+ children
1687
+ ), didWarnAboutKeySpread[children + isStaticChildren] = true);
1688
+ }
1689
+ children = null;
1690
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
1691
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
1692
+ if ("key" in config) {
1693
+ maybeKey = {};
1694
+ for (var propName in config)
1695
+ "key" !== propName && (maybeKey[propName] = config[propName]);
1696
+ } else
1697
+ maybeKey = config;
1698
+ children && defineKeyPropWarningGetter(
1699
+ maybeKey,
1700
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1701
+ );
1702
+ return ReactElement(
1703
+ type,
1704
+ children,
1705
+ self,
1706
+ source,
1707
+ getOwner(),
1708
+ maybeKey,
1709
+ debugStack,
1710
+ debugTask
1711
+ );
1712
+ }
1713
+ function validateChildKeys(node) {
1714
+ "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
1715
+ }
1716
+ var React = require_react(), 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");
1717
+ Symbol.for("react.provider");
1718
+ 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_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
1719
+ return null;
1720
+ };
1721
+ React = {
1722
+ "react-stack-bottom-frame": function(callStackForError) {
1723
+ return callStackForError();
1724
+ }
1725
+ };
1726
+ var specialPropKeyWarningShown;
1727
+ var didWarnAboutElementRef = {};
1728
+ var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
1729
+ React,
1730
+ UnknownOwner
1731
+ )();
1732
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1733
+ var didWarnAboutKeySpread = {};
1734
+ exports2.Fragment = REACT_FRAGMENT_TYPE;
1735
+ exports2.jsx = function(type, config, maybeKey, source, self) {
1736
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1737
+ return jsxDEVImpl(
1738
+ type,
1739
+ config,
1740
+ maybeKey,
1741
+ false,
1742
+ source,
1743
+ self,
1744
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1745
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1746
+ );
1747
+ };
1748
+ exports2.jsxs = function(type, config, maybeKey, source, self) {
1749
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1750
+ return jsxDEVImpl(
1751
+ type,
1752
+ config,
1753
+ maybeKey,
1754
+ true,
1755
+ source,
1756
+ self,
1757
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1758
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1759
+ );
1760
+ };
1761
+ }();
3132
1762
  }
3133
1763
  });
3134
1764
 
@@ -3137,7 +1767,7 @@ var require_jsx_runtime = __commonJS({
3137
1767
  "node_modules/react/jsx-runtime.js"(exports2, module2) {
3138
1768
  "use strict";
3139
1769
  if (process.env.NODE_ENV === "production") {
3140
- module2.exports = require_react_jsx_runtime_production_min();
1770
+ module2.exports = require_react_jsx_runtime_production();
3141
1771
  } else {
3142
1772
  module2.exports = require_react_jsx_runtime_development();
3143
1773
  }
@@ -3147,39 +1777,17 @@ var require_jsx_runtime = __commonJS({
3147
1777
  // src/index.tsx
3148
1778
  var src_exports = {};
3149
1779
  __export(src_exports, {
3150
- RawHTML: () => RawHTML,
3151
1780
  createIsland: () => createIsland,
1781
+ hydrateIslands: () => hydrateIslands,
3152
1782
  isServer: () => isServer,
3153
1783
  withProps: () => withProps
3154
1784
  });
3155
1785
  module.exports = __toCommonJS(src_exports);
1786
+
1787
+ // src/render.tsx
3156
1788
  var import_react = __toESM(require_react());
3157
1789
  var import_client = require("react-dom/client");
3158
1790
  var import_jsx_runtime = __toESM(require_jsx_runtime());
3159
- function createIsland(component, opts) {
3160
- const mergedOpts = __spreadValues({
3161
- multiple: false,
3162
- selector: `[data-hydrate="${opts.name}"]`,
3163
- keepChildren: false
3164
- }, opts);
3165
- const island = {
3166
- type: "island",
3167
- component,
3168
- opts: mergedOpts,
3169
- render(opts2) {
3170
- renderIsland(this, opts2);
3171
- }
3172
- };
3173
- return island;
3174
- }
3175
- function withProps(component, setProps) {
3176
- return (props) => {
3177
- return component(__spreadValues(__spreadValues({}, props), setProps));
3178
- };
3179
- }
3180
- function isServer() {
3181
- return !(typeof window != "undefined" && window.document);
3182
- }
3183
1791
  function RawHTML({ html }) {
3184
1792
  const ref = (0, import_react.useRef)(null);
3185
1793
  (0, import_react.useEffect)(() => {
@@ -3189,6 +1797,11 @@ function RawHTML({ html }) {
3189
1797
  }, []);
3190
1798
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("script", { ref });
3191
1799
  }
1800
+ function withProps(component, setProps) {
1801
+ return (props) => {
1802
+ return component(__spreadValues(__spreadValues({}, props), setProps));
1803
+ };
1804
+ }
3192
1805
  function renderIsland(island, renderOpts = {}) {
3193
1806
  const { component, opts } = island;
3194
1807
  const { selector, multiple, keepChildren } = opts;
@@ -3239,21 +1852,48 @@ function renderIsland(island, renderOpts = {}) {
3239
1852
  }
3240
1853
  }
3241
1854
  }
1855
+ function hydrateIslands(islands) {
1856
+ const isDev = (process.env.NODE_ENV || "development").trim() === "development";
1857
+ for (const island of Object.values(islands)) {
1858
+ island.render({ hydrate: !isDev });
1859
+ }
1860
+ }
1861
+
1862
+ // src/index.tsx
1863
+ function createIsland(component, opts) {
1864
+ const mergedOpts = __spreadValues({
1865
+ multiple: false,
1866
+ selector: `[data-hydrate="${opts.name}"]`,
1867
+ keepChildren: false
1868
+ }, opts);
1869
+ const island = {
1870
+ type: "island",
1871
+ component,
1872
+ opts: mergedOpts,
1873
+ render(opts2) {
1874
+ renderIsland(this, opts2);
1875
+ }
1876
+ };
1877
+ return island;
1878
+ }
1879
+ function isServer() {
1880
+ return !(typeof window != "undefined" && window.document);
1881
+ }
3242
1882
  // Annotate the CommonJS export names for ESM import in node:
3243
1883
  0 && (module.exports = {
3244
- RawHTML,
3245
1884
  createIsland,
1885
+ hydrateIslands,
3246
1886
  isServer,
3247
1887
  withProps
3248
1888
  });
3249
1889
  /*! Bundled license information:
3250
1890
 
3251
- react/cjs/react.production.min.js:
1891
+ react/cjs/react.production.js:
3252
1892
  (**
3253
1893
  * @license React
3254
- * react.production.min.js
1894
+ * react.production.js
3255
1895
  *
3256
- * Copyright (c) Facebook, Inc. and its affiliates.
1896
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3257
1897
  *
3258
1898
  * This source code is licensed under the MIT license found in the
3259
1899
  * LICENSE file in the root directory of this source tree.
@@ -3264,18 +1904,18 @@ react/cjs/react.development.js:
3264
1904
  * @license React
3265
1905
  * react.development.js
3266
1906
  *
3267
- * Copyright (c) Facebook, Inc. and its affiliates.
1907
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3268
1908
  *
3269
1909
  * This source code is licensed under the MIT license found in the
3270
1910
  * LICENSE file in the root directory of this source tree.
3271
1911
  *)
3272
1912
 
3273
- react/cjs/react-jsx-runtime.production.min.js:
1913
+ react/cjs/react-jsx-runtime.production.js:
3274
1914
  (**
3275
1915
  * @license React
3276
- * react-jsx-runtime.production.min.js
1916
+ * react-jsx-runtime.production.js
3277
1917
  *
3278
- * Copyright (c) Facebook, Inc. and its affiliates.
1918
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3279
1919
  *
3280
1920
  * This source code is licensed under the MIT license found in the
3281
1921
  * LICENSE file in the root directory of this source tree.
@@ -3286,7 +1926,7 @@ react/cjs/react-jsx-runtime.development.js:
3286
1926
  * @license React
3287
1927
  * react-jsx-runtime.development.js
3288
1928
  *
3289
- * Copyright (c) Facebook, Inc. and its affiliates.
1929
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3290
1930
  *
3291
1931
  * This source code is licensed under the MIT license found in the
3292
1932
  * LICENSE file in the root directory of this source tree.