@moyarich/console-addon-search 0.1.0 → 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/README.md +7 -1
- package/dist/components/ConsoleSearchControls/ConsoleSearchControls.d.cts +8 -0
- package/dist/components/ConsoleSearchControls/ConsoleSearchControls.d.ts +6 -3
- package/dist/components/ConsoleSearchHighlight/ConsoleSearchHighlight.d.cts +6 -0
- package/dist/components/ConsoleSearchHighlight/ConsoleSearchHighlight.d.ts +2 -2
- package/dist/console-addon-search.css +106 -29
- package/dist/index.cjs +261 -1842
- package/dist/index.d.cts +50 -0
- package/dist/index.d.ts +9 -3
- package/dist/index.js +262 -1843
- package/dist/locales/en.json +14 -0
- package/dist/locales/es.json +14 -0
- package/dist/locales/fr.json +14 -0
- package/dist/locales/pt.json +14 -0
- package/dist/localization.d.cts +4 -0
- package/dist/localization.d.ts +4 -0
- package/dist/styles.css +169 -0
- package/package.json +19 -10
package/dist/index.cjs
CHANGED
|
@@ -1,1876 +1,289 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const react = require("react");
|
|
3
4
|
const consoleCore = require("@moyarich/console-core");
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
switch (type) {
|
|
117
|
-
case "bigint":
|
|
118
|
-
case "string":
|
|
119
|
-
case "number":
|
|
120
|
-
invokeCallback = true;
|
|
121
|
-
break;
|
|
122
|
-
case "object":
|
|
123
|
-
switch (children.$$typeof) {
|
|
124
|
-
case REACT_ELEMENT_TYPE:
|
|
125
|
-
case REACT_PORTAL_TYPE:
|
|
126
|
-
invokeCallback = true;
|
|
127
|
-
break;
|
|
128
|
-
case REACT_LAZY_TYPE:
|
|
129
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
130
|
-
invokeCallback(children._payload),
|
|
131
|
-
array,
|
|
132
|
-
escapedPrefix,
|
|
133
|
-
nameSoFar,
|
|
134
|
-
callback
|
|
135
|
-
);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
if (invokeCallback)
|
|
139
|
-
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) {
|
|
140
|
-
return c;
|
|
141
|
-
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
|
|
142
|
-
callback,
|
|
143
|
-
escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
|
|
144
|
-
userProvidedKeyEscapeRegex,
|
|
145
|
-
"$&/"
|
|
146
|
-
) + "/") + invokeCallback
|
|
147
|
-
)), array.push(callback)), 1;
|
|
148
|
-
invokeCallback = 0;
|
|
149
|
-
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
150
|
-
if (isArrayImpl(children))
|
|
151
|
-
for (var i = 0; i < children.length; i++)
|
|
152
|
-
nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
153
|
-
nameSoFar,
|
|
154
|
-
array,
|
|
155
|
-
escapedPrefix,
|
|
156
|
-
type,
|
|
157
|
-
callback
|
|
158
|
-
);
|
|
159
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
160
|
-
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
161
|
-
nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
162
|
-
nameSoFar,
|
|
163
|
-
array,
|
|
164
|
-
escapedPrefix,
|
|
165
|
-
type,
|
|
166
|
-
callback
|
|
167
|
-
);
|
|
168
|
-
else if ("object" === type) {
|
|
169
|
-
if ("function" === typeof children.then)
|
|
170
|
-
return mapIntoArray(
|
|
171
|
-
resolveThenable(children),
|
|
172
|
-
array,
|
|
173
|
-
escapedPrefix,
|
|
174
|
-
nameSoFar,
|
|
175
|
-
callback
|
|
176
|
-
);
|
|
177
|
-
array = String(children);
|
|
178
|
-
throw Error(
|
|
179
|
-
"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."
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
return invokeCallback;
|
|
183
|
-
}
|
|
184
|
-
function mapChildren(children, func, context) {
|
|
185
|
-
if (null == children) return children;
|
|
186
|
-
var result = [], count = 0;
|
|
187
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
188
|
-
return func.call(context, child, count++);
|
|
189
|
-
});
|
|
190
|
-
return result;
|
|
191
|
-
}
|
|
192
|
-
function lazyInitializer(payload) {
|
|
193
|
-
if (-1 === payload._status) {
|
|
194
|
-
var ctor = payload._result, thenable = ctor();
|
|
195
|
-
thenable.then(
|
|
196
|
-
function(moduleObject) {
|
|
197
|
-
if (0 === payload._status || -1 === payload._status)
|
|
198
|
-
payload._status = 1, payload._result = moduleObject, void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
199
|
-
},
|
|
200
|
-
function(error) {
|
|
201
|
-
if (0 === payload._status || -1 === payload._status)
|
|
202
|
-
payload._status = 2, payload._result = error, void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
203
|
-
}
|
|
204
|
-
);
|
|
205
|
-
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
206
|
-
}
|
|
207
|
-
if (1 === payload._status) return payload._result.default;
|
|
208
|
-
throw payload._result;
|
|
209
|
-
}
|
|
210
|
-
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
211
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
212
|
-
var event = new window.ErrorEvent("error", {
|
|
213
|
-
bubbles: true,
|
|
214
|
-
cancelable: true,
|
|
215
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
216
|
-
error
|
|
217
|
-
});
|
|
218
|
-
if (!window.dispatchEvent(event)) return;
|
|
219
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
220
|
-
process.emit("uncaughtException", error);
|
|
221
|
-
return;
|
|
222
|
-
}
|
|
223
|
-
console.error(error);
|
|
224
|
-
};
|
|
225
|
-
function startTransition(scope) {
|
|
226
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
227
|
-
currentTransition.types = null !== prevTransition ? prevTransition.types : null;
|
|
228
|
-
ReactSharedInternals.T = currentTransition;
|
|
229
|
-
try {
|
|
230
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
231
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
232
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
233
|
-
} catch (error) {
|
|
234
|
-
reportGlobalError(error);
|
|
235
|
-
} finally {
|
|
236
|
-
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
function addTransitionType(type) {
|
|
240
|
-
var transition = ReactSharedInternals.T;
|
|
241
|
-
if (null !== transition) {
|
|
242
|
-
var transitionTypes = transition.types;
|
|
243
|
-
null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
244
|
-
} else startTransition(addTransitionType.bind(null, type));
|
|
245
|
-
}
|
|
246
|
-
var Children = {
|
|
247
|
-
map: mapChildren,
|
|
248
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
249
|
-
mapChildren(
|
|
250
|
-
children,
|
|
251
|
-
function() {
|
|
252
|
-
forEachFunc.apply(this, arguments);
|
|
253
|
-
},
|
|
254
|
-
forEachContext
|
|
255
|
-
);
|
|
256
|
-
},
|
|
257
|
-
count: function(children) {
|
|
258
|
-
var n = 0;
|
|
259
|
-
mapChildren(children, function() {
|
|
260
|
-
n++;
|
|
261
|
-
});
|
|
262
|
-
return n;
|
|
263
|
-
},
|
|
264
|
-
toArray: function(children) {
|
|
265
|
-
return mapChildren(children, function(child) {
|
|
266
|
-
return child;
|
|
267
|
-
}) || [];
|
|
268
|
-
},
|
|
269
|
-
only: function(children) {
|
|
270
|
-
if (!isValidElement(children))
|
|
271
|
-
throw Error(
|
|
272
|
-
"React.Children.only expected to receive a single React element child."
|
|
273
|
-
);
|
|
274
|
-
return children;
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
react_production.Activity = REACT_ACTIVITY_TYPE;
|
|
278
|
-
react_production.Children = Children;
|
|
279
|
-
react_production.Component = Component;
|
|
280
|
-
react_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
281
|
-
react_production.Profiler = REACT_PROFILER_TYPE;
|
|
282
|
-
react_production.PureComponent = PureComponent;
|
|
283
|
-
react_production.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
284
|
-
react_production.Suspense = REACT_SUSPENSE_TYPE;
|
|
285
|
-
react_production.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
286
|
-
react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
287
|
-
react_production.__COMPILER_RUNTIME = {
|
|
288
|
-
__proto__: null,
|
|
289
|
-
c: function(size) {
|
|
290
|
-
return ReactSharedInternals.H.useMemoCache(size);
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
react_production.addTransitionType = addTransitionType;
|
|
294
|
-
react_production.cache = function(fn) {
|
|
295
|
-
return function() {
|
|
296
|
-
return fn.apply(null, arguments);
|
|
297
|
-
};
|
|
298
|
-
};
|
|
299
|
-
react_production.cacheSignal = function() {
|
|
300
|
-
return null;
|
|
301
|
-
};
|
|
302
|
-
react_production.cloneElement = function(element, config, children) {
|
|
303
|
-
if (null === element || void 0 === element)
|
|
304
|
-
throw Error(
|
|
305
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
306
|
-
);
|
|
307
|
-
var props = assign({}, element.props), key = element.key;
|
|
308
|
-
if (null != config)
|
|
309
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
310
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
311
|
-
var propName = arguments.length - 2;
|
|
312
|
-
if (1 === propName) props.children = children;
|
|
313
|
-
else if (1 < propName) {
|
|
314
|
-
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
315
|
-
childArray[i] = arguments[i + 2];
|
|
316
|
-
props.children = childArray;
|
|
317
|
-
}
|
|
318
|
-
return ReactElement(element.type, key, props);
|
|
319
|
-
};
|
|
320
|
-
react_production.createContext = function(defaultValue) {
|
|
321
|
-
defaultValue = {
|
|
322
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
323
|
-
_currentValue: defaultValue,
|
|
324
|
-
_currentValue2: defaultValue,
|
|
325
|
-
_threadCount: 0,
|
|
326
|
-
Provider: null,
|
|
327
|
-
Consumer: null
|
|
328
|
-
};
|
|
329
|
-
defaultValue.Provider = defaultValue;
|
|
330
|
-
defaultValue.Consumer = {
|
|
331
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
332
|
-
_context: defaultValue
|
|
333
|
-
};
|
|
334
|
-
return defaultValue;
|
|
335
|
-
};
|
|
336
|
-
react_production.createElement = function(type, config, children) {
|
|
337
|
-
var propName, props = {}, key = null;
|
|
338
|
-
if (null != config)
|
|
339
|
-
for (propName in void 0 !== config.key && (key = "" + config.key), config)
|
|
340
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
341
|
-
var childrenLength = arguments.length - 2;
|
|
342
|
-
if (1 === childrenLength) props.children = children;
|
|
343
|
-
else if (1 < childrenLength) {
|
|
344
|
-
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
345
|
-
childArray[i] = arguments[i + 2];
|
|
346
|
-
props.children = childArray;
|
|
347
|
-
}
|
|
348
|
-
if (type && type.defaultProps)
|
|
349
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
350
|
-
void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
351
|
-
return ReactElement(type, key, props);
|
|
352
|
-
};
|
|
353
|
-
react_production.createRef = function() {
|
|
354
|
-
return { current: null };
|
|
355
|
-
};
|
|
356
|
-
react_production.forwardRef = function(render) {
|
|
357
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render };
|
|
358
|
-
};
|
|
359
|
-
react_production.isValidElement = isValidElement;
|
|
360
|
-
react_production.lazy = function(ctor) {
|
|
361
|
-
return {
|
|
362
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
363
|
-
_payload: { _status: -1, _result: ctor },
|
|
364
|
-
_init: lazyInitializer
|
|
365
|
-
};
|
|
366
|
-
};
|
|
367
|
-
react_production.memo = function(type, compare) {
|
|
368
|
-
return {
|
|
369
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
370
|
-
type,
|
|
371
|
-
compare: void 0 === compare ? null : compare
|
|
372
|
-
};
|
|
373
|
-
};
|
|
374
|
-
react_production.startTransition = startTransition;
|
|
375
|
-
react_production.unstable_useCacheRefresh = function() {
|
|
376
|
-
return ReactSharedInternals.H.useCacheRefresh();
|
|
377
|
-
};
|
|
378
|
-
react_production.use = function(usable) {
|
|
379
|
-
return ReactSharedInternals.H.use(usable);
|
|
380
|
-
};
|
|
381
|
-
react_production.useActionState = function(action, initialState, permalink) {
|
|
382
|
-
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
383
|
-
};
|
|
384
|
-
react_production.useCallback = function(callback, deps) {
|
|
385
|
-
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
386
|
-
};
|
|
387
|
-
react_production.useContext = function(Context) {
|
|
388
|
-
return ReactSharedInternals.H.useContext(Context);
|
|
389
|
-
};
|
|
390
|
-
react_production.useDebugValue = function() {
|
|
391
|
-
};
|
|
392
|
-
react_production.useDeferredValue = function(value, initialValue) {
|
|
393
|
-
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
394
|
-
};
|
|
395
|
-
react_production.useEffect = function(create, deps) {
|
|
396
|
-
return ReactSharedInternals.H.useEffect(create, deps);
|
|
397
|
-
};
|
|
398
|
-
react_production.useEffectEvent = function(callback) {
|
|
399
|
-
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
400
|
-
};
|
|
401
|
-
react_production.useId = function() {
|
|
402
|
-
return ReactSharedInternals.H.useId();
|
|
403
|
-
};
|
|
404
|
-
react_production.useImperativeHandle = function(ref, create, deps) {
|
|
405
|
-
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
406
|
-
};
|
|
407
|
-
react_production.useInsertionEffect = function(create, deps) {
|
|
408
|
-
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
409
|
-
};
|
|
410
|
-
react_production.useLayoutEffect = function(create, deps) {
|
|
411
|
-
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
412
|
-
};
|
|
413
|
-
react_production.useMemo = function(create, deps) {
|
|
414
|
-
return ReactSharedInternals.H.useMemo(create, deps);
|
|
415
|
-
};
|
|
416
|
-
react_production.useOptimistic = function(passthrough, reducer) {
|
|
417
|
-
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
418
|
-
};
|
|
419
|
-
react_production.useReducer = function(reducer, initialArg, init) {
|
|
420
|
-
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
421
|
-
};
|
|
422
|
-
react_production.useRef = function(initialValue) {
|
|
423
|
-
return ReactSharedInternals.H.useRef(initialValue);
|
|
424
|
-
};
|
|
425
|
-
react_production.useState = function(initialState) {
|
|
426
|
-
return ReactSharedInternals.H.useState(initialState);
|
|
427
|
-
};
|
|
428
|
-
react_production.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
429
|
-
return ReactSharedInternals.H.useSyncExternalStore(
|
|
430
|
-
subscribe,
|
|
431
|
-
getSnapshot,
|
|
432
|
-
getServerSnapshot
|
|
433
|
-
);
|
|
434
|
-
};
|
|
435
|
-
react_production.useTransition = function() {
|
|
436
|
-
return ReactSharedInternals.H.useTransition();
|
|
5
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
6
|
+
const search$3 = "Console search";
|
|
7
|
+
const searchOutput$3 = "Search output";
|
|
8
|
+
const searchConsoleOutput$3 = "Search console output";
|
|
9
|
+
const caseSensitive$3 = "Case sensitive";
|
|
10
|
+
const wholeWord$3 = "Whole word";
|
|
11
|
+
const regex$3 = "Regex";
|
|
12
|
+
const noMatches$3 = "No matches";
|
|
13
|
+
const matchCount$3 = "{current} of {total} matches";
|
|
14
|
+
const previousResult$3 = "Previous search result";
|
|
15
|
+
const nextResult$3 = "Next search result";
|
|
16
|
+
const previous$3 = "Previous";
|
|
17
|
+
const next$3 = "Next";
|
|
18
|
+
const en = {
|
|
19
|
+
search: search$3,
|
|
20
|
+
searchOutput: searchOutput$3,
|
|
21
|
+
searchConsoleOutput: searchConsoleOutput$3,
|
|
22
|
+
caseSensitive: caseSensitive$3,
|
|
23
|
+
wholeWord: wholeWord$3,
|
|
24
|
+
regex: regex$3,
|
|
25
|
+
noMatches: noMatches$3,
|
|
26
|
+
matchCount: matchCount$3,
|
|
27
|
+
previousResult: previousResult$3,
|
|
28
|
+
nextResult: nextResult$3,
|
|
29
|
+
previous: previous$3,
|
|
30
|
+
next: next$3
|
|
31
|
+
};
|
|
32
|
+
const search$2 = "Buscar en la consola";
|
|
33
|
+
const searchOutput$2 = "Buscar en la salida";
|
|
34
|
+
const searchConsoleOutput$2 = "Buscar en la salida de la consola";
|
|
35
|
+
const caseSensitive$2 = "Distinguir mayúsculas";
|
|
36
|
+
const wholeWord$2 = "Palabra completa";
|
|
37
|
+
const regex$2 = "Expresión regular";
|
|
38
|
+
const noMatches$2 = "Sin resultados";
|
|
39
|
+
const matchCount$2 = "{current} de {total} resultados";
|
|
40
|
+
const previousResult$2 = "Resultado anterior";
|
|
41
|
+
const nextResult$2 = "Resultado siguiente";
|
|
42
|
+
const previous$2 = "Anterior";
|
|
43
|
+
const next$2 = "Siguiente";
|
|
44
|
+
const es = {
|
|
45
|
+
search: search$2,
|
|
46
|
+
searchOutput: searchOutput$2,
|
|
47
|
+
searchConsoleOutput: searchConsoleOutput$2,
|
|
48
|
+
caseSensitive: caseSensitive$2,
|
|
49
|
+
wholeWord: wholeWord$2,
|
|
50
|
+
regex: regex$2,
|
|
51
|
+
noMatches: noMatches$2,
|
|
52
|
+
matchCount: matchCount$2,
|
|
53
|
+
previousResult: previousResult$2,
|
|
54
|
+
nextResult: nextResult$2,
|
|
55
|
+
previous: previous$2,
|
|
56
|
+
next: next$2
|
|
57
|
+
};
|
|
58
|
+
const search$1 = "Recherche dans la console";
|
|
59
|
+
const searchOutput$1 = "Rechercher dans la sortie";
|
|
60
|
+
const searchConsoleOutput$1 = "Rechercher dans la sortie de la console";
|
|
61
|
+
const caseSensitive$1 = "Respecter la casse";
|
|
62
|
+
const wholeWord$1 = "Mot entier";
|
|
63
|
+
const regex$1 = "Expression régulière";
|
|
64
|
+
const noMatches$1 = "Aucun résultat";
|
|
65
|
+
const matchCount$1 = "{current} sur {total} résultats";
|
|
66
|
+
const previousResult$1 = "Résultat précédent";
|
|
67
|
+
const nextResult$1 = "Résultat suivant";
|
|
68
|
+
const previous$1 = "Précédent";
|
|
69
|
+
const next$1 = "Suivant";
|
|
70
|
+
const fr = {
|
|
71
|
+
search: search$1,
|
|
72
|
+
searchOutput: searchOutput$1,
|
|
73
|
+
searchConsoleOutput: searchConsoleOutput$1,
|
|
74
|
+
caseSensitive: caseSensitive$1,
|
|
75
|
+
wholeWord: wholeWord$1,
|
|
76
|
+
regex: regex$1,
|
|
77
|
+
noMatches: noMatches$1,
|
|
78
|
+
matchCount: matchCount$1,
|
|
79
|
+
previousResult: previousResult$1,
|
|
80
|
+
nextResult: nextResult$1,
|
|
81
|
+
previous: previous$1,
|
|
82
|
+
next: next$1
|
|
83
|
+
};
|
|
84
|
+
const search = "Pesquisar no console";
|
|
85
|
+
const searchOutput = "Pesquisar na saída";
|
|
86
|
+
const searchConsoleOutput = "Pesquisar na saída do console";
|
|
87
|
+
const caseSensitive = "Diferenciar maiúsculas de minúsculas";
|
|
88
|
+
const wholeWord = "Palavra inteira";
|
|
89
|
+
const regex = "Expressão regular";
|
|
90
|
+
const noMatches = "Nenhuma correspondência";
|
|
91
|
+
const matchCount = "{current} de {total} correspondências";
|
|
92
|
+
const previousResult = "Resultado anterior";
|
|
93
|
+
const nextResult = "Próximo resultado";
|
|
94
|
+
const previous = "Anterior";
|
|
95
|
+
const next = "Próximo";
|
|
96
|
+
const pt = {
|
|
97
|
+
search,
|
|
98
|
+
searchOutput,
|
|
99
|
+
searchConsoleOutput,
|
|
100
|
+
caseSensitive,
|
|
101
|
+
wholeWord,
|
|
102
|
+
regex,
|
|
103
|
+
noMatches,
|
|
104
|
+
matchCount,
|
|
105
|
+
previousResult,
|
|
106
|
+
nextResult,
|
|
107
|
+
previous,
|
|
108
|
+
next
|
|
109
|
+
};
|
|
110
|
+
const dictionaries = { en, es, fr, pt };
|
|
111
|
+
function resolveAddonMessages(locale = "en", overrides) {
|
|
112
|
+
const tag = locale.replace(/_/g, "-").toLowerCase();
|
|
113
|
+
return {
|
|
114
|
+
...en,
|
|
115
|
+
...dictionaries[tag] ?? dictionaries[tag.split("-")[0]] ?? {},
|
|
116
|
+
...overrides
|
|
437
117
|
};
|
|
438
|
-
react_production.version = "19.3.0";
|
|
439
|
-
return react_production;
|
|
440
|
-
}
|
|
441
|
-
var react_development = { exports: {} };
|
|
442
|
-
react_development.exports;
|
|
443
|
-
var hasRequiredReact_development;
|
|
444
|
-
function requireReact_development() {
|
|
445
|
-
if (hasRequiredReact_development) return react_development.exports;
|
|
446
|
-
hasRequiredReact_development = 1;
|
|
447
|
-
(function(module2, exports2) {
|
|
448
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
449
|
-
function defineDeprecationWarning(methodName, info) {
|
|
450
|
-
Object.defineProperty(Component.prototype, methodName, {
|
|
451
|
-
get: function() {
|
|
452
|
-
console.warn(
|
|
453
|
-
"%s(...) is deprecated in plain JavaScript React classes. %s",
|
|
454
|
-
info[0],
|
|
455
|
-
info[1]
|
|
456
|
-
);
|
|
457
|
-
}
|
|
458
|
-
});
|
|
459
|
-
}
|
|
460
|
-
function getIteratorFn(maybeIterable) {
|
|
461
|
-
if (null === maybeIterable || "object" !== typeof maybeIterable)
|
|
462
|
-
return null;
|
|
463
|
-
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
464
|
-
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
465
|
-
}
|
|
466
|
-
function warnNoop(publicInstance, callerName) {
|
|
467
|
-
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
468
|
-
var warningKey = publicInstance + "." + callerName;
|
|
469
|
-
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
|
|
470
|
-
"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.",
|
|
471
|
-
callerName,
|
|
472
|
-
publicInstance
|
|
473
|
-
), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
|
|
474
|
-
}
|
|
475
|
-
function Component(props, context, updater) {
|
|
476
|
-
this.props = props;
|
|
477
|
-
this.context = context;
|
|
478
|
-
this.refs = emptyObject;
|
|
479
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
480
|
-
}
|
|
481
|
-
function ComponentDummy() {
|
|
482
|
-
}
|
|
483
|
-
function PureComponent(props, context, updater) {
|
|
484
|
-
this.props = props;
|
|
485
|
-
this.context = context;
|
|
486
|
-
this.refs = emptyObject;
|
|
487
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
488
|
-
}
|
|
489
|
-
function noop() {
|
|
490
|
-
}
|
|
491
|
-
function testStringCoercion(value) {
|
|
492
|
-
return "" + value;
|
|
493
|
-
}
|
|
494
|
-
function checkKeyStringCoercion(value) {
|
|
495
|
-
try {
|
|
496
|
-
testStringCoercion(value);
|
|
497
|
-
var JSCompiler_inline_result = false;
|
|
498
|
-
} catch (e) {
|
|
499
|
-
JSCompiler_inline_result = true;
|
|
500
|
-
}
|
|
501
|
-
if (JSCompiler_inline_result) {
|
|
502
|
-
JSCompiler_inline_result = console;
|
|
503
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
504
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
505
|
-
JSCompiler_temp_const.call(
|
|
506
|
-
JSCompiler_inline_result,
|
|
507
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
508
|
-
JSCompiler_inline_result$jscomp$0
|
|
509
|
-
);
|
|
510
|
-
return testStringCoercion(value);
|
|
511
|
-
}
|
|
512
|
-
}
|
|
513
|
-
function getComponentNameFromType(type) {
|
|
514
|
-
if (null == type) return null;
|
|
515
|
-
if ("function" === typeof type)
|
|
516
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
517
|
-
if ("string" === typeof type) return type;
|
|
518
|
-
switch (type) {
|
|
519
|
-
case REACT_FRAGMENT_TYPE:
|
|
520
|
-
return "Fragment";
|
|
521
|
-
case REACT_PROFILER_TYPE:
|
|
522
|
-
return "Profiler";
|
|
523
|
-
case REACT_STRICT_MODE_TYPE:
|
|
524
|
-
return "StrictMode";
|
|
525
|
-
case REACT_SUSPENSE_TYPE:
|
|
526
|
-
return "Suspense";
|
|
527
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
528
|
-
return "SuspenseList";
|
|
529
|
-
case REACT_ACTIVITY_TYPE:
|
|
530
|
-
return "Activity";
|
|
531
|
-
case REACT_VIEW_TRANSITION_TYPE:
|
|
532
|
-
return "ViewTransition";
|
|
533
|
-
}
|
|
534
|
-
if ("object" === typeof type)
|
|
535
|
-
switch ("number" === typeof type.tag && console.error(
|
|
536
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
537
|
-
), type.$$typeof) {
|
|
538
|
-
case REACT_PORTAL_TYPE:
|
|
539
|
-
return "Portal";
|
|
540
|
-
case REACT_CONTEXT_TYPE:
|
|
541
|
-
return type.displayName || "Context";
|
|
542
|
-
case REACT_CONSUMER_TYPE:
|
|
543
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
544
|
-
case REACT_FORWARD_REF_TYPE:
|
|
545
|
-
var innerType = type.render;
|
|
546
|
-
type = type.displayName;
|
|
547
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
548
|
-
return type;
|
|
549
|
-
case REACT_MEMO_TYPE:
|
|
550
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
551
|
-
case REACT_LAZY_TYPE:
|
|
552
|
-
innerType = type._payload;
|
|
553
|
-
type = type._init;
|
|
554
|
-
try {
|
|
555
|
-
return getComponentNameFromType(type(innerType));
|
|
556
|
-
} catch (x) {
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
return null;
|
|
560
|
-
}
|
|
561
|
-
function getTaskName(type) {
|
|
562
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
563
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
564
|
-
return "<...>";
|
|
565
|
-
try {
|
|
566
|
-
var name = getComponentNameFromType(type);
|
|
567
|
-
return name ? "<" + name + ">" : "<...>";
|
|
568
|
-
} catch (x) {
|
|
569
|
-
return "<...>";
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
function getOwner() {
|
|
573
|
-
var dispatcher = ReactSharedInternals.A;
|
|
574
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
575
|
-
}
|
|
576
|
-
function UnknownOwner() {
|
|
577
|
-
return Error("react-stack-top-frame");
|
|
578
|
-
}
|
|
579
|
-
function hasValidKey(config) {
|
|
580
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
581
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
582
|
-
if (getter && getter.isReactWarning) return false;
|
|
583
|
-
}
|
|
584
|
-
return void 0 !== config.key;
|
|
585
|
-
}
|
|
586
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
587
|
-
function warnAboutAccessingKey() {
|
|
588
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
589
|
-
"%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)",
|
|
590
|
-
displayName
|
|
591
|
-
));
|
|
592
|
-
}
|
|
593
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
594
|
-
Object.defineProperty(props, "key", {
|
|
595
|
-
get: warnAboutAccessingKey,
|
|
596
|
-
configurable: true
|
|
597
|
-
});
|
|
598
|
-
}
|
|
599
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
600
|
-
var componentName = getComponentNameFromType(this.type);
|
|
601
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
602
|
-
"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."
|
|
603
|
-
));
|
|
604
|
-
componentName = this.props.ref;
|
|
605
|
-
return void 0 !== componentName ? componentName : null;
|
|
606
|
-
}
|
|
607
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
608
|
-
var refProp = props.ref;
|
|
609
|
-
type = {
|
|
610
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
611
|
-
type,
|
|
612
|
-
key,
|
|
613
|
-
props,
|
|
614
|
-
_owner: owner
|
|
615
|
-
};
|
|
616
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
617
|
-
enumerable: false,
|
|
618
|
-
get: elementRefGetterWithDeprecationWarning
|
|
619
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
620
|
-
type._store = {};
|
|
621
|
-
Object.defineProperty(type._store, "validated", {
|
|
622
|
-
configurable: false,
|
|
623
|
-
enumerable: false,
|
|
624
|
-
writable: true,
|
|
625
|
-
value: 0
|
|
626
|
-
});
|
|
627
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
628
|
-
configurable: false,
|
|
629
|
-
enumerable: false,
|
|
630
|
-
writable: true,
|
|
631
|
-
value: null
|
|
632
|
-
});
|
|
633
|
-
Object.defineProperty(type, "_debugStack", {
|
|
634
|
-
configurable: false,
|
|
635
|
-
enumerable: false,
|
|
636
|
-
writable: true,
|
|
637
|
-
value: debugStack
|
|
638
|
-
});
|
|
639
|
-
Object.defineProperty(type, "_debugTask", {
|
|
640
|
-
configurable: false,
|
|
641
|
-
enumerable: false,
|
|
642
|
-
writable: true,
|
|
643
|
-
value: debugTask
|
|
644
|
-
});
|
|
645
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
646
|
-
return type;
|
|
647
|
-
}
|
|
648
|
-
function cloneAndReplaceKey(oldElement, newKey) {
|
|
649
|
-
newKey = ReactElement(
|
|
650
|
-
oldElement.type,
|
|
651
|
-
newKey,
|
|
652
|
-
oldElement.props,
|
|
653
|
-
oldElement._owner,
|
|
654
|
-
oldElement._debugStack,
|
|
655
|
-
oldElement._debugTask
|
|
656
|
-
);
|
|
657
|
-
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
658
|
-
return newKey;
|
|
659
|
-
}
|
|
660
|
-
function validateChildKeys(node) {
|
|
661
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
662
|
-
}
|
|
663
|
-
function isValidElement(object) {
|
|
664
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
665
|
-
}
|
|
666
|
-
function escape(key) {
|
|
667
|
-
var escaperLookup = { "=": "=0", ":": "=2" };
|
|
668
|
-
return "$" + key.replace(/[=:]/g, function(match) {
|
|
669
|
-
return escaperLookup[match];
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
function getElementKey(element, index) {
|
|
673
|
-
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
674
|
-
}
|
|
675
|
-
function resolveThenable(thenable) {
|
|
676
|
-
switch (thenable.status) {
|
|
677
|
-
case "fulfilled":
|
|
678
|
-
return thenable.value;
|
|
679
|
-
case "rejected":
|
|
680
|
-
throw thenable.reason;
|
|
681
|
-
default:
|
|
682
|
-
switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(
|
|
683
|
-
function(fulfilledValue) {
|
|
684
|
-
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
685
|
-
},
|
|
686
|
-
function(error) {
|
|
687
|
-
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
688
|
-
}
|
|
689
|
-
)), thenable.status) {
|
|
690
|
-
case "fulfilled":
|
|
691
|
-
return thenable.value;
|
|
692
|
-
case "rejected":
|
|
693
|
-
throw thenable.reason;
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
throw thenable;
|
|
697
|
-
}
|
|
698
|
-
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
699
|
-
var type = typeof children;
|
|
700
|
-
if ("undefined" === type || "boolean" === type) children = null;
|
|
701
|
-
var invokeCallback = false;
|
|
702
|
-
if (null === children) invokeCallback = true;
|
|
703
|
-
else
|
|
704
|
-
switch (type) {
|
|
705
|
-
case "bigint":
|
|
706
|
-
case "string":
|
|
707
|
-
case "number":
|
|
708
|
-
invokeCallback = true;
|
|
709
|
-
break;
|
|
710
|
-
case "object":
|
|
711
|
-
switch (children.$$typeof) {
|
|
712
|
-
case REACT_ELEMENT_TYPE:
|
|
713
|
-
case REACT_PORTAL_TYPE:
|
|
714
|
-
invokeCallback = true;
|
|
715
|
-
break;
|
|
716
|
-
case REACT_LAZY_TYPE:
|
|
717
|
-
return invokeCallback = children._init, mapIntoArray(
|
|
718
|
-
invokeCallback(children._payload),
|
|
719
|
-
array,
|
|
720
|
-
escapedPrefix,
|
|
721
|
-
nameSoFar,
|
|
722
|
-
callback
|
|
723
|
-
);
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
if (invokeCallback) {
|
|
727
|
-
invokeCallback = children;
|
|
728
|
-
callback = callback(invokeCallback);
|
|
729
|
-
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
730
|
-
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
731
|
-
return c;
|
|
732
|
-
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
|
|
733
|
-
callback,
|
|
734
|
-
escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
|
|
735
|
-
userProvidedKeyEscapeRegex,
|
|
736
|
-
"$&/"
|
|
737
|
-
) + "/") + childKey
|
|
738
|
-
), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
739
|
-
return 1;
|
|
740
|
-
}
|
|
741
|
-
invokeCallback = 0;
|
|
742
|
-
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
743
|
-
if (isArrayImpl(children))
|
|
744
|
-
for (var i = 0; i < children.length; i++)
|
|
745
|
-
nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
|
|
746
|
-
nameSoFar,
|
|
747
|
-
array,
|
|
748
|
-
escapedPrefix,
|
|
749
|
-
type,
|
|
750
|
-
callback
|
|
751
|
-
);
|
|
752
|
-
else if (i = getIteratorFn(children), "function" === typeof i)
|
|
753
|
-
for (i === children.entries && (didWarnAboutMaps || console.warn(
|
|
754
|
-
"Using Maps as children is not supported. Use an array of keyed ReactElements instead."
|
|
755
|
-
), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
756
|
-
nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
|
|
757
|
-
nameSoFar,
|
|
758
|
-
array,
|
|
759
|
-
escapedPrefix,
|
|
760
|
-
type,
|
|
761
|
-
callback
|
|
762
|
-
);
|
|
763
|
-
else if ("object" === type) {
|
|
764
|
-
if ("function" === typeof children.then)
|
|
765
|
-
return mapIntoArray(
|
|
766
|
-
resolveThenable(children),
|
|
767
|
-
array,
|
|
768
|
-
escapedPrefix,
|
|
769
|
-
nameSoFar,
|
|
770
|
-
callback
|
|
771
|
-
);
|
|
772
|
-
array = String(children);
|
|
773
|
-
throw Error(
|
|
774
|
-
"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."
|
|
775
|
-
);
|
|
776
|
-
}
|
|
777
|
-
return invokeCallback;
|
|
778
|
-
}
|
|
779
|
-
function mapChildren(children, func, context) {
|
|
780
|
-
if (null == children) return children;
|
|
781
|
-
var result = [], count = 0;
|
|
782
|
-
mapIntoArray(children, result, "", "", function(child) {
|
|
783
|
-
return func.call(context, child, count++);
|
|
784
|
-
});
|
|
785
|
-
return result;
|
|
786
|
-
}
|
|
787
|
-
function lazyInitializer(payload) {
|
|
788
|
-
if (-1 === payload._status) {
|
|
789
|
-
var resolveDebugValue = null, rejectDebugValue = null, ioInfo = payload._ioInfo;
|
|
790
|
-
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now(), ioInfo.value = new Promise(function(resolve, reject) {
|
|
791
|
-
resolveDebugValue = resolve;
|
|
792
|
-
rejectDebugValue = reject;
|
|
793
|
-
}));
|
|
794
|
-
ioInfo = payload._result;
|
|
795
|
-
var thenable = ioInfo();
|
|
796
|
-
thenable.then(
|
|
797
|
-
function(moduleObject) {
|
|
798
|
-
if (0 === payload._status || -1 === payload._status) {
|
|
799
|
-
payload._status = 1;
|
|
800
|
-
payload._result = moduleObject;
|
|
801
|
-
var _ioInfo = payload._ioInfo;
|
|
802
|
-
if (null != _ioInfo) {
|
|
803
|
-
_ioInfo.end = performance.now();
|
|
804
|
-
var debugValue = null == moduleObject ? void 0 : moduleObject.default;
|
|
805
|
-
resolveDebugValue(debugValue);
|
|
806
|
-
_ioInfo.value.status = "fulfilled";
|
|
807
|
-
_ioInfo.value.value = debugValue;
|
|
808
|
-
}
|
|
809
|
-
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
810
|
-
}
|
|
811
|
-
},
|
|
812
|
-
function(error) {
|
|
813
|
-
if (0 === payload._status || -1 === payload._status) {
|
|
814
|
-
payload._status = 2;
|
|
815
|
-
payload._result = error;
|
|
816
|
-
var _ioInfo2 = payload._ioInfo;
|
|
817
|
-
null != _ioInfo2 && (_ioInfo2.end = performance.now(), _ioInfo2.value.then(noop, noop), rejectDebugValue(error), _ioInfo2.value.status = "rejected", _ioInfo2.value.reason = error);
|
|
818
|
-
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
819
|
-
}
|
|
820
|
-
}
|
|
821
|
-
);
|
|
822
|
-
ioInfo = payload._ioInfo;
|
|
823
|
-
if (null != ioInfo) {
|
|
824
|
-
var displayName = thenable.displayName;
|
|
825
|
-
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
826
|
-
}
|
|
827
|
-
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
828
|
-
}
|
|
829
|
-
if (1 === payload._status)
|
|
830
|
-
return ioInfo = payload._result, void 0 === ioInfo && console.error(
|
|
831
|
-
"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?",
|
|
832
|
-
ioInfo
|
|
833
|
-
), "default" in ioInfo || console.error(
|
|
834
|
-
"lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
|
|
835
|
-
ioInfo
|
|
836
|
-
), ioInfo.default;
|
|
837
|
-
throw payload._result;
|
|
838
|
-
}
|
|
839
|
-
function resolveDispatcher() {
|
|
840
|
-
var dispatcher = ReactSharedInternals.H;
|
|
841
|
-
null === dispatcher && console.error(
|
|
842
|
-
"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."
|
|
843
|
-
);
|
|
844
|
-
return dispatcher;
|
|
845
|
-
}
|
|
846
|
-
function releaseAsyncTransition() {
|
|
847
|
-
ReactSharedInternals.asyncTransitions--;
|
|
848
|
-
}
|
|
849
|
-
function startTransition(scope) {
|
|
850
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
851
|
-
currentTransition.types = null !== prevTransition ? prevTransition.types : null;
|
|
852
|
-
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
853
|
-
ReactSharedInternals.T = currentTransition;
|
|
854
|
-
try {
|
|
855
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
856
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
857
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
|
858
|
-
} catch (error) {
|
|
859
|
-
reportGlobalError(error);
|
|
860
|
-
} finally {
|
|
861
|
-
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
862
|
-
"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."
|
|
863
|
-
)), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
|
|
864
|
-
"We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
|
|
865
|
-
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
function addTransitionType(type) {
|
|
869
|
-
var transition = ReactSharedInternals.T;
|
|
870
|
-
if (null !== transition) {
|
|
871
|
-
var transitionTypes = transition.types;
|
|
872
|
-
null === transitionTypes ? transition.types = [type] : -1 === transitionTypes.indexOf(type) && transitionTypes.push(type);
|
|
873
|
-
} else
|
|
874
|
-
0 === ReactSharedInternals.asyncTransitions && console.error(
|
|
875
|
-
"addTransitionType can only be called inside a `startTransition()` callback. It must be associated with a specific Transition."
|
|
876
|
-
), startTransition(addTransitionType.bind(null, type));
|
|
877
|
-
}
|
|
878
|
-
function enqueueTask(task) {
|
|
879
|
-
if (null === enqueueTaskImpl)
|
|
880
|
-
try {
|
|
881
|
-
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
882
|
-
enqueueTaskImpl = (module2 && module2[requireString]).call(
|
|
883
|
-
module2,
|
|
884
|
-
"timers"
|
|
885
|
-
).setImmediate;
|
|
886
|
-
} catch (_err) {
|
|
887
|
-
enqueueTaskImpl = function(callback) {
|
|
888
|
-
false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
|
|
889
|
-
"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."
|
|
890
|
-
));
|
|
891
|
-
var channel = new MessageChannel();
|
|
892
|
-
channel.port1.onmessage = callback;
|
|
893
|
-
channel.port2.postMessage(void 0);
|
|
894
|
-
};
|
|
895
|
-
}
|
|
896
|
-
return enqueueTaskImpl(task);
|
|
897
|
-
}
|
|
898
|
-
function aggregateErrors(errors) {
|
|
899
|
-
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
900
|
-
}
|
|
901
|
-
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
902
|
-
prevActScopeDepth !== actScopeDepth - 1 && console.error(
|
|
903
|
-
"You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
|
|
904
|
-
);
|
|
905
|
-
actScopeDepth = prevActScopeDepth;
|
|
906
|
-
}
|
|
907
|
-
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
908
|
-
var queue = ReactSharedInternals.actQueue;
|
|
909
|
-
if (null !== queue)
|
|
910
|
-
if (0 !== queue.length)
|
|
911
|
-
try {
|
|
912
|
-
flushActQueue(queue);
|
|
913
|
-
enqueueTask(function() {
|
|
914
|
-
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
915
|
-
});
|
|
916
|
-
return;
|
|
917
|
-
} catch (error) {
|
|
918
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
919
|
-
}
|
|
920
|
-
else ReactSharedInternals.actQueue = null;
|
|
921
|
-
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
922
|
-
}
|
|
923
|
-
function flushActQueue(queue) {
|
|
924
|
-
if (!isFlushing) {
|
|
925
|
-
isFlushing = true;
|
|
926
|
-
var i = 0;
|
|
927
|
-
try {
|
|
928
|
-
for (; i < queue.length; i++) {
|
|
929
|
-
var callback = queue[i];
|
|
930
|
-
do {
|
|
931
|
-
ReactSharedInternals.didUsePromise = false;
|
|
932
|
-
var continuation = callback(false);
|
|
933
|
-
if (null !== continuation) {
|
|
934
|
-
if (ReactSharedInternals.didUsePromise) {
|
|
935
|
-
queue[i] = callback;
|
|
936
|
-
queue.splice(0, i);
|
|
937
|
-
return;
|
|
938
|
-
}
|
|
939
|
-
callback = continuation;
|
|
940
|
-
} else break;
|
|
941
|
-
} while (1);
|
|
942
|
-
}
|
|
943
|
-
queue.length = 0;
|
|
944
|
-
} catch (error) {
|
|
945
|
-
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
946
|
-
} finally {
|
|
947
|
-
isFlushing = false;
|
|
948
|
-
}
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
952
|
-
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
953
|
-
isMounted: function() {
|
|
954
|
-
return false;
|
|
955
|
-
},
|
|
956
|
-
enqueueForceUpdate: function(publicInstance) {
|
|
957
|
-
warnNoop(publicInstance, "forceUpdate");
|
|
958
|
-
},
|
|
959
|
-
enqueueReplaceState: function(publicInstance) {
|
|
960
|
-
warnNoop(publicInstance, "replaceState");
|
|
961
|
-
},
|
|
962
|
-
enqueueSetState: function(publicInstance) {
|
|
963
|
-
warnNoop(publicInstance, "setState");
|
|
964
|
-
}
|
|
965
|
-
}, assign = Object.assign, emptyObject = {};
|
|
966
|
-
Object.freeze(emptyObject);
|
|
967
|
-
Component.prototype.isReactComponent = {};
|
|
968
|
-
Component.prototype.setState = function(partialState, callback) {
|
|
969
|
-
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
|
|
970
|
-
throw Error(
|
|
971
|
-
"takes an object of state variables to update or a function which returns an object of state variables."
|
|
972
|
-
);
|
|
973
|
-
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
974
|
-
};
|
|
975
|
-
Component.prototype.forceUpdate = function(callback) {
|
|
976
|
-
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
977
|
-
};
|
|
978
|
-
var deprecatedAPIs = {
|
|
979
|
-
isMounted: [
|
|
980
|
-
"isMounted",
|
|
981
|
-
"Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
|
|
982
|
-
],
|
|
983
|
-
replaceState: [
|
|
984
|
-
"replaceState",
|
|
985
|
-
"Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
|
|
986
|
-
]
|
|
987
|
-
};
|
|
988
|
-
for (fnName in deprecatedAPIs)
|
|
989
|
-
deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
990
|
-
ComponentDummy.prototype = Component.prototype;
|
|
991
|
-
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
992
|
-
deprecatedAPIs.constructor = PureComponent;
|
|
993
|
-
assign(deprecatedAPIs, Component.prototype);
|
|
994
|
-
deprecatedAPIs.isPureReactComponent = true;
|
|
995
|
-
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = /* @__PURE__ */ Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
996
|
-
H: null,
|
|
997
|
-
A: null,
|
|
998
|
-
T: null,
|
|
999
|
-
S: null,
|
|
1000
|
-
actQueue: null,
|
|
1001
|
-
asyncTransitions: 0,
|
|
1002
|
-
isBatchingLegacy: false,
|
|
1003
|
-
didScheduleLegacyUpdate: false,
|
|
1004
|
-
didUsePromise: false,
|
|
1005
|
-
thrownErrors: [],
|
|
1006
|
-
getCurrentStack: null,
|
|
1007
|
-
recentlyCreatedOwnerStacks: 0
|
|
1008
|
-
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
1009
|
-
return null;
|
|
1010
|
-
};
|
|
1011
|
-
deprecatedAPIs = {
|
|
1012
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
1013
|
-
return callStackForError();
|
|
1014
|
-
}
|
|
1015
|
-
};
|
|
1016
|
-
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1017
|
-
var didWarnAboutElementRef = {};
|
|
1018
|
-
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
1019
|
-
deprecatedAPIs,
|
|
1020
|
-
UnknownOwner
|
|
1021
|
-
)();
|
|
1022
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1023
|
-
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1024
|
-
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
1025
|
-
var event = new window.ErrorEvent("error", {
|
|
1026
|
-
bubbles: true,
|
|
1027
|
-
cancelable: true,
|
|
1028
|
-
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
1029
|
-
error
|
|
1030
|
-
});
|
|
1031
|
-
if (!window.dispatchEvent(event)) return;
|
|
1032
|
-
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
1033
|
-
process.emit("uncaughtException", error);
|
|
1034
|
-
return;
|
|
1035
|
-
}
|
|
1036
|
-
console.error(error);
|
|
1037
|
-
}, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
1038
|
-
queueMicrotask(function() {
|
|
1039
|
-
return queueMicrotask(callback);
|
|
1040
|
-
});
|
|
1041
|
-
} : enqueueTask;
|
|
1042
|
-
deprecatedAPIs = Object.freeze({
|
|
1043
|
-
__proto__: null,
|
|
1044
|
-
c: function(size) {
|
|
1045
|
-
return resolveDispatcher().useMemoCache(size);
|
|
1046
|
-
}
|
|
1047
|
-
});
|
|
1048
|
-
var fnName = {
|
|
1049
|
-
map: mapChildren,
|
|
1050
|
-
forEach: function(children, forEachFunc, forEachContext) {
|
|
1051
|
-
mapChildren(
|
|
1052
|
-
children,
|
|
1053
|
-
function() {
|
|
1054
|
-
forEachFunc.apply(this, arguments);
|
|
1055
|
-
},
|
|
1056
|
-
forEachContext
|
|
1057
|
-
);
|
|
1058
|
-
},
|
|
1059
|
-
count: function(children) {
|
|
1060
|
-
var n = 0;
|
|
1061
|
-
mapChildren(children, function() {
|
|
1062
|
-
n++;
|
|
1063
|
-
});
|
|
1064
|
-
return n;
|
|
1065
|
-
},
|
|
1066
|
-
toArray: function(children) {
|
|
1067
|
-
return mapChildren(children, function(child) {
|
|
1068
|
-
return child;
|
|
1069
|
-
}) || [];
|
|
1070
|
-
},
|
|
1071
|
-
only: function(children) {
|
|
1072
|
-
if (!isValidElement(children))
|
|
1073
|
-
throw Error(
|
|
1074
|
-
"React.Children.only expected to receive a single React element child."
|
|
1075
|
-
);
|
|
1076
|
-
return children;
|
|
1077
|
-
}
|
|
1078
|
-
};
|
|
1079
|
-
exports2.Activity = REACT_ACTIVITY_TYPE;
|
|
1080
|
-
exports2.Children = fnName;
|
|
1081
|
-
exports2.Component = Component;
|
|
1082
|
-
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
1083
|
-
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
1084
|
-
exports2.PureComponent = PureComponent;
|
|
1085
|
-
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1086
|
-
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
1087
|
-
exports2.ViewTransition = REACT_VIEW_TRANSITION_TYPE;
|
|
1088
|
-
exports2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
1089
|
-
exports2.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
1090
|
-
exports2.act = function(callback) {
|
|
1091
|
-
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
1092
|
-
actScopeDepth++;
|
|
1093
|
-
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
|
|
1094
|
-
try {
|
|
1095
|
-
var result = callback();
|
|
1096
|
-
} catch (error) {
|
|
1097
|
-
ReactSharedInternals.thrownErrors.push(error);
|
|
1098
|
-
}
|
|
1099
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1100
|
-
throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1101
|
-
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
1102
|
-
var thenable = result;
|
|
1103
|
-
queueSeveralMicrotasks(function() {
|
|
1104
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1105
|
-
"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 () => ...);"
|
|
1106
|
-
));
|
|
1107
|
-
});
|
|
1108
|
-
return {
|
|
1109
|
-
then: function(resolve, reject) {
|
|
1110
|
-
didAwaitActCall = true;
|
|
1111
|
-
thenable.then(
|
|
1112
|
-
function(returnValue) {
|
|
1113
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1114
|
-
if (0 === prevActScopeDepth) {
|
|
1115
|
-
try {
|
|
1116
|
-
flushActQueue(queue), enqueueTask(function() {
|
|
1117
|
-
return recursivelyFlushAsyncActWork(
|
|
1118
|
-
returnValue,
|
|
1119
|
-
resolve,
|
|
1120
|
-
reject
|
|
1121
|
-
);
|
|
1122
|
-
});
|
|
1123
|
-
} catch (error$0) {
|
|
1124
|
-
ReactSharedInternals.thrownErrors.push(error$0);
|
|
1125
|
-
}
|
|
1126
|
-
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
1127
|
-
var _thrownError = aggregateErrors(
|
|
1128
|
-
ReactSharedInternals.thrownErrors
|
|
1129
|
-
);
|
|
1130
|
-
ReactSharedInternals.thrownErrors.length = 0;
|
|
1131
|
-
reject(_thrownError);
|
|
1132
|
-
}
|
|
1133
|
-
} else resolve(returnValue);
|
|
1134
|
-
},
|
|
1135
|
-
function(error) {
|
|
1136
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1137
|
-
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
|
|
1138
|
-
ReactSharedInternals.thrownErrors
|
|
1139
|
-
), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
1140
|
-
}
|
|
1141
|
-
);
|
|
1142
|
-
}
|
|
1143
|
-
};
|
|
1144
|
-
}
|
|
1145
|
-
var returnValue$jscomp$0 = result;
|
|
1146
|
-
popActScope(prevActQueue, prevActScopeDepth);
|
|
1147
|
-
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
1148
|
-
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
|
|
1149
|
-
"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(() => ...)"
|
|
1150
|
-
));
|
|
1151
|
-
}), ReactSharedInternals.actQueue = null);
|
|
1152
|
-
if (0 < ReactSharedInternals.thrownErrors.length)
|
|
1153
|
-
throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
1154
|
-
return {
|
|
1155
|
-
then: function(resolve, reject) {
|
|
1156
|
-
didAwaitActCall = true;
|
|
1157
|
-
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
1158
|
-
return recursivelyFlushAsyncActWork(
|
|
1159
|
-
returnValue$jscomp$0,
|
|
1160
|
-
resolve,
|
|
1161
|
-
reject
|
|
1162
|
-
);
|
|
1163
|
-
})) : resolve(returnValue$jscomp$0);
|
|
1164
|
-
}
|
|
1165
|
-
};
|
|
1166
|
-
};
|
|
1167
|
-
exports2.addTransitionType = addTransitionType;
|
|
1168
|
-
exports2.cache = function(fn) {
|
|
1169
|
-
return function() {
|
|
1170
|
-
return fn.apply(null, arguments);
|
|
1171
|
-
};
|
|
1172
|
-
};
|
|
1173
|
-
exports2.cacheSignal = function() {
|
|
1174
|
-
return null;
|
|
1175
|
-
};
|
|
1176
|
-
exports2.captureOwnerStack = function() {
|
|
1177
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1178
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
1179
|
-
};
|
|
1180
|
-
exports2.cloneElement = function(element, config, children) {
|
|
1181
|
-
if (null === element || void 0 === element)
|
|
1182
|
-
throw Error(
|
|
1183
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
1184
|
-
);
|
|
1185
|
-
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1186
|
-
if (null != config) {
|
|
1187
|
-
var JSCompiler_inline_result;
|
|
1188
|
-
a: {
|
|
1189
|
-
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1190
|
-
config,
|
|
1191
|
-
"ref"
|
|
1192
|
-
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1193
|
-
JSCompiler_inline_result = false;
|
|
1194
|
-
break a;
|
|
1195
|
-
}
|
|
1196
|
-
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1197
|
-
}
|
|
1198
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
1199
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1200
|
-
for (propName in config)
|
|
1201
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1202
|
-
}
|
|
1203
|
-
var propName = arguments.length - 2;
|
|
1204
|
-
if (1 === propName) props.children = children;
|
|
1205
|
-
else if (1 < propName) {
|
|
1206
|
-
JSCompiler_inline_result = Array(propName);
|
|
1207
|
-
for (var i = 0; i < propName; i++)
|
|
1208
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1209
|
-
props.children = JSCompiler_inline_result;
|
|
1210
|
-
}
|
|
1211
|
-
props = ReactElement(
|
|
1212
|
-
element.type,
|
|
1213
|
-
key,
|
|
1214
|
-
props,
|
|
1215
|
-
owner,
|
|
1216
|
-
element._debugStack,
|
|
1217
|
-
element._debugTask
|
|
1218
|
-
);
|
|
1219
|
-
for (key = 2; key < arguments.length; key++)
|
|
1220
|
-
validateChildKeys(arguments[key]);
|
|
1221
|
-
return props;
|
|
1222
|
-
};
|
|
1223
|
-
exports2.createContext = function(defaultValue) {
|
|
1224
|
-
defaultValue = {
|
|
1225
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1226
|
-
_currentValue: defaultValue,
|
|
1227
|
-
_currentValue2: defaultValue,
|
|
1228
|
-
_threadCount: 0,
|
|
1229
|
-
Provider: null,
|
|
1230
|
-
Consumer: null
|
|
1231
|
-
};
|
|
1232
|
-
defaultValue.Provider = defaultValue;
|
|
1233
|
-
defaultValue.Consumer = {
|
|
1234
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
1235
|
-
_context: defaultValue
|
|
1236
|
-
};
|
|
1237
|
-
defaultValue._currentRenderer = null;
|
|
1238
|
-
defaultValue._currentRenderer2 = null;
|
|
1239
|
-
return defaultValue;
|
|
1240
|
-
};
|
|
1241
|
-
exports2.createElement = function(type, config, children) {
|
|
1242
|
-
for (var i = 2; i < arguments.length; i++)
|
|
1243
|
-
validateChildKeys(arguments[i]);
|
|
1244
|
-
var propName;
|
|
1245
|
-
i = {};
|
|
1246
|
-
var key = null;
|
|
1247
|
-
if (null != config)
|
|
1248
|
-
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1249
|
-
"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"
|
|
1250
|
-
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
|
|
1251
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1252
|
-
var childrenLength = arguments.length - 2;
|
|
1253
|
-
if (1 === childrenLength) i.children = children;
|
|
1254
|
-
else if (1 < childrenLength) {
|
|
1255
|
-
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1256
|
-
childArray[_i] = arguments[_i + 2];
|
|
1257
|
-
Object.freeze && Object.freeze(childArray);
|
|
1258
|
-
i.children = childArray;
|
|
1259
|
-
}
|
|
1260
|
-
if (type && type.defaultProps)
|
|
1261
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1262
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1263
|
-
key && defineKeyPropWarningGetter(
|
|
1264
|
-
i,
|
|
1265
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1266
|
-
);
|
|
1267
|
-
(propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++) ? (childArray = Error.stackTraceLimit, Error.stackTraceLimit = 10, childrenLength = Error("react-stack-top-frame"), Error.stackTraceLimit = childArray) : childrenLength = unknownOwnerDebugStack;
|
|
1268
|
-
return ReactElement(
|
|
1269
|
-
type,
|
|
1270
|
-
key,
|
|
1271
|
-
i,
|
|
1272
|
-
getOwner(),
|
|
1273
|
-
childrenLength,
|
|
1274
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1275
|
-
);
|
|
1276
|
-
};
|
|
1277
|
-
exports2.createRef = function() {
|
|
1278
|
-
var refObject = { current: null };
|
|
1279
|
-
Object.seal(refObject);
|
|
1280
|
-
return refObject;
|
|
1281
|
-
};
|
|
1282
|
-
exports2.forwardRef = function(render) {
|
|
1283
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1284
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1285
|
-
) : "function" !== typeof render ? console.error(
|
|
1286
|
-
"forwardRef requires a render function but was given %s.",
|
|
1287
|
-
null === render ? "null" : typeof render
|
|
1288
|
-
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1289
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1290
|
-
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1291
|
-
);
|
|
1292
|
-
null != render && null != render.defaultProps && console.error(
|
|
1293
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1294
|
-
);
|
|
1295
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1296
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1297
|
-
enumerable: false,
|
|
1298
|
-
configurable: true,
|
|
1299
|
-
get: function() {
|
|
1300
|
-
return ownName;
|
|
1301
|
-
},
|
|
1302
|
-
set: function(name) {
|
|
1303
|
-
ownName = name;
|
|
1304
|
-
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1305
|
-
}
|
|
1306
|
-
});
|
|
1307
|
-
return elementType;
|
|
1308
|
-
};
|
|
1309
|
-
exports2.isValidElement = isValidElement;
|
|
1310
|
-
exports2.lazy = function(ctor) {
|
|
1311
|
-
ctor = { _status: -1, _result: ctor };
|
|
1312
|
-
var lazyType = {
|
|
1313
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1314
|
-
_payload: ctor,
|
|
1315
|
-
_init: lazyInitializer
|
|
1316
|
-
}, ioInfo = {
|
|
1317
|
-
name: "lazy",
|
|
1318
|
-
start: -1,
|
|
1319
|
-
end: -1,
|
|
1320
|
-
value: null,
|
|
1321
|
-
owner: null,
|
|
1322
|
-
debugStack: Error("react-stack-top-frame"),
|
|
1323
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1324
|
-
};
|
|
1325
|
-
ctor._ioInfo = ioInfo;
|
|
1326
|
-
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
1327
|
-
return lazyType;
|
|
1328
|
-
};
|
|
1329
|
-
exports2.memo = function(type, compare) {
|
|
1330
|
-
null == type && console.error(
|
|
1331
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
1332
|
-
null === type ? "null" : typeof type
|
|
1333
|
-
);
|
|
1334
|
-
compare = {
|
|
1335
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1336
|
-
type,
|
|
1337
|
-
compare: void 0 === compare ? null : compare
|
|
1338
|
-
};
|
|
1339
|
-
var ownName;
|
|
1340
|
-
Object.defineProperty(compare, "displayName", {
|
|
1341
|
-
enumerable: false,
|
|
1342
|
-
configurable: true,
|
|
1343
|
-
get: function() {
|
|
1344
|
-
return ownName;
|
|
1345
|
-
},
|
|
1346
|
-
set: function(name) {
|
|
1347
|
-
ownName = name;
|
|
1348
|
-
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1349
|
-
}
|
|
1350
|
-
});
|
|
1351
|
-
return compare;
|
|
1352
|
-
};
|
|
1353
|
-
exports2.startTransition = startTransition;
|
|
1354
|
-
exports2.unstable_useCacheRefresh = function() {
|
|
1355
|
-
return resolveDispatcher().useCacheRefresh();
|
|
1356
|
-
};
|
|
1357
|
-
exports2.use = function(usable) {
|
|
1358
|
-
return resolveDispatcher().use(usable);
|
|
1359
|
-
};
|
|
1360
|
-
exports2.useActionState = function(action, initialState, permalink) {
|
|
1361
|
-
return resolveDispatcher().useActionState(
|
|
1362
|
-
action,
|
|
1363
|
-
initialState,
|
|
1364
|
-
permalink
|
|
1365
|
-
);
|
|
1366
|
-
};
|
|
1367
|
-
exports2.useCallback = function(callback, deps) {
|
|
1368
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
1369
|
-
};
|
|
1370
|
-
exports2.useContext = function(Context) {
|
|
1371
|
-
var dispatcher = resolveDispatcher();
|
|
1372
|
-
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1373
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1374
|
-
);
|
|
1375
|
-
return dispatcher.useContext(Context);
|
|
1376
|
-
};
|
|
1377
|
-
exports2.useDebugValue = function(value, formatterFn) {
|
|
1378
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1379
|
-
};
|
|
1380
|
-
exports2.useDeferredValue = function(value, initialValue) {
|
|
1381
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1382
|
-
};
|
|
1383
|
-
exports2.useEffect = function(create, deps) {
|
|
1384
|
-
null == create && console.warn(
|
|
1385
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1386
|
-
);
|
|
1387
|
-
return resolveDispatcher().useEffect(create, deps);
|
|
1388
|
-
};
|
|
1389
|
-
exports2.useEffectEvent = function(callback) {
|
|
1390
|
-
return resolveDispatcher().useEffectEvent(callback);
|
|
1391
|
-
};
|
|
1392
|
-
exports2.useId = function() {
|
|
1393
|
-
return resolveDispatcher().useId();
|
|
1394
|
-
};
|
|
1395
|
-
exports2.useImperativeHandle = function(ref, create, deps) {
|
|
1396
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1397
|
-
};
|
|
1398
|
-
exports2.useInsertionEffect = function(create, deps) {
|
|
1399
|
-
null == create && console.warn(
|
|
1400
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1401
|
-
);
|
|
1402
|
-
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1403
|
-
};
|
|
1404
|
-
exports2.useLayoutEffect = function(create, deps) {
|
|
1405
|
-
null == create && console.warn(
|
|
1406
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1407
|
-
);
|
|
1408
|
-
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1409
|
-
};
|
|
1410
|
-
exports2.useMemo = function(create, deps) {
|
|
1411
|
-
return resolveDispatcher().useMemo(create, deps);
|
|
1412
|
-
};
|
|
1413
|
-
exports2.useOptimistic = function(passthrough, reducer) {
|
|
1414
|
-
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1415
|
-
};
|
|
1416
|
-
exports2.useReducer = function(reducer, initialArg, init) {
|
|
1417
|
-
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1418
|
-
};
|
|
1419
|
-
exports2.useRef = function(initialValue) {
|
|
1420
|
-
return resolveDispatcher().useRef(initialValue);
|
|
1421
|
-
};
|
|
1422
|
-
exports2.useState = function(initialState) {
|
|
1423
|
-
return resolveDispatcher().useState(initialState);
|
|
1424
|
-
};
|
|
1425
|
-
exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1426
|
-
return resolveDispatcher().useSyncExternalStore(
|
|
1427
|
-
subscribe,
|
|
1428
|
-
getSnapshot,
|
|
1429
|
-
getServerSnapshot
|
|
1430
|
-
);
|
|
1431
|
-
};
|
|
1432
|
-
exports2.useTransition = function() {
|
|
1433
|
-
return resolveDispatcher().useTransition();
|
|
1434
|
-
};
|
|
1435
|
-
exports2.version = "19.3.0";
|
|
1436
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1437
|
-
})();
|
|
1438
|
-
})(react_development, react_development.exports);
|
|
1439
|
-
return react_development.exports;
|
|
1440
|
-
}
|
|
1441
|
-
var hasRequiredReact;
|
|
1442
|
-
function requireReact() {
|
|
1443
|
-
if (hasRequiredReact) return react.exports;
|
|
1444
|
-
hasRequiredReact = 1;
|
|
1445
|
-
if (process.env.NODE_ENV === "production") {
|
|
1446
|
-
react.exports = requireReact_production();
|
|
1447
|
-
} else {
|
|
1448
|
-
react.exports = requireReact_development();
|
|
1449
|
-
}
|
|
1450
|
-
return react.exports;
|
|
1451
|
-
}
|
|
1452
|
-
var reactExports = requireReact();
|
|
1453
|
-
var jsxRuntime = { exports: {} };
|
|
1454
|
-
var reactJsxRuntime_production = {};
|
|
1455
|
-
var hasRequiredReactJsxRuntime_production;
|
|
1456
|
-
function requireReactJsxRuntime_production() {
|
|
1457
|
-
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
1458
|
-
hasRequiredReactJsxRuntime_production = 1;
|
|
1459
|
-
var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
1460
|
-
function jsxProd(type, config, maybeKey) {
|
|
1461
|
-
var key = null;
|
|
1462
|
-
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
1463
|
-
void 0 !== config.key && (key = "" + config.key);
|
|
1464
|
-
if ("key" in config) {
|
|
1465
|
-
maybeKey = {};
|
|
1466
|
-
for (var propName in config)
|
|
1467
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1468
|
-
} else maybeKey = config;
|
|
1469
|
-
config = maybeKey.ref;
|
|
1470
|
-
return {
|
|
1471
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1472
|
-
type,
|
|
1473
|
-
key,
|
|
1474
|
-
ref: void 0 !== config ? config : null,
|
|
1475
|
-
props: maybeKey
|
|
1476
|
-
};
|
|
1477
|
-
}
|
|
1478
|
-
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
1479
|
-
reactJsxRuntime_production.jsx = jsxProd;
|
|
1480
|
-
reactJsxRuntime_production.jsxs = jsxProd;
|
|
1481
|
-
return reactJsxRuntime_production;
|
|
1482
118
|
}
|
|
1483
|
-
var reactJsxRuntime_development = {};
|
|
1484
|
-
var hasRequiredReactJsxRuntime_development;
|
|
1485
|
-
function requireReactJsxRuntime_development() {
|
|
1486
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
1487
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
1488
|
-
"production" !== process.env.NODE_ENV && (function() {
|
|
1489
|
-
function getComponentNameFromType(type) {
|
|
1490
|
-
if (null == type) return null;
|
|
1491
|
-
if ("function" === typeof type)
|
|
1492
|
-
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1493
|
-
if ("string" === typeof type) return type;
|
|
1494
|
-
switch (type) {
|
|
1495
|
-
case REACT_FRAGMENT_TYPE:
|
|
1496
|
-
return "Fragment";
|
|
1497
|
-
case REACT_PROFILER_TYPE:
|
|
1498
|
-
return "Profiler";
|
|
1499
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1500
|
-
return "StrictMode";
|
|
1501
|
-
case REACT_SUSPENSE_TYPE:
|
|
1502
|
-
return "Suspense";
|
|
1503
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1504
|
-
return "SuspenseList";
|
|
1505
|
-
case REACT_ACTIVITY_TYPE:
|
|
1506
|
-
return "Activity";
|
|
1507
|
-
case REACT_VIEW_TRANSITION_TYPE:
|
|
1508
|
-
return "ViewTransition";
|
|
1509
|
-
}
|
|
1510
|
-
if ("object" === typeof type)
|
|
1511
|
-
switch ("number" === typeof type.tag && console.error(
|
|
1512
|
-
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
1513
|
-
), type.$$typeof) {
|
|
1514
|
-
case REACT_PORTAL_TYPE:
|
|
1515
|
-
return "Portal";
|
|
1516
|
-
case REACT_CONTEXT_TYPE:
|
|
1517
|
-
return type.displayName || "Context";
|
|
1518
|
-
case REACT_CONSUMER_TYPE:
|
|
1519
|
-
return (type._context.displayName || "Context") + ".Consumer";
|
|
1520
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1521
|
-
var innerType = type.render;
|
|
1522
|
-
type = type.displayName;
|
|
1523
|
-
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1524
|
-
return type;
|
|
1525
|
-
case REACT_MEMO_TYPE:
|
|
1526
|
-
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1527
|
-
case REACT_LAZY_TYPE:
|
|
1528
|
-
innerType = type._payload;
|
|
1529
|
-
type = type._init;
|
|
1530
|
-
try {
|
|
1531
|
-
return getComponentNameFromType(type(innerType));
|
|
1532
|
-
} catch (x) {
|
|
1533
|
-
}
|
|
1534
|
-
}
|
|
1535
|
-
return null;
|
|
1536
|
-
}
|
|
1537
|
-
function testStringCoercion(value) {
|
|
1538
|
-
return "" + value;
|
|
1539
|
-
}
|
|
1540
|
-
function checkKeyStringCoercion(value) {
|
|
1541
|
-
try {
|
|
1542
|
-
testStringCoercion(value);
|
|
1543
|
-
var JSCompiler_inline_result = false;
|
|
1544
|
-
} catch (e) {
|
|
1545
|
-
JSCompiler_inline_result = true;
|
|
1546
|
-
}
|
|
1547
|
-
if (JSCompiler_inline_result) {
|
|
1548
|
-
JSCompiler_inline_result = console;
|
|
1549
|
-
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1550
|
-
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1551
|
-
JSCompiler_temp_const.call(
|
|
1552
|
-
JSCompiler_inline_result,
|
|
1553
|
-
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
1554
|
-
JSCompiler_inline_result$jscomp$0
|
|
1555
|
-
);
|
|
1556
|
-
return testStringCoercion(value);
|
|
1557
|
-
}
|
|
1558
|
-
}
|
|
1559
|
-
function getTaskName(type) {
|
|
1560
|
-
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
1561
|
-
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
1562
|
-
return "<...>";
|
|
1563
|
-
try {
|
|
1564
|
-
var name = getComponentNameFromType(type);
|
|
1565
|
-
return name ? "<" + name + ">" : "<...>";
|
|
1566
|
-
} catch (x) {
|
|
1567
|
-
return "<...>";
|
|
1568
|
-
}
|
|
1569
|
-
}
|
|
1570
|
-
function getOwner() {
|
|
1571
|
-
var dispatcher = ReactSharedInternals.A;
|
|
1572
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1573
|
-
}
|
|
1574
|
-
function UnknownOwner() {
|
|
1575
|
-
return Error("react-stack-top-frame");
|
|
1576
|
-
}
|
|
1577
|
-
function hasValidKey(config) {
|
|
1578
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1579
|
-
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1580
|
-
if (getter && getter.isReactWarning) return false;
|
|
1581
|
-
}
|
|
1582
|
-
return void 0 !== config.key;
|
|
1583
|
-
}
|
|
1584
|
-
function defineKeyPropWarningGetter(props, displayName) {
|
|
1585
|
-
function warnAboutAccessingKey() {
|
|
1586
|
-
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
1587
|
-
"%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)",
|
|
1588
|
-
displayName
|
|
1589
|
-
));
|
|
1590
|
-
}
|
|
1591
|
-
warnAboutAccessingKey.isReactWarning = true;
|
|
1592
|
-
Object.defineProperty(props, "key", {
|
|
1593
|
-
get: warnAboutAccessingKey,
|
|
1594
|
-
configurable: true
|
|
1595
|
-
});
|
|
1596
|
-
}
|
|
1597
|
-
function elementRefGetterWithDeprecationWarning() {
|
|
1598
|
-
var componentName = getComponentNameFromType(this.type);
|
|
1599
|
-
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
1600
|
-
"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."
|
|
1601
|
-
));
|
|
1602
|
-
componentName = this.props.ref;
|
|
1603
|
-
return void 0 !== componentName ? componentName : null;
|
|
1604
|
-
}
|
|
1605
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
1606
|
-
var refProp = props.ref;
|
|
1607
|
-
type = {
|
|
1608
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
1609
|
-
type,
|
|
1610
|
-
key,
|
|
1611
|
-
props,
|
|
1612
|
-
_owner: owner
|
|
1613
|
-
};
|
|
1614
|
-
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
1615
|
-
enumerable: false,
|
|
1616
|
-
get: elementRefGetterWithDeprecationWarning
|
|
1617
|
-
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
1618
|
-
type._store = {};
|
|
1619
|
-
Object.defineProperty(type._store, "validated", {
|
|
1620
|
-
configurable: false,
|
|
1621
|
-
enumerable: false,
|
|
1622
|
-
writable: true,
|
|
1623
|
-
value: 0
|
|
1624
|
-
});
|
|
1625
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
1626
|
-
configurable: false,
|
|
1627
|
-
enumerable: false,
|
|
1628
|
-
writable: true,
|
|
1629
|
-
value: null
|
|
1630
|
-
});
|
|
1631
|
-
Object.defineProperty(type, "_debugStack", {
|
|
1632
|
-
configurable: false,
|
|
1633
|
-
enumerable: false,
|
|
1634
|
-
writable: true,
|
|
1635
|
-
value: debugStack
|
|
1636
|
-
});
|
|
1637
|
-
Object.defineProperty(type, "_debugTask", {
|
|
1638
|
-
configurable: false,
|
|
1639
|
-
enumerable: false,
|
|
1640
|
-
writable: true,
|
|
1641
|
-
value: debugTask
|
|
1642
|
-
});
|
|
1643
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1644
|
-
return type;
|
|
1645
|
-
}
|
|
1646
|
-
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
1647
|
-
var children = config.children;
|
|
1648
|
-
if (void 0 !== children)
|
|
1649
|
-
if (isStaticChildren)
|
|
1650
|
-
if (isArrayImpl(children)) {
|
|
1651
|
-
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
1652
|
-
validateChildKeys(children[isStaticChildren]);
|
|
1653
|
-
Object.freeze && Object.freeze(children);
|
|
1654
|
-
} else
|
|
1655
|
-
console.error(
|
|
1656
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
1657
|
-
);
|
|
1658
|
-
else validateChildKeys(children);
|
|
1659
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
1660
|
-
children = getComponentNameFromType(type);
|
|
1661
|
-
var keys = Object.keys(config).filter(function(k) {
|
|
1662
|
-
return "key" !== k;
|
|
1663
|
-
});
|
|
1664
|
-
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1665
|
-
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
1666
|
-
'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} />',
|
|
1667
|
-
isStaticChildren,
|
|
1668
|
-
children,
|
|
1669
|
-
keys,
|
|
1670
|
-
children
|
|
1671
|
-
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
1672
|
-
}
|
|
1673
|
-
children = null;
|
|
1674
|
-
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1675
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1676
|
-
if ("key" in config) {
|
|
1677
|
-
maybeKey = {};
|
|
1678
|
-
for (var propName in config)
|
|
1679
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1680
|
-
} else maybeKey = config;
|
|
1681
|
-
children && defineKeyPropWarningGetter(
|
|
1682
|
-
maybeKey,
|
|
1683
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1684
|
-
);
|
|
1685
|
-
return ReactElement(
|
|
1686
|
-
type,
|
|
1687
|
-
children,
|
|
1688
|
-
maybeKey,
|
|
1689
|
-
getOwner(),
|
|
1690
|
-
debugStack,
|
|
1691
|
-
debugTask
|
|
1692
|
-
);
|
|
1693
|
-
}
|
|
1694
|
-
function validateChildKeys(node) {
|
|
1695
|
-
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1696
|
-
}
|
|
1697
|
-
function isValidElement(object) {
|
|
1698
|
-
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1699
|
-
}
|
|
1700
|
-
var React = requireReact(), REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = /* @__PURE__ */ Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = /* @__PURE__ */ Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = /* @__PURE__ */ Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = /* @__PURE__ */ Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = /* @__PURE__ */ Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = /* @__PURE__ */ Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = /* @__PURE__ */ Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = /* @__PURE__ */ Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = /* @__PURE__ */ Symbol.for("react.memo"), REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = /* @__PURE__ */ Symbol.for("react.activity"), REACT_VIEW_TRANSITION_TYPE = /* @__PURE__ */ Symbol.for("react.view_transition"), REACT_CLIENT_REFERENCE = /* @__PURE__ */ 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() {
|
|
1701
|
-
return null;
|
|
1702
|
-
};
|
|
1703
|
-
React = {
|
|
1704
|
-
react_stack_bottom_frame: function(callStackForError) {
|
|
1705
|
-
return callStackForError();
|
|
1706
|
-
}
|
|
1707
|
-
};
|
|
1708
|
-
var specialPropKeyWarningShown;
|
|
1709
|
-
var didWarnAboutElementRef = {};
|
|
1710
|
-
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
|
|
1711
|
-
React,
|
|
1712
|
-
UnknownOwner
|
|
1713
|
-
)();
|
|
1714
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1715
|
-
var didWarnAboutKeySpread = {};
|
|
1716
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
1717
|
-
reactJsxRuntime_development.jsx = function(type, config, maybeKey) {
|
|
1718
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1719
|
-
if (trackActualOwner) {
|
|
1720
|
-
var previousStackTraceLimit = Error.stackTraceLimit;
|
|
1721
|
-
Error.stackTraceLimit = 10;
|
|
1722
|
-
var debugStackDEV = Error("react-stack-top-frame");
|
|
1723
|
-
Error.stackTraceLimit = previousStackTraceLimit;
|
|
1724
|
-
} else debugStackDEV = unknownOwnerDebugStack;
|
|
1725
|
-
return jsxDEVImpl(
|
|
1726
|
-
type,
|
|
1727
|
-
config,
|
|
1728
|
-
maybeKey,
|
|
1729
|
-
false,
|
|
1730
|
-
debugStackDEV,
|
|
1731
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1732
|
-
);
|
|
1733
|
-
};
|
|
1734
|
-
reactJsxRuntime_development.jsxs = function(type, config, maybeKey) {
|
|
1735
|
-
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1736
|
-
if (trackActualOwner) {
|
|
1737
|
-
var previousStackTraceLimit = Error.stackTraceLimit;
|
|
1738
|
-
Error.stackTraceLimit = 10;
|
|
1739
|
-
var debugStackDEV = Error("react-stack-top-frame");
|
|
1740
|
-
Error.stackTraceLimit = previousStackTraceLimit;
|
|
1741
|
-
} else debugStackDEV = unknownOwnerDebugStack;
|
|
1742
|
-
return jsxDEVImpl(
|
|
1743
|
-
type,
|
|
1744
|
-
config,
|
|
1745
|
-
maybeKey,
|
|
1746
|
-
true,
|
|
1747
|
-
debugStackDEV,
|
|
1748
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1749
|
-
);
|
|
1750
|
-
};
|
|
1751
|
-
})();
|
|
1752
|
-
return reactJsxRuntime_development;
|
|
1753
|
-
}
|
|
1754
|
-
var hasRequiredJsxRuntime;
|
|
1755
|
-
function requireJsxRuntime() {
|
|
1756
|
-
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
1757
|
-
hasRequiredJsxRuntime = 1;
|
|
1758
|
-
if (process.env.NODE_ENV === "production") {
|
|
1759
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
1760
|
-
} else {
|
|
1761
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
1762
|
-
}
|
|
1763
|
-
return jsxRuntime.exports;
|
|
1764
|
-
}
|
|
1765
|
-
var jsxRuntimeExports = requireJsxRuntime();
|
|
1766
119
|
function ConsoleSearchControls({
|
|
1767
|
-
controller
|
|
120
|
+
controller,
|
|
121
|
+
locale = "en",
|
|
122
|
+
translations
|
|
1768
123
|
}) {
|
|
1769
|
-
const state =
|
|
124
|
+
const state = react.useSyncExternalStore(
|
|
1770
125
|
controller.subscribe,
|
|
1771
126
|
controller.getState,
|
|
1772
127
|
controller.getState
|
|
1773
128
|
);
|
|
129
|
+
const errorId = react.useId();
|
|
1774
130
|
const count = state.matches.length;
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
"
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
131
|
+
const t = resolveAddonMessages(locale, translations);
|
|
132
|
+
const selectFirstMatch = () => {
|
|
133
|
+
const next2 = controller.getState();
|
|
134
|
+
if (next2.matches.length && next2.activeIndex < 0) controller.next();
|
|
135
|
+
};
|
|
136
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "console-search-controls", "aria-label": t.search, children: [
|
|
137
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "console-search-controls-row", children: [
|
|
138
|
+
/* @__PURE__ */ jsxRuntime.jsxs("label", { className: "console-search-controls-field", children: [
|
|
139
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
140
|
+
"svg",
|
|
141
|
+
{
|
|
142
|
+
"aria-hidden": "true",
|
|
143
|
+
width: "16",
|
|
144
|
+
height: "16",
|
|
145
|
+
viewBox: "0 0 24 24",
|
|
146
|
+
fill: "none",
|
|
147
|
+
stroke: "currentColor",
|
|
148
|
+
strokeWidth: "1.75",
|
|
149
|
+
children: [
|
|
150
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "10.5", cy: "10.5", r: "6.5" }),
|
|
151
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "m16 16 4 4" })
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
),
|
|
155
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
156
|
+
"input",
|
|
157
|
+
{
|
|
158
|
+
type: "search",
|
|
159
|
+
placeholder: t.searchOutput,
|
|
160
|
+
"aria-invalid": !!state.error,
|
|
161
|
+
"aria-describedby": state.error ? errorId : void 0,
|
|
162
|
+
onKeyDown: (event) => {
|
|
163
|
+
if (event.key === "Enter") {
|
|
164
|
+
event.preventDefault();
|
|
165
|
+
event.stopPropagation();
|
|
166
|
+
if (event.shiftKey) controller.previous();
|
|
167
|
+
else controller.next();
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
value: state.query,
|
|
171
|
+
onChange: (event) => {
|
|
172
|
+
controller.setQuery(event.target.value);
|
|
173
|
+
selectFirstMatch();
|
|
174
|
+
},
|
|
175
|
+
"aria-label": t.searchConsoleOutput
|
|
176
|
+
}
|
|
177
|
+
)
|
|
178
|
+
] }),
|
|
179
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { role: "status", "aria-live": "polite", children: !state.query ? "" : count === 0 ? t.noMatches : t.matchCount.replace("{current}", String(state.activeIndex + 1)).replace("{total}", String(count)) }),
|
|
180
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
181
|
+
"button",
|
|
1791
182
|
{
|
|
1792
|
-
type: "
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
})
|
|
183
|
+
type: "button",
|
|
184
|
+
onClick: () => controller.previous(),
|
|
185
|
+
disabled: !count,
|
|
186
|
+
"aria-label": t.previousResult,
|
|
187
|
+
title: t.previousResult,
|
|
188
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "↑" })
|
|
1798
189
|
}
|
|
1799
190
|
),
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
] }),
|
|
1803
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("label", { children: [
|
|
1804
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1805
|
-
"input",
|
|
191
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
192
|
+
"button",
|
|
1806
193
|
{
|
|
1807
|
-
type: "
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
})
|
|
194
|
+
type: "button",
|
|
195
|
+
onClick: () => controller.next(),
|
|
196
|
+
disabled: !count,
|
|
197
|
+
"aria-label": t.nextResult,
|
|
198
|
+
title: t.nextResult,
|
|
199
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", children: "↓" })
|
|
1813
200
|
}
|
|
1814
|
-
)
|
|
1815
|
-
" ",
|
|
1816
|
-
"Whole word"
|
|
201
|
+
)
|
|
1817
202
|
] }),
|
|
1818
|
-
/* @__PURE__ */
|
|
1819
|
-
/* @__PURE__ */
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
203
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "console-search-controls-options", children: [
|
|
204
|
+
/* @__PURE__ */ jsxRuntime.jsxs("label", { children: [
|
|
205
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
206
|
+
"input",
|
|
207
|
+
{
|
|
208
|
+
type: "checkbox",
|
|
209
|
+
checked: !!state.options.caseSensitive,
|
|
210
|
+
onChange: (event) => {
|
|
211
|
+
controller.setOptions({
|
|
212
|
+
...state.options,
|
|
213
|
+
caseSensitive: event.target.checked
|
|
214
|
+
});
|
|
215
|
+
selectFirstMatch();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
),
|
|
219
|
+
" ",
|
|
220
|
+
t.caseSensitive
|
|
221
|
+
] }),
|
|
222
|
+
/* @__PURE__ */ jsxRuntime.jsxs("label", { children: [
|
|
223
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
224
|
+
"input",
|
|
225
|
+
{
|
|
226
|
+
type: "checkbox",
|
|
227
|
+
checked: !!state.options.wholeWord,
|
|
228
|
+
onChange: (event) => {
|
|
229
|
+
controller.setOptions({
|
|
230
|
+
...state.options,
|
|
231
|
+
wholeWord: event.target.checked
|
|
232
|
+
});
|
|
233
|
+
selectFirstMatch();
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
),
|
|
237
|
+
" ",
|
|
238
|
+
t.wholeWord
|
|
239
|
+
] }),
|
|
240
|
+
/* @__PURE__ */ jsxRuntime.jsxs("label", { children: [
|
|
241
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
242
|
+
"input",
|
|
243
|
+
{
|
|
244
|
+
type: "checkbox",
|
|
245
|
+
checked: !!state.options.regex,
|
|
246
|
+
onChange: (event) => {
|
|
247
|
+
controller.setOptions({
|
|
248
|
+
...state.options,
|
|
249
|
+
regex: event.target.checked
|
|
250
|
+
});
|
|
251
|
+
selectFirstMatch();
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
),
|
|
255
|
+
" ",
|
|
256
|
+
t.regex
|
|
257
|
+
] })
|
|
1832
258
|
] }),
|
|
1833
|
-
/* @__PURE__ */
|
|
1834
|
-
|
|
1835
|
-
"button",
|
|
259
|
+
state.error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
260
|
+
"span",
|
|
1836
261
|
{
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
children: "Previous"
|
|
262
|
+
className: "console-search-controls-error",
|
|
263
|
+
id: errorId,
|
|
264
|
+
role: "alert",
|
|
265
|
+
children: state.error
|
|
1842
266
|
}
|
|
1843
|
-
)
|
|
1844
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
1845
|
-
"button",
|
|
1846
|
-
{
|
|
1847
|
-
type: "button",
|
|
1848
|
-
onClick: () => controller.next(),
|
|
1849
|
-
disabled: !count,
|
|
1850
|
-
"aria-label": "Next search result",
|
|
1851
|
-
children: "Next"
|
|
1852
|
-
}
|
|
1853
|
-
),
|
|
1854
|
-
state.error && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { role: "alert", children: state.error })
|
|
267
|
+
)
|
|
1855
268
|
] });
|
|
1856
269
|
}
|
|
1857
270
|
function ConsoleSearchHighlight({
|
|
1858
271
|
controller,
|
|
1859
272
|
index
|
|
1860
273
|
}) {
|
|
1861
|
-
const state =
|
|
274
|
+
const state = react.useSyncExternalStore(
|
|
1862
275
|
controller.subscribe,
|
|
1863
276
|
controller.getState,
|
|
1864
277
|
controller.getState
|
|
1865
278
|
);
|
|
1866
279
|
const matches = state.matches.map((match, matchIndex) => ({ match, matchIndex })).filter(({ match }) => match.index === index);
|
|
1867
280
|
if (!matches.length) return null;
|
|
1868
|
-
return /* @__PURE__ */
|
|
281
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1869
282
|
"span",
|
|
1870
283
|
{
|
|
1871
284
|
className: "console-search-matches",
|
|
1872
285
|
"aria-label": `${matches.length} matches in this message`,
|
|
1873
|
-
children: matches.map(({ match, matchIndex }) => /* @__PURE__ */
|
|
286
|
+
children: matches.map(({ match, matchIndex }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1874
287
|
"mark",
|
|
1875
288
|
{
|
|
1876
289
|
className: "console-search-highlight",
|
|
@@ -1940,7 +353,7 @@ function visibleTerminalText(value) {
|
|
|
1940
353
|
""
|
|
1941
354
|
);
|
|
1942
355
|
}
|
|
1943
|
-
function createConsoleSearchAddon() {
|
|
356
|
+
function createConsoleSearchAddon(options = {}) {
|
|
1944
357
|
let data;
|
|
1945
358
|
let viewport;
|
|
1946
359
|
let state = {
|
|
@@ -1965,8 +378,8 @@ function createConsoleSearchAddon() {
|
|
|
1965
378
|
state = { ...state, query };
|
|
1966
379
|
controller.refresh();
|
|
1967
380
|
},
|
|
1968
|
-
setOptions(
|
|
1969
|
-
state = { ...state, options };
|
|
381
|
+
setOptions(options2) {
|
|
382
|
+
state = { ...state, options: options2 };
|
|
1970
383
|
controller.refresh();
|
|
1971
384
|
},
|
|
1972
385
|
refresh() {
|
|
@@ -1991,7 +404,12 @@ function createConsoleSearchAddon() {
|
|
|
1991
404
|
const nextIndex = result.matches.findIndex(
|
|
1992
405
|
(match) => match.id === activeMatch?.id && match.index === activeMatch.index && match.text === activeMatch.text && match.start === activeMatch.start
|
|
1993
406
|
);
|
|
1994
|
-
state = {
|
|
407
|
+
state = {
|
|
408
|
+
...state,
|
|
409
|
+
...result,
|
|
410
|
+
error: result.error,
|
|
411
|
+
activeIndex: nextIndex
|
|
412
|
+
};
|
|
1995
413
|
emit();
|
|
1996
414
|
},
|
|
1997
415
|
next() {
|
|
@@ -2050,7 +468,7 @@ function createConsoleSearchAddon() {
|
|
|
2050
468
|
const highlight = {
|
|
2051
469
|
id: CONSOLE_SEARCH_ADDON_ID + ":highlight",
|
|
2052
470
|
placement: "badge",
|
|
2053
|
-
render: ({ index }) =>
|
|
471
|
+
render: ({ index }) => react.createElement(ConsoleSearchHighlight, { controller, index })
|
|
2054
472
|
};
|
|
2055
473
|
host.extensions.register(
|
|
2056
474
|
consoleCore.consoleExtensionPoints.messageDecoration,
|
|
@@ -2060,7 +478,7 @@ function createConsoleSearchAddon() {
|
|
|
2060
478
|
const panel = {
|
|
2061
479
|
id: CONSOLE_SEARCH_ADDON_ID + ":controls",
|
|
2062
480
|
placement: "before-output",
|
|
2063
|
-
render: () =>
|
|
481
|
+
render: () => react.createElement(ConsoleSearchControls, { controller, ...options })
|
|
2064
482
|
};
|
|
2065
483
|
host.extensions.register(consoleCore.consoleExtensionPoints.panelElement, panel, {
|
|
2066
484
|
id: panel.id
|
|
@@ -2102,3 +520,4 @@ exports.ConsoleSearchHighlight = ConsoleSearchHighlight;
|
|
|
2102
520
|
exports.consoleSearchService = consoleSearchService;
|
|
2103
521
|
exports.createConsoleSearchAddon = createConsoleSearchAddon;
|
|
2104
522
|
exports.findConsoleSearchMatches = findConsoleSearchMatches;
|
|
523
|
+
exports.resolveConsoleSearchMessages = resolveAddonMessages;
|