@lark-sentry/core 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js ADDED
@@ -0,0 +1,3558 @@
1
+ import { MinHeap, sentry, getCssSelectors, getTime, isErrorEvent, isIExtendedErrorEvent, event2breadcrumb, isError, base64v2, transformHttpData, dom2str, decorateProp, isExcludedApi, throttle } from '@lark-sentry/utils';
2
+ import { WHITE_SCREEN_SAMPLE_INTERVAL, MAX_WHITE_SCREEN_SAMPLE_COUNT, UNKNOWN, DEFAULT_OPTIONS } from '@lark-sentry/constants';
3
+ import { Status, EventType, HttpMethod, HttpStatusCode } from '@lark-sentry/types';
4
+ import reporter from '@lark-sentry/reporter';
5
+
6
+ var __typeError = (msg) => {
7
+ throw TypeError(msg);
8
+ };
9
+ var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
10
+ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
11
+ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
12
+ var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), member.set(obj, value), value);
13
+ var _instance;
14
+ const _Breadcrumb = class _Breadcrumb extends MinHeap {
15
+ static get instance() {
16
+ if (!__privateGet(_Breadcrumb, _instance)) {
17
+ __privateSet(_Breadcrumb, _instance, new _Breadcrumb());
18
+ }
19
+ return __privateGet(_Breadcrumb, _instance);
20
+ }
21
+ push(data) {
22
+ const { onBeforePushBreadcrumb } = sentry.options;
23
+ if (onBeforePushBreadcrumb) {
24
+ data = onBeforePushBreadcrumb(data);
25
+ }
26
+ return super.push(data);
27
+ }
28
+ };
29
+ _instance = new WeakMap();
30
+ __privateAdd(_Breadcrumb, _instance);
31
+ let Breadcrumb = _Breadcrumb;
32
+ const breadcrumb = Breadcrumb.instance;
33
+
34
+ function checkWhiteScreen(onReport) {
35
+ const { hasSkeleton, rootCssSelectors } = sentry.options;
36
+ let sampleCount = 0;
37
+ const initialSelectors = /* @__PURE__ */ new Set();
38
+ const currentSelectors = /* @__PURE__ */ new Set();
39
+ const isRoot = (elem) => {
40
+ const selectors = getCssSelectors(elem);
41
+ const [idSelector, classSelector, elementSelector] = selectors;
42
+ if (hasSkeleton) {
43
+ if (sampleCount === 1) {
44
+ selectors.forEach((selector) => initialSelectors.add(selector));
45
+ } else {
46
+ selectors.forEach((selector) => currentSelectors.add(selector));
47
+ }
48
+ }
49
+ return rootCssSelectors.includes(idSelector) || rootCssSelectors.includes(classSelector) || rootCssSelectors.includes(elementSelector);
50
+ };
51
+ const sample = () => {
52
+ sampleCount++;
53
+ if (hasSkeleton && sampleCount > 0) {
54
+ currentSelectors.clear();
55
+ }
56
+ if (sampleCount > MAX_WHITE_SCREEN_SAMPLE_COUNT) {
57
+ stopSample();
58
+ return;
59
+ }
60
+ const { innerWidth, innerHeight } = globalThis;
61
+ let emptyPoints = 0;
62
+ for (let i = 1; i <= 9; i++) {
63
+ const rowElem = document.elementFromPoint(
64
+ innerWidth * i / 10,
65
+ innerHeight / 2
66
+ );
67
+ const colElem = document.elementFromPoint(
68
+ innerWidth / 2,
69
+ innerHeight * i / 10
70
+ );
71
+ if (!rowElem || isRoot(rowElem)) {
72
+ emptyPoints++;
73
+ }
74
+ if (!colElem || isRoot(colElem)) {
75
+ emptyPoints++;
76
+ }
77
+ }
78
+ const isWhiteScreen = emptyPoints >= 18;
79
+ if (!hasSkeleton) {
80
+ if (isWhiteScreen) {
81
+ report();
82
+ return;
83
+ }
84
+ stopSample();
85
+ }
86
+ if (hasSkeleton) {
87
+ if (sampleCount === 1) {
88
+ return;
89
+ }
90
+ if (Array.from(currentSelectors).sort().join(",") === Array.from(initialSelectors).sort().join(",")) {
91
+ report();
92
+ return;
93
+ }
94
+ stopSample();
95
+ }
96
+ };
97
+ const report = () => {
98
+ const whiteScreenData = {
99
+ ...getTime(),
100
+ type: EventType.WhiteScreen,
101
+ status: Status.Error,
102
+ id: crypto.randomUUID(),
103
+ name: "WhiteScreen",
104
+ message: `sample count ${sampleCount}`
105
+ };
106
+ onReport(whiteScreenData);
107
+ stopSample();
108
+ };
109
+ const stopSample = () => {
110
+ if (sentry.whiteScreenTimer) {
111
+ clearInterval(sentry.whiteScreenTimer);
112
+ sentry.whiteScreenTimer = null;
113
+ }
114
+ };
115
+ const loopSample = () => {
116
+ if (sentry.whiteScreenTimer) {
117
+ return;
118
+ }
119
+ sentry.whiteScreenTimer = setInterval(() => {
120
+ if ("requestIdleCallback" in globalThis) {
121
+ requestIdleCallback((deadline) => {
122
+ if (deadline.timeRemaining() > 0 || deadline.didTimeout) {
123
+ sample();
124
+ }
125
+ });
126
+ } else {
127
+ sample();
128
+ }
129
+ }, WHITE_SCREEN_SAMPLE_INTERVAL);
130
+ };
131
+ const startSample = () => {
132
+ if (document.readyState === "complete") {
133
+ loopSample();
134
+ } else {
135
+ globalThis.addEventListener("load", loopSample, { once: true });
136
+ }
137
+ };
138
+ startSample();
139
+ return { stop: stopSample };
140
+ }
141
+
142
+ const handleHttp = (data) => {
143
+ data = transformHttpData(data);
144
+ const { id, name, time, timestamp, message, status, type } = data;
145
+ if (!data.api.includes(sentry.options.dsn)) {
146
+ breadcrumb.push({
147
+ id: id ?? crypto.randomUUID(),
148
+ name,
149
+ time,
150
+ timestamp,
151
+ message,
152
+ status,
153
+ type,
154
+ userAction: event2breadcrumb(type)
155
+ });
156
+ }
157
+ if (status === Status.Error) {
158
+ reporter.send(data);
159
+ }
160
+ };
161
+ const handleError$1 = (err) => {
162
+ if (isErrorEvent(err)) {
163
+ handleCodeError(err);
164
+ }
165
+ if (isIExtendedErrorEvent(err)) {
166
+ const { localName, src, href } = err.target;
167
+ const { message } = err;
168
+ const resourceError = {
169
+ id: crypto.randomUUID(),
170
+ type: EventType.Resource,
171
+ status: Status.Error,
172
+ ...getTime(),
173
+ name: localName,
174
+ src,
175
+ href,
176
+ message
177
+ };
178
+ breadcrumb.push({
179
+ ...resourceError,
180
+ userAction: event2breadcrumb(EventType.Resource)
181
+ });
182
+ reporter.send(resourceError);
183
+ return;
184
+ }
185
+ if (isError(err)) {
186
+ const { name, message } = err;
187
+ const data2 = {
188
+ id: crypto.randomUUID(),
189
+ type: EventType.Error,
190
+ name,
191
+ message,
192
+ status: Status.Error,
193
+ ...getTime()
194
+ };
195
+ breadcrumb.push({
196
+ ...data2,
197
+ userAction: event2breadcrumb(EventType.Error)
198
+ });
199
+ reporter.send(data2);
200
+ return;
201
+ }
202
+ const data = {
203
+ id: crypto.randomUUID(),
204
+ type: EventType.Error,
205
+ name: "Unknown Error",
206
+ message: JSON.stringify(err),
207
+ status: Status.Error,
208
+ ...getTime()
209
+ };
210
+ breadcrumb.push({
211
+ ...data,
212
+ userAction: event2breadcrumb(EventType.Error)
213
+ });
214
+ reporter.send(data);
215
+ };
216
+ const handleHistory = (routeChange) => {
217
+ const id = crypto.randomUUID();
218
+ const { from, to } = routeChange;
219
+ const pathChange = `${from} => ${to}`;
220
+ const routeData = {
221
+ id,
222
+ name: pathChange,
223
+ message: pathChange,
224
+ type: EventType.History,
225
+ from,
226
+ to,
227
+ ...getTime(),
228
+ status: Status.OK
229
+ };
230
+ breadcrumb.push({
231
+ ...routeData,
232
+ userAction: event2breadcrumb(EventType.History)
233
+ });
234
+ };
235
+ const handleHashChange = (e) => {
236
+ const id = crypto.randomUUID();
237
+ const { oldURL: from, newURL: to } = e;
238
+ const pathChange = `${from} => ${to}`;
239
+ const routeData = {
240
+ id,
241
+ name: pathChange,
242
+ message: pathChange,
243
+ type: EventType.HashChange,
244
+ from,
245
+ to,
246
+ ...getTime(),
247
+ status: Status.OK
248
+ };
249
+ breadcrumb.push({
250
+ ...routeData,
251
+ userAction: event2breadcrumb(EventType.HashChange)
252
+ });
253
+ };
254
+ const handleUnhandledRejection = (e) => {
255
+ if (!isIExtendedErrorEvent(e)) {
256
+ handleError$1(e);
257
+ return;
258
+ }
259
+ handleCodeError(e);
260
+ };
261
+ const handleWhiteScreen = () => {
262
+ checkWhiteScreen((data) => {
263
+ reporter.send(data);
264
+ });
265
+ return;
266
+ };
267
+ const handleClick = (e) => {
268
+ const str = e.target instanceof HTMLElement ? dom2str(e.target) : "";
269
+ breadcrumb.push({
270
+ id: crypto.randomUUID(),
271
+ type: EventType.Click,
272
+ name: str,
273
+ message: str,
274
+ status: Status.OK,
275
+ ...getTime(),
276
+ userAction: event2breadcrumb(EventType.Click)
277
+ });
278
+ };
279
+ const handleCodeError = (err) => {
280
+ const { filename, colno: column, lineno: line, message } = err;
281
+ const data = {
282
+ id: crypto.randomUUID(),
283
+ type: EventType.Error,
284
+ name: filename,
285
+ message,
286
+ status: Status.Error,
287
+ ...getTime()
288
+ };
289
+ const codeError = {
290
+ ...data,
291
+ column,
292
+ line
293
+ };
294
+ breadcrumb.push({
295
+ ...data,
296
+ userAction: event2breadcrumb(EventType.Error)
297
+ });
298
+ const errorId = base64v2(
299
+ `${EventType.Error}-${message}-${filename}-${line}-${column}`
300
+ );
301
+ if (errorId.includes(UNKNOWN) || sentry.options.repeatCodeError || !sentry.options.repeatCodeError && !sentry.codeErrors.has(errorId)) {
302
+ sentry.codeErrors.add(errorId);
303
+ reporter.send(codeError);
304
+ }
305
+ };
306
+
307
+ const event2handlers = /* @__PURE__ */ new Map();
308
+ const pub = (type, data) => {
309
+ const handlers = event2handlers.get(type);
310
+ if (!handlers) {
311
+ return;
312
+ }
313
+ try {
314
+ for (const handler of handlers) {
315
+ handler(data);
316
+ }
317
+ } catch (err) {
318
+ console.log("[lark-sentry] error", err);
319
+ }
320
+ };
321
+ const sub = (type, handler) => {
322
+ const handlers = event2handlers.get(type);
323
+ if (!handlers) {
324
+ event2handlers.set(type, /* @__PURE__ */ new Set([handler]));
325
+ return;
326
+ }
327
+ handlers.add(handler);
328
+ };
329
+
330
+ function decoratePublish(type) {
331
+ switch (type) {
332
+ case EventType.Click: {
333
+ pubClick();
334
+ break;
335
+ }
336
+ case EventType.Error: {
337
+ pubError();
338
+ break;
339
+ }
340
+ case EventType.Xhr: {
341
+ pubXhr();
342
+ break;
343
+ }
344
+ case EventType.Fetch: {
345
+ pubFetch();
346
+ break;
347
+ }
348
+ case EventType.History: {
349
+ pubHistory();
350
+ break;
351
+ }
352
+ case EventType.UnhandledRejection: {
353
+ pubUnhandledRejection();
354
+ break;
355
+ }
356
+ case EventType.HashChange: {
357
+ pubHashChange();
358
+ break;
359
+ }
360
+ case EventType.WhiteScreen: {
361
+ pubWhiteScreen();
362
+ break;
363
+ }
364
+ }
365
+ }
366
+ function pubClick() {
367
+ const throttledPub = throttle(pub, sentry.options.clickThrottleDelay);
368
+ document.addEventListener("click", function(ctx) {
369
+ throttledPub(EventType.Click, ctx);
370
+ });
371
+ }
372
+ function pubError() {
373
+ globalThis.addEventListener("error", function(ctx) {
374
+ pub(EventType.Error, ctx);
375
+ });
376
+ }
377
+ function pubXhr() {
378
+ const xhrProto = XMLHttpRequest.prototype;
379
+ decorateProp(xhrProto, "open", (oldPropVal) => {
380
+ return function(method, url, async, ...rest) {
381
+ const httpData = {
382
+ id: crypto.randomUUID(),
383
+ name: "XMLHttpRequest",
384
+ status: Status.OK,
385
+ type: EventType.Xhr,
386
+ ...getTime(),
387
+ method: method.toUpperCase(),
388
+ api: url,
389
+ elapsedTime: 0,
390
+ message: "",
391
+ statusCode: HttpStatusCode.OK
392
+ };
393
+ this.__sentry__ = httpData;
394
+ return oldPropVal.call(this, method, url, async, ...rest);
395
+ };
396
+ });
397
+ decorateProp(xhrProto, "send", (oldPropVal) => {
398
+ return function(body) {
399
+ const { method, api } = this.__sentry__;
400
+ this.addEventListener("loadend", () => {
401
+ if (method.toUpperCase() === HttpMethod.Post && api === sentry.options.dsn || isExcludedApi(api)) {
402
+ return;
403
+ }
404
+ const { status, responseType, response } = this;
405
+ this.__sentry__.statusCode = status;
406
+ this.__sentry__.requestData = body;
407
+ this.__sentry__.responseData = JSON.stringify({
408
+ responseType,
409
+ response
410
+ });
411
+ const endTime = Date.now();
412
+ this.__sentry__.elapsedTime = endTime - this.__sentry__.timestamp;
413
+ pub(EventType.Xhr, this.__sentry__);
414
+ });
415
+ return oldPropVal.call(this, body);
416
+ };
417
+ });
418
+ }
419
+ function pubFetch() {
420
+ decorateProp(globalThis, "fetch", (oldPropVal) => {
421
+ return async function(url, options) {
422
+ const method = options?.method?.toUpperCase() ?? HttpMethod.Get;
423
+ const httpData = {
424
+ id: crypto.randomUUID(),
425
+ ...getTime(),
426
+ type: EventType.Fetch,
427
+ method,
428
+ requestData: options?.body,
429
+ name: "Fetch",
430
+ status: Status.OK,
431
+ api: url.toString(),
432
+ elapsedTime: 0,
433
+ message: "",
434
+ statusCode: HttpStatusCode.OK
435
+ };
436
+ return oldPropVal.call(globalThis, url, options).then((res) => {
437
+ const resClone = res.clone();
438
+ const endTime = Date.now();
439
+ httpData.elapsedTime = endTime - httpData.timestamp;
440
+ httpData.statusCode = resClone.status;
441
+ resClone.text().then((res2) => {
442
+ if (method === HttpMethod.Post && url.toString() === sentry.options.dsn || isExcludedApi(url.toString())) {
443
+ return;
444
+ }
445
+ httpData.responseData = res2;
446
+ pub(EventType.Fetch, httpData);
447
+ });
448
+ return res;
449
+ });
450
+ };
451
+ });
452
+ }
453
+ let latestHref = document.location.href;
454
+ function pubHistory() {
455
+ const oldOnpopstate = globalThis.onpopstate;
456
+ if (typeof oldOnpopstate !== "function") {
457
+ return;
458
+ }
459
+ globalThis.onpopstate = function(ev) {
460
+ const from = latestHref;
461
+ const to = document.location.href;
462
+ latestHref = to;
463
+ pub(EventType.History, { from, to });
464
+ return oldOnpopstate.call(this, ev);
465
+ };
466
+ const historyDecorator = (oldPropsVal) => {
467
+ return function(data, unused, url) {
468
+ if (url) {
469
+ const from = latestHref;
470
+ const to = url.toString();
471
+ latestHref = to;
472
+ pub(EventType.History, { from, to });
473
+ }
474
+ return oldPropsVal.call(this, data, unused, url);
475
+ };
476
+ };
477
+ decorateProp(globalThis.history, "pushState", historyDecorator);
478
+ decorateProp(globalThis.history, "replaceState", historyDecorator);
479
+ }
480
+ function pubUnhandledRejection() {
481
+ globalThis.addEventListener(
482
+ "unhandledrejection",
483
+ function(ctx) {
484
+ pub(EventType.UnhandledRejection, ctx);
485
+ }
486
+ );
487
+ }
488
+ function pubHashChange() {
489
+ globalThis.addEventListener("hashchange", function(ctx) {
490
+ pub(EventType.HashChange, ctx);
491
+ });
492
+ }
493
+ function pubWhiteScreen() {
494
+ pub(EventType.WhiteScreen);
495
+ }
496
+
497
+ function setup() {
498
+ sub(EventType.Xhr, handleHttp);
499
+ decoratePublish(EventType.Xhr);
500
+ sub(EventType.Fetch, handleHttp);
501
+ decoratePublish(EventType.Fetch);
502
+ sub(EventType.Error, handleError$1);
503
+ decoratePublish(EventType.Error);
504
+ sub(EventType.History, handleHistory);
505
+ decoratePublish(EventType.History);
506
+ sub(EventType.HashChange, handleHashChange);
507
+ decoratePublish(EventType.HashChange);
508
+ sub(EventType.UnhandledRejection, handleUnhandledRejection);
509
+ decoratePublish(EventType.UnhandledRejection);
510
+ sub(EventType.Click, handleClick);
511
+ decoratePublish(EventType.Click);
512
+ sub(EventType.WhiteScreen, handleWhiteScreen);
513
+ decoratePublish(EventType.WhiteScreen);
514
+ }
515
+
516
+ /**
517
+ * @vue/shared v3.5.26
518
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
519
+ * @license MIT
520
+ **/
521
+
522
+
523
+ const EMPTY_OBJ = !!(process.env.NODE_ENV !== "production") ? Object.freeze({}) : {};
524
+ !!(process.env.NODE_ENV !== "production") ? Object.freeze([]) : [];
525
+ const NOOP = () => {
526
+ };
527
+ const isOn = (key) => key.charCodeAt(0) === 111 && key.charCodeAt(1) === 110 && // uppercase letter
528
+ (key.charCodeAt(2) > 122 || key.charCodeAt(2) < 97);
529
+ const extend = Object.assign;
530
+ const isArray = Array.isArray;
531
+ const isFunction = (val) => typeof val === "function";
532
+ const isString = (val) => typeof val === "string";
533
+ const isSymbol = (val) => typeof val === "symbol";
534
+ const isObject = (val) => val !== null && typeof val === "object";
535
+ let _globalThis;
536
+ const getGlobalThis = () => {
537
+ return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
538
+ };
539
+
540
+ function normalizeStyle(value) {
541
+ if (isArray(value)) {
542
+ const res = {};
543
+ for (let i = 0; i < value.length; i++) {
544
+ const item = value[i];
545
+ const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
546
+ if (normalized) {
547
+ for (const key in normalized) {
548
+ res[key] = normalized[key];
549
+ }
550
+ }
551
+ }
552
+ return res;
553
+ } else if (isString(value) || isObject(value)) {
554
+ return value;
555
+ }
556
+ }
557
+ const listDelimiterRE = /;(?![^(]*\))/g;
558
+ const propertyDelimiterRE = /:([^]+)/;
559
+ const styleCommentRE = /\/\*[^]*?\*\//g;
560
+ function parseStringStyle(cssText) {
561
+ const ret = {};
562
+ cssText.replace(styleCommentRE, "").split(listDelimiterRE).forEach((item) => {
563
+ if (item) {
564
+ const tmp = item.split(propertyDelimiterRE);
565
+ tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
566
+ }
567
+ });
568
+ return ret;
569
+ }
570
+ function normalizeClass(value) {
571
+ let res = "";
572
+ if (isString(value)) {
573
+ res = value;
574
+ } else if (isArray(value)) {
575
+ for (let i = 0; i < value.length; i++) {
576
+ const normalized = normalizeClass(value[i]);
577
+ if (normalized) {
578
+ res += normalized + " ";
579
+ }
580
+ }
581
+ } else if (isObject(value)) {
582
+ for (const name in value) {
583
+ if (value[name]) {
584
+ res += name + " ";
585
+ }
586
+ }
587
+ }
588
+ return res.trim();
589
+ }
590
+
591
+ /**
592
+ * @vue/reactivity v3.5.26
593
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
594
+ * @license MIT
595
+ **/
596
+ /* @__PURE__ */ Symbol(
597
+ !!(process.env.NODE_ENV !== "production") ? "Object iterate" : ""
598
+ );
599
+ /* @__PURE__ */ Symbol(
600
+ !!(process.env.NODE_ENV !== "production") ? "Map keys iterate" : ""
601
+ );
602
+ /* @__PURE__ */ Symbol(
603
+ !!(process.env.NODE_ENV !== "production") ? "Array iterate" : ""
604
+ );
605
+ new Set(
606
+ /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((key) => key !== "arguments" && key !== "caller").map((key) => Symbol[key]).filter(isSymbol)
607
+ );
608
+ function isReactive(value) {
609
+ if (isReadonly(value)) {
610
+ return isReactive(value["__v_raw"]);
611
+ }
612
+ return !!(value && value["__v_isReactive"]);
613
+ }
614
+ function isReadonly(value) {
615
+ return !!(value && value["__v_isReadonly"]);
616
+ }
617
+ function isShallow(value) {
618
+ return !!(value && value["__v_isShallow"]);
619
+ }
620
+ function isProxy(value) {
621
+ return value ? !!value["__v_raw"] : false;
622
+ }
623
+ function toRaw(observed) {
624
+ const raw = observed && observed["__v_raw"];
625
+ return raw ? toRaw(raw) : observed;
626
+ }
627
+
628
+ function isRef(r) {
629
+ return r ? r["__v_isRef"] === true : false;
630
+ }
631
+
632
+ /**
633
+ * @vue/runtime-core v3.5.26
634
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
635
+ * @license MIT
636
+ **/
637
+
638
+ const stack = [];
639
+ function pushWarningContext(vnode) {
640
+ stack.push(vnode);
641
+ }
642
+ function popWarningContext() {
643
+ stack.pop();
644
+ }
645
+ let isWarning = false;
646
+ function warn$1(msg, ...args) {
647
+ if (isWarning) return;
648
+ isWarning = true;
649
+ const instance = stack.length ? stack[stack.length - 1].component : null;
650
+ const appWarnHandler = instance && instance.appContext.config.warnHandler;
651
+ const trace = getComponentTrace();
652
+ if (appWarnHandler) {
653
+ callWithErrorHandling(
654
+ appWarnHandler,
655
+ instance,
656
+ 11,
657
+ [
658
+ // eslint-disable-next-line no-restricted-syntax
659
+ msg + args.map((a) => {
660
+ var _a, _b;
661
+ return (_b = (_a = a.toString) == null ? void 0 : _a.call(a)) != null ? _b : JSON.stringify(a);
662
+ }).join(""),
663
+ instance && instance.proxy,
664
+ trace.map(
665
+ ({ vnode }) => `at <${formatComponentName(instance, vnode.type)}>`
666
+ ).join("\n"),
667
+ trace
668
+ ]
669
+ );
670
+ } else {
671
+ const warnArgs = [`[Vue warn]: ${msg}`, ...args];
672
+ if (trace.length && // avoid spamming console during tests
673
+ true) {
674
+ warnArgs.push(`
675
+ `, ...formatTrace(trace));
676
+ }
677
+ console.warn(...warnArgs);
678
+ }
679
+ isWarning = false;
680
+ }
681
+ function getComponentTrace() {
682
+ let currentVNode = stack[stack.length - 1];
683
+ if (!currentVNode) {
684
+ return [];
685
+ }
686
+ const normalizedStack = [];
687
+ while (currentVNode) {
688
+ const last = normalizedStack[0];
689
+ if (last && last.vnode === currentVNode) {
690
+ last.recurseCount++;
691
+ } else {
692
+ normalizedStack.push({
693
+ vnode: currentVNode,
694
+ recurseCount: 0
695
+ });
696
+ }
697
+ const parentInstance = currentVNode.component && currentVNode.component.parent;
698
+ currentVNode = parentInstance && parentInstance.vnode;
699
+ }
700
+ return normalizedStack;
701
+ }
702
+ function formatTrace(trace) {
703
+ const logs = [];
704
+ trace.forEach((entry, i) => {
705
+ logs.push(...i === 0 ? [] : [`
706
+ `], ...formatTraceEntry(entry));
707
+ });
708
+ return logs;
709
+ }
710
+ function formatTraceEntry({ vnode, recurseCount }) {
711
+ const postfix = recurseCount > 0 ? `... (${recurseCount} recursive calls)` : ``;
712
+ const isRoot = vnode.component ? vnode.component.parent == null : false;
713
+ const open = ` at <${formatComponentName(
714
+ vnode.component,
715
+ vnode.type,
716
+ isRoot
717
+ )}`;
718
+ const close = `>` + postfix;
719
+ return vnode.props ? [open, ...formatProps(vnode.props), close] : [open + close];
720
+ }
721
+ function formatProps(props) {
722
+ const res = [];
723
+ const keys = Object.keys(props);
724
+ keys.slice(0, 3).forEach((key) => {
725
+ res.push(...formatProp(key, props[key]));
726
+ });
727
+ if (keys.length > 3) {
728
+ res.push(` ...`);
729
+ }
730
+ return res;
731
+ }
732
+ function formatProp(key, value, raw) {
733
+ if (isString(value)) {
734
+ value = JSON.stringify(value);
735
+ return raw ? value : [`${key}=${value}`];
736
+ } else if (typeof value === "number" || typeof value === "boolean" || value == null) {
737
+ return raw ? value : [`${key}=${value}`];
738
+ } else if (isRef(value)) {
739
+ value = formatProp(key, toRaw(value.value), true);
740
+ return raw ? value : [`${key}=Ref<`, value, `>`];
741
+ } else if (isFunction(value)) {
742
+ return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
743
+ } else {
744
+ value = toRaw(value);
745
+ return raw ? value : [`${key}=`, value];
746
+ }
747
+ }
748
+ const ErrorTypeStrings$1 = {
749
+ ["sp"]: "serverPrefetch hook",
750
+ ["bc"]: "beforeCreate hook",
751
+ ["c"]: "created hook",
752
+ ["bm"]: "beforeMount hook",
753
+ ["m"]: "mounted hook",
754
+ ["bu"]: "beforeUpdate hook",
755
+ ["u"]: "updated",
756
+ ["bum"]: "beforeUnmount hook",
757
+ ["um"]: "unmounted hook",
758
+ ["a"]: "activated hook",
759
+ ["da"]: "deactivated hook",
760
+ ["ec"]: "errorCaptured hook",
761
+ ["rtc"]: "renderTracked hook",
762
+ ["rtg"]: "renderTriggered hook",
763
+ [0]: "setup function",
764
+ [1]: "render function",
765
+ [2]: "watcher getter",
766
+ [3]: "watcher callback",
767
+ [4]: "watcher cleanup function",
768
+ [5]: "native event handler",
769
+ [6]: "component event handler",
770
+ [7]: "vnode hook",
771
+ [8]: "directive hook",
772
+ [9]: "transition hook",
773
+ [10]: "app errorHandler",
774
+ [11]: "app warnHandler",
775
+ [12]: "ref function",
776
+ [13]: "async component loader",
777
+ [14]: "scheduler flush",
778
+ [15]: "component update",
779
+ [16]: "app unmount cleanup function"
780
+ };
781
+ function callWithErrorHandling(fn, instance, type, args) {
782
+ try {
783
+ return args ? fn(...args) : fn();
784
+ } catch (err) {
785
+ handleError(err, instance, type);
786
+ }
787
+ }
788
+ function handleError(err, instance, type, throwInDev = true) {
789
+ const contextVNode = instance ? instance.vnode : null;
790
+ const { errorHandler, throwUnhandledErrorInProduction } = instance && instance.appContext.config || EMPTY_OBJ;
791
+ if (instance) {
792
+ let cur = instance.parent;
793
+ const exposedInstance = instance.proxy;
794
+ const errorInfo = !!(process.env.NODE_ENV !== "production") ? ErrorTypeStrings$1[type] : `https://vuejs.org/error-reference/#runtime-${type}`;
795
+ while (cur) {
796
+ const errorCapturedHooks = cur.ec;
797
+ if (errorCapturedHooks) {
798
+ for (let i = 0; i < errorCapturedHooks.length; i++) {
799
+ if (errorCapturedHooks[i](err, exposedInstance, errorInfo) === false) {
800
+ return;
801
+ }
802
+ }
803
+ }
804
+ cur = cur.parent;
805
+ }
806
+ if (errorHandler) {
807
+ callWithErrorHandling(errorHandler, null, 10, [
808
+ err,
809
+ exposedInstance,
810
+ errorInfo
811
+ ]);
812
+ return;
813
+ }
814
+ }
815
+ logError(err, type, contextVNode, throwInDev, throwUnhandledErrorInProduction);
816
+ }
817
+ function logError(err, type, contextVNode, throwInDev = true, throwInProd = false) {
818
+ if (!!(process.env.NODE_ENV !== "production")) {
819
+ const info = ErrorTypeStrings$1[type];
820
+ if (contextVNode) {
821
+ pushWarningContext(contextVNode);
822
+ }
823
+ warn$1(`Unhandled error${info ? ` during execution of ${info}` : ``}`);
824
+ if (contextVNode) {
825
+ popWarningContext();
826
+ }
827
+ if (throwInDev) {
828
+ throw err;
829
+ } else {
830
+ console.error(err);
831
+ }
832
+ } else if (throwInProd) {
833
+ throw err;
834
+ } else {
835
+ console.error(err);
836
+ }
837
+ }
838
+
839
+ const queue = [];
840
+ let flushIndex = -1;
841
+ const pendingPostFlushCbs = [];
842
+ let activePostFlushCbs = null;
843
+ let postFlushIndex = 0;
844
+ const resolvedPromise = /* @__PURE__ */ Promise.resolve();
845
+ let currentFlushPromise = null;
846
+ const RECURSION_LIMIT = 100;
847
+ function findInsertionIndex(id) {
848
+ let start = flushIndex + 1;
849
+ let end = queue.length;
850
+ while (start < end) {
851
+ const middle = start + end >>> 1;
852
+ const middleJob = queue[middle];
853
+ const middleJobId = getId(middleJob);
854
+ if (middleJobId < id || middleJobId === id && middleJob.flags & 2) {
855
+ start = middle + 1;
856
+ } else {
857
+ end = middle;
858
+ }
859
+ }
860
+ return start;
861
+ }
862
+ function queueJob(job) {
863
+ if (!(job.flags & 1)) {
864
+ const jobId = getId(job);
865
+ const lastJob = queue[queue.length - 1];
866
+ if (!lastJob || // fast path when the job id is larger than the tail
867
+ !(job.flags & 2) && jobId >= getId(lastJob)) {
868
+ queue.push(job);
869
+ } else {
870
+ queue.splice(findInsertionIndex(jobId), 0, job);
871
+ }
872
+ job.flags |= 1;
873
+ queueFlush();
874
+ }
875
+ }
876
+ function queueFlush() {
877
+ if (!currentFlushPromise) {
878
+ currentFlushPromise = resolvedPromise.then(flushJobs);
879
+ }
880
+ }
881
+ function queuePostFlushCb(cb) {
882
+ if (!isArray(cb)) {
883
+ if (activePostFlushCbs && cb.id === -1) {
884
+ activePostFlushCbs.splice(postFlushIndex + 1, 0, cb);
885
+ } else if (!(cb.flags & 1)) {
886
+ pendingPostFlushCbs.push(cb);
887
+ cb.flags |= 1;
888
+ }
889
+ } else {
890
+ pendingPostFlushCbs.push(...cb);
891
+ }
892
+ queueFlush();
893
+ }
894
+ function flushPostFlushCbs(seen) {
895
+ if (pendingPostFlushCbs.length) {
896
+ const deduped = [...new Set(pendingPostFlushCbs)].sort(
897
+ (a, b) => getId(a) - getId(b)
898
+ );
899
+ pendingPostFlushCbs.length = 0;
900
+ if (activePostFlushCbs) {
901
+ activePostFlushCbs.push(...deduped);
902
+ return;
903
+ }
904
+ activePostFlushCbs = deduped;
905
+ if (!!(process.env.NODE_ENV !== "production")) {
906
+ seen = seen || /* @__PURE__ */ new Map();
907
+ }
908
+ for (postFlushIndex = 0; postFlushIndex < activePostFlushCbs.length; postFlushIndex++) {
909
+ const cb = activePostFlushCbs[postFlushIndex];
910
+ if (!!(process.env.NODE_ENV !== "production") && checkRecursiveUpdates(seen, cb)) {
911
+ continue;
912
+ }
913
+ if (cb.flags & 4) {
914
+ cb.flags &= -2;
915
+ }
916
+ if (!(cb.flags & 8)) cb();
917
+ cb.flags &= -2;
918
+ }
919
+ activePostFlushCbs = null;
920
+ postFlushIndex = 0;
921
+ }
922
+ }
923
+ const getId = (job) => job.id == null ? job.flags & 2 ? -1 : Infinity : job.id;
924
+ function flushJobs(seen) {
925
+ if (!!(process.env.NODE_ENV !== "production")) {
926
+ seen = seen || /* @__PURE__ */ new Map();
927
+ }
928
+ const check = !!(process.env.NODE_ENV !== "production") ? (job) => checkRecursiveUpdates(seen, job) : NOOP;
929
+ try {
930
+ for (flushIndex = 0; flushIndex < queue.length; flushIndex++) {
931
+ const job = queue[flushIndex];
932
+ if (job && !(job.flags & 8)) {
933
+ if (!!(process.env.NODE_ENV !== "production") && check(job)) {
934
+ continue;
935
+ }
936
+ if (job.flags & 4) {
937
+ job.flags &= ~1;
938
+ }
939
+ callWithErrorHandling(
940
+ job,
941
+ job.i,
942
+ job.i ? 15 : 14
943
+ );
944
+ if (!(job.flags & 4)) {
945
+ job.flags &= ~1;
946
+ }
947
+ }
948
+ }
949
+ } finally {
950
+ for (; flushIndex < queue.length; flushIndex++) {
951
+ const job = queue[flushIndex];
952
+ if (job) {
953
+ job.flags &= -2;
954
+ }
955
+ }
956
+ flushIndex = -1;
957
+ queue.length = 0;
958
+ flushPostFlushCbs(seen);
959
+ currentFlushPromise = null;
960
+ if (queue.length || pendingPostFlushCbs.length) {
961
+ flushJobs(seen);
962
+ }
963
+ }
964
+ }
965
+ function checkRecursiveUpdates(seen, fn) {
966
+ const count = seen.get(fn) || 0;
967
+ if (count > RECURSION_LIMIT) {
968
+ const instance = fn.i;
969
+ const componentName = instance && getComponentName(instance.type);
970
+ handleError(
971
+ `Maximum recursive updates exceeded${componentName ? ` in component <${componentName}>` : ``}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,
972
+ null,
973
+ 10
974
+ );
975
+ return true;
976
+ }
977
+ seen.set(fn, count + 1);
978
+ return false;
979
+ }
980
+ const hmrDirtyComponents = /* @__PURE__ */ new Map();
981
+ if (!!(process.env.NODE_ENV !== "production")) {
982
+ getGlobalThis().__VUE_HMR_RUNTIME__ = {
983
+ createRecord: tryWrap(createRecord),
984
+ rerender: tryWrap(rerender),
985
+ reload: tryWrap(reload)
986
+ };
987
+ }
988
+ const map = /* @__PURE__ */ new Map();
989
+ function createRecord(id, initialDef) {
990
+ if (map.has(id)) {
991
+ return false;
992
+ }
993
+ map.set(id, {
994
+ initialDef: normalizeClassComponent(initialDef),
995
+ instances: /* @__PURE__ */ new Set()
996
+ });
997
+ return true;
998
+ }
999
+ function normalizeClassComponent(component) {
1000
+ return isClassComponent(component) ? component.__vccOpts : component;
1001
+ }
1002
+ function rerender(id, newRender) {
1003
+ const record = map.get(id);
1004
+ if (!record) {
1005
+ return;
1006
+ }
1007
+ record.initialDef.render = newRender;
1008
+ [...record.instances].forEach((instance) => {
1009
+ if (newRender) {
1010
+ instance.render = newRender;
1011
+ normalizeClassComponent(instance.type).render = newRender;
1012
+ }
1013
+ instance.renderCache = [];
1014
+ if (!(instance.job.flags & 8)) {
1015
+ instance.update();
1016
+ }
1017
+ });
1018
+ }
1019
+ function reload(id, newComp) {
1020
+ const record = map.get(id);
1021
+ if (!record) return;
1022
+ newComp = normalizeClassComponent(newComp);
1023
+ updateComponentDef(record.initialDef, newComp);
1024
+ const instances = [...record.instances];
1025
+ for (let i = 0; i < instances.length; i++) {
1026
+ const instance = instances[i];
1027
+ const oldComp = normalizeClassComponent(instance.type);
1028
+ let dirtyInstances = hmrDirtyComponents.get(oldComp);
1029
+ if (!dirtyInstances) {
1030
+ if (oldComp !== record.initialDef) {
1031
+ updateComponentDef(oldComp, newComp);
1032
+ }
1033
+ hmrDirtyComponents.set(oldComp, dirtyInstances = /* @__PURE__ */ new Set());
1034
+ }
1035
+ dirtyInstances.add(instance);
1036
+ instance.appContext.propsCache.delete(instance.type);
1037
+ instance.appContext.emitsCache.delete(instance.type);
1038
+ instance.appContext.optionsCache.delete(instance.type);
1039
+ if (instance.ceReload) {
1040
+ dirtyInstances.add(instance);
1041
+ instance.ceReload(newComp.styles);
1042
+ dirtyInstances.delete(instance);
1043
+ } else if (instance.parent) {
1044
+ queueJob(() => {
1045
+ if (!(instance.job.flags & 8)) {
1046
+ instance.parent.update();
1047
+ dirtyInstances.delete(instance);
1048
+ }
1049
+ });
1050
+ } else if (instance.appContext.reload) {
1051
+ instance.appContext.reload();
1052
+ } else if (typeof window !== "undefined") {
1053
+ window.location.reload();
1054
+ } else {
1055
+ console.warn(
1056
+ "[HMR] Root or manually mounted instance modified. Full reload required."
1057
+ );
1058
+ }
1059
+ if (instance.root.ce && instance !== instance.root) {
1060
+ instance.root.ce._removeChildStyle(oldComp);
1061
+ }
1062
+ }
1063
+ queuePostFlushCb(() => {
1064
+ hmrDirtyComponents.clear();
1065
+ });
1066
+ }
1067
+ function updateComponentDef(oldComp, newComp) {
1068
+ extend(oldComp, newComp);
1069
+ for (const key in oldComp) {
1070
+ if (key !== "__file" && !(key in newComp)) {
1071
+ delete oldComp[key];
1072
+ }
1073
+ }
1074
+ }
1075
+ function tryWrap(fn) {
1076
+ return (id, arg) => {
1077
+ try {
1078
+ return fn(id, arg);
1079
+ } catch (e) {
1080
+ console.error(e);
1081
+ console.warn(
1082
+ `[HMR] Something went wrong during Vue component hot-reload. Full reload required.`
1083
+ );
1084
+ }
1085
+ };
1086
+ }
1087
+
1088
+ let devtools$1;
1089
+ let buffer = [];
1090
+ function setDevtoolsHook$1(hook, target) {
1091
+ var _a, _b;
1092
+ devtools$1 = hook;
1093
+ if (devtools$1) {
1094
+ devtools$1.enabled = true;
1095
+ buffer.forEach(({ event, args }) => devtools$1.emit(event, ...args));
1096
+ buffer = [];
1097
+ } else if (
1098
+ // handle late devtools injection - only do this if we are in an actual
1099
+ // browser environment to avoid the timer handle stalling test runner exit
1100
+ // (#4815)
1101
+ typeof window !== "undefined" && // some envs mock window but not fully
1102
+ window.HTMLElement && // also exclude jsdom
1103
+ // eslint-disable-next-line no-restricted-syntax
1104
+ !((_b = (_a = window.navigator) == null ? void 0 : _a.userAgent) == null ? void 0 : _b.includes("jsdom"))
1105
+ ) {
1106
+ const replay = target.__VUE_DEVTOOLS_HOOK_REPLAY__ = target.__VUE_DEVTOOLS_HOOK_REPLAY__ || [];
1107
+ replay.push((newHook) => {
1108
+ setDevtoolsHook$1(newHook, target);
1109
+ });
1110
+ setTimeout(() => {
1111
+ if (!devtools$1) {
1112
+ target.__VUE_DEVTOOLS_HOOK_REPLAY__ = null;
1113
+ buffer = [];
1114
+ }
1115
+ }, 3e3);
1116
+ } else {
1117
+ buffer = [];
1118
+ }
1119
+ }
1120
+
1121
+ let currentRenderingInstance = null;
1122
+ let currentScopeId = null;
1123
+ const isTeleport = (type) => type.__isTeleport;
1124
+ function setTransitionHooks(vnode, hooks) {
1125
+ if (vnode.shapeFlag & 6 && vnode.component) {
1126
+ vnode.transition = hooks;
1127
+ setTransitionHooks(vnode.component.subTree, hooks);
1128
+ } else if (vnode.shapeFlag & 128) {
1129
+ vnode.ssContent.transition = hooks.clone(vnode.ssContent);
1130
+ vnode.ssFallback.transition = hooks.clone(vnode.ssFallback);
1131
+ } else {
1132
+ vnode.transition = hooks;
1133
+ }
1134
+ }
1135
+
1136
+ getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
1137
+ getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
1138
+ const NULL_DYNAMIC_COMPONENT = /* @__PURE__ */ Symbol.for("v-ndc");
1139
+ const PublicInstanceProxyHandlers = {
1140
+ };
1141
+ if (!!(process.env.NODE_ENV !== "production") && true) {
1142
+ PublicInstanceProxyHandlers.ownKeys = (target) => {
1143
+ warn$1(
1144
+ `Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.`
1145
+ );
1146
+ return Reflect.ownKeys(target);
1147
+ };
1148
+ }
1149
+
1150
+ const internalObjectProto = {};
1151
+ const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
1152
+
1153
+ const isSuspense = (type) => type.__isSuspense;
1154
+
1155
+ const Fragment = /* @__PURE__ */ Symbol.for("v-fgt");
1156
+ const Text = /* @__PURE__ */ Symbol.for("v-txt");
1157
+ const Comment = /* @__PURE__ */ Symbol.for("v-cmt");
1158
+ function isVNode(value) {
1159
+ return value ? value.__v_isVNode === true : false;
1160
+ }
1161
+ const createVNodeWithArgsTransform = (...args) => {
1162
+ return _createVNode(
1163
+ ...args
1164
+ );
1165
+ };
1166
+ const normalizeKey = ({ key }) => key != null ? key : null;
1167
+ const normalizeRef = ({
1168
+ ref,
1169
+ ref_key,
1170
+ ref_for
1171
+ }) => {
1172
+ if (typeof ref === "number") {
1173
+ ref = "" + ref;
1174
+ }
1175
+ return ref != null ? isString(ref) || isRef(ref) || isFunction(ref) ? { i: currentRenderingInstance, r: ref, k: ref_key, f: !!ref_for } : ref : null;
1176
+ };
1177
+ function createBaseVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, shapeFlag = type === Fragment ? 0 : 1, isBlockNode = false, needFullChildrenNormalization = false) {
1178
+ const vnode = {
1179
+ __v_isVNode: true,
1180
+ __v_skip: true,
1181
+ type,
1182
+ props,
1183
+ key: props && normalizeKey(props),
1184
+ ref: props && normalizeRef(props),
1185
+ scopeId: currentScopeId,
1186
+ slotScopeIds: null,
1187
+ children,
1188
+ component: null,
1189
+ suspense: null,
1190
+ ssContent: null,
1191
+ ssFallback: null,
1192
+ dirs: null,
1193
+ transition: null,
1194
+ el: null,
1195
+ anchor: null,
1196
+ target: null,
1197
+ targetStart: null,
1198
+ targetAnchor: null,
1199
+ staticCount: 0,
1200
+ shapeFlag,
1201
+ patchFlag,
1202
+ dynamicProps,
1203
+ dynamicChildren: null,
1204
+ appContext: null,
1205
+ ctx: currentRenderingInstance
1206
+ };
1207
+ if (needFullChildrenNormalization) {
1208
+ normalizeChildren(vnode, children);
1209
+ if (shapeFlag & 128) {
1210
+ type.normalize(vnode);
1211
+ }
1212
+ } else if (children) {
1213
+ vnode.shapeFlag |= isString(children) ? 8 : 16;
1214
+ }
1215
+ if (!!(process.env.NODE_ENV !== "production") && vnode.key !== vnode.key) {
1216
+ warn$1(`VNode created with invalid key (NaN). VNode type:`, vnode.type);
1217
+ }
1218
+ return vnode;
1219
+ }
1220
+ const createVNode = !!(process.env.NODE_ENV !== "production") ? createVNodeWithArgsTransform : _createVNode;
1221
+ function _createVNode(type, props = null, children = null, patchFlag = 0, dynamicProps = null, isBlockNode = false) {
1222
+ if (!type || type === NULL_DYNAMIC_COMPONENT) {
1223
+ if (!!(process.env.NODE_ENV !== "production") && !type) {
1224
+ warn$1(`Invalid vnode type when creating vnode: ${type}.`);
1225
+ }
1226
+ type = Comment;
1227
+ }
1228
+ if (isVNode(type)) {
1229
+ const cloned = cloneVNode(
1230
+ type,
1231
+ props,
1232
+ true
1233
+ /* mergeRef: true */
1234
+ );
1235
+ if (children) {
1236
+ normalizeChildren(cloned, children);
1237
+ }
1238
+ cloned.patchFlag = -2;
1239
+ return cloned;
1240
+ }
1241
+ if (isClassComponent(type)) {
1242
+ type = type.__vccOpts;
1243
+ }
1244
+ if (props) {
1245
+ props = guardReactiveProps(props);
1246
+ let { class: klass, style } = props;
1247
+ if (klass && !isString(klass)) {
1248
+ props.class = normalizeClass(klass);
1249
+ }
1250
+ if (isObject(style)) {
1251
+ if (isProxy(style) && !isArray(style)) {
1252
+ style = extend({}, style);
1253
+ }
1254
+ props.style = normalizeStyle(style);
1255
+ }
1256
+ }
1257
+ const shapeFlag = isString(type) ? 1 : isSuspense(type) ? 128 : isTeleport(type) ? 64 : isObject(type) ? 4 : isFunction(type) ? 2 : 0;
1258
+ if (!!(process.env.NODE_ENV !== "production") && shapeFlag & 4 && isProxy(type)) {
1259
+ type = toRaw(type);
1260
+ warn$1(
1261
+ `Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with \`markRaw\` or using \`shallowRef\` instead of \`ref\`.`,
1262
+ `
1263
+ Component that was made reactive: `,
1264
+ type
1265
+ );
1266
+ }
1267
+ return createBaseVNode(
1268
+ type,
1269
+ props,
1270
+ children,
1271
+ patchFlag,
1272
+ dynamicProps,
1273
+ shapeFlag,
1274
+ isBlockNode,
1275
+ true
1276
+ );
1277
+ }
1278
+ function guardReactiveProps(props) {
1279
+ if (!props) return null;
1280
+ return isProxy(props) || isInternalObject(props) ? extend({}, props) : props;
1281
+ }
1282
+ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false) {
1283
+ const { props, ref, patchFlag, children, transition } = vnode;
1284
+ const mergedProps = extraProps ? mergeProps(props || {}, extraProps) : props;
1285
+ const cloned = {
1286
+ __v_isVNode: true,
1287
+ __v_skip: true,
1288
+ type: vnode.type,
1289
+ props: mergedProps,
1290
+ key: mergedProps && normalizeKey(mergedProps),
1291
+ ref: extraProps && extraProps.ref ? (
1292
+ // #2078 in the case of <component :is="vnode" ref="extra"/>
1293
+ // if the vnode itself already has a ref, cloneVNode will need to merge
1294
+ // the refs so the single vnode can be set on multiple refs
1295
+ mergeRef && ref ? isArray(ref) ? ref.concat(normalizeRef(extraProps)) : [ref, normalizeRef(extraProps)] : normalizeRef(extraProps)
1296
+ ) : ref,
1297
+ scopeId: vnode.scopeId,
1298
+ slotScopeIds: vnode.slotScopeIds,
1299
+ children: !!(process.env.NODE_ENV !== "production") && patchFlag === -1 && isArray(children) ? children.map(deepCloneVNode) : children,
1300
+ target: vnode.target,
1301
+ targetStart: vnode.targetStart,
1302
+ targetAnchor: vnode.targetAnchor,
1303
+ staticCount: vnode.staticCount,
1304
+ shapeFlag: vnode.shapeFlag,
1305
+ // if the vnode is cloned with extra props, we can no longer assume its
1306
+ // existing patch flag to be reliable and need to add the FULL_PROPS flag.
1307
+ // note: preserve flag for fragments since they use the flag for children
1308
+ // fast paths only.
1309
+ patchFlag: extraProps && vnode.type !== Fragment ? patchFlag === -1 ? 16 : patchFlag | 16 : patchFlag,
1310
+ dynamicProps: vnode.dynamicProps,
1311
+ dynamicChildren: vnode.dynamicChildren,
1312
+ appContext: vnode.appContext,
1313
+ dirs: vnode.dirs,
1314
+ transition,
1315
+ // These should technically only be non-null on mounted VNodes. However,
1316
+ // they *should* be copied for kept-alive vnodes. So we just always copy
1317
+ // them since them being non-null during a mount doesn't affect the logic as
1318
+ // they will simply be overwritten.
1319
+ component: vnode.component,
1320
+ suspense: vnode.suspense,
1321
+ ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
1322
+ ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
1323
+ placeholder: vnode.placeholder,
1324
+ el: vnode.el,
1325
+ anchor: vnode.anchor,
1326
+ ctx: vnode.ctx,
1327
+ ce: vnode.ce
1328
+ };
1329
+ if (transition && cloneTransition) {
1330
+ setTransitionHooks(
1331
+ cloned,
1332
+ transition.clone(cloned)
1333
+ );
1334
+ }
1335
+ return cloned;
1336
+ }
1337
+ function deepCloneVNode(vnode) {
1338
+ const cloned = cloneVNode(vnode);
1339
+ if (isArray(vnode.children)) {
1340
+ cloned.children = vnode.children.map(deepCloneVNode);
1341
+ }
1342
+ return cloned;
1343
+ }
1344
+ function createTextVNode(text = " ", flag = 0) {
1345
+ return createVNode(Text, null, text, flag);
1346
+ }
1347
+ function normalizeChildren(vnode, children) {
1348
+ let type = 0;
1349
+ const { shapeFlag } = vnode;
1350
+ if (children == null) {
1351
+ children = null;
1352
+ } else if (isArray(children)) {
1353
+ type = 16;
1354
+ } else if (typeof children === "object") {
1355
+ if (shapeFlag & (1 | 64)) {
1356
+ const slot = children.default;
1357
+ if (slot) {
1358
+ slot._c && (slot._d = false);
1359
+ normalizeChildren(vnode, slot());
1360
+ slot._c && (slot._d = true);
1361
+ }
1362
+ return;
1363
+ } else {
1364
+ type = 32;
1365
+ const slotFlag = children._;
1366
+ if (!slotFlag && !isInternalObject(children)) {
1367
+ children._ctx = currentRenderingInstance;
1368
+ }
1369
+ }
1370
+ } else if (isFunction(children)) {
1371
+ children = { default: children, _ctx: currentRenderingInstance };
1372
+ type = 32;
1373
+ } else {
1374
+ children = String(children);
1375
+ if (shapeFlag & 64) {
1376
+ type = 16;
1377
+ children = [createTextVNode(children)];
1378
+ } else {
1379
+ type = 8;
1380
+ }
1381
+ }
1382
+ vnode.children = children;
1383
+ vnode.shapeFlag |= type;
1384
+ }
1385
+ function mergeProps(...args) {
1386
+ const ret = {};
1387
+ for (let i = 0; i < args.length; i++) {
1388
+ const toMerge = args[i];
1389
+ for (const key in toMerge) {
1390
+ if (key === "class") {
1391
+ if (ret.class !== toMerge.class) {
1392
+ ret.class = normalizeClass([ret.class, toMerge.class]);
1393
+ }
1394
+ } else if (key === "style") {
1395
+ ret.style = normalizeStyle([ret.style, toMerge.style]);
1396
+ } else if (isOn(key)) {
1397
+ const existing = ret[key];
1398
+ const incoming = toMerge[key];
1399
+ if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) {
1400
+ ret[key] = existing ? [].concat(existing, incoming) : incoming;
1401
+ }
1402
+ } else if (key !== "") {
1403
+ ret[key] = toMerge[key];
1404
+ }
1405
+ }
1406
+ }
1407
+ return ret;
1408
+ }
1409
+ {
1410
+ const g = getGlobalThis();
1411
+ const registerGlobalSetter = (key, setter) => {
1412
+ let setters;
1413
+ if (!(setters = g[key])) setters = g[key] = [];
1414
+ setters.push(setter);
1415
+ return (v) => {
1416
+ if (setters.length > 1) setters.forEach((set) => set(v));
1417
+ else setters[0](v);
1418
+ };
1419
+ };
1420
+ registerGlobalSetter(
1421
+ `__VUE_INSTANCE_SETTERS__`,
1422
+ (v) => v
1423
+ );
1424
+ registerGlobalSetter(
1425
+ `__VUE_SSR_SETTERS__`,
1426
+ (v) => v
1427
+ );
1428
+ }
1429
+ !!(process.env.NODE_ENV !== "production") ? {
1430
+ } : {
1431
+ };
1432
+ const classifyRE = /(?:^|[-_])\w/g;
1433
+ const classify = (str) => str.replace(classifyRE, (c) => c.toUpperCase()).replace(/[-_]/g, "");
1434
+ function getComponentName(Component, includeInferred = true) {
1435
+ return isFunction(Component) ? Component.displayName || Component.name : Component.name || includeInferred && Component.__name;
1436
+ }
1437
+ function formatComponentName(instance, Component, isRoot = false) {
1438
+ let name = getComponentName(Component);
1439
+ if (!name && Component.__file) {
1440
+ const match = Component.__file.match(/([^/\\]+)\.\w+$/);
1441
+ if (match) {
1442
+ name = match[1];
1443
+ }
1444
+ }
1445
+ if (!name && instance) {
1446
+ const inferFromRegistry = (registry) => {
1447
+ for (const key in registry) {
1448
+ if (registry[key] === Component) {
1449
+ return key;
1450
+ }
1451
+ }
1452
+ };
1453
+ name = inferFromRegistry(instance.components) || instance.parent && inferFromRegistry(
1454
+ instance.parent.type.components
1455
+ ) || inferFromRegistry(instance.appContext.components);
1456
+ }
1457
+ return name ? classify(name) : isRoot ? `App` : `Anonymous`;
1458
+ }
1459
+ function isClassComponent(value) {
1460
+ return isFunction(value) && "__vccOpts" in value;
1461
+ }
1462
+
1463
+ function initCustomFormatter() {
1464
+ if (!!!(process.env.NODE_ENV !== "production") || typeof window === "undefined") {
1465
+ return;
1466
+ }
1467
+ const vueStyle = { style: "color:#3ba776" };
1468
+ const numberStyle = { style: "color:#1677ff" };
1469
+ const stringStyle = { style: "color:#f5222d" };
1470
+ const keywordStyle = { style: "color:#eb2f96" };
1471
+ const formatter = {
1472
+ __vue_custom_formatter: true,
1473
+ header(obj) {
1474
+ if (!isObject(obj)) {
1475
+ return null;
1476
+ }
1477
+ if (obj.__isVue) {
1478
+ return ["div", vueStyle, `VueInstance`];
1479
+ } else if (isRef(obj)) {
1480
+ const value = obj.value;
1481
+ return [
1482
+ "div",
1483
+ {},
1484
+ ["span", vueStyle, genRefFlag(obj)],
1485
+ "<",
1486
+ formatValue(value),
1487
+ `>`
1488
+ ];
1489
+ } else if (isReactive(obj)) {
1490
+ return [
1491
+ "div",
1492
+ {},
1493
+ ["span", vueStyle, isShallow(obj) ? "ShallowReactive" : "Reactive"],
1494
+ "<",
1495
+ formatValue(obj),
1496
+ `>${isReadonly(obj) ? ` (readonly)` : ``}`
1497
+ ];
1498
+ } else if (isReadonly(obj)) {
1499
+ return [
1500
+ "div",
1501
+ {},
1502
+ ["span", vueStyle, isShallow(obj) ? "ShallowReadonly" : "Readonly"],
1503
+ "<",
1504
+ formatValue(obj),
1505
+ ">"
1506
+ ];
1507
+ }
1508
+ return null;
1509
+ },
1510
+ hasBody(obj) {
1511
+ return obj && obj.__isVue;
1512
+ },
1513
+ body(obj) {
1514
+ if (obj && obj.__isVue) {
1515
+ return [
1516
+ "div",
1517
+ {},
1518
+ ...formatInstance(obj.$)
1519
+ ];
1520
+ }
1521
+ }
1522
+ };
1523
+ function formatInstance(instance) {
1524
+ const blocks = [];
1525
+ if (instance.type.props && instance.props) {
1526
+ blocks.push(createInstanceBlock("props", toRaw(instance.props)));
1527
+ }
1528
+ if (instance.setupState !== EMPTY_OBJ) {
1529
+ blocks.push(createInstanceBlock("setup", instance.setupState));
1530
+ }
1531
+ if (instance.data !== EMPTY_OBJ) {
1532
+ blocks.push(createInstanceBlock("data", toRaw(instance.data)));
1533
+ }
1534
+ const computed = extractKeys(instance, "computed");
1535
+ if (computed) {
1536
+ blocks.push(createInstanceBlock("computed", computed));
1537
+ }
1538
+ const injected = extractKeys(instance, "inject");
1539
+ if (injected) {
1540
+ blocks.push(createInstanceBlock("injected", injected));
1541
+ }
1542
+ blocks.push([
1543
+ "div",
1544
+ {},
1545
+ [
1546
+ "span",
1547
+ {
1548
+ style: keywordStyle.style + ";opacity:0.66"
1549
+ },
1550
+ "$ (internal): "
1551
+ ],
1552
+ ["object", { object: instance }]
1553
+ ]);
1554
+ return blocks;
1555
+ }
1556
+ function createInstanceBlock(type, target) {
1557
+ target = extend({}, target);
1558
+ if (!Object.keys(target).length) {
1559
+ return ["span", {}];
1560
+ }
1561
+ return [
1562
+ "div",
1563
+ { style: "line-height:1.25em;margin-bottom:0.6em" },
1564
+ [
1565
+ "div",
1566
+ {
1567
+ style: "color:#476582"
1568
+ },
1569
+ type
1570
+ ],
1571
+ [
1572
+ "div",
1573
+ {
1574
+ style: "padding-left:1.25em"
1575
+ },
1576
+ ...Object.keys(target).map((key) => {
1577
+ return [
1578
+ "div",
1579
+ {},
1580
+ ["span", keywordStyle, key + ": "],
1581
+ formatValue(target[key], false)
1582
+ ];
1583
+ })
1584
+ ]
1585
+ ];
1586
+ }
1587
+ function formatValue(v, asRaw = true) {
1588
+ if (typeof v === "number") {
1589
+ return ["span", numberStyle, v];
1590
+ } else if (typeof v === "string") {
1591
+ return ["span", stringStyle, JSON.stringify(v)];
1592
+ } else if (typeof v === "boolean") {
1593
+ return ["span", keywordStyle, v];
1594
+ } else if (isObject(v)) {
1595
+ return ["object", { object: asRaw ? toRaw(v) : v }];
1596
+ } else {
1597
+ return ["span", stringStyle, String(v)];
1598
+ }
1599
+ }
1600
+ function extractKeys(instance, type) {
1601
+ const Comp = instance.type;
1602
+ if (isFunction(Comp)) {
1603
+ return;
1604
+ }
1605
+ const extracted = {};
1606
+ for (const key in instance.ctx) {
1607
+ if (isKeyOfType(Comp, key, type)) {
1608
+ extracted[key] = instance.ctx[key];
1609
+ }
1610
+ }
1611
+ return extracted;
1612
+ }
1613
+ function isKeyOfType(Comp, key, type) {
1614
+ const opts = Comp[type];
1615
+ if (isArray(opts) && opts.includes(key) || isObject(opts) && key in opts) {
1616
+ return true;
1617
+ }
1618
+ if (Comp.extends && isKeyOfType(Comp.extends, key, type)) {
1619
+ return true;
1620
+ }
1621
+ if (Comp.mixins && Comp.mixins.some((m) => isKeyOfType(m, key, type))) {
1622
+ return true;
1623
+ }
1624
+ }
1625
+ function genRefFlag(v) {
1626
+ if (isShallow(v)) {
1627
+ return `ShallowRef`;
1628
+ }
1629
+ if (v.effect) {
1630
+ return `ComputedRef`;
1631
+ }
1632
+ return `Ref`;
1633
+ }
1634
+ if (window.devtoolsFormatters) {
1635
+ window.devtoolsFormatters.push(formatter);
1636
+ } else {
1637
+ window.devtoolsFormatters = [formatter];
1638
+ }
1639
+ }
1640
+ !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
1641
+ !!(process.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
1642
+ !!(process.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
1643
+
1644
+ /**
1645
+ * vue v3.5.26
1646
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
1647
+ * @license MIT
1648
+ **/
1649
+
1650
+ function initDev() {
1651
+ {
1652
+ initCustomFormatter();
1653
+ }
1654
+ }
1655
+
1656
+ if (!!(process.env.NODE_ENV !== "production")) {
1657
+ initDev();
1658
+ }
1659
+
1660
+ var react = {exports: {}};
1661
+
1662
+ var react_production = {};
1663
+
1664
+ /**
1665
+ * @license React
1666
+ * react.production.js
1667
+ *
1668
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
1669
+ *
1670
+ * This source code is licensed under the MIT license found in the
1671
+ * LICENSE file in the root directory of this source tree.
1672
+ */
1673
+
1674
+ var hasRequiredReact_production;
1675
+
1676
+ function requireReact_production () {
1677
+ if (hasRequiredReact_production) return react_production;
1678
+ hasRequiredReact_production = 1;
1679
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
1680
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1681
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1682
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1683
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
1684
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1685
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1686
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1687
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1688
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
1689
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1690
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1691
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
1692
+ function getIteratorFn(maybeIterable) {
1693
+ if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
1694
+ maybeIterable =
1695
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
1696
+ maybeIterable["@@iterator"];
1697
+ return "function" === typeof maybeIterable ? maybeIterable : null;
1698
+ }
1699
+ var ReactNoopUpdateQueue = {
1700
+ isMounted: function () {
1701
+ return false;
1702
+ },
1703
+ enqueueForceUpdate: function () {},
1704
+ enqueueReplaceState: function () {},
1705
+ enqueueSetState: function () {}
1706
+ },
1707
+ assign = Object.assign,
1708
+ emptyObject = {};
1709
+ function Component(props, context, updater) {
1710
+ this.props = props;
1711
+ this.context = context;
1712
+ this.refs = emptyObject;
1713
+ this.updater = updater || ReactNoopUpdateQueue;
1714
+ }
1715
+ Component.prototype.isReactComponent = {};
1716
+ Component.prototype.setState = function (partialState, callback) {
1717
+ if (
1718
+ "object" !== typeof partialState &&
1719
+ "function" !== typeof partialState &&
1720
+ null != partialState
1721
+ )
1722
+ throw Error(
1723
+ "takes an object of state variables to update or a function which returns an object of state variables."
1724
+ );
1725
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
1726
+ };
1727
+ Component.prototype.forceUpdate = function (callback) {
1728
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1729
+ };
1730
+ function ComponentDummy() {}
1731
+ ComponentDummy.prototype = Component.prototype;
1732
+ function PureComponent(props, context, updater) {
1733
+ this.props = props;
1734
+ this.context = context;
1735
+ this.refs = emptyObject;
1736
+ this.updater = updater || ReactNoopUpdateQueue;
1737
+ }
1738
+ var pureComponentPrototype = (PureComponent.prototype = new ComponentDummy());
1739
+ pureComponentPrototype.constructor = PureComponent;
1740
+ assign(pureComponentPrototype, Component.prototype);
1741
+ pureComponentPrototype.isPureReactComponent = true;
1742
+ var isArrayImpl = Array.isArray;
1743
+ function noop() {}
1744
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null },
1745
+ hasOwnProperty = Object.prototype.hasOwnProperty;
1746
+ function ReactElement(type, key, props) {
1747
+ var refProp = props.ref;
1748
+ return {
1749
+ $$typeof: REACT_ELEMENT_TYPE,
1750
+ type: type,
1751
+ key: key,
1752
+ ref: void 0 !== refProp ? refProp : null,
1753
+ props: props
1754
+ };
1755
+ }
1756
+ function cloneAndReplaceKey(oldElement, newKey) {
1757
+ return ReactElement(oldElement.type, newKey, oldElement.props);
1758
+ }
1759
+ function isValidElement(object) {
1760
+ return (
1761
+ "object" === typeof object &&
1762
+ null !== object &&
1763
+ object.$$typeof === REACT_ELEMENT_TYPE
1764
+ );
1765
+ }
1766
+ function escape(key) {
1767
+ var escaperLookup = { "=": "=0", ":": "=2" };
1768
+ return (
1769
+ "$" +
1770
+ key.replace(/[=:]/g, function (match) {
1771
+ return escaperLookup[match];
1772
+ })
1773
+ );
1774
+ }
1775
+ var userProvidedKeyEscapeRegex = /\/+/g;
1776
+ function getElementKey(element, index) {
1777
+ return "object" === typeof element && null !== element && null != element.key
1778
+ ? escape("" + element.key)
1779
+ : index.toString(36);
1780
+ }
1781
+ function resolveThenable(thenable) {
1782
+ switch (thenable.status) {
1783
+ case "fulfilled":
1784
+ return thenable.value;
1785
+ case "rejected":
1786
+ throw thenable.reason;
1787
+ default:
1788
+ switch (
1789
+ ("string" === typeof thenable.status
1790
+ ? thenable.then(noop, noop)
1791
+ : ((thenable.status = "pending"),
1792
+ thenable.then(
1793
+ function (fulfilledValue) {
1794
+ "pending" === thenable.status &&
1795
+ ((thenable.status = "fulfilled"),
1796
+ (thenable.value = fulfilledValue));
1797
+ },
1798
+ function (error) {
1799
+ "pending" === thenable.status &&
1800
+ ((thenable.status = "rejected"), (thenable.reason = error));
1801
+ }
1802
+ )),
1803
+ thenable.status)
1804
+ ) {
1805
+ case "fulfilled":
1806
+ return thenable.value;
1807
+ case "rejected":
1808
+ throw thenable.reason;
1809
+ }
1810
+ }
1811
+ throw thenable;
1812
+ }
1813
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
1814
+ var type = typeof children;
1815
+ if ("undefined" === type || "boolean" === type) children = null;
1816
+ var invokeCallback = false;
1817
+ if (null === children) invokeCallback = true;
1818
+ else
1819
+ switch (type) {
1820
+ case "bigint":
1821
+ case "string":
1822
+ case "number":
1823
+ invokeCallback = true;
1824
+ break;
1825
+ case "object":
1826
+ switch (children.$$typeof) {
1827
+ case REACT_ELEMENT_TYPE:
1828
+ case REACT_PORTAL_TYPE:
1829
+ invokeCallback = true;
1830
+ break;
1831
+ case REACT_LAZY_TYPE:
1832
+ return (
1833
+ (invokeCallback = children._init),
1834
+ mapIntoArray(
1835
+ invokeCallback(children._payload),
1836
+ array,
1837
+ escapedPrefix,
1838
+ nameSoFar,
1839
+ callback
1840
+ )
1841
+ );
1842
+ }
1843
+ }
1844
+ if (invokeCallback)
1845
+ return (
1846
+ (callback = callback(children)),
1847
+ (invokeCallback =
1848
+ "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
1849
+ isArrayImpl(callback)
1850
+ ? ((escapedPrefix = ""),
1851
+ null != invokeCallback &&
1852
+ (escapedPrefix =
1853
+ invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
1854
+ mapIntoArray(callback, array, escapedPrefix, "", function (c) {
1855
+ return c;
1856
+ }))
1857
+ : null != callback &&
1858
+ (isValidElement(callback) &&
1859
+ (callback = cloneAndReplaceKey(
1860
+ callback,
1861
+ escapedPrefix +
1862
+ (null == callback.key ||
1863
+ (children && children.key === callback.key)
1864
+ ? ""
1865
+ : ("" + callback.key).replace(
1866
+ userProvidedKeyEscapeRegex,
1867
+ "$&/"
1868
+ ) + "/") +
1869
+ invokeCallback
1870
+ )),
1871
+ array.push(callback)),
1872
+ 1
1873
+ );
1874
+ invokeCallback = 0;
1875
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
1876
+ if (isArrayImpl(children))
1877
+ for (var i = 0; i < children.length; i++)
1878
+ (nameSoFar = children[i]),
1879
+ (type = nextNamePrefix + getElementKey(nameSoFar, i)),
1880
+ (invokeCallback += mapIntoArray(
1881
+ nameSoFar,
1882
+ array,
1883
+ escapedPrefix,
1884
+ type,
1885
+ callback
1886
+ ));
1887
+ else if (((i = getIteratorFn(children)), "function" === typeof i))
1888
+ for (
1889
+ children = i.call(children), i = 0;
1890
+ !(nameSoFar = children.next()).done;
1891
+
1892
+ )
1893
+ (nameSoFar = nameSoFar.value),
1894
+ (type = nextNamePrefix + getElementKey(nameSoFar, i++)),
1895
+ (invokeCallback += mapIntoArray(
1896
+ nameSoFar,
1897
+ array,
1898
+ escapedPrefix,
1899
+ type,
1900
+ callback
1901
+ ));
1902
+ else if ("object" === type) {
1903
+ if ("function" === typeof children.then)
1904
+ return mapIntoArray(
1905
+ resolveThenable(children),
1906
+ array,
1907
+ escapedPrefix,
1908
+ nameSoFar,
1909
+ callback
1910
+ );
1911
+ array = String(children);
1912
+ throw Error(
1913
+ "Objects are not valid as a React child (found: " +
1914
+ ("[object Object]" === array
1915
+ ? "object with keys {" + Object.keys(children).join(", ") + "}"
1916
+ : array) +
1917
+ "). If you meant to render a collection of children, use an array instead."
1918
+ );
1919
+ }
1920
+ return invokeCallback;
1921
+ }
1922
+ function mapChildren(children, func, context) {
1923
+ if (null == children) return children;
1924
+ var result = [],
1925
+ count = 0;
1926
+ mapIntoArray(children, result, "", "", function (child) {
1927
+ return func.call(context, child, count++);
1928
+ });
1929
+ return result;
1930
+ }
1931
+ function lazyInitializer(payload) {
1932
+ if (-1 === payload._status) {
1933
+ var ctor = payload._result;
1934
+ ctor = ctor();
1935
+ ctor.then(
1936
+ function (moduleObject) {
1937
+ if (0 === payload._status || -1 === payload._status)
1938
+ (payload._status = 1), (payload._result = moduleObject);
1939
+ },
1940
+ function (error) {
1941
+ if (0 === payload._status || -1 === payload._status)
1942
+ (payload._status = 2), (payload._result = error);
1943
+ }
1944
+ );
1945
+ -1 === payload._status && ((payload._status = 0), (payload._result = ctor));
1946
+ }
1947
+ if (1 === payload._status) return payload._result.default;
1948
+ throw payload._result;
1949
+ }
1950
+ var reportGlobalError =
1951
+ "function" === typeof reportError
1952
+ ? reportError
1953
+ : function (error) {
1954
+ if (
1955
+ "object" === typeof window &&
1956
+ "function" === typeof window.ErrorEvent
1957
+ ) {
1958
+ var event = new window.ErrorEvent("error", {
1959
+ bubbles: true,
1960
+ cancelable: true,
1961
+ message:
1962
+ "object" === typeof error &&
1963
+ null !== error &&
1964
+ "string" === typeof error.message
1965
+ ? String(error.message)
1966
+ : String(error),
1967
+ error: error
1968
+ });
1969
+ if (!window.dispatchEvent(event)) return;
1970
+ } else if (
1971
+ "object" === typeof process &&
1972
+ "function" === typeof process.emit
1973
+ ) {
1974
+ process.emit("uncaughtException", error);
1975
+ return;
1976
+ }
1977
+ console.error(error);
1978
+ },
1979
+ Children = {
1980
+ map: mapChildren,
1981
+ forEach: function (children, forEachFunc, forEachContext) {
1982
+ mapChildren(
1983
+ children,
1984
+ function () {
1985
+ forEachFunc.apply(this, arguments);
1986
+ },
1987
+ forEachContext
1988
+ );
1989
+ },
1990
+ count: function (children) {
1991
+ var n = 0;
1992
+ mapChildren(children, function () {
1993
+ n++;
1994
+ });
1995
+ return n;
1996
+ },
1997
+ toArray: function (children) {
1998
+ return (
1999
+ mapChildren(children, function (child) {
2000
+ return child;
2001
+ }) || []
2002
+ );
2003
+ },
2004
+ only: function (children) {
2005
+ if (!isValidElement(children))
2006
+ throw Error(
2007
+ "React.Children.only expected to receive a single React element child."
2008
+ );
2009
+ return children;
2010
+ }
2011
+ };
2012
+ react_production.Activity = REACT_ACTIVITY_TYPE;
2013
+ react_production.Children = Children;
2014
+ react_production.Component = Component;
2015
+ react_production.Fragment = REACT_FRAGMENT_TYPE;
2016
+ react_production.Profiler = REACT_PROFILER_TYPE;
2017
+ react_production.PureComponent = PureComponent;
2018
+ react_production.StrictMode = REACT_STRICT_MODE_TYPE;
2019
+ react_production.Suspense = REACT_SUSPENSE_TYPE;
2020
+ react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
2021
+ ReactSharedInternals;
2022
+ react_production.__COMPILER_RUNTIME = {
2023
+ __proto__: null,
2024
+ c: function (size) {
2025
+ return ReactSharedInternals.H.useMemoCache(size);
2026
+ }
2027
+ };
2028
+ react_production.cache = function (fn) {
2029
+ return function () {
2030
+ return fn.apply(null, arguments);
2031
+ };
2032
+ };
2033
+ react_production.cacheSignal = function () {
2034
+ return null;
2035
+ };
2036
+ react_production.cloneElement = function (element, config, children) {
2037
+ if (null === element || void 0 === element)
2038
+ throw Error(
2039
+ "The argument must be a React element, but you passed " + element + "."
2040
+ );
2041
+ var props = assign({}, element.props),
2042
+ key = element.key;
2043
+ if (null != config)
2044
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
2045
+ !hasOwnProperty.call(config, propName) ||
2046
+ "key" === propName ||
2047
+ "__self" === propName ||
2048
+ "__source" === propName ||
2049
+ ("ref" === propName && void 0 === config.ref) ||
2050
+ (props[propName] = config[propName]);
2051
+ var propName = arguments.length - 2;
2052
+ if (1 === propName) props.children = children;
2053
+ else if (1 < propName) {
2054
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
2055
+ childArray[i] = arguments[i + 2];
2056
+ props.children = childArray;
2057
+ }
2058
+ return ReactElement(element.type, key, props);
2059
+ };
2060
+ react_production.createContext = function (defaultValue) {
2061
+ defaultValue = {
2062
+ $$typeof: REACT_CONTEXT_TYPE,
2063
+ _currentValue: defaultValue,
2064
+ _currentValue2: defaultValue,
2065
+ _threadCount: 0,
2066
+ Provider: null,
2067
+ Consumer: null
2068
+ };
2069
+ defaultValue.Provider = defaultValue;
2070
+ defaultValue.Consumer = {
2071
+ $$typeof: REACT_CONSUMER_TYPE,
2072
+ _context: defaultValue
2073
+ };
2074
+ return defaultValue;
2075
+ };
2076
+ react_production.createElement = function (type, config, children) {
2077
+ var propName,
2078
+ props = {},
2079
+ key = null;
2080
+ if (null != config)
2081
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
2082
+ hasOwnProperty.call(config, propName) &&
2083
+ "key" !== propName &&
2084
+ "__self" !== propName &&
2085
+ "__source" !== propName &&
2086
+ (props[propName] = config[propName]);
2087
+ var childrenLength = arguments.length - 2;
2088
+ if (1 === childrenLength) props.children = children;
2089
+ else if (1 < childrenLength) {
2090
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
2091
+ childArray[i] = arguments[i + 2];
2092
+ props.children = childArray;
2093
+ }
2094
+ if (type && type.defaultProps)
2095
+ for (propName in ((childrenLength = type.defaultProps), childrenLength))
2096
+ void 0 === props[propName] &&
2097
+ (props[propName] = childrenLength[propName]);
2098
+ return ReactElement(type, key, props);
2099
+ };
2100
+ react_production.createRef = function () {
2101
+ return { current: null };
2102
+ };
2103
+ react_production.forwardRef = function (render) {
2104
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render: render };
2105
+ };
2106
+ react_production.isValidElement = isValidElement;
2107
+ react_production.lazy = function (ctor) {
2108
+ return {
2109
+ $$typeof: REACT_LAZY_TYPE,
2110
+ _payload: { _status: -1, _result: ctor },
2111
+ _init: lazyInitializer
2112
+ };
2113
+ };
2114
+ react_production.memo = function (type, compare) {
2115
+ return {
2116
+ $$typeof: REACT_MEMO_TYPE,
2117
+ type: type,
2118
+ compare: void 0 === compare ? null : compare
2119
+ };
2120
+ };
2121
+ react_production.startTransition = function (scope) {
2122
+ var prevTransition = ReactSharedInternals.T,
2123
+ currentTransition = {};
2124
+ ReactSharedInternals.T = currentTransition;
2125
+ try {
2126
+ var returnValue = scope(),
2127
+ onStartTransitionFinish = ReactSharedInternals.S;
2128
+ null !== onStartTransitionFinish &&
2129
+ onStartTransitionFinish(currentTransition, returnValue);
2130
+ "object" === typeof returnValue &&
2131
+ null !== returnValue &&
2132
+ "function" === typeof returnValue.then &&
2133
+ returnValue.then(noop, reportGlobalError);
2134
+ } catch (error) {
2135
+ reportGlobalError(error);
2136
+ } finally {
2137
+ null !== prevTransition &&
2138
+ null !== currentTransition.types &&
2139
+ (prevTransition.types = currentTransition.types),
2140
+ (ReactSharedInternals.T = prevTransition);
2141
+ }
2142
+ };
2143
+ react_production.unstable_useCacheRefresh = function () {
2144
+ return ReactSharedInternals.H.useCacheRefresh();
2145
+ };
2146
+ react_production.use = function (usable) {
2147
+ return ReactSharedInternals.H.use(usable);
2148
+ };
2149
+ react_production.useActionState = function (action, initialState, permalink) {
2150
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
2151
+ };
2152
+ react_production.useCallback = function (callback, deps) {
2153
+ return ReactSharedInternals.H.useCallback(callback, deps);
2154
+ };
2155
+ react_production.useContext = function (Context) {
2156
+ return ReactSharedInternals.H.useContext(Context);
2157
+ };
2158
+ react_production.useDebugValue = function () {};
2159
+ react_production.useDeferredValue = function (value, initialValue) {
2160
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
2161
+ };
2162
+ react_production.useEffect = function (create, deps) {
2163
+ return ReactSharedInternals.H.useEffect(create, deps);
2164
+ };
2165
+ react_production.useEffectEvent = function (callback) {
2166
+ return ReactSharedInternals.H.useEffectEvent(callback);
2167
+ };
2168
+ react_production.useId = function () {
2169
+ return ReactSharedInternals.H.useId();
2170
+ };
2171
+ react_production.useImperativeHandle = function (ref, create, deps) {
2172
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
2173
+ };
2174
+ react_production.useInsertionEffect = function (create, deps) {
2175
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
2176
+ };
2177
+ react_production.useLayoutEffect = function (create, deps) {
2178
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
2179
+ };
2180
+ react_production.useMemo = function (create, deps) {
2181
+ return ReactSharedInternals.H.useMemo(create, deps);
2182
+ };
2183
+ react_production.useOptimistic = function (passthrough, reducer) {
2184
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
2185
+ };
2186
+ react_production.useReducer = function (reducer, initialArg, init) {
2187
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
2188
+ };
2189
+ react_production.useRef = function (initialValue) {
2190
+ return ReactSharedInternals.H.useRef(initialValue);
2191
+ };
2192
+ react_production.useState = function (initialState) {
2193
+ return ReactSharedInternals.H.useState(initialState);
2194
+ };
2195
+ react_production.useSyncExternalStore = function (
2196
+ subscribe,
2197
+ getSnapshot,
2198
+ getServerSnapshot
2199
+ ) {
2200
+ return ReactSharedInternals.H.useSyncExternalStore(
2201
+ subscribe,
2202
+ getSnapshot,
2203
+ getServerSnapshot
2204
+ );
2205
+ };
2206
+ react_production.useTransition = function () {
2207
+ return ReactSharedInternals.H.useTransition();
2208
+ };
2209
+ react_production.version = "19.2.3";
2210
+ return react_production;
2211
+ }
2212
+
2213
+ var react_development = {exports: {}};
2214
+
2215
+ /**
2216
+ * @license React
2217
+ * react.development.js
2218
+ *
2219
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2220
+ *
2221
+ * This source code is licensed under the MIT license found in the
2222
+ * LICENSE file in the root directory of this source tree.
2223
+ */
2224
+ react_development.exports;
2225
+
2226
+ var hasRequiredReact_development;
2227
+
2228
+ function requireReact_development () {
2229
+ if (hasRequiredReact_development) return react_development.exports;
2230
+ hasRequiredReact_development = 1;
2231
+ (function (module, exports$1) {
2232
+ "production" !== process.env.NODE_ENV &&
2233
+ (function () {
2234
+ function defineDeprecationWarning(methodName, info) {
2235
+ Object.defineProperty(Component.prototype, methodName, {
2236
+ get: function () {
2237
+ console.warn(
2238
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
2239
+ info[0],
2240
+ info[1]
2241
+ );
2242
+ }
2243
+ });
2244
+ }
2245
+ function getIteratorFn(maybeIterable) {
2246
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
2247
+ return null;
2248
+ maybeIterable =
2249
+ (MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
2250
+ maybeIterable["@@iterator"];
2251
+ return "function" === typeof maybeIterable ? maybeIterable : null;
2252
+ }
2253
+ function warnNoop(publicInstance, callerName) {
2254
+ publicInstance =
2255
+ ((publicInstance = publicInstance.constructor) &&
2256
+ (publicInstance.displayName || publicInstance.name)) ||
2257
+ "ReactClass";
2258
+ var warningKey = publicInstance + "." + callerName;
2259
+ didWarnStateUpdateForUnmountedComponent[warningKey] ||
2260
+ (console.error(
2261
+ "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.",
2262
+ callerName,
2263
+ publicInstance
2264
+ ),
2265
+ (didWarnStateUpdateForUnmountedComponent[warningKey] = true));
2266
+ }
2267
+ function Component(props, context, updater) {
2268
+ this.props = props;
2269
+ this.context = context;
2270
+ this.refs = emptyObject;
2271
+ this.updater = updater || ReactNoopUpdateQueue;
2272
+ }
2273
+ function ComponentDummy() {}
2274
+ function PureComponent(props, context, updater) {
2275
+ this.props = props;
2276
+ this.context = context;
2277
+ this.refs = emptyObject;
2278
+ this.updater = updater || ReactNoopUpdateQueue;
2279
+ }
2280
+ function noop() {}
2281
+ function testStringCoercion(value) {
2282
+ return "" + value;
2283
+ }
2284
+ function checkKeyStringCoercion(value) {
2285
+ try {
2286
+ testStringCoercion(value);
2287
+ var JSCompiler_inline_result = !1;
2288
+ } catch (e) {
2289
+ JSCompiler_inline_result = true;
2290
+ }
2291
+ if (JSCompiler_inline_result) {
2292
+ JSCompiler_inline_result = console;
2293
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
2294
+ var JSCompiler_inline_result$jscomp$0 =
2295
+ ("function" === typeof Symbol &&
2296
+ Symbol.toStringTag &&
2297
+ value[Symbol.toStringTag]) ||
2298
+ value.constructor.name ||
2299
+ "Object";
2300
+ JSCompiler_temp_const.call(
2301
+ JSCompiler_inline_result,
2302
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
2303
+ JSCompiler_inline_result$jscomp$0
2304
+ );
2305
+ return testStringCoercion(value);
2306
+ }
2307
+ }
2308
+ function getComponentNameFromType(type) {
2309
+ if (null == type) return null;
2310
+ if ("function" === typeof type)
2311
+ return type.$$typeof === REACT_CLIENT_REFERENCE
2312
+ ? null
2313
+ : type.displayName || type.name || null;
2314
+ if ("string" === typeof type) return type;
2315
+ switch (type) {
2316
+ case REACT_FRAGMENT_TYPE:
2317
+ return "Fragment";
2318
+ case REACT_PROFILER_TYPE:
2319
+ return "Profiler";
2320
+ case REACT_STRICT_MODE_TYPE:
2321
+ return "StrictMode";
2322
+ case REACT_SUSPENSE_TYPE:
2323
+ return "Suspense";
2324
+ case REACT_SUSPENSE_LIST_TYPE:
2325
+ return "SuspenseList";
2326
+ case REACT_ACTIVITY_TYPE:
2327
+ return "Activity";
2328
+ }
2329
+ if ("object" === typeof type)
2330
+ switch (
2331
+ ("number" === typeof type.tag &&
2332
+ console.error(
2333
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
2334
+ ),
2335
+ type.$$typeof)
2336
+ ) {
2337
+ case REACT_PORTAL_TYPE:
2338
+ return "Portal";
2339
+ case REACT_CONTEXT_TYPE:
2340
+ return type.displayName || "Context";
2341
+ case REACT_CONSUMER_TYPE:
2342
+ return (type._context.displayName || "Context") + ".Consumer";
2343
+ case REACT_FORWARD_REF_TYPE:
2344
+ var innerType = type.render;
2345
+ type = type.displayName;
2346
+ type ||
2347
+ ((type = innerType.displayName || innerType.name || ""),
2348
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
2349
+ return type;
2350
+ case REACT_MEMO_TYPE:
2351
+ return (
2352
+ (innerType = type.displayName || null),
2353
+ null !== innerType
2354
+ ? innerType
2355
+ : getComponentNameFromType(type.type) || "Memo"
2356
+ );
2357
+ case REACT_LAZY_TYPE:
2358
+ innerType = type._payload;
2359
+ type = type._init;
2360
+ try {
2361
+ return getComponentNameFromType(type(innerType));
2362
+ } catch (x) {}
2363
+ }
2364
+ return null;
2365
+ }
2366
+ function getTaskName(type) {
2367
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
2368
+ if (
2369
+ "object" === typeof type &&
2370
+ null !== type &&
2371
+ type.$$typeof === REACT_LAZY_TYPE
2372
+ )
2373
+ return "<...>";
2374
+ try {
2375
+ var name = getComponentNameFromType(type);
2376
+ return name ? "<" + name + ">" : "<...>";
2377
+ } catch (x) {
2378
+ return "<...>";
2379
+ }
2380
+ }
2381
+ function getOwner() {
2382
+ var dispatcher = ReactSharedInternals.A;
2383
+ return null === dispatcher ? null : dispatcher.getOwner();
2384
+ }
2385
+ function UnknownOwner() {
2386
+ return Error("react-stack-top-frame");
2387
+ }
2388
+ function hasValidKey(config) {
2389
+ if (hasOwnProperty.call(config, "key")) {
2390
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
2391
+ if (getter && getter.isReactWarning) return false;
2392
+ }
2393
+ return void 0 !== config.key;
2394
+ }
2395
+ function defineKeyPropWarningGetter(props, displayName) {
2396
+ function warnAboutAccessingKey() {
2397
+ specialPropKeyWarningShown ||
2398
+ ((specialPropKeyWarningShown = true),
2399
+ console.error(
2400
+ "%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)",
2401
+ displayName
2402
+ ));
2403
+ }
2404
+ warnAboutAccessingKey.isReactWarning = true;
2405
+ Object.defineProperty(props, "key", {
2406
+ get: warnAboutAccessingKey,
2407
+ configurable: true
2408
+ });
2409
+ }
2410
+ function elementRefGetterWithDeprecationWarning() {
2411
+ var componentName = getComponentNameFromType(this.type);
2412
+ didWarnAboutElementRef[componentName] ||
2413
+ ((didWarnAboutElementRef[componentName] = true),
2414
+ console.error(
2415
+ "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."
2416
+ ));
2417
+ componentName = this.props.ref;
2418
+ return void 0 !== componentName ? componentName : null;
2419
+ }
2420
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
2421
+ var refProp = props.ref;
2422
+ type = {
2423
+ $$typeof: REACT_ELEMENT_TYPE,
2424
+ type: type,
2425
+ key: key,
2426
+ props: props,
2427
+ _owner: owner
2428
+ };
2429
+ null !== (void 0 !== refProp ? refProp : null)
2430
+ ? Object.defineProperty(type, "ref", {
2431
+ enumerable: false,
2432
+ get: elementRefGetterWithDeprecationWarning
2433
+ })
2434
+ : Object.defineProperty(type, "ref", { enumerable: false, value: null });
2435
+ type._store = {};
2436
+ Object.defineProperty(type._store, "validated", {
2437
+ configurable: false,
2438
+ enumerable: false,
2439
+ writable: true,
2440
+ value: 0
2441
+ });
2442
+ Object.defineProperty(type, "_debugInfo", {
2443
+ configurable: false,
2444
+ enumerable: false,
2445
+ writable: true,
2446
+ value: null
2447
+ });
2448
+ Object.defineProperty(type, "_debugStack", {
2449
+ configurable: false,
2450
+ enumerable: false,
2451
+ writable: true,
2452
+ value: debugStack
2453
+ });
2454
+ Object.defineProperty(type, "_debugTask", {
2455
+ configurable: false,
2456
+ enumerable: false,
2457
+ writable: true,
2458
+ value: debugTask
2459
+ });
2460
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
2461
+ return type;
2462
+ }
2463
+ function cloneAndReplaceKey(oldElement, newKey) {
2464
+ newKey = ReactElement(
2465
+ oldElement.type,
2466
+ newKey,
2467
+ oldElement.props,
2468
+ oldElement._owner,
2469
+ oldElement._debugStack,
2470
+ oldElement._debugTask
2471
+ );
2472
+ oldElement._store &&
2473
+ (newKey._store.validated = oldElement._store.validated);
2474
+ return newKey;
2475
+ }
2476
+ function validateChildKeys(node) {
2477
+ isValidElement(node)
2478
+ ? node._store && (node._store.validated = 1)
2479
+ : "object" === typeof node &&
2480
+ null !== node &&
2481
+ node.$$typeof === REACT_LAZY_TYPE &&
2482
+ ("fulfilled" === node._payload.status
2483
+ ? isValidElement(node._payload.value) &&
2484
+ node._payload.value._store &&
2485
+ (node._payload.value._store.validated = 1)
2486
+ : node._store && (node._store.validated = 1));
2487
+ }
2488
+ function isValidElement(object) {
2489
+ return (
2490
+ "object" === typeof object &&
2491
+ null !== object &&
2492
+ object.$$typeof === REACT_ELEMENT_TYPE
2493
+ );
2494
+ }
2495
+ function escape(key) {
2496
+ var escaperLookup = { "=": "=0", ":": "=2" };
2497
+ return (
2498
+ "$" +
2499
+ key.replace(/[=:]/g, function (match) {
2500
+ return escaperLookup[match];
2501
+ })
2502
+ );
2503
+ }
2504
+ function getElementKey(element, index) {
2505
+ return "object" === typeof element &&
2506
+ null !== element &&
2507
+ null != element.key
2508
+ ? (checkKeyStringCoercion(element.key), escape("" + element.key))
2509
+ : index.toString(36);
2510
+ }
2511
+ function resolveThenable(thenable) {
2512
+ switch (thenable.status) {
2513
+ case "fulfilled":
2514
+ return thenable.value;
2515
+ case "rejected":
2516
+ throw thenable.reason;
2517
+ default:
2518
+ switch (
2519
+ ("string" === typeof thenable.status
2520
+ ? thenable.then(noop, noop)
2521
+ : ((thenable.status = "pending"),
2522
+ thenable.then(
2523
+ function (fulfilledValue) {
2524
+ "pending" === thenable.status &&
2525
+ ((thenable.status = "fulfilled"),
2526
+ (thenable.value = fulfilledValue));
2527
+ },
2528
+ function (error) {
2529
+ "pending" === thenable.status &&
2530
+ ((thenable.status = "rejected"),
2531
+ (thenable.reason = error));
2532
+ }
2533
+ )),
2534
+ thenable.status)
2535
+ ) {
2536
+ case "fulfilled":
2537
+ return thenable.value;
2538
+ case "rejected":
2539
+ throw thenable.reason;
2540
+ }
2541
+ }
2542
+ throw thenable;
2543
+ }
2544
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
2545
+ var type = typeof children;
2546
+ if ("undefined" === type || "boolean" === type) children = null;
2547
+ var invokeCallback = false;
2548
+ if (null === children) invokeCallback = true;
2549
+ else
2550
+ switch (type) {
2551
+ case "bigint":
2552
+ case "string":
2553
+ case "number":
2554
+ invokeCallback = true;
2555
+ break;
2556
+ case "object":
2557
+ switch (children.$$typeof) {
2558
+ case REACT_ELEMENT_TYPE:
2559
+ case REACT_PORTAL_TYPE:
2560
+ invokeCallback = true;
2561
+ break;
2562
+ case REACT_LAZY_TYPE:
2563
+ return (
2564
+ (invokeCallback = children._init),
2565
+ mapIntoArray(
2566
+ invokeCallback(children._payload),
2567
+ array,
2568
+ escapedPrefix,
2569
+ nameSoFar,
2570
+ callback
2571
+ )
2572
+ );
2573
+ }
2574
+ }
2575
+ if (invokeCallback) {
2576
+ invokeCallback = children;
2577
+ callback = callback(invokeCallback);
2578
+ var childKey =
2579
+ "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
2580
+ isArrayImpl(callback)
2581
+ ? ((escapedPrefix = ""),
2582
+ null != childKey &&
2583
+ (escapedPrefix =
2584
+ childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"),
2585
+ mapIntoArray(callback, array, escapedPrefix, "", function (c) {
2586
+ return c;
2587
+ }))
2588
+ : null != callback &&
2589
+ (isValidElement(callback) &&
2590
+ (null != callback.key &&
2591
+ ((invokeCallback && invokeCallback.key === callback.key) ||
2592
+ checkKeyStringCoercion(callback.key)),
2593
+ (escapedPrefix = cloneAndReplaceKey(
2594
+ callback,
2595
+ escapedPrefix +
2596
+ (null == callback.key ||
2597
+ (invokeCallback && invokeCallback.key === callback.key)
2598
+ ? ""
2599
+ : ("" + callback.key).replace(
2600
+ userProvidedKeyEscapeRegex,
2601
+ "$&/"
2602
+ ) + "/") +
2603
+ childKey
2604
+ )),
2605
+ "" !== nameSoFar &&
2606
+ null != invokeCallback &&
2607
+ isValidElement(invokeCallback) &&
2608
+ null == invokeCallback.key &&
2609
+ invokeCallback._store &&
2610
+ !invokeCallback._store.validated &&
2611
+ (escapedPrefix._store.validated = 2),
2612
+ (callback = escapedPrefix)),
2613
+ array.push(callback));
2614
+ return 1;
2615
+ }
2616
+ invokeCallback = 0;
2617
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
2618
+ if (isArrayImpl(children))
2619
+ for (var i = 0; i < children.length; i++)
2620
+ (nameSoFar = children[i]),
2621
+ (type = childKey + getElementKey(nameSoFar, i)),
2622
+ (invokeCallback += mapIntoArray(
2623
+ nameSoFar,
2624
+ array,
2625
+ escapedPrefix,
2626
+ type,
2627
+ callback
2628
+ ));
2629
+ else if (((i = getIteratorFn(children)), "function" === typeof i))
2630
+ for (
2631
+ i === children.entries &&
2632
+ (didWarnAboutMaps ||
2633
+ console.warn(
2634
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
2635
+ ),
2636
+ (didWarnAboutMaps = true)),
2637
+ children = i.call(children),
2638
+ i = 0;
2639
+ !(nameSoFar = children.next()).done;
2640
+
2641
+ )
2642
+ (nameSoFar = nameSoFar.value),
2643
+ (type = childKey + getElementKey(nameSoFar, i++)),
2644
+ (invokeCallback += mapIntoArray(
2645
+ nameSoFar,
2646
+ array,
2647
+ escapedPrefix,
2648
+ type,
2649
+ callback
2650
+ ));
2651
+ else if ("object" === type) {
2652
+ if ("function" === typeof children.then)
2653
+ return mapIntoArray(
2654
+ resolveThenable(children),
2655
+ array,
2656
+ escapedPrefix,
2657
+ nameSoFar,
2658
+ callback
2659
+ );
2660
+ array = String(children);
2661
+ throw Error(
2662
+ "Objects are not valid as a React child (found: " +
2663
+ ("[object Object]" === array
2664
+ ? "object with keys {" + Object.keys(children).join(", ") + "}"
2665
+ : array) +
2666
+ "). If you meant to render a collection of children, use an array instead."
2667
+ );
2668
+ }
2669
+ return invokeCallback;
2670
+ }
2671
+ function mapChildren(children, func, context) {
2672
+ if (null == children) return children;
2673
+ var result = [],
2674
+ count = 0;
2675
+ mapIntoArray(children, result, "", "", function (child) {
2676
+ return func.call(context, child, count++);
2677
+ });
2678
+ return result;
2679
+ }
2680
+ function lazyInitializer(payload) {
2681
+ if (-1 === payload._status) {
2682
+ var ioInfo = payload._ioInfo;
2683
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
2684
+ ioInfo = payload._result;
2685
+ var thenable = ioInfo();
2686
+ thenable.then(
2687
+ function (moduleObject) {
2688
+ if (0 === payload._status || -1 === payload._status) {
2689
+ payload._status = 1;
2690
+ payload._result = moduleObject;
2691
+ var _ioInfo = payload._ioInfo;
2692
+ null != _ioInfo && (_ioInfo.end = performance.now());
2693
+ void 0 === thenable.status &&
2694
+ ((thenable.status = "fulfilled"),
2695
+ (thenable.value = moduleObject));
2696
+ }
2697
+ },
2698
+ function (error) {
2699
+ if (0 === payload._status || -1 === payload._status) {
2700
+ payload._status = 2;
2701
+ payload._result = error;
2702
+ var _ioInfo2 = payload._ioInfo;
2703
+ null != _ioInfo2 && (_ioInfo2.end = performance.now());
2704
+ void 0 === thenable.status &&
2705
+ ((thenable.status = "rejected"), (thenable.reason = error));
2706
+ }
2707
+ }
2708
+ );
2709
+ ioInfo = payload._ioInfo;
2710
+ if (null != ioInfo) {
2711
+ ioInfo.value = thenable;
2712
+ var displayName = thenable.displayName;
2713
+ "string" === typeof displayName && (ioInfo.name = displayName);
2714
+ }
2715
+ -1 === payload._status &&
2716
+ ((payload._status = 0), (payload._result = thenable));
2717
+ }
2718
+ if (1 === payload._status)
2719
+ return (
2720
+ (ioInfo = payload._result),
2721
+ void 0 === ioInfo &&
2722
+ console.error(
2723
+ "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?",
2724
+ ioInfo
2725
+ ),
2726
+ "default" in ioInfo ||
2727
+ console.error(
2728
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
2729
+ ioInfo
2730
+ ),
2731
+ ioInfo.default
2732
+ );
2733
+ throw payload._result;
2734
+ }
2735
+ function resolveDispatcher() {
2736
+ var dispatcher = ReactSharedInternals.H;
2737
+ null === dispatcher &&
2738
+ console.error(
2739
+ "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."
2740
+ );
2741
+ return dispatcher;
2742
+ }
2743
+ function releaseAsyncTransition() {
2744
+ ReactSharedInternals.asyncTransitions--;
2745
+ }
2746
+ function enqueueTask(task) {
2747
+ if (null === enqueueTaskImpl)
2748
+ try {
2749
+ var requireString = ("require" + Math.random()).slice(0, 7);
2750
+ enqueueTaskImpl = (module && module[requireString]).call(
2751
+ module,
2752
+ "timers"
2753
+ ).setImmediate;
2754
+ } catch (_err) {
2755
+ enqueueTaskImpl = function (callback) {
2756
+ false === didWarnAboutMessageChannel &&
2757
+ ((didWarnAboutMessageChannel = true),
2758
+ "undefined" === typeof MessageChannel &&
2759
+ console.error(
2760
+ "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."
2761
+ ));
2762
+ var channel = new MessageChannel();
2763
+ channel.port1.onmessage = callback;
2764
+ channel.port2.postMessage(void 0);
2765
+ };
2766
+ }
2767
+ return enqueueTaskImpl(task);
2768
+ }
2769
+ function aggregateErrors(errors) {
2770
+ return 1 < errors.length && "function" === typeof AggregateError
2771
+ ? new AggregateError(errors)
2772
+ : errors[0];
2773
+ }
2774
+ function popActScope(prevActQueue, prevActScopeDepth) {
2775
+ prevActScopeDepth !== actScopeDepth - 1 &&
2776
+ console.error(
2777
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
2778
+ );
2779
+ actScopeDepth = prevActScopeDepth;
2780
+ }
2781
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
2782
+ var queue = ReactSharedInternals.actQueue;
2783
+ if (null !== queue)
2784
+ if (0 !== queue.length)
2785
+ try {
2786
+ flushActQueue(queue);
2787
+ enqueueTask(function () {
2788
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
2789
+ });
2790
+ return;
2791
+ } catch (error) {
2792
+ ReactSharedInternals.thrownErrors.push(error);
2793
+ }
2794
+ else ReactSharedInternals.actQueue = null;
2795
+ 0 < ReactSharedInternals.thrownErrors.length
2796
+ ? ((queue = aggregateErrors(ReactSharedInternals.thrownErrors)),
2797
+ (ReactSharedInternals.thrownErrors.length = 0),
2798
+ reject(queue))
2799
+ : resolve(returnValue);
2800
+ }
2801
+ function flushActQueue(queue) {
2802
+ if (!isFlushing) {
2803
+ isFlushing = true;
2804
+ var i = 0;
2805
+ try {
2806
+ for (; i < queue.length; i++) {
2807
+ var callback = queue[i];
2808
+ do {
2809
+ ReactSharedInternals.didUsePromise = !1;
2810
+ var continuation = callback(!1);
2811
+ if (null !== continuation) {
2812
+ if (ReactSharedInternals.didUsePromise) {
2813
+ queue[i] = callback;
2814
+ queue.splice(0, i);
2815
+ return;
2816
+ }
2817
+ callback = continuation;
2818
+ } else break;
2819
+ } while (1);
2820
+ }
2821
+ queue.length = 0;
2822
+ } catch (error) {
2823
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
2824
+ } finally {
2825
+ isFlushing = false;
2826
+ }
2827
+ }
2828
+ }
2829
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2830
+ "function" ===
2831
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart &&
2832
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
2833
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
2834
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
2835
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
2836
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
2837
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
2838
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2839
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
2840
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
2841
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
2842
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
2843
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
2844
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2845
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
2846
+ MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
2847
+ didWarnStateUpdateForUnmountedComponent = {},
2848
+ ReactNoopUpdateQueue = {
2849
+ isMounted: function () {
2850
+ return false;
2851
+ },
2852
+ enqueueForceUpdate: function (publicInstance) {
2853
+ warnNoop(publicInstance, "forceUpdate");
2854
+ },
2855
+ enqueueReplaceState: function (publicInstance) {
2856
+ warnNoop(publicInstance, "replaceState");
2857
+ },
2858
+ enqueueSetState: function (publicInstance) {
2859
+ warnNoop(publicInstance, "setState");
2860
+ }
2861
+ },
2862
+ assign = Object.assign,
2863
+ emptyObject = {};
2864
+ Object.freeze(emptyObject);
2865
+ Component.prototype.isReactComponent = {};
2866
+ Component.prototype.setState = function (partialState, callback) {
2867
+ if (
2868
+ "object" !== typeof partialState &&
2869
+ "function" !== typeof partialState &&
2870
+ null != partialState
2871
+ )
2872
+ throw Error(
2873
+ "takes an object of state variables to update or a function which returns an object of state variables."
2874
+ );
2875
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
2876
+ };
2877
+ Component.prototype.forceUpdate = function (callback) {
2878
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
2879
+ };
2880
+ var deprecatedAPIs = {
2881
+ isMounted: [
2882
+ "isMounted",
2883
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
2884
+ ],
2885
+ replaceState: [
2886
+ "replaceState",
2887
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
2888
+ ]
2889
+ };
2890
+ for (fnName in deprecatedAPIs)
2891
+ deprecatedAPIs.hasOwnProperty(fnName) &&
2892
+ defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
2893
+ ComponentDummy.prototype = Component.prototype;
2894
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
2895
+ deprecatedAPIs.constructor = PureComponent;
2896
+ assign(deprecatedAPIs, Component.prototype);
2897
+ deprecatedAPIs.isPureReactComponent = true;
2898
+ var isArrayImpl = Array.isArray,
2899
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2900
+ ReactSharedInternals = {
2901
+ H: null,
2902
+ A: null,
2903
+ T: null,
2904
+ S: null,
2905
+ actQueue: null,
2906
+ asyncTransitions: 0,
2907
+ isBatchingLegacy: false,
2908
+ didScheduleLegacyUpdate: false,
2909
+ didUsePromise: false,
2910
+ thrownErrors: [],
2911
+ getCurrentStack: null,
2912
+ recentlyCreatedOwnerStacks: 0
2913
+ },
2914
+ hasOwnProperty = Object.prototype.hasOwnProperty,
2915
+ createTask = console.createTask
2916
+ ? console.createTask
2917
+ : function () {
2918
+ return null;
2919
+ };
2920
+ deprecatedAPIs = {
2921
+ react_stack_bottom_frame: function (callStackForError) {
2922
+ return callStackForError();
2923
+ }
2924
+ };
2925
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
2926
+ var didWarnAboutElementRef = {};
2927
+ var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
2928
+ deprecatedAPIs,
2929
+ UnknownOwner
2930
+ )();
2931
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
2932
+ var didWarnAboutMaps = false,
2933
+ userProvidedKeyEscapeRegex = /\/+/g,
2934
+ reportGlobalError =
2935
+ "function" === typeof reportError
2936
+ ? reportError
2937
+ : function (error) {
2938
+ if (
2939
+ "object" === typeof window &&
2940
+ "function" === typeof window.ErrorEvent
2941
+ ) {
2942
+ var event = new window.ErrorEvent("error", {
2943
+ bubbles: true,
2944
+ cancelable: true,
2945
+ message:
2946
+ "object" === typeof error &&
2947
+ null !== error &&
2948
+ "string" === typeof error.message
2949
+ ? String(error.message)
2950
+ : String(error),
2951
+ error: error
2952
+ });
2953
+ if (!window.dispatchEvent(event)) return;
2954
+ } else if (
2955
+ "object" === typeof process &&
2956
+ "function" === typeof process.emit
2957
+ ) {
2958
+ process.emit("uncaughtException", error);
2959
+ return;
2960
+ }
2961
+ console.error(error);
2962
+ },
2963
+ didWarnAboutMessageChannel = false,
2964
+ enqueueTaskImpl = null,
2965
+ actScopeDepth = 0,
2966
+ didWarnNoAwaitAct = false,
2967
+ isFlushing = false,
2968
+ queueSeveralMicrotasks =
2969
+ "function" === typeof queueMicrotask
2970
+ ? function (callback) {
2971
+ queueMicrotask(function () {
2972
+ return queueMicrotask(callback);
2973
+ });
2974
+ }
2975
+ : enqueueTask;
2976
+ deprecatedAPIs = Object.freeze({
2977
+ __proto__: null,
2978
+ c: function (size) {
2979
+ return resolveDispatcher().useMemoCache(size);
2980
+ }
2981
+ });
2982
+ var fnName = {
2983
+ map: mapChildren,
2984
+ forEach: function (children, forEachFunc, forEachContext) {
2985
+ mapChildren(
2986
+ children,
2987
+ function () {
2988
+ forEachFunc.apply(this, arguments);
2989
+ },
2990
+ forEachContext
2991
+ );
2992
+ },
2993
+ count: function (children) {
2994
+ var n = 0;
2995
+ mapChildren(children, function () {
2996
+ n++;
2997
+ });
2998
+ return n;
2999
+ },
3000
+ toArray: function (children) {
3001
+ return (
3002
+ mapChildren(children, function (child) {
3003
+ return child;
3004
+ }) || []
3005
+ );
3006
+ },
3007
+ only: function (children) {
3008
+ if (!isValidElement(children))
3009
+ throw Error(
3010
+ "React.Children.only expected to receive a single React element child."
3011
+ );
3012
+ return children;
3013
+ }
3014
+ };
3015
+ exports$1.Activity = REACT_ACTIVITY_TYPE;
3016
+ exports$1.Children = fnName;
3017
+ exports$1.Component = Component;
3018
+ exports$1.Fragment = REACT_FRAGMENT_TYPE;
3019
+ exports$1.Profiler = REACT_PROFILER_TYPE;
3020
+ exports$1.PureComponent = PureComponent;
3021
+ exports$1.StrictMode = REACT_STRICT_MODE_TYPE;
3022
+ exports$1.Suspense = REACT_SUSPENSE_TYPE;
3023
+ exports$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
3024
+ ReactSharedInternals;
3025
+ exports$1.__COMPILER_RUNTIME = deprecatedAPIs;
3026
+ exports$1.act = function (callback) {
3027
+ var prevActQueue = ReactSharedInternals.actQueue,
3028
+ prevActScopeDepth = actScopeDepth;
3029
+ actScopeDepth++;
3030
+ var queue = (ReactSharedInternals.actQueue =
3031
+ null !== prevActQueue ? prevActQueue : []),
3032
+ didAwaitActCall = false;
3033
+ try {
3034
+ var result = callback();
3035
+ } catch (error) {
3036
+ ReactSharedInternals.thrownErrors.push(error);
3037
+ }
3038
+ if (0 < ReactSharedInternals.thrownErrors.length)
3039
+ throw (
3040
+ (popActScope(prevActQueue, prevActScopeDepth),
3041
+ (callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
3042
+ (ReactSharedInternals.thrownErrors.length = 0),
3043
+ callback)
3044
+ );
3045
+ if (
3046
+ null !== result &&
3047
+ "object" === typeof result &&
3048
+ "function" === typeof result.then
3049
+ ) {
3050
+ var thenable = result;
3051
+ queueSeveralMicrotasks(function () {
3052
+ didAwaitActCall ||
3053
+ didWarnNoAwaitAct ||
3054
+ ((didWarnNoAwaitAct = true),
3055
+ console.error(
3056
+ "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 () => ...);"
3057
+ ));
3058
+ });
3059
+ return {
3060
+ then: function (resolve, reject) {
3061
+ didAwaitActCall = true;
3062
+ thenable.then(
3063
+ function (returnValue) {
3064
+ popActScope(prevActQueue, prevActScopeDepth);
3065
+ if (0 === prevActScopeDepth) {
3066
+ try {
3067
+ flushActQueue(queue),
3068
+ enqueueTask(function () {
3069
+ return recursivelyFlushAsyncActWork(
3070
+ returnValue,
3071
+ resolve,
3072
+ reject
3073
+ );
3074
+ });
3075
+ } catch (error$0) {
3076
+ ReactSharedInternals.thrownErrors.push(error$0);
3077
+ }
3078
+ if (0 < ReactSharedInternals.thrownErrors.length) {
3079
+ var _thrownError = aggregateErrors(
3080
+ ReactSharedInternals.thrownErrors
3081
+ );
3082
+ ReactSharedInternals.thrownErrors.length = 0;
3083
+ reject(_thrownError);
3084
+ }
3085
+ } else resolve(returnValue);
3086
+ },
3087
+ function (error) {
3088
+ popActScope(prevActQueue, prevActScopeDepth);
3089
+ 0 < ReactSharedInternals.thrownErrors.length
3090
+ ? ((error = aggregateErrors(
3091
+ ReactSharedInternals.thrownErrors
3092
+ )),
3093
+ (ReactSharedInternals.thrownErrors.length = 0),
3094
+ reject(error))
3095
+ : reject(error);
3096
+ }
3097
+ );
3098
+ }
3099
+ };
3100
+ }
3101
+ var returnValue$jscomp$0 = result;
3102
+ popActScope(prevActQueue, prevActScopeDepth);
3103
+ 0 === prevActScopeDepth &&
3104
+ (flushActQueue(queue),
3105
+ 0 !== queue.length &&
3106
+ queueSeveralMicrotasks(function () {
3107
+ didAwaitActCall ||
3108
+ didWarnNoAwaitAct ||
3109
+ ((didWarnNoAwaitAct = true),
3110
+ console.error(
3111
+ "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(() => ...)"
3112
+ ));
3113
+ }),
3114
+ (ReactSharedInternals.actQueue = null));
3115
+ if (0 < ReactSharedInternals.thrownErrors.length)
3116
+ throw (
3117
+ ((callback = aggregateErrors(ReactSharedInternals.thrownErrors)),
3118
+ (ReactSharedInternals.thrownErrors.length = 0),
3119
+ callback)
3120
+ );
3121
+ return {
3122
+ then: function (resolve, reject) {
3123
+ didAwaitActCall = true;
3124
+ 0 === prevActScopeDepth
3125
+ ? ((ReactSharedInternals.actQueue = queue),
3126
+ enqueueTask(function () {
3127
+ return recursivelyFlushAsyncActWork(
3128
+ returnValue$jscomp$0,
3129
+ resolve,
3130
+ reject
3131
+ );
3132
+ }))
3133
+ : resolve(returnValue$jscomp$0);
3134
+ }
3135
+ };
3136
+ };
3137
+ exports$1.cache = function (fn) {
3138
+ return function () {
3139
+ return fn.apply(null, arguments);
3140
+ };
3141
+ };
3142
+ exports$1.cacheSignal = function () {
3143
+ return null;
3144
+ };
3145
+ exports$1.captureOwnerStack = function () {
3146
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
3147
+ return null === getCurrentStack ? null : getCurrentStack();
3148
+ };
3149
+ exports$1.cloneElement = function (element, config, children) {
3150
+ if (null === element || void 0 === element)
3151
+ throw Error(
3152
+ "The argument must be a React element, but you passed " +
3153
+ element +
3154
+ "."
3155
+ );
3156
+ var props = assign({}, element.props),
3157
+ key = element.key,
3158
+ owner = element._owner;
3159
+ if (null != config) {
3160
+ var JSCompiler_inline_result;
3161
+ a: {
3162
+ if (
3163
+ hasOwnProperty.call(config, "ref") &&
3164
+ (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
3165
+ config,
3166
+ "ref"
3167
+ ).get) &&
3168
+ JSCompiler_inline_result.isReactWarning
3169
+ ) {
3170
+ JSCompiler_inline_result = false;
3171
+ break a;
3172
+ }
3173
+ JSCompiler_inline_result = void 0 !== config.ref;
3174
+ }
3175
+ JSCompiler_inline_result && (owner = getOwner());
3176
+ hasValidKey(config) &&
3177
+ (checkKeyStringCoercion(config.key), (key = "" + config.key));
3178
+ for (propName in config)
3179
+ !hasOwnProperty.call(config, propName) ||
3180
+ "key" === propName ||
3181
+ "__self" === propName ||
3182
+ "__source" === propName ||
3183
+ ("ref" === propName && void 0 === config.ref) ||
3184
+ (props[propName] = config[propName]);
3185
+ }
3186
+ var propName = arguments.length - 2;
3187
+ if (1 === propName) props.children = children;
3188
+ else if (1 < propName) {
3189
+ JSCompiler_inline_result = Array(propName);
3190
+ for (var i = 0; i < propName; i++)
3191
+ JSCompiler_inline_result[i] = arguments[i + 2];
3192
+ props.children = JSCompiler_inline_result;
3193
+ }
3194
+ props = ReactElement(
3195
+ element.type,
3196
+ key,
3197
+ props,
3198
+ owner,
3199
+ element._debugStack,
3200
+ element._debugTask
3201
+ );
3202
+ for (key = 2; key < arguments.length; key++)
3203
+ validateChildKeys(arguments[key]);
3204
+ return props;
3205
+ };
3206
+ exports$1.createContext = function (defaultValue) {
3207
+ defaultValue = {
3208
+ $$typeof: REACT_CONTEXT_TYPE,
3209
+ _currentValue: defaultValue,
3210
+ _currentValue2: defaultValue,
3211
+ _threadCount: 0,
3212
+ Provider: null,
3213
+ Consumer: null
3214
+ };
3215
+ defaultValue.Provider = defaultValue;
3216
+ defaultValue.Consumer = {
3217
+ $$typeof: REACT_CONSUMER_TYPE,
3218
+ _context: defaultValue
3219
+ };
3220
+ defaultValue._currentRenderer = null;
3221
+ defaultValue._currentRenderer2 = null;
3222
+ return defaultValue;
3223
+ };
3224
+ exports$1.createElement = function (type, config, children) {
3225
+ for (var i = 2; i < arguments.length; i++)
3226
+ validateChildKeys(arguments[i]);
3227
+ i = {};
3228
+ var key = null;
3229
+ if (null != config)
3230
+ for (propName in (didWarnAboutOldJSXRuntime ||
3231
+ !("__self" in config) ||
3232
+ "key" in config ||
3233
+ ((didWarnAboutOldJSXRuntime = true),
3234
+ console.warn(
3235
+ "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"
3236
+ )),
3237
+ hasValidKey(config) &&
3238
+ (checkKeyStringCoercion(config.key), (key = "" + config.key)),
3239
+ config))
3240
+ hasOwnProperty.call(config, propName) &&
3241
+ "key" !== propName &&
3242
+ "__self" !== propName &&
3243
+ "__source" !== propName &&
3244
+ (i[propName] = config[propName]);
3245
+ var childrenLength = arguments.length - 2;
3246
+ if (1 === childrenLength) i.children = children;
3247
+ else if (1 < childrenLength) {
3248
+ for (
3249
+ var childArray = Array(childrenLength), _i = 0;
3250
+ _i < childrenLength;
3251
+ _i++
3252
+ )
3253
+ childArray[_i] = arguments[_i + 2];
3254
+ Object.freeze && Object.freeze(childArray);
3255
+ i.children = childArray;
3256
+ }
3257
+ if (type && type.defaultProps)
3258
+ for (propName in ((childrenLength = type.defaultProps), childrenLength))
3259
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
3260
+ key &&
3261
+ defineKeyPropWarningGetter(
3262
+ i,
3263
+ "function" === typeof type
3264
+ ? type.displayName || type.name || "Unknown"
3265
+ : type
3266
+ );
3267
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
3268
+ return ReactElement(
3269
+ type,
3270
+ key,
3271
+ i,
3272
+ getOwner(),
3273
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
3274
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
3275
+ );
3276
+ };
3277
+ exports$1.createRef = function () {
3278
+ var refObject = { current: null };
3279
+ Object.seal(refObject);
3280
+ return refObject;
3281
+ };
3282
+ exports$1.forwardRef = function (render) {
3283
+ null != render && render.$$typeof === REACT_MEMO_TYPE
3284
+ ? console.error(
3285
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
3286
+ )
3287
+ : "function" !== typeof render
3288
+ ? console.error(
3289
+ "forwardRef requires a render function but was given %s.",
3290
+ null === render ? "null" : typeof render
3291
+ )
3292
+ : 0 !== render.length &&
3293
+ 2 !== render.length &&
3294
+ console.error(
3295
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
3296
+ 1 === render.length
3297
+ ? "Did you forget to use the ref parameter?"
3298
+ : "Any additional parameter will be undefined."
3299
+ );
3300
+ null != render &&
3301
+ null != render.defaultProps &&
3302
+ console.error(
3303
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
3304
+ );
3305
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render: render },
3306
+ ownName;
3307
+ Object.defineProperty(elementType, "displayName", {
3308
+ enumerable: false,
3309
+ configurable: true,
3310
+ get: function () {
3311
+ return ownName;
3312
+ },
3313
+ set: function (name) {
3314
+ ownName = name;
3315
+ render.name ||
3316
+ render.displayName ||
3317
+ (Object.defineProperty(render, "name", { value: name }),
3318
+ (render.displayName = name));
3319
+ }
3320
+ });
3321
+ return elementType;
3322
+ };
3323
+ exports$1.isValidElement = isValidElement;
3324
+ exports$1.lazy = function (ctor) {
3325
+ ctor = { _status: -1, _result: ctor };
3326
+ var lazyType = {
3327
+ $$typeof: REACT_LAZY_TYPE,
3328
+ _payload: ctor,
3329
+ _init: lazyInitializer
3330
+ },
3331
+ ioInfo = {
3332
+ name: "lazy",
3333
+ start: -1,
3334
+ end: -1,
3335
+ value: null,
3336
+ owner: null,
3337
+ debugStack: Error("react-stack-top-frame"),
3338
+ debugTask: console.createTask ? console.createTask("lazy()") : null
3339
+ };
3340
+ ctor._ioInfo = ioInfo;
3341
+ lazyType._debugInfo = [{ awaited: ioInfo }];
3342
+ return lazyType;
3343
+ };
3344
+ exports$1.memo = function (type, compare) {
3345
+ null == type &&
3346
+ console.error(
3347
+ "memo: The first argument must be a component. Instead received: %s",
3348
+ null === type ? "null" : typeof type
3349
+ );
3350
+ compare = {
3351
+ $$typeof: REACT_MEMO_TYPE,
3352
+ type: type,
3353
+ compare: void 0 === compare ? null : compare
3354
+ };
3355
+ var ownName;
3356
+ Object.defineProperty(compare, "displayName", {
3357
+ enumerable: false,
3358
+ configurable: true,
3359
+ get: function () {
3360
+ return ownName;
3361
+ },
3362
+ set: function (name) {
3363
+ ownName = name;
3364
+ type.name ||
3365
+ type.displayName ||
3366
+ (Object.defineProperty(type, "name", { value: name }),
3367
+ (type.displayName = name));
3368
+ }
3369
+ });
3370
+ return compare;
3371
+ };
3372
+ exports$1.startTransition = function (scope) {
3373
+ var prevTransition = ReactSharedInternals.T,
3374
+ currentTransition = {};
3375
+ currentTransition._updatedFibers = new Set();
3376
+ ReactSharedInternals.T = currentTransition;
3377
+ try {
3378
+ var returnValue = scope(),
3379
+ onStartTransitionFinish = ReactSharedInternals.S;
3380
+ null !== onStartTransitionFinish &&
3381
+ onStartTransitionFinish(currentTransition, returnValue);
3382
+ "object" === typeof returnValue &&
3383
+ null !== returnValue &&
3384
+ "function" === typeof returnValue.then &&
3385
+ (ReactSharedInternals.asyncTransitions++,
3386
+ returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
3387
+ returnValue.then(noop, reportGlobalError));
3388
+ } catch (error) {
3389
+ reportGlobalError(error);
3390
+ } finally {
3391
+ null === prevTransition &&
3392
+ currentTransition._updatedFibers &&
3393
+ ((scope = currentTransition._updatedFibers.size),
3394
+ currentTransition._updatedFibers.clear(),
3395
+ 10 < scope &&
3396
+ console.warn(
3397
+ "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."
3398
+ )),
3399
+ null !== prevTransition &&
3400
+ null !== currentTransition.types &&
3401
+ (null !== prevTransition.types &&
3402
+ prevTransition.types !== currentTransition.types &&
3403
+ console.error(
3404
+ "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."
3405
+ ),
3406
+ (prevTransition.types = currentTransition.types)),
3407
+ (ReactSharedInternals.T = prevTransition);
3408
+ }
3409
+ };
3410
+ exports$1.unstable_useCacheRefresh = function () {
3411
+ return resolveDispatcher().useCacheRefresh();
3412
+ };
3413
+ exports$1.use = function (usable) {
3414
+ return resolveDispatcher().use(usable);
3415
+ };
3416
+ exports$1.useActionState = function (action, initialState, permalink) {
3417
+ return resolveDispatcher().useActionState(
3418
+ action,
3419
+ initialState,
3420
+ permalink
3421
+ );
3422
+ };
3423
+ exports$1.useCallback = function (callback, deps) {
3424
+ return resolveDispatcher().useCallback(callback, deps);
3425
+ };
3426
+ exports$1.useContext = function (Context) {
3427
+ var dispatcher = resolveDispatcher();
3428
+ Context.$$typeof === REACT_CONSUMER_TYPE &&
3429
+ console.error(
3430
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
3431
+ );
3432
+ return dispatcher.useContext(Context);
3433
+ };
3434
+ exports$1.useDebugValue = function (value, formatterFn) {
3435
+ return resolveDispatcher().useDebugValue(value, formatterFn);
3436
+ };
3437
+ exports$1.useDeferredValue = function (value, initialValue) {
3438
+ return resolveDispatcher().useDeferredValue(value, initialValue);
3439
+ };
3440
+ exports$1.useEffect = function (create, deps) {
3441
+ null == create &&
3442
+ console.warn(
3443
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
3444
+ );
3445
+ return resolveDispatcher().useEffect(create, deps);
3446
+ };
3447
+ exports$1.useEffectEvent = function (callback) {
3448
+ return resolveDispatcher().useEffectEvent(callback);
3449
+ };
3450
+ exports$1.useId = function () {
3451
+ return resolveDispatcher().useId();
3452
+ };
3453
+ exports$1.useImperativeHandle = function (ref, create, deps) {
3454
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
3455
+ };
3456
+ exports$1.useInsertionEffect = function (create, deps) {
3457
+ null == create &&
3458
+ console.warn(
3459
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
3460
+ );
3461
+ return resolveDispatcher().useInsertionEffect(create, deps);
3462
+ };
3463
+ exports$1.useLayoutEffect = function (create, deps) {
3464
+ null == create &&
3465
+ console.warn(
3466
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
3467
+ );
3468
+ return resolveDispatcher().useLayoutEffect(create, deps);
3469
+ };
3470
+ exports$1.useMemo = function (create, deps) {
3471
+ return resolveDispatcher().useMemo(create, deps);
3472
+ };
3473
+ exports$1.useOptimistic = function (passthrough, reducer) {
3474
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
3475
+ };
3476
+ exports$1.useReducer = function (reducer, initialArg, init) {
3477
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
3478
+ };
3479
+ exports$1.useRef = function (initialValue) {
3480
+ return resolveDispatcher().useRef(initialValue);
3481
+ };
3482
+ exports$1.useState = function (initialState) {
3483
+ return resolveDispatcher().useState(initialState);
3484
+ };
3485
+ exports$1.useSyncExternalStore = function (
3486
+ subscribe,
3487
+ getSnapshot,
3488
+ getServerSnapshot
3489
+ ) {
3490
+ return resolveDispatcher().useSyncExternalStore(
3491
+ subscribe,
3492
+ getSnapshot,
3493
+ getServerSnapshot
3494
+ );
3495
+ };
3496
+ exports$1.useTransition = function () {
3497
+ return resolveDispatcher().useTransition();
3498
+ };
3499
+ exports$1.version = "19.2.3";
3500
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
3501
+ "function" ===
3502
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
3503
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
3504
+ })();
3505
+ } (react_development, react_development.exports));
3506
+ return react_development.exports;
3507
+ }
3508
+
3509
+ var hasRequiredReact;
3510
+
3511
+ function requireReact () {
3512
+ if (hasRequiredReact) return react.exports;
3513
+ hasRequiredReact = 1;
3514
+
3515
+ if (process.env.NODE_ENV === 'production') {
3516
+ react.exports = requireReact_production();
3517
+ } else {
3518
+ react.exports = requireReact_development();
3519
+ }
3520
+ return react.exports;
3521
+ }
3522
+
3523
+ var reactExports = requireReact();
3524
+
3525
+ function init(options) {
3526
+ sentry.setOptions({ ...DEFAULT_OPTIONS, ...options });
3527
+ const { dsn } = sentry.options;
3528
+ if (dsn === "") {
3529
+ console.error("[lark-sentry] dsn is empty");
3530
+ return;
3531
+ }
3532
+ setup();
3533
+ }
3534
+ const vuePlugin = (app, options) => {
3535
+ const handler = app.config.errorHandler;
3536
+ app.config.errorHandler = (err, vueInstance, info) => {
3537
+ handleError$1(err);
3538
+ if (handler) {
3539
+ handler.call(null, err, vueInstance, info);
3540
+ }
3541
+ };
3542
+ init(options);
3543
+ };
3544
+ class ReactErrorBoundary extends reactExports.Component {
3545
+ componentDidCatch(error, errorInfo) {
3546
+ handleError$1(error);
3547
+ requestIdleCallback(() => {
3548
+ handleError$1(errorInfo);
3549
+ });
3550
+ }
3551
+ }
3552
+ function use(Plugin, options) {
3553
+ const plugin = new Plugin(options);
3554
+ plugin.init();
3555
+ }
3556
+
3557
+ export { ReactErrorBoundary, init, use, vuePlugin };
3558
+ //# sourceMappingURL=index.js.map