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