@weaverse/core 5.23.0 → 5.24.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 +1348 -1726
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1339 -1705
- package/dist/index.mjs.map +1 -1
- package/dist/types/core.d.ts +1 -1
- package/dist/types/core.d.ts.map +1 -1
- package/dist/types/utils/event-emitter.d.ts.map +1 -1
- package/package.json +4 -17
package/dist/index.js
CHANGED
|
@@ -1,1736 +1,1358 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
var
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
);
|
|
1152
|
-
})) : resolve(returnValue$jscomp$0);
|
|
1153
|
-
}
|
|
1154
|
-
};
|
|
1155
|
-
};
|
|
1156
|
-
exports2.cache = function(fn) {
|
|
1157
|
-
return function() {
|
|
1158
|
-
return fn.apply(null, arguments);
|
|
1159
|
-
};
|
|
1160
|
-
};
|
|
1161
|
-
exports2.cacheSignal = function() {
|
|
1162
|
-
return null;
|
|
1163
|
-
};
|
|
1164
|
-
exports2.captureOwnerStack = function() {
|
|
1165
|
-
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
1166
|
-
return null === getCurrentStack ? null : getCurrentStack();
|
|
1167
|
-
};
|
|
1168
|
-
exports2.cloneElement = function(element, config, children) {
|
|
1169
|
-
if (null === element || void 0 === element)
|
|
1170
|
-
throw Error(
|
|
1171
|
-
"The argument must be a React element, but you passed " + element + "."
|
|
1172
|
-
);
|
|
1173
|
-
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
1174
|
-
if (null != config) {
|
|
1175
|
-
var JSCompiler_inline_result;
|
|
1176
|
-
a: {
|
|
1177
|
-
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
|
|
1178
|
-
config,
|
|
1179
|
-
"ref"
|
|
1180
|
-
).get) && JSCompiler_inline_result.isReactWarning) {
|
|
1181
|
-
JSCompiler_inline_result = false;
|
|
1182
|
-
break a;
|
|
1183
|
-
}
|
|
1184
|
-
JSCompiler_inline_result = void 0 !== config.ref;
|
|
1185
|
-
}
|
|
1186
|
-
JSCompiler_inline_result && (owner = getOwner());
|
|
1187
|
-
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
1188
|
-
for (propName in config)
|
|
1189
|
-
!hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
1190
|
-
}
|
|
1191
|
-
var propName = arguments.length - 2;
|
|
1192
|
-
if (1 === propName) props.children = children;
|
|
1193
|
-
else if (1 < propName) {
|
|
1194
|
-
JSCompiler_inline_result = Array(propName);
|
|
1195
|
-
for (var i = 0; i < propName; i++)
|
|
1196
|
-
JSCompiler_inline_result[i] = arguments[i + 2];
|
|
1197
|
-
props.children = JSCompiler_inline_result;
|
|
1198
|
-
}
|
|
1199
|
-
props = ReactElement(
|
|
1200
|
-
element.type,
|
|
1201
|
-
key,
|
|
1202
|
-
props,
|
|
1203
|
-
owner,
|
|
1204
|
-
element._debugStack,
|
|
1205
|
-
element._debugTask
|
|
1206
|
-
);
|
|
1207
|
-
for (key = 2; key < arguments.length; key++)
|
|
1208
|
-
validateChildKeys(arguments[key]);
|
|
1209
|
-
return props;
|
|
1210
|
-
};
|
|
1211
|
-
exports2.createContext = function(defaultValue) {
|
|
1212
|
-
defaultValue = {
|
|
1213
|
-
$$typeof: REACT_CONTEXT_TYPE,
|
|
1214
|
-
_currentValue: defaultValue,
|
|
1215
|
-
_currentValue2: defaultValue,
|
|
1216
|
-
_threadCount: 0,
|
|
1217
|
-
Provider: null,
|
|
1218
|
-
Consumer: null
|
|
1219
|
-
};
|
|
1220
|
-
defaultValue.Provider = defaultValue;
|
|
1221
|
-
defaultValue.Consumer = {
|
|
1222
|
-
$$typeof: REACT_CONSUMER_TYPE,
|
|
1223
|
-
_context: defaultValue
|
|
1224
|
-
};
|
|
1225
|
-
defaultValue._currentRenderer = null;
|
|
1226
|
-
defaultValue._currentRenderer2 = null;
|
|
1227
|
-
return defaultValue;
|
|
1228
|
-
};
|
|
1229
|
-
exports2.createElement = function(type, config, children) {
|
|
1230
|
-
for (var i = 2; i < arguments.length; i++)
|
|
1231
|
-
validateChildKeys(arguments[i]);
|
|
1232
|
-
i = {};
|
|
1233
|
-
var key = null;
|
|
1234
|
-
if (null != config)
|
|
1235
|
-
for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
|
|
1236
|
-
"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"
|
|
1237
|
-
)), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config)
|
|
1238
|
-
hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1239
|
-
var childrenLength = arguments.length - 2;
|
|
1240
|
-
if (1 === childrenLength) i.children = children;
|
|
1241
|
-
else if (1 < childrenLength) {
|
|
1242
|
-
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
|
|
1243
|
-
childArray[_i] = arguments[_i + 2];
|
|
1244
|
-
Object.freeze && Object.freeze(childArray);
|
|
1245
|
-
i.children = childArray;
|
|
1246
|
-
}
|
|
1247
|
-
if (type && type.defaultProps)
|
|
1248
|
-
for (propName in childrenLength = type.defaultProps, childrenLength)
|
|
1249
|
-
void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1250
|
-
key && defineKeyPropWarningGetter(
|
|
1251
|
-
i,
|
|
1252
|
-
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
1253
|
-
);
|
|
1254
|
-
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1255
|
-
return ReactElement(
|
|
1256
|
-
type,
|
|
1257
|
-
key,
|
|
1258
|
-
i,
|
|
1259
|
-
getOwner(),
|
|
1260
|
-
propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
1261
|
-
propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
1262
|
-
);
|
|
1263
|
-
};
|
|
1264
|
-
exports2.createRef = function() {
|
|
1265
|
-
var refObject = { current: null };
|
|
1266
|
-
Object.seal(refObject);
|
|
1267
|
-
return refObject;
|
|
1268
|
-
};
|
|
1269
|
-
exports2.forwardRef = function(render) {
|
|
1270
|
-
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
|
|
1271
|
-
"forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
|
|
1272
|
-
) : "function" !== typeof render ? console.error(
|
|
1273
|
-
"forwardRef requires a render function but was given %s.",
|
|
1274
|
-
null === render ? "null" : typeof render
|
|
1275
|
-
) : 0 !== render.length && 2 !== render.length && console.error(
|
|
1276
|
-
"forwardRef render functions accept exactly two parameters: props and ref. %s",
|
|
1277
|
-
1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
|
|
1278
|
-
);
|
|
1279
|
-
null != render && null != render.defaultProps && console.error(
|
|
1280
|
-
"forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
|
|
1281
|
-
);
|
|
1282
|
-
var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
|
|
1283
|
-
Object.defineProperty(elementType, "displayName", {
|
|
1284
|
-
enumerable: false,
|
|
1285
|
-
configurable: true,
|
|
1286
|
-
get: function() {
|
|
1287
|
-
return ownName;
|
|
1288
|
-
},
|
|
1289
|
-
set: function(name) {
|
|
1290
|
-
ownName = name;
|
|
1291
|
-
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1292
|
-
}
|
|
1293
|
-
});
|
|
1294
|
-
return elementType;
|
|
1295
|
-
};
|
|
1296
|
-
exports2.isValidElement = isValidElement;
|
|
1297
|
-
exports2.lazy = function(ctor) {
|
|
1298
|
-
ctor = { _status: -1, _result: ctor };
|
|
1299
|
-
var lazyType = {
|
|
1300
|
-
$$typeof: REACT_LAZY_TYPE,
|
|
1301
|
-
_payload: ctor,
|
|
1302
|
-
_init: lazyInitializer
|
|
1303
|
-
}, ioInfo = {
|
|
1304
|
-
name: "lazy",
|
|
1305
|
-
start: -1,
|
|
1306
|
-
end: -1,
|
|
1307
|
-
value: null,
|
|
1308
|
-
owner: null,
|
|
1309
|
-
debugStack: Error("react-stack-top-frame"),
|
|
1310
|
-
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1311
|
-
};
|
|
1312
|
-
ctor._ioInfo = ioInfo;
|
|
1313
|
-
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
1314
|
-
return lazyType;
|
|
1315
|
-
};
|
|
1316
|
-
exports2.memo = function(type, compare) {
|
|
1317
|
-
null == type && console.error(
|
|
1318
|
-
"memo: The first argument must be a component. Instead received: %s",
|
|
1319
|
-
null === type ? "null" : typeof type
|
|
1320
|
-
);
|
|
1321
|
-
compare = {
|
|
1322
|
-
$$typeof: REACT_MEMO_TYPE,
|
|
1323
|
-
type,
|
|
1324
|
-
compare: void 0 === compare ? null : compare
|
|
1325
|
-
};
|
|
1326
|
-
var ownName;
|
|
1327
|
-
Object.defineProperty(compare, "displayName", {
|
|
1328
|
-
enumerable: false,
|
|
1329
|
-
configurable: true,
|
|
1330
|
-
get: function() {
|
|
1331
|
-
return ownName;
|
|
1332
|
-
},
|
|
1333
|
-
set: function(name) {
|
|
1334
|
-
ownName = name;
|
|
1335
|
-
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1336
|
-
}
|
|
1337
|
-
});
|
|
1338
|
-
return compare;
|
|
1339
|
-
};
|
|
1340
|
-
exports2.startTransition = function(scope) {
|
|
1341
|
-
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1342
|
-
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1343
|
-
ReactSharedInternals.T = currentTransition;
|
|
1344
|
-
try {
|
|
1345
|
-
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1346
|
-
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1347
|
-
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
|
1348
|
-
} catch (error) {
|
|
1349
|
-
reportGlobalError(error);
|
|
1350
|
-
} finally {
|
|
1351
|
-
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
|
|
1352
|
-
"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."
|
|
1353
|
-
)), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error(
|
|
1354
|
-
"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."
|
|
1355
|
-
), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
1356
|
-
}
|
|
1357
|
-
};
|
|
1358
|
-
exports2.unstable_useCacheRefresh = function() {
|
|
1359
|
-
return resolveDispatcher().useCacheRefresh();
|
|
1360
|
-
};
|
|
1361
|
-
exports2.use = function(usable) {
|
|
1362
|
-
return resolveDispatcher().use(usable);
|
|
1363
|
-
};
|
|
1364
|
-
exports2.useActionState = function(action, initialState, permalink) {
|
|
1365
|
-
return resolveDispatcher().useActionState(
|
|
1366
|
-
action,
|
|
1367
|
-
initialState,
|
|
1368
|
-
permalink
|
|
1369
|
-
);
|
|
1370
|
-
};
|
|
1371
|
-
exports2.useCallback = function(callback, deps) {
|
|
1372
|
-
return resolveDispatcher().useCallback(callback, deps);
|
|
1373
|
-
};
|
|
1374
|
-
exports2.useContext = function(Context) {
|
|
1375
|
-
var dispatcher = resolveDispatcher();
|
|
1376
|
-
Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
|
|
1377
|
-
"Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
|
|
1378
|
-
);
|
|
1379
|
-
return dispatcher.useContext(Context);
|
|
1380
|
-
};
|
|
1381
|
-
exports2.useDebugValue = function(value, formatterFn) {
|
|
1382
|
-
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1383
|
-
};
|
|
1384
|
-
exports2.useDeferredValue = function(value, initialValue) {
|
|
1385
|
-
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1386
|
-
};
|
|
1387
|
-
exports2.useEffect = function(create, deps) {
|
|
1388
|
-
null == create && console.warn(
|
|
1389
|
-
"React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1390
|
-
);
|
|
1391
|
-
return resolveDispatcher().useEffect(create, deps);
|
|
1392
|
-
};
|
|
1393
|
-
exports2.useEffectEvent = function(callback) {
|
|
1394
|
-
return resolveDispatcher().useEffectEvent(callback);
|
|
1395
|
-
};
|
|
1396
|
-
exports2.useId = function() {
|
|
1397
|
-
return resolveDispatcher().useId();
|
|
1398
|
-
};
|
|
1399
|
-
exports2.useImperativeHandle = function(ref, create, deps) {
|
|
1400
|
-
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1401
|
-
};
|
|
1402
|
-
exports2.useInsertionEffect = function(create, deps) {
|
|
1403
|
-
null == create && console.warn(
|
|
1404
|
-
"React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1405
|
-
);
|
|
1406
|
-
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1407
|
-
};
|
|
1408
|
-
exports2.useLayoutEffect = function(create, deps) {
|
|
1409
|
-
null == create && console.warn(
|
|
1410
|
-
"React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
|
|
1411
|
-
);
|
|
1412
|
-
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1413
|
-
};
|
|
1414
|
-
exports2.useMemo = function(create, deps) {
|
|
1415
|
-
return resolveDispatcher().useMemo(create, deps);
|
|
1416
|
-
};
|
|
1417
|
-
exports2.useOptimistic = function(passthrough, reducer) {
|
|
1418
|
-
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1419
|
-
};
|
|
1420
|
-
exports2.useReducer = function(reducer, initialArg, init) {
|
|
1421
|
-
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1422
|
-
};
|
|
1423
|
-
exports2.useRef = function(initialValue) {
|
|
1424
|
-
return resolveDispatcher().useRef(initialValue);
|
|
1425
|
-
};
|
|
1426
|
-
exports2.useState = function(initialState) {
|
|
1427
|
-
return resolveDispatcher().useState(initialState);
|
|
1428
|
-
};
|
|
1429
|
-
exports2.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1430
|
-
return resolveDispatcher().useSyncExternalStore(
|
|
1431
|
-
subscribe,
|
|
1432
|
-
getSnapshot,
|
|
1433
|
-
getServerSnapshot
|
|
1434
|
-
);
|
|
1435
|
-
};
|
|
1436
|
-
exports2.useTransition = function() {
|
|
1437
|
-
return resolveDispatcher().useTransition();
|
|
1438
|
-
};
|
|
1439
|
-
exports2.version = "19.2.4";
|
|
1440
|
-
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1441
|
-
})();
|
|
1442
|
-
}
|
|
1443
|
-
});
|
|
1444
|
-
|
|
1445
|
-
// ../../node_modules/react/index.js
|
|
1446
|
-
var require_react = __commonJS({
|
|
1447
|
-
"../../node_modules/react/index.js"(exports2, module2) {
|
|
1448
|
-
"use strict";
|
|
1449
|
-
if (process.env.NODE_ENV === "production") {
|
|
1450
|
-
module2.exports = require_react_production();
|
|
1451
|
-
} else {
|
|
1452
|
-
module2.exports = require_react_development();
|
|
1453
|
-
}
|
|
1454
|
-
}
|
|
1455
|
-
});
|
|
1456
|
-
|
|
1457
|
-
// src/index.ts
|
|
1458
|
-
var index_exports = {};
|
|
1459
|
-
__export(index_exports, {
|
|
1460
|
-
EventEmitter: () => EventEmitter,
|
|
1461
|
-
Weaverse: () => Weaverse,
|
|
1462
|
-
WeaverseItemStore: () => WeaverseItemStore,
|
|
1463
|
-
isBrowser: () => isBrowser,
|
|
1464
|
-
isIframe: () => isIframe,
|
|
1465
|
-
isReactNative: () => isReactNative,
|
|
1466
|
-
loadScript: () => loadScript,
|
|
1467
|
-
merge: () => merge,
|
|
1468
|
-
registerElement: () => registerElement
|
|
1469
|
-
});
|
|
1470
|
-
module.exports = __toCommonJS(index_exports);
|
|
1471
|
-
|
|
1472
|
-
// src/core.ts
|
|
1473
|
-
var import_react = __toESM(require_react());
|
|
1474
|
-
|
|
1475
|
-
// package.json
|
|
1476
|
-
var version = "5.23.0";
|
|
1477
|
-
|
|
1478
|
-
// src/utils/index.ts
|
|
1479
|
-
var isReactNative = typeof navigator === "object" && navigator.product === "ReactNative";
|
|
1480
|
-
var isBrowser = typeof window !== "undefined" && !isReactNative;
|
|
1481
|
-
var isIframe = isBrowser && window.top !== window.self;
|
|
1482
|
-
function merge(target, source) {
|
|
1483
|
-
let t = { ...target || {} };
|
|
1484
|
-
for (let key of Object.keys(source)) {
|
|
1485
|
-
if (source[key] instanceof Object && !Array.isArray(source[key])) {
|
|
1486
|
-
Object.assign(source[key], merge(t[key], source[key]));
|
|
1487
|
-
}
|
|
1488
|
-
}
|
|
1489
|
-
Object.assign(t || {}, source);
|
|
1490
|
-
return t;
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __commonJSMin = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports);
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region ../../node_modules/react/cjs/react.production.js
|
|
6
|
+
/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react.production.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
var require_react_production = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
16
|
+
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.consumer"), s = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.memo"), d = Symbol.for("react.lazy"), f = Symbol.for("react.activity"), p = Symbol.iterator;
|
|
17
|
+
function getIteratorFn(e) {
|
|
18
|
+
if (null === e || "object" !== typeof e) return null;
|
|
19
|
+
e = p && e[p] || e["@@iterator"];
|
|
20
|
+
return "function" === typeof e ? e : null;
|
|
21
|
+
}
|
|
22
|
+
var m = {
|
|
23
|
+
isMounted: function() {
|
|
24
|
+
return !1;
|
|
25
|
+
},
|
|
26
|
+
enqueueForceUpdate: function() {},
|
|
27
|
+
enqueueReplaceState: function() {},
|
|
28
|
+
enqueueSetState: function() {}
|
|
29
|
+
}, h = Object.assign, g = {};
|
|
30
|
+
function Component(e, t, n) {
|
|
31
|
+
this.props = e;
|
|
32
|
+
this.context = t;
|
|
33
|
+
this.refs = g;
|
|
34
|
+
this.updater = n || m;
|
|
35
|
+
}
|
|
36
|
+
Component.prototype.isReactComponent = {};
|
|
37
|
+
Component.prototype.setState = function(e, t) {
|
|
38
|
+
if ("object" !== typeof e && "function" !== typeof e && null != e) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
39
|
+
this.updater.enqueueSetState(this, e, t, "setState");
|
|
40
|
+
};
|
|
41
|
+
Component.prototype.forceUpdate = function(e) {
|
|
42
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
43
|
+
};
|
|
44
|
+
function ComponentDummy() {}
|
|
45
|
+
ComponentDummy.prototype = Component.prototype;
|
|
46
|
+
function PureComponent(e, t, n) {
|
|
47
|
+
this.props = e;
|
|
48
|
+
this.context = t;
|
|
49
|
+
this.refs = g;
|
|
50
|
+
this.updater = n || m;
|
|
51
|
+
}
|
|
52
|
+
var _ = PureComponent.prototype = new ComponentDummy();
|
|
53
|
+
_.constructor = PureComponent;
|
|
54
|
+
h(_, Component.prototype);
|
|
55
|
+
_.isPureReactComponent = !0;
|
|
56
|
+
var v = Array.isArray;
|
|
57
|
+
function noop() {}
|
|
58
|
+
var y = {
|
|
59
|
+
H: null,
|
|
60
|
+
A: null,
|
|
61
|
+
T: null,
|
|
62
|
+
S: null
|
|
63
|
+
}, b = Object.prototype.hasOwnProperty;
|
|
64
|
+
function ReactElement(e, n, r) {
|
|
65
|
+
var i = r.ref;
|
|
66
|
+
return {
|
|
67
|
+
$$typeof: t,
|
|
68
|
+
type: e,
|
|
69
|
+
key: n,
|
|
70
|
+
ref: void 0 !== i ? i : null,
|
|
71
|
+
props: r
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
function cloneAndReplaceKey(e, t) {
|
|
75
|
+
return ReactElement(e.type, t, e.props);
|
|
76
|
+
}
|
|
77
|
+
function isValidElement(e) {
|
|
78
|
+
return "object" === typeof e && null !== e && e.$$typeof === t;
|
|
79
|
+
}
|
|
80
|
+
function escape(e) {
|
|
81
|
+
var t = {
|
|
82
|
+
"=": "=0",
|
|
83
|
+
":": "=2"
|
|
84
|
+
};
|
|
85
|
+
return "$" + e.replace(/[=:]/g, function(e) {
|
|
86
|
+
return t[e];
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
var x = /\/+/g;
|
|
90
|
+
function getElementKey(e, t) {
|
|
91
|
+
return "object" === typeof e && null !== e && null != e.key ? escape("" + e.key) : t.toString(36);
|
|
92
|
+
}
|
|
93
|
+
function resolveThenable(e) {
|
|
94
|
+
switch (e.status) {
|
|
95
|
+
case "fulfilled": return e.value;
|
|
96
|
+
case "rejected": throw e.reason;
|
|
97
|
+
default: switch ("string" === typeof e.status ? e.then(noop, noop) : (e.status = "pending", e.then(function(t) {
|
|
98
|
+
"pending" === e.status && (e.status = "fulfilled", e.value = t);
|
|
99
|
+
}, function(t) {
|
|
100
|
+
"pending" === e.status && (e.status = "rejected", e.reason = t);
|
|
101
|
+
})), e.status) {
|
|
102
|
+
case "fulfilled": return e.value;
|
|
103
|
+
case "rejected": throw e.reason;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
throw e;
|
|
107
|
+
}
|
|
108
|
+
function mapIntoArray(e, r, i, a, o) {
|
|
109
|
+
var s = typeof e;
|
|
110
|
+
if ("undefined" === s || "boolean" === s) e = null;
|
|
111
|
+
var c = !1;
|
|
112
|
+
if (null === e) c = !0;
|
|
113
|
+
else switch (s) {
|
|
114
|
+
case "bigint":
|
|
115
|
+
case "string":
|
|
116
|
+
case "number":
|
|
117
|
+
c = !0;
|
|
118
|
+
break;
|
|
119
|
+
case "object": switch (e.$$typeof) {
|
|
120
|
+
case t:
|
|
121
|
+
case n:
|
|
122
|
+
c = !0;
|
|
123
|
+
break;
|
|
124
|
+
case d: return c = e._init, mapIntoArray(c(e._payload), r, i, a, o);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (c) return o = o(e), c = "" === a ? "." + getElementKey(e, 0) : a, v(o) ? (i = "", null != c && (i = c.replace(x, "$&/") + "/"), mapIntoArray(o, r, i, "", function(e) {
|
|
128
|
+
return e;
|
|
129
|
+
})) : null != o && (isValidElement(o) && (o = cloneAndReplaceKey(o, i + (null == o.key || e && e.key === o.key ? "" : ("" + o.key).replace(x, "$&/") + "/") + c)), r.push(o)), 1;
|
|
130
|
+
c = 0;
|
|
131
|
+
var l = "" === a ? "." : a + ":";
|
|
132
|
+
if (v(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + getElementKey(a, u), c += mapIntoArray(a, r, i, s, o);
|
|
133
|
+
else if (u = getIteratorFn(e), "function" === typeof u) for (e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + getElementKey(a, u++), c += mapIntoArray(a, r, i, s, o);
|
|
134
|
+
else if ("object" === s) {
|
|
135
|
+
if ("function" === typeof e.then) return mapIntoArray(resolveThenable(e), r, i, a, o);
|
|
136
|
+
r = String(e);
|
|
137
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === r ? "object with keys {" + Object.keys(e).join(", ") + "}" : r) + "). If you meant to render a collection of children, use an array instead.");
|
|
138
|
+
}
|
|
139
|
+
return c;
|
|
140
|
+
}
|
|
141
|
+
function mapChildren(e, t, n) {
|
|
142
|
+
if (null == e) return e;
|
|
143
|
+
var r = [], i = 0;
|
|
144
|
+
mapIntoArray(e, r, "", "", function(e) {
|
|
145
|
+
return t.call(n, e, i++);
|
|
146
|
+
});
|
|
147
|
+
return r;
|
|
148
|
+
}
|
|
149
|
+
function lazyInitializer(e) {
|
|
150
|
+
if (-1 === e._status) {
|
|
151
|
+
var t = e._result;
|
|
152
|
+
t = t();
|
|
153
|
+
t.then(function(t) {
|
|
154
|
+
if (0 === e._status || -1 === e._status) e._status = 1, e._result = t;
|
|
155
|
+
}, function(t) {
|
|
156
|
+
if (0 === e._status || -1 === e._status) e._status = 2, e._result = t;
|
|
157
|
+
});
|
|
158
|
+
-1 === e._status && (e._status = 0, e._result = t);
|
|
159
|
+
}
|
|
160
|
+
if (1 === e._status) return e._result.default;
|
|
161
|
+
throw e._result;
|
|
162
|
+
}
|
|
163
|
+
var S = "function" === typeof reportError ? reportError : function(e) {
|
|
164
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
165
|
+
var t = new window.ErrorEvent("error", {
|
|
166
|
+
bubbles: !0,
|
|
167
|
+
cancelable: !0,
|
|
168
|
+
message: "object" === typeof e && null !== e && "string" === typeof e.message ? String(e.message) : String(e),
|
|
169
|
+
error: e
|
|
170
|
+
});
|
|
171
|
+
if (!window.dispatchEvent(t)) return;
|
|
172
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
173
|
+
process.emit("uncaughtException", e);
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
console.error(e);
|
|
177
|
+
}, C = {
|
|
178
|
+
map: mapChildren,
|
|
179
|
+
forEach: function(e, t, n) {
|
|
180
|
+
mapChildren(e, function() {
|
|
181
|
+
t.apply(this, arguments);
|
|
182
|
+
}, n);
|
|
183
|
+
},
|
|
184
|
+
count: function(e) {
|
|
185
|
+
var t = 0;
|
|
186
|
+
mapChildren(e, function() {
|
|
187
|
+
t++;
|
|
188
|
+
});
|
|
189
|
+
return t;
|
|
190
|
+
},
|
|
191
|
+
toArray: function(e) {
|
|
192
|
+
return mapChildren(e, function(e) {
|
|
193
|
+
return e;
|
|
194
|
+
}) || [];
|
|
195
|
+
},
|
|
196
|
+
only: function(e) {
|
|
197
|
+
if (!isValidElement(e)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
198
|
+
return e;
|
|
199
|
+
}
|
|
200
|
+
};
|
|
201
|
+
e.Activity = f;
|
|
202
|
+
e.Children = C;
|
|
203
|
+
e.Component = Component;
|
|
204
|
+
e.Fragment = r;
|
|
205
|
+
e.Profiler = a;
|
|
206
|
+
e.PureComponent = PureComponent;
|
|
207
|
+
e.StrictMode = i;
|
|
208
|
+
e.Suspense = l;
|
|
209
|
+
e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = y;
|
|
210
|
+
e.__COMPILER_RUNTIME = {
|
|
211
|
+
__proto__: null,
|
|
212
|
+
c: function(e) {
|
|
213
|
+
return y.H.useMemoCache(e);
|
|
214
|
+
}
|
|
215
|
+
};
|
|
216
|
+
e.cache = function(e) {
|
|
217
|
+
return function() {
|
|
218
|
+
return e.apply(null, arguments);
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
e.cacheSignal = function() {
|
|
222
|
+
return null;
|
|
223
|
+
};
|
|
224
|
+
e.cloneElement = function(e, t, n) {
|
|
225
|
+
if (null === e || void 0 === e) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
226
|
+
var r = h({}, e.props), i = e.key;
|
|
227
|
+
if (null != t) for (a in void 0 !== t.key && (i = "" + t.key), t) !b.call(t, a) || "key" === a || "__self" === a || "__source" === a || "ref" === a && void 0 === t.ref || (r[a] = t[a]);
|
|
228
|
+
var a = arguments.length - 2;
|
|
229
|
+
if (1 === a) r.children = n;
|
|
230
|
+
else if (1 < a) {
|
|
231
|
+
for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
|
|
232
|
+
r.children = o;
|
|
233
|
+
}
|
|
234
|
+
return ReactElement(e.type, i, r);
|
|
235
|
+
};
|
|
236
|
+
e.createContext = function(e) {
|
|
237
|
+
e = {
|
|
238
|
+
$$typeof: s,
|
|
239
|
+
_currentValue: e,
|
|
240
|
+
_currentValue2: e,
|
|
241
|
+
_threadCount: 0,
|
|
242
|
+
Provider: null,
|
|
243
|
+
Consumer: null
|
|
244
|
+
};
|
|
245
|
+
e.Provider = e;
|
|
246
|
+
e.Consumer = {
|
|
247
|
+
$$typeof: o,
|
|
248
|
+
_context: e
|
|
249
|
+
};
|
|
250
|
+
return e;
|
|
251
|
+
};
|
|
252
|
+
e.createElement = function(e, t, n) {
|
|
253
|
+
var r, i = {}, a = null;
|
|
254
|
+
if (null != t) for (r in void 0 !== t.key && (a = "" + t.key), t) b.call(t, r) && "key" !== r && "__self" !== r && "__source" !== r && (i[r] = t[r]);
|
|
255
|
+
var o = arguments.length - 2;
|
|
256
|
+
if (1 === o) i.children = n;
|
|
257
|
+
else if (1 < o) {
|
|
258
|
+
for (var s = Array(o), c = 0; c < o; c++) s[c] = arguments[c + 2];
|
|
259
|
+
i.children = s;
|
|
260
|
+
}
|
|
261
|
+
if (e && e.defaultProps) for (r in o = e.defaultProps, o) void 0 === i[r] && (i[r] = o[r]);
|
|
262
|
+
return ReactElement(e, a, i);
|
|
263
|
+
};
|
|
264
|
+
e.createRef = function() {
|
|
265
|
+
return { current: null };
|
|
266
|
+
};
|
|
267
|
+
e.forwardRef = function(e) {
|
|
268
|
+
return {
|
|
269
|
+
$$typeof: c,
|
|
270
|
+
render: e
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
e.isValidElement = isValidElement;
|
|
274
|
+
e.lazy = function(e) {
|
|
275
|
+
return {
|
|
276
|
+
$$typeof: d,
|
|
277
|
+
_payload: {
|
|
278
|
+
_status: -1,
|
|
279
|
+
_result: e
|
|
280
|
+
},
|
|
281
|
+
_init: lazyInitializer
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
e.memo = function(e, t) {
|
|
285
|
+
return {
|
|
286
|
+
$$typeof: u,
|
|
287
|
+
type: e,
|
|
288
|
+
compare: void 0 === t ? null : t
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
e.startTransition = function(e) {
|
|
292
|
+
var t = y.T, n = {};
|
|
293
|
+
y.T = n;
|
|
294
|
+
try {
|
|
295
|
+
var r = e(), i = y.S;
|
|
296
|
+
null !== i && i(n, r);
|
|
297
|
+
"object" === typeof r && null !== r && "function" === typeof r.then && r.then(noop, S);
|
|
298
|
+
} catch (e) {
|
|
299
|
+
S(e);
|
|
300
|
+
} finally {
|
|
301
|
+
null !== t && null !== n.types && (t.types = n.types), y.T = t;
|
|
302
|
+
}
|
|
303
|
+
};
|
|
304
|
+
e.unstable_useCacheRefresh = function() {
|
|
305
|
+
return y.H.useCacheRefresh();
|
|
306
|
+
};
|
|
307
|
+
e.use = function(e) {
|
|
308
|
+
return y.H.use(e);
|
|
309
|
+
};
|
|
310
|
+
e.useActionState = function(e, t, n) {
|
|
311
|
+
return y.H.useActionState(e, t, n);
|
|
312
|
+
};
|
|
313
|
+
e.useCallback = function(e, t) {
|
|
314
|
+
return y.H.useCallback(e, t);
|
|
315
|
+
};
|
|
316
|
+
e.useContext = function(e) {
|
|
317
|
+
return y.H.useContext(e);
|
|
318
|
+
};
|
|
319
|
+
e.useDebugValue = function() {};
|
|
320
|
+
e.useDeferredValue = function(e, t) {
|
|
321
|
+
return y.H.useDeferredValue(e, t);
|
|
322
|
+
};
|
|
323
|
+
e.useEffect = function(e, t) {
|
|
324
|
+
return y.H.useEffect(e, t);
|
|
325
|
+
};
|
|
326
|
+
e.useEffectEvent = function(e) {
|
|
327
|
+
return y.H.useEffectEvent(e);
|
|
328
|
+
};
|
|
329
|
+
e.useId = function() {
|
|
330
|
+
return y.H.useId();
|
|
331
|
+
};
|
|
332
|
+
e.useImperativeHandle = function(e, t, n) {
|
|
333
|
+
return y.H.useImperativeHandle(e, t, n);
|
|
334
|
+
};
|
|
335
|
+
e.useInsertionEffect = function(e, t) {
|
|
336
|
+
return y.H.useInsertionEffect(e, t);
|
|
337
|
+
};
|
|
338
|
+
e.useLayoutEffect = function(e, t) {
|
|
339
|
+
return y.H.useLayoutEffect(e, t);
|
|
340
|
+
};
|
|
341
|
+
e.useMemo = function(e, t) {
|
|
342
|
+
return y.H.useMemo(e, t);
|
|
343
|
+
};
|
|
344
|
+
e.useOptimistic = function(e, t) {
|
|
345
|
+
return y.H.useOptimistic(e, t);
|
|
346
|
+
};
|
|
347
|
+
e.useReducer = function(e, t, n) {
|
|
348
|
+
return y.H.useReducer(e, t, n);
|
|
349
|
+
};
|
|
350
|
+
e.useRef = function(e) {
|
|
351
|
+
return y.H.useRef(e);
|
|
352
|
+
};
|
|
353
|
+
e.useState = function(e) {
|
|
354
|
+
return y.H.useState(e);
|
|
355
|
+
};
|
|
356
|
+
e.useSyncExternalStore = function(e, t, n) {
|
|
357
|
+
return y.H.useSyncExternalStore(e, t, n);
|
|
358
|
+
};
|
|
359
|
+
e.useTransition = function() {
|
|
360
|
+
return y.H.useTransition();
|
|
361
|
+
};
|
|
362
|
+
e.version = "19.2.4";
|
|
363
|
+
}));
|
|
364
|
+
//#endregion
|
|
365
|
+
//#region ../../node_modules/react/cjs/react.development.js
|
|
366
|
+
/**
|
|
367
|
+
* @license React
|
|
368
|
+
* react.development.js
|
|
369
|
+
*
|
|
370
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
371
|
+
*
|
|
372
|
+
* This source code is licensed under the MIT license found in the
|
|
373
|
+
* LICENSE file in the root directory of this source tree.
|
|
374
|
+
*/
|
|
375
|
+
var require_react_development = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
376
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
377
|
+
function defineDeprecationWarning(e, t) {
|
|
378
|
+
Object.defineProperty(Component.prototype, e, { get: function() {
|
|
379
|
+
console.warn("%s(...) is deprecated in plain JavaScript React classes. %s", t[0], t[1]);
|
|
380
|
+
} });
|
|
381
|
+
}
|
|
382
|
+
function getIteratorFn(e) {
|
|
383
|
+
if (null === e || "object" !== typeof e) return null;
|
|
384
|
+
e = h && e[h] || e["@@iterator"];
|
|
385
|
+
return "function" === typeof e ? e : null;
|
|
386
|
+
}
|
|
387
|
+
function warnNoop(e, t) {
|
|
388
|
+
e = (e = e.constructor) && (e.displayName || e.name) || "ReactClass";
|
|
389
|
+
var n = e + "." + t;
|
|
390
|
+
g[n] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", t, e), g[n] = !0);
|
|
391
|
+
}
|
|
392
|
+
function Component(e, t, n) {
|
|
393
|
+
this.props = e;
|
|
394
|
+
this.context = t;
|
|
395
|
+
this.refs = y;
|
|
396
|
+
this.updater = n || _;
|
|
397
|
+
}
|
|
398
|
+
function ComponentDummy() {}
|
|
399
|
+
function PureComponent(e, t, n) {
|
|
400
|
+
this.props = e;
|
|
401
|
+
this.context = t;
|
|
402
|
+
this.refs = y;
|
|
403
|
+
this.updater = n || _;
|
|
404
|
+
}
|
|
405
|
+
function noop() {}
|
|
406
|
+
function testStringCoercion(e) {
|
|
407
|
+
return "" + e;
|
|
408
|
+
}
|
|
409
|
+
function checkKeyStringCoercion(e) {
|
|
410
|
+
try {
|
|
411
|
+
testStringCoercion(e);
|
|
412
|
+
var t = !1;
|
|
413
|
+
} catch (e) {
|
|
414
|
+
t = !0;
|
|
415
|
+
}
|
|
416
|
+
if (t) {
|
|
417
|
+
t = console;
|
|
418
|
+
var n = t.error;
|
|
419
|
+
var r = "function" === typeof Symbol && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
420
|
+
n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", r);
|
|
421
|
+
return testStringCoercion(e);
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
function getComponentNameFromType(e) {
|
|
425
|
+
if (null == e) return null;
|
|
426
|
+
if ("function" === typeof e) return e.$$typeof === S ? null : e.displayName || e.name || null;
|
|
427
|
+
if ("string" === typeof e) return e;
|
|
428
|
+
switch (e) {
|
|
429
|
+
case i: return "Fragment";
|
|
430
|
+
case o: return "Profiler";
|
|
431
|
+
case a: return "StrictMode";
|
|
432
|
+
case u: return "Suspense";
|
|
433
|
+
case d: return "SuspenseList";
|
|
434
|
+
case m: return "Activity";
|
|
435
|
+
}
|
|
436
|
+
if ("object" === typeof e) switch ("number" === typeof e.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
437
|
+
case r: return "Portal";
|
|
438
|
+
case c: return e.displayName || "Context";
|
|
439
|
+
case s: return (e._context.displayName || "Context") + ".Consumer";
|
|
440
|
+
case l:
|
|
441
|
+
var t = e.render;
|
|
442
|
+
e = e.displayName;
|
|
443
|
+
e || (e = t.displayName || t.name || "", e = "" !== e ? "ForwardRef(" + e + ")" : "ForwardRef");
|
|
444
|
+
return e;
|
|
445
|
+
case f: return t = e.displayName || null, null !== t ? t : getComponentNameFromType(e.type) || "Memo";
|
|
446
|
+
case p:
|
|
447
|
+
t = e._payload;
|
|
448
|
+
e = e._init;
|
|
449
|
+
try {
|
|
450
|
+
return getComponentNameFromType(e(t));
|
|
451
|
+
} catch (e) {}
|
|
452
|
+
}
|
|
453
|
+
return null;
|
|
454
|
+
}
|
|
455
|
+
function getTaskName(e) {
|
|
456
|
+
if (e === i) return "<>";
|
|
457
|
+
if ("object" === typeof e && null !== e && e.$$typeof === p) return "<...>";
|
|
458
|
+
try {
|
|
459
|
+
var t = getComponentNameFromType(e);
|
|
460
|
+
return t ? "<" + t + ">" : "<...>";
|
|
461
|
+
} catch (e) {
|
|
462
|
+
return "<...>";
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
function getOwner() {
|
|
466
|
+
var e = C.A;
|
|
467
|
+
return null === e ? null : e.getOwner();
|
|
468
|
+
}
|
|
469
|
+
function UnknownOwner() {
|
|
470
|
+
return Error("react-stack-top-frame");
|
|
471
|
+
}
|
|
472
|
+
function hasValidKey(e) {
|
|
473
|
+
if (w.call(e, "key")) {
|
|
474
|
+
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
475
|
+
if (t && t.isReactWarning) return !1;
|
|
476
|
+
}
|
|
477
|
+
return void 0 !== e.key;
|
|
478
|
+
}
|
|
479
|
+
function defineKeyPropWarningGetter(e, t) {
|
|
480
|
+
function warnAboutAccessingKey() {
|
|
481
|
+
E || (E = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
482
|
+
}
|
|
483
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
484
|
+
Object.defineProperty(e, "key", {
|
|
485
|
+
get: warnAboutAccessingKey,
|
|
486
|
+
configurable: !0
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
490
|
+
var e = getComponentNameFromType(this.type);
|
|
491
|
+
O[e] || (O[e] = !0, console.error("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."));
|
|
492
|
+
e = this.props.ref;
|
|
493
|
+
return void 0 !== e ? e : null;
|
|
494
|
+
}
|
|
495
|
+
function ReactElement(e, t, r, i, a, o) {
|
|
496
|
+
var s = r.ref;
|
|
497
|
+
e = {
|
|
498
|
+
$$typeof: n,
|
|
499
|
+
type: e,
|
|
500
|
+
key: t,
|
|
501
|
+
props: r,
|
|
502
|
+
_owner: i
|
|
503
|
+
};
|
|
504
|
+
null !== (void 0 !== s ? s : null) ? Object.defineProperty(e, "ref", {
|
|
505
|
+
enumerable: !1,
|
|
506
|
+
get: elementRefGetterWithDeprecationWarning
|
|
507
|
+
}) : Object.defineProperty(e, "ref", {
|
|
508
|
+
enumerable: !1,
|
|
509
|
+
value: null
|
|
510
|
+
});
|
|
511
|
+
e._store = {};
|
|
512
|
+
Object.defineProperty(e._store, "validated", {
|
|
513
|
+
configurable: !1,
|
|
514
|
+
enumerable: !1,
|
|
515
|
+
writable: !0,
|
|
516
|
+
value: 0
|
|
517
|
+
});
|
|
518
|
+
Object.defineProperty(e, "_debugInfo", {
|
|
519
|
+
configurable: !1,
|
|
520
|
+
enumerable: !1,
|
|
521
|
+
writable: !0,
|
|
522
|
+
value: null
|
|
523
|
+
});
|
|
524
|
+
Object.defineProperty(e, "_debugStack", {
|
|
525
|
+
configurable: !1,
|
|
526
|
+
enumerable: !1,
|
|
527
|
+
writable: !0,
|
|
528
|
+
value: a
|
|
529
|
+
});
|
|
530
|
+
Object.defineProperty(e, "_debugTask", {
|
|
531
|
+
configurable: !1,
|
|
532
|
+
enumerable: !1,
|
|
533
|
+
writable: !0,
|
|
534
|
+
value: o
|
|
535
|
+
});
|
|
536
|
+
Object.freeze && (Object.freeze(e.props), Object.freeze(e));
|
|
537
|
+
return e;
|
|
538
|
+
}
|
|
539
|
+
function cloneAndReplaceKey(e, t) {
|
|
540
|
+
t = ReactElement(e.type, t, e.props, e._owner, e._debugStack, e._debugTask);
|
|
541
|
+
e._store && (t._store.validated = e._store.validated);
|
|
542
|
+
return t;
|
|
543
|
+
}
|
|
544
|
+
function validateChildKeys(e) {
|
|
545
|
+
isValidElement(e) ? e._store && (e._store.validated = 1) : "object" === typeof e && null !== e && e.$$typeof === p && ("fulfilled" === e._payload.status ? isValidElement(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
546
|
+
}
|
|
547
|
+
function isValidElement(e) {
|
|
548
|
+
return "object" === typeof e && null !== e && e.$$typeof === n;
|
|
549
|
+
}
|
|
550
|
+
function escape(e) {
|
|
551
|
+
var t = {
|
|
552
|
+
"=": "=0",
|
|
553
|
+
":": "=2"
|
|
554
|
+
};
|
|
555
|
+
return "$" + e.replace(/[=:]/g, function(e) {
|
|
556
|
+
return t[e];
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
function getElementKey(e, t) {
|
|
560
|
+
return "object" === typeof e && null !== e && null != e.key ? (checkKeyStringCoercion(e.key), escape("" + e.key)) : t.toString(36);
|
|
561
|
+
}
|
|
562
|
+
function resolveThenable(e) {
|
|
563
|
+
switch (e.status) {
|
|
564
|
+
case "fulfilled": return e.value;
|
|
565
|
+
case "rejected": throw e.reason;
|
|
566
|
+
default: switch ("string" === typeof e.status ? e.then(noop, noop) : (e.status = "pending", e.then(function(t) {
|
|
567
|
+
"pending" === e.status && (e.status = "fulfilled", e.value = t);
|
|
568
|
+
}, function(t) {
|
|
569
|
+
"pending" === e.status && (e.status = "rejected", e.reason = t);
|
|
570
|
+
})), e.status) {
|
|
571
|
+
case "fulfilled": return e.value;
|
|
572
|
+
case "rejected": throw e.reason;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
throw e;
|
|
576
|
+
}
|
|
577
|
+
function mapIntoArray(e, t, i, a, o) {
|
|
578
|
+
var s = typeof e;
|
|
579
|
+
if ("undefined" === s || "boolean" === s) e = null;
|
|
580
|
+
var c = !1;
|
|
581
|
+
if (null === e) c = !0;
|
|
582
|
+
else switch (s) {
|
|
583
|
+
case "bigint":
|
|
584
|
+
case "string":
|
|
585
|
+
case "number":
|
|
586
|
+
c = !0;
|
|
587
|
+
break;
|
|
588
|
+
case "object": switch (e.$$typeof) {
|
|
589
|
+
case n:
|
|
590
|
+
case r:
|
|
591
|
+
c = !0;
|
|
592
|
+
break;
|
|
593
|
+
case p: return c = e._init, mapIntoArray(c(e._payload), t, i, a, o);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
if (c) {
|
|
597
|
+
c = e;
|
|
598
|
+
o = o(c);
|
|
599
|
+
var l = "" === a ? "." + getElementKey(c, 0) : a;
|
|
600
|
+
x(o) ? (i = "", null != l && (i = l.replace(M, "$&/") + "/"), mapIntoArray(o, t, i, "", function(e) {
|
|
601
|
+
return e;
|
|
602
|
+
})) : null != o && (isValidElement(o) && (null != o.key && (c && c.key === o.key || checkKeyStringCoercion(o.key)), i = cloneAndReplaceKey(o, i + (null == o.key || c && c.key === o.key ? "" : ("" + o.key).replace(M, "$&/") + "/") + l), "" !== a && null != c && isValidElement(c) && null == c.key && c._store && !c._store.validated && (i._store.validated = 2), o = i), t.push(o));
|
|
603
|
+
return 1;
|
|
604
|
+
}
|
|
605
|
+
c = 0;
|
|
606
|
+
l = "" === a ? "." : a + ":";
|
|
607
|
+
if (x(e)) for (var u = 0; u < e.length; u++) a = e[u], s = l + getElementKey(a, u), c += mapIntoArray(a, t, i, s, o);
|
|
608
|
+
else if (u = getIteratorFn(e), "function" === typeof u) for (u === e.entries && (j || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), j = !0), e = u.call(e), u = 0; !(a = e.next()).done;) a = a.value, s = l + getElementKey(a, u++), c += mapIntoArray(a, t, i, s, o);
|
|
609
|
+
else if ("object" === s) {
|
|
610
|
+
if ("function" === typeof e.then) return mapIntoArray(resolveThenable(e), t, i, a, o);
|
|
611
|
+
t = String(e);
|
|
612
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === t ? "object with keys {" + Object.keys(e).join(", ") + "}" : t) + "). If you meant to render a collection of children, use an array instead.");
|
|
613
|
+
}
|
|
614
|
+
return c;
|
|
615
|
+
}
|
|
616
|
+
function mapChildren(e, t, n) {
|
|
617
|
+
if (null == e) return e;
|
|
618
|
+
var r = [], i = 0;
|
|
619
|
+
mapIntoArray(e, r, "", "", function(e) {
|
|
620
|
+
return t.call(n, e, i++);
|
|
621
|
+
});
|
|
622
|
+
return r;
|
|
623
|
+
}
|
|
624
|
+
function lazyInitializer(e) {
|
|
625
|
+
if (-1 === e._status) {
|
|
626
|
+
var t = e._ioInfo;
|
|
627
|
+
null != t && (t.start = t.end = performance.now());
|
|
628
|
+
t = e._result;
|
|
629
|
+
var n = t();
|
|
630
|
+
n.then(function(t) {
|
|
631
|
+
if (0 === e._status || -1 === e._status) {
|
|
632
|
+
e._status = 1;
|
|
633
|
+
e._result = t;
|
|
634
|
+
var r = e._ioInfo;
|
|
635
|
+
null != r && (r.end = performance.now());
|
|
636
|
+
void 0 === n.status && (n.status = "fulfilled", n.value = t);
|
|
637
|
+
}
|
|
638
|
+
}, function(t) {
|
|
639
|
+
if (0 === e._status || -1 === e._status) {
|
|
640
|
+
e._status = 2;
|
|
641
|
+
e._result = t;
|
|
642
|
+
var r = e._ioInfo;
|
|
643
|
+
null != r && (r.end = performance.now());
|
|
644
|
+
void 0 === n.status && (n.status = "rejected", n.reason = t);
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
t = e._ioInfo;
|
|
648
|
+
if (null != t) {
|
|
649
|
+
t.value = n;
|
|
650
|
+
var r = n.displayName;
|
|
651
|
+
"string" === typeof r && (t.name = r);
|
|
652
|
+
}
|
|
653
|
+
-1 === e._status && (e._status = 0, e._result = n);
|
|
654
|
+
}
|
|
655
|
+
if (1 === e._status) return t = e._result, void 0 === t && console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", t), "default" in t || console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", t), t.default;
|
|
656
|
+
throw e._result;
|
|
657
|
+
}
|
|
658
|
+
function resolveDispatcher() {
|
|
659
|
+
var e = C.H;
|
|
660
|
+
null === e && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
661
|
+
return e;
|
|
662
|
+
}
|
|
663
|
+
function releaseAsyncTransition() {
|
|
664
|
+
C.asyncTransitions--;
|
|
665
|
+
}
|
|
666
|
+
function enqueueTask(e) {
|
|
667
|
+
if (null === enqueueTaskImpl) try {
|
|
668
|
+
var n = ("require" + Math.random()).slice(0, 7);
|
|
669
|
+
enqueueTaskImpl = (t && t[n]).call(t, "timers").setImmediate;
|
|
670
|
+
} catch (e) {
|
|
671
|
+
enqueueTaskImpl = function(e) {
|
|
672
|
+
!1 === P && (P = !0, "undefined" === typeof MessageChannel && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
673
|
+
var t = new MessageChannel();
|
|
674
|
+
t.port1.onmessage = e;
|
|
675
|
+
t.port2.postMessage(void 0);
|
|
676
|
+
};
|
|
677
|
+
}
|
|
678
|
+
return enqueueTaskImpl(e);
|
|
679
|
+
}
|
|
680
|
+
function aggregateErrors(e) {
|
|
681
|
+
return 1 < e.length && "function" === typeof AggregateError ? new AggregateError(e) : e[0];
|
|
682
|
+
}
|
|
683
|
+
function popActScope(e, t) {
|
|
684
|
+
t !== F - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
685
|
+
F = t;
|
|
686
|
+
}
|
|
687
|
+
function recursivelyFlushAsyncActWork(e, t, n) {
|
|
688
|
+
var r = C.actQueue;
|
|
689
|
+
if (null !== r) if (0 !== r.length) try {
|
|
690
|
+
flushActQueue(r);
|
|
691
|
+
enqueueTask(function() {
|
|
692
|
+
return recursivelyFlushAsyncActWork(e, t, n);
|
|
693
|
+
});
|
|
694
|
+
return;
|
|
695
|
+
} catch (e) {
|
|
696
|
+
C.thrownErrors.push(e);
|
|
697
|
+
}
|
|
698
|
+
else C.actQueue = null;
|
|
699
|
+
0 < C.thrownErrors.length ? (r = aggregateErrors(C.thrownErrors), C.thrownErrors.length = 0, n(r)) : t(e);
|
|
700
|
+
}
|
|
701
|
+
function flushActQueue(e) {
|
|
702
|
+
if (!L) {
|
|
703
|
+
L = !0;
|
|
704
|
+
var t = 0;
|
|
705
|
+
try {
|
|
706
|
+
for (; t < e.length; t++) {
|
|
707
|
+
var n = e[t];
|
|
708
|
+
do {
|
|
709
|
+
C.didUsePromise = !1;
|
|
710
|
+
var r = n(!1);
|
|
711
|
+
if (null !== r) {
|
|
712
|
+
if (C.didUsePromise) {
|
|
713
|
+
e[t] = n;
|
|
714
|
+
e.splice(0, t);
|
|
715
|
+
return;
|
|
716
|
+
}
|
|
717
|
+
n = r;
|
|
718
|
+
} else break;
|
|
719
|
+
} while (1);
|
|
720
|
+
}
|
|
721
|
+
e.length = 0;
|
|
722
|
+
} catch (n) {
|
|
723
|
+
e.splice(0, t + 1), C.thrownErrors.push(n);
|
|
724
|
+
} finally {
|
|
725
|
+
L = !1;
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
730
|
+
var n = Symbol.for("react.transitional.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.consumer"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.activity"), h = Symbol.iterator, g = {}, _ = {
|
|
731
|
+
isMounted: function() {
|
|
732
|
+
return !1;
|
|
733
|
+
},
|
|
734
|
+
enqueueForceUpdate: function(e) {
|
|
735
|
+
warnNoop(e, "forceUpdate");
|
|
736
|
+
},
|
|
737
|
+
enqueueReplaceState: function(e) {
|
|
738
|
+
warnNoop(e, "replaceState");
|
|
739
|
+
},
|
|
740
|
+
enqueueSetState: function(e) {
|
|
741
|
+
warnNoop(e, "setState");
|
|
742
|
+
}
|
|
743
|
+
}, v = Object.assign, y = {};
|
|
744
|
+
Object.freeze(y);
|
|
745
|
+
Component.prototype.isReactComponent = {};
|
|
746
|
+
Component.prototype.setState = function(e, t) {
|
|
747
|
+
if ("object" !== typeof e && "function" !== typeof e && null != e) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
748
|
+
this.updater.enqueueSetState(this, e, t, "setState");
|
|
749
|
+
};
|
|
750
|
+
Component.prototype.forceUpdate = function(e) {
|
|
751
|
+
this.updater.enqueueForceUpdate(this, e, "forceUpdate");
|
|
752
|
+
};
|
|
753
|
+
var b = {
|
|
754
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
755
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
756
|
+
};
|
|
757
|
+
for (z in b) b.hasOwnProperty(z) && defineDeprecationWarning(z, b[z]);
|
|
758
|
+
ComponentDummy.prototype = Component.prototype;
|
|
759
|
+
b = PureComponent.prototype = new ComponentDummy();
|
|
760
|
+
b.constructor = PureComponent;
|
|
761
|
+
v(b, Component.prototype);
|
|
762
|
+
b.isPureReactComponent = !0;
|
|
763
|
+
var x = Array.isArray, S = Symbol.for("react.client.reference"), C = {
|
|
764
|
+
H: null,
|
|
765
|
+
A: null,
|
|
766
|
+
T: null,
|
|
767
|
+
S: null,
|
|
768
|
+
actQueue: null,
|
|
769
|
+
asyncTransitions: 0,
|
|
770
|
+
isBatchingLegacy: !1,
|
|
771
|
+
didScheduleLegacyUpdate: !1,
|
|
772
|
+
didUsePromise: !1,
|
|
773
|
+
thrownErrors: [],
|
|
774
|
+
getCurrentStack: null,
|
|
775
|
+
recentlyCreatedOwnerStacks: 0
|
|
776
|
+
}, w = Object.prototype.hasOwnProperty, T = console.createTask ? console.createTask : function() {
|
|
777
|
+
return null;
|
|
778
|
+
};
|
|
779
|
+
b = { react_stack_bottom_frame: function(e) {
|
|
780
|
+
return e();
|
|
781
|
+
} };
|
|
782
|
+
var E, D;
|
|
783
|
+
var O = {};
|
|
784
|
+
var k = b.react_stack_bottom_frame.bind(b, UnknownOwner)();
|
|
785
|
+
var A = T(getTaskName(UnknownOwner));
|
|
786
|
+
var j = !1, M = /\/+/g, N = "function" === typeof reportError ? reportError : function(e) {
|
|
787
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
788
|
+
var t = new window.ErrorEvent("error", {
|
|
789
|
+
bubbles: !0,
|
|
790
|
+
cancelable: !0,
|
|
791
|
+
message: "object" === typeof e && null !== e && "string" === typeof e.message ? String(e.message) : String(e),
|
|
792
|
+
error: e
|
|
793
|
+
});
|
|
794
|
+
if (!window.dispatchEvent(t)) return;
|
|
795
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
796
|
+
process.emit("uncaughtException", e);
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
console.error(e);
|
|
800
|
+
}, P = !1, enqueueTaskImpl = null, F = 0, I = !1, L = !1, R = "function" === typeof queueMicrotask ? function(e) {
|
|
801
|
+
queueMicrotask(function() {
|
|
802
|
+
return queueMicrotask(e);
|
|
803
|
+
});
|
|
804
|
+
} : enqueueTask;
|
|
805
|
+
b = Object.freeze({
|
|
806
|
+
__proto__: null,
|
|
807
|
+
c: function(e) {
|
|
808
|
+
return resolveDispatcher().useMemoCache(e);
|
|
809
|
+
}
|
|
810
|
+
});
|
|
811
|
+
var z = {
|
|
812
|
+
map: mapChildren,
|
|
813
|
+
forEach: function(e, t, n) {
|
|
814
|
+
mapChildren(e, function() {
|
|
815
|
+
t.apply(this, arguments);
|
|
816
|
+
}, n);
|
|
817
|
+
},
|
|
818
|
+
count: function(e) {
|
|
819
|
+
var t = 0;
|
|
820
|
+
mapChildren(e, function() {
|
|
821
|
+
t++;
|
|
822
|
+
});
|
|
823
|
+
return t;
|
|
824
|
+
},
|
|
825
|
+
toArray: function(e) {
|
|
826
|
+
return mapChildren(e, function(e) {
|
|
827
|
+
return e;
|
|
828
|
+
}) || [];
|
|
829
|
+
},
|
|
830
|
+
only: function(e) {
|
|
831
|
+
if (!isValidElement(e)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
832
|
+
return e;
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
e.Activity = m;
|
|
836
|
+
e.Children = z;
|
|
837
|
+
e.Component = Component;
|
|
838
|
+
e.Fragment = i;
|
|
839
|
+
e.Profiler = o;
|
|
840
|
+
e.PureComponent = PureComponent;
|
|
841
|
+
e.StrictMode = a;
|
|
842
|
+
e.Suspense = u;
|
|
843
|
+
e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = C;
|
|
844
|
+
e.__COMPILER_RUNTIME = b;
|
|
845
|
+
e.act = function(e) {
|
|
846
|
+
var t = C.actQueue, n = F;
|
|
847
|
+
F++;
|
|
848
|
+
var r = C.actQueue = null !== t ? t : [], i = !1;
|
|
849
|
+
try {
|
|
850
|
+
var a = e();
|
|
851
|
+
} catch (e) {
|
|
852
|
+
C.thrownErrors.push(e);
|
|
853
|
+
}
|
|
854
|
+
if (0 < C.thrownErrors.length) throw popActScope(t, n), e = aggregateErrors(C.thrownErrors), C.thrownErrors.length = 0, e;
|
|
855
|
+
if (null !== a && "object" === typeof a && "function" === typeof a.then) {
|
|
856
|
+
var o = a;
|
|
857
|
+
R(function() {
|
|
858
|
+
i || I || (I = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
859
|
+
});
|
|
860
|
+
return { then: function(e, a) {
|
|
861
|
+
i = !0;
|
|
862
|
+
o.then(function(i) {
|
|
863
|
+
popActScope(t, n);
|
|
864
|
+
if (0 === n) {
|
|
865
|
+
try {
|
|
866
|
+
flushActQueue(r), enqueueTask(function() {
|
|
867
|
+
return recursivelyFlushAsyncActWork(i, e, a);
|
|
868
|
+
});
|
|
869
|
+
} catch (e) {
|
|
870
|
+
C.thrownErrors.push(e);
|
|
871
|
+
}
|
|
872
|
+
if (0 < C.thrownErrors.length) {
|
|
873
|
+
var o = aggregateErrors(C.thrownErrors);
|
|
874
|
+
C.thrownErrors.length = 0;
|
|
875
|
+
a(o);
|
|
876
|
+
}
|
|
877
|
+
} else e(i);
|
|
878
|
+
}, function(e) {
|
|
879
|
+
popActScope(t, n);
|
|
880
|
+
0 < C.thrownErrors.length ? (e = aggregateErrors(C.thrownErrors), C.thrownErrors.length = 0, a(e)) : a(e);
|
|
881
|
+
});
|
|
882
|
+
} };
|
|
883
|
+
}
|
|
884
|
+
var s = a;
|
|
885
|
+
popActScope(t, n);
|
|
886
|
+
0 === n && (flushActQueue(r), 0 !== r.length && R(function() {
|
|
887
|
+
i || I || (I = !0, console.error("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(() => ...)"));
|
|
888
|
+
}), C.actQueue = null);
|
|
889
|
+
if (0 < C.thrownErrors.length) throw e = aggregateErrors(C.thrownErrors), C.thrownErrors.length = 0, e;
|
|
890
|
+
return { then: function(e, t) {
|
|
891
|
+
i = !0;
|
|
892
|
+
0 === n ? (C.actQueue = r, enqueueTask(function() {
|
|
893
|
+
return recursivelyFlushAsyncActWork(s, e, t);
|
|
894
|
+
})) : e(s);
|
|
895
|
+
} };
|
|
896
|
+
};
|
|
897
|
+
e.cache = function(e) {
|
|
898
|
+
return function() {
|
|
899
|
+
return e.apply(null, arguments);
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
e.cacheSignal = function() {
|
|
903
|
+
return null;
|
|
904
|
+
};
|
|
905
|
+
e.captureOwnerStack = function() {
|
|
906
|
+
var e = C.getCurrentStack;
|
|
907
|
+
return null === e ? null : e();
|
|
908
|
+
};
|
|
909
|
+
e.cloneElement = function(e, t, n) {
|
|
910
|
+
if (null === e || void 0 === e) throw Error("The argument must be a React element, but you passed " + e + ".");
|
|
911
|
+
var r = v({}, e.props), i = e.key, a = e._owner;
|
|
912
|
+
if (null != t) {
|
|
913
|
+
var o;
|
|
914
|
+
a: {
|
|
915
|
+
if (w.call(t, "ref") && (o = Object.getOwnPropertyDescriptor(t, "ref").get) && o.isReactWarning) {
|
|
916
|
+
o = !1;
|
|
917
|
+
break a;
|
|
918
|
+
}
|
|
919
|
+
o = void 0 !== t.ref;
|
|
920
|
+
}
|
|
921
|
+
o && (a = getOwner());
|
|
922
|
+
hasValidKey(t) && (checkKeyStringCoercion(t.key), i = "" + t.key);
|
|
923
|
+
for (s in t) !w.call(t, s) || "key" === s || "__self" === s || "__source" === s || "ref" === s && void 0 === t.ref || (r[s] = t[s]);
|
|
924
|
+
}
|
|
925
|
+
var s = arguments.length - 2;
|
|
926
|
+
if (1 === s) r.children = n;
|
|
927
|
+
else if (1 < s) {
|
|
928
|
+
o = Array(s);
|
|
929
|
+
for (var c = 0; c < s; c++) o[c] = arguments[c + 2];
|
|
930
|
+
r.children = o;
|
|
931
|
+
}
|
|
932
|
+
r = ReactElement(e.type, i, r, a, e._debugStack, e._debugTask);
|
|
933
|
+
for (i = 2; i < arguments.length; i++) validateChildKeys(arguments[i]);
|
|
934
|
+
return r;
|
|
935
|
+
};
|
|
936
|
+
e.createContext = function(e) {
|
|
937
|
+
e = {
|
|
938
|
+
$$typeof: c,
|
|
939
|
+
_currentValue: e,
|
|
940
|
+
_currentValue2: e,
|
|
941
|
+
_threadCount: 0,
|
|
942
|
+
Provider: null,
|
|
943
|
+
Consumer: null
|
|
944
|
+
};
|
|
945
|
+
e.Provider = e;
|
|
946
|
+
e.Consumer = {
|
|
947
|
+
$$typeof: s,
|
|
948
|
+
_context: e
|
|
949
|
+
};
|
|
950
|
+
e._currentRenderer = null;
|
|
951
|
+
e._currentRenderer2 = null;
|
|
952
|
+
return e;
|
|
953
|
+
};
|
|
954
|
+
e.createElement = function(e, t, n) {
|
|
955
|
+
for (var r = 2; r < arguments.length; r++) validateChildKeys(arguments[r]);
|
|
956
|
+
r = {};
|
|
957
|
+
var i = null;
|
|
958
|
+
if (null != t) for (c in D || !("__self" in t) || "key" in t || (D = !0, console.warn("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")), hasValidKey(t) && (checkKeyStringCoercion(t.key), i = "" + t.key), t) w.call(t, c) && "key" !== c && "__self" !== c && "__source" !== c && (r[c] = t[c]);
|
|
959
|
+
var a = arguments.length - 2;
|
|
960
|
+
if (1 === a) r.children = n;
|
|
961
|
+
else if (1 < a) {
|
|
962
|
+
for (var o = Array(a), s = 0; s < a; s++) o[s] = arguments[s + 2];
|
|
963
|
+
Object.freeze && Object.freeze(o);
|
|
964
|
+
r.children = o;
|
|
965
|
+
}
|
|
966
|
+
if (e && e.defaultProps) for (c in a = e.defaultProps, a) void 0 === r[c] && (r[c] = a[c]);
|
|
967
|
+
i && defineKeyPropWarningGetter(r, "function" === typeof e ? e.displayName || e.name || "Unknown" : e);
|
|
968
|
+
var c = 1e4 > C.recentlyCreatedOwnerStacks++;
|
|
969
|
+
return ReactElement(e, i, r, getOwner(), c ? Error("react-stack-top-frame") : k, c ? T(getTaskName(e)) : A);
|
|
970
|
+
};
|
|
971
|
+
e.createRef = function() {
|
|
972
|
+
var e = { current: null };
|
|
973
|
+
Object.seal(e);
|
|
974
|
+
return e;
|
|
975
|
+
};
|
|
976
|
+
e.forwardRef = function(e) {
|
|
977
|
+
null != e && e.$$typeof === f ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : "function" !== typeof e ? console.error("forwardRef requires a render function but was given %s.", null === e ? "null" : typeof e) : 0 !== e.length && 2 !== e.length && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", 1 === e.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
978
|
+
null != e && null != e.defaultProps && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
979
|
+
var t = {
|
|
980
|
+
$$typeof: l,
|
|
981
|
+
render: e
|
|
982
|
+
}, n;
|
|
983
|
+
Object.defineProperty(t, "displayName", {
|
|
984
|
+
enumerable: !1,
|
|
985
|
+
configurable: !0,
|
|
986
|
+
get: function() {
|
|
987
|
+
return n;
|
|
988
|
+
},
|
|
989
|
+
set: function(t) {
|
|
990
|
+
n = t;
|
|
991
|
+
e.name || e.displayName || (Object.defineProperty(e, "name", { value: t }), e.displayName = t);
|
|
992
|
+
}
|
|
993
|
+
});
|
|
994
|
+
return t;
|
|
995
|
+
};
|
|
996
|
+
e.isValidElement = isValidElement;
|
|
997
|
+
e.lazy = function(e) {
|
|
998
|
+
e = {
|
|
999
|
+
_status: -1,
|
|
1000
|
+
_result: e
|
|
1001
|
+
};
|
|
1002
|
+
var t = {
|
|
1003
|
+
$$typeof: p,
|
|
1004
|
+
_payload: e,
|
|
1005
|
+
_init: lazyInitializer
|
|
1006
|
+
}, n = {
|
|
1007
|
+
name: "lazy",
|
|
1008
|
+
start: -1,
|
|
1009
|
+
end: -1,
|
|
1010
|
+
value: null,
|
|
1011
|
+
owner: null,
|
|
1012
|
+
debugStack: Error("react-stack-top-frame"),
|
|
1013
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1014
|
+
};
|
|
1015
|
+
e._ioInfo = n;
|
|
1016
|
+
t._debugInfo = [{ awaited: n }];
|
|
1017
|
+
return t;
|
|
1018
|
+
};
|
|
1019
|
+
e.memo = function(e, t) {
|
|
1020
|
+
e ?? console.error("memo: The first argument must be a component. Instead received: %s", null === e ? "null" : typeof e);
|
|
1021
|
+
t = {
|
|
1022
|
+
$$typeof: f,
|
|
1023
|
+
type: e,
|
|
1024
|
+
compare: void 0 === t ? null : t
|
|
1025
|
+
};
|
|
1026
|
+
var n;
|
|
1027
|
+
Object.defineProperty(t, "displayName", {
|
|
1028
|
+
enumerable: !1,
|
|
1029
|
+
configurable: !0,
|
|
1030
|
+
get: function() {
|
|
1031
|
+
return n;
|
|
1032
|
+
},
|
|
1033
|
+
set: function(t) {
|
|
1034
|
+
n = t;
|
|
1035
|
+
e.name || e.displayName || (Object.defineProperty(e, "name", { value: t }), e.displayName = t);
|
|
1036
|
+
}
|
|
1037
|
+
});
|
|
1038
|
+
return t;
|
|
1039
|
+
};
|
|
1040
|
+
e.startTransition = function(e) {
|
|
1041
|
+
var t = C.T, n = {};
|
|
1042
|
+
n._updatedFibers = /* @__PURE__ */ new Set();
|
|
1043
|
+
C.T = n;
|
|
1044
|
+
try {
|
|
1045
|
+
var r = e(), i = C.S;
|
|
1046
|
+
null !== i && i(n, r);
|
|
1047
|
+
"object" === typeof r && null !== r && "function" === typeof r.then && (C.asyncTransitions++, r.then(releaseAsyncTransition, releaseAsyncTransition), r.then(noop, N));
|
|
1048
|
+
} catch (e) {
|
|
1049
|
+
N(e);
|
|
1050
|
+
} finally {
|
|
1051
|
+
null === t && n._updatedFibers && (e = n._updatedFibers.size, n._updatedFibers.clear(), 10 < e && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), null !== t && null !== n.types && (null !== t.types && t.types !== n.types && console.error("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."), t.types = n.types), C.T = t;
|
|
1052
|
+
}
|
|
1053
|
+
};
|
|
1054
|
+
e.unstable_useCacheRefresh = function() {
|
|
1055
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1056
|
+
};
|
|
1057
|
+
e.use = function(e) {
|
|
1058
|
+
return resolveDispatcher().use(e);
|
|
1059
|
+
};
|
|
1060
|
+
e.useActionState = function(e, t, n) {
|
|
1061
|
+
return resolveDispatcher().useActionState(e, t, n);
|
|
1062
|
+
};
|
|
1063
|
+
e.useCallback = function(e, t) {
|
|
1064
|
+
return resolveDispatcher().useCallback(e, t);
|
|
1065
|
+
};
|
|
1066
|
+
e.useContext = function(e) {
|
|
1067
|
+
var t = resolveDispatcher();
|
|
1068
|
+
e.$$typeof === s && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?");
|
|
1069
|
+
return t.useContext(e);
|
|
1070
|
+
};
|
|
1071
|
+
e.useDebugValue = function(e, t) {
|
|
1072
|
+
return resolveDispatcher().useDebugValue(e, t);
|
|
1073
|
+
};
|
|
1074
|
+
e.useDeferredValue = function(e, t) {
|
|
1075
|
+
return resolveDispatcher().useDeferredValue(e, t);
|
|
1076
|
+
};
|
|
1077
|
+
e.useEffect = function(e, t) {
|
|
1078
|
+
e ?? console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1079
|
+
return resolveDispatcher().useEffect(e, t);
|
|
1080
|
+
};
|
|
1081
|
+
e.useEffectEvent = function(e) {
|
|
1082
|
+
return resolveDispatcher().useEffectEvent(e);
|
|
1083
|
+
};
|
|
1084
|
+
e.useId = function() {
|
|
1085
|
+
return resolveDispatcher().useId();
|
|
1086
|
+
};
|
|
1087
|
+
e.useImperativeHandle = function(e, t, n) {
|
|
1088
|
+
return resolveDispatcher().useImperativeHandle(e, t, n);
|
|
1089
|
+
};
|
|
1090
|
+
e.useInsertionEffect = function(e, t) {
|
|
1091
|
+
e ?? console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1092
|
+
return resolveDispatcher().useInsertionEffect(e, t);
|
|
1093
|
+
};
|
|
1094
|
+
e.useLayoutEffect = function(e, t) {
|
|
1095
|
+
e ?? console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1096
|
+
return resolveDispatcher().useLayoutEffect(e, t);
|
|
1097
|
+
};
|
|
1098
|
+
e.useMemo = function(e, t) {
|
|
1099
|
+
return resolveDispatcher().useMemo(e, t);
|
|
1100
|
+
};
|
|
1101
|
+
e.useOptimistic = function(e, t) {
|
|
1102
|
+
return resolveDispatcher().useOptimistic(e, t);
|
|
1103
|
+
};
|
|
1104
|
+
e.useReducer = function(e, t, n) {
|
|
1105
|
+
return resolveDispatcher().useReducer(e, t, n);
|
|
1106
|
+
};
|
|
1107
|
+
e.useRef = function(e) {
|
|
1108
|
+
return resolveDispatcher().useRef(e);
|
|
1109
|
+
};
|
|
1110
|
+
e.useState = function(e) {
|
|
1111
|
+
return resolveDispatcher().useState(e);
|
|
1112
|
+
};
|
|
1113
|
+
e.useSyncExternalStore = function(e, t, n) {
|
|
1114
|
+
return resolveDispatcher().useSyncExternalStore(e, t, n);
|
|
1115
|
+
};
|
|
1116
|
+
e.useTransition = function() {
|
|
1117
|
+
return resolveDispatcher().useTransition();
|
|
1118
|
+
};
|
|
1119
|
+
e.version = "19.2.4";
|
|
1120
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1121
|
+
})();
|
|
1122
|
+
}));
|
|
1123
|
+
//#endregion
|
|
1124
|
+
//#region ../../node_modules/react/index.js
|
|
1125
|
+
var require_react = /* @__PURE__ */ __commonJSMin(((n, r) => {
|
|
1126
|
+
if (process.env.NODE_ENV === "production") r.exports = require_react_production();
|
|
1127
|
+
else r.exports = require_react_development();
|
|
1128
|
+
}));
|
|
1129
|
+
//#endregion
|
|
1130
|
+
//#region package.json
|
|
1131
|
+
var import_react = require_react();
|
|
1132
|
+
var version = "5.24.0";
|
|
1133
|
+
//#endregion
|
|
1134
|
+
//#region src/utils/index.ts
|
|
1135
|
+
/** Whether the current runtime is React Native. */
|
|
1136
|
+
let isReactNative = typeof navigator === "object" && navigator.product === "ReactNative";
|
|
1137
|
+
/** Whether the current runtime provides a browser window. */
|
|
1138
|
+
let isBrowser = typeof window !== "undefined" && !isReactNative;
|
|
1139
|
+
/** Whether the current browser window is embedded in an iframe. */
|
|
1140
|
+
let isIframe = isBrowser && window.top !== window.self;
|
|
1141
|
+
/**
|
|
1142
|
+
* Recursively merges object properties from `source` into a copy of `target`.
|
|
1143
|
+
* Each nested non-array object owned by `source` is mutated in place and reused
|
|
1144
|
+
* in the result. Arrays and non-object values replace the target value.
|
|
1145
|
+
*/
|
|
1146
|
+
function merge(e, t) {
|
|
1147
|
+
let n = { ...e || {} };
|
|
1148
|
+
for (let e of Object.keys(t)) if (t[e] instanceof Object && !Array.isArray(t[e])) Object.assign(t[e], merge(n[e], t[e]));
|
|
1149
|
+
Object.assign(n || {}, t);
|
|
1150
|
+
return n;
|
|
1491
1151
|
}
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
return promise;
|
|
1152
|
+
let scriptLoadPromises = /* @__PURE__ */ new Map();
|
|
1153
|
+
/**
|
|
1154
|
+
* Loads a script once and reuses the same promise for concurrent callers.
|
|
1155
|
+
* Failed loads are removed so a later call can retry.
|
|
1156
|
+
*/
|
|
1157
|
+
function loadScript(e) {
|
|
1158
|
+
let t = scriptLoadPromises.get(e);
|
|
1159
|
+
if (t) return t;
|
|
1160
|
+
let n = new Promise((t, n) => {
|
|
1161
|
+
if (document.querySelector(`script[src="${e}"]`)) return t(true);
|
|
1162
|
+
let r = document.createElement("script");
|
|
1163
|
+
r.src = e;
|
|
1164
|
+
r.onload = t;
|
|
1165
|
+
r.onerror = (t) => {
|
|
1166
|
+
scriptLoadPromises.delete(e);
|
|
1167
|
+
r.remove();
|
|
1168
|
+
n(t);
|
|
1169
|
+
};
|
|
1170
|
+
r.defer = true;
|
|
1171
|
+
document.body.appendChild(r);
|
|
1172
|
+
});
|
|
1173
|
+
scriptLoadPromises.set(e, n);
|
|
1174
|
+
return n;
|
|
1516
1175
|
}
|
|
1517
|
-
|
|
1518
|
-
|
|
1176
|
+
//#endregion
|
|
1177
|
+
//#region src/utils/event-emitter.ts
|
|
1178
|
+
/** Provides synchronous subscription and notification for runtime updates. */
|
|
1519
1179
|
var EventEmitter = class {
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
}
|
|
1540
|
-
};
|
|
1180
|
+
/** Functions called when an update is emitted. */
|
|
1181
|
+
listeners;
|
|
1182
|
+
/** Creates an emitter with no listeners. */
|
|
1183
|
+
constructor() {
|
|
1184
|
+
this.listeners = /* @__PURE__ */ new Set();
|
|
1185
|
+
}
|
|
1186
|
+
/** Adds a listener and returns a function that removes it. */
|
|
1187
|
+
subscribe = (e) => {
|
|
1188
|
+
this.listeners.add(e);
|
|
1189
|
+
return () => this.unsubscribe(e);
|
|
1190
|
+
};
|
|
1191
|
+
/** Removes a previously subscribed listener. */
|
|
1192
|
+
unsubscribe = (e) => {
|
|
1193
|
+
this.listeners.delete(e);
|
|
1194
|
+
};
|
|
1195
|
+
/** Calls every subscribed listener with the supplied data. */
|
|
1196
|
+
emit = (e) => {
|
|
1197
|
+
for (const t of this.listeners) t(e);
|
|
1198
|
+
};
|
|
1541
1199
|
};
|
|
1542
|
-
|
|
1543
|
-
|
|
1200
|
+
//#endregion
|
|
1201
|
+
//#region src/core.ts
|
|
1202
|
+
/** Holds the mutable runtime state for one rendered Weaverse element. */
|
|
1544
1203
|
var WeaverseItemStore = class extends EventEmitter {
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
};
|
|
1204
|
+
/** The Core runtime that owns this item. */
|
|
1205
|
+
weaverse;
|
|
1206
|
+
/** React ref for the element's rendered HTML node. */
|
|
1207
|
+
ref = (0, import_react.createRef)();
|
|
1208
|
+
/** The current serialized state of the element. */
|
|
1209
|
+
_store = {
|
|
1210
|
+
id: "",
|
|
1211
|
+
type: ""
|
|
1212
|
+
};
|
|
1213
|
+
/** Creates an item store and registers it with the owning runtime. */
|
|
1214
|
+
constructor(e, t) {
|
|
1215
|
+
super();
|
|
1216
|
+
const { type: n, id: r } = e || {};
|
|
1217
|
+
this.weaverse = t;
|
|
1218
|
+
if (r && n) {
|
|
1219
|
+
Weaverse.itemInstances.set(r, this);
|
|
1220
|
+
Object.assign(this._store, e);
|
|
1221
|
+
} else throw new Error(`'id' and 'type' are required to create a new Weaverse item.`);
|
|
1222
|
+
this._store.css = this.getDefaultCss();
|
|
1223
|
+
}
|
|
1224
|
+
/** The element's unique identifier. */
|
|
1225
|
+
get _id() {
|
|
1226
|
+
return this._store.id;
|
|
1227
|
+
}
|
|
1228
|
+
/** The element's current rendered HTML node, if mounted. */
|
|
1229
|
+
get _element() {
|
|
1230
|
+
return this.ref.current;
|
|
1231
|
+
}
|
|
1232
|
+
/** The registered component definition for this element type. */
|
|
1233
|
+
get Element() {
|
|
1234
|
+
return this.weaverse.elementRegistry.get(this._store.type);
|
|
1235
|
+
}
|
|
1236
|
+
/** Returns registered default styles merged with the element's saved styles. */
|
|
1237
|
+
getDefaultCss = () => {
|
|
1238
|
+
return merge(this.Element?.defaultCss || {}, this._store.css || {});
|
|
1239
|
+
};
|
|
1240
|
+
/**
|
|
1241
|
+
* The element's current serialized data. Assigning a value merges it into
|
|
1242
|
+
* the existing data.
|
|
1243
|
+
*/
|
|
1244
|
+
get data() {
|
|
1245
|
+
return this._store;
|
|
1246
|
+
}
|
|
1247
|
+
set data(e) {
|
|
1248
|
+
this._store = {
|
|
1249
|
+
...this._store,
|
|
1250
|
+
...e
|
|
1251
|
+
};
|
|
1252
|
+
}
|
|
1253
|
+
/** Applies an element data update and notifies subscribers. */
|
|
1254
|
+
setData = (e) => {
|
|
1255
|
+
this.data = e;
|
|
1256
|
+
this.triggerUpdate();
|
|
1257
|
+
return this.data;
|
|
1258
|
+
};
|
|
1259
|
+
/** Returns the element's current serialized data. */
|
|
1260
|
+
getSnapShot = () => this.data;
|
|
1261
|
+
/** Notifies subscribers with the element's current data. */
|
|
1262
|
+
triggerUpdate = () => {
|
|
1263
|
+
this.emit(this._store);
|
|
1264
|
+
};
|
|
1607
1265
|
};
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
item.triggerUpdate();
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
/** Replaces the project data and initializes its item stores. */
|
|
1686
|
-
setProjectData = (data) => {
|
|
1687
|
-
this.data = data;
|
|
1688
|
-
this.initProject();
|
|
1689
|
-
};
|
|
1266
|
+
/** Coordinates project data, registered elements, and item stores at runtime. */
|
|
1267
|
+
var Weaverse = class Weaverse extends EventEmitter {
|
|
1268
|
+
/** The DOM node containing the rendered project, if mounted. */
|
|
1269
|
+
contentRootElement = null;
|
|
1270
|
+
/** Item stores keyed by element identifier. */
|
|
1271
|
+
static itemInstances = /* @__PURE__ */ new Map();
|
|
1272
|
+
/** Base URL of the Weaverse Studio host. */
|
|
1273
|
+
weaverseHost = "https://studio.weaverse.io";
|
|
1274
|
+
/** Version of the Weaverse runtime. */
|
|
1275
|
+
weaverseVersion = version;
|
|
1276
|
+
/** Version of the installed Core SDK. */
|
|
1277
|
+
sdkVersion = version;
|
|
1278
|
+
/** Identifier of the project being rendered. */
|
|
1279
|
+
projectId = "";
|
|
1280
|
+
/** Whether the runtime is connected to Studio design mode. */
|
|
1281
|
+
isDesignMode = false;
|
|
1282
|
+
/** Whether the runtime is rendering a preview. */
|
|
1283
|
+
isPreviewMode = false;
|
|
1284
|
+
/** Optional bridge used to communicate with Weaverse Studio. */
|
|
1285
|
+
studioBridge;
|
|
1286
|
+
/** Component definitions keyed by element type. */
|
|
1287
|
+
static elementRegistry = /* @__PURE__ */ new Map();
|
|
1288
|
+
/** Media queries used for responsive element styles. */
|
|
1289
|
+
static mediaBreakPoints = {
|
|
1290
|
+
desktop: "all",
|
|
1291
|
+
mobile: "(max-width: 767.98px)"
|
|
1292
|
+
};
|
|
1293
|
+
/** Creates a Core runtime from serialized project data. */
|
|
1294
|
+
constructor(e) {
|
|
1295
|
+
super();
|
|
1296
|
+
for (const t of Object.entries(e)) {
|
|
1297
|
+
const [e, n] = t;
|
|
1298
|
+
this[e] = n || this[e];
|
|
1299
|
+
}
|
|
1300
|
+
this.initProject();
|
|
1301
|
+
}
|
|
1302
|
+
/** Returns the project's current serialized data. */
|
|
1303
|
+
getSnapShot = () => this.data;
|
|
1304
|
+
/** Creates or updates an item store for every serialized project item. */
|
|
1305
|
+
initProject = () => {
|
|
1306
|
+
const { data: e } = this;
|
|
1307
|
+
const t = Weaverse.itemInstances;
|
|
1308
|
+
if (e?.items) for (const n of e.items) {
|
|
1309
|
+
const e = t.get(n.id);
|
|
1310
|
+
if (e) e.setData(n);
|
|
1311
|
+
else this.createItemInstance(n);
|
|
1312
|
+
}
|
|
1313
|
+
};
|
|
1314
|
+
/** Item stores keyed by element identifier. */
|
|
1315
|
+
get itemInstances() {
|
|
1316
|
+
return Weaverse.itemInstances;
|
|
1317
|
+
}
|
|
1318
|
+
/** Creates an item store for serialized element data. */
|
|
1319
|
+
createItemInstance = (e) => new Weaverse.ItemConstructor(e, this);
|
|
1320
|
+
/** Registers a component definition for an element type. */
|
|
1321
|
+
static registerElement = registerElement;
|
|
1322
|
+
/** Component definitions keyed by element type. */
|
|
1323
|
+
get elementRegistry() {
|
|
1324
|
+
return Weaverse.elementRegistry;
|
|
1325
|
+
}
|
|
1326
|
+
/** Replaces the project data reference and notifies subscribers. */
|
|
1327
|
+
triggerUpdate = () => {
|
|
1328
|
+
this.data = { ...this.data };
|
|
1329
|
+
this.emit(this.data);
|
|
1330
|
+
};
|
|
1331
|
+
/** Notifies subscribers of every registered item store. */
|
|
1332
|
+
refreshAllItems() {
|
|
1333
|
+
for (const e of Weaverse.itemInstances.values()) e.triggerUpdate();
|
|
1334
|
+
}
|
|
1335
|
+
/** Replaces the project data and initializes its item stores. */
|
|
1336
|
+
setProjectData = (e) => {
|
|
1337
|
+
this.data = e;
|
|
1338
|
+
this.initProject();
|
|
1339
|
+
};
|
|
1690
1340
|
};
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
} else {
|
|
1697
|
-
console.error("Cannot register element without 'type'.");
|
|
1698
|
-
}
|
|
1341
|
+
/** Registers a component definition for its declared element type. */
|
|
1342
|
+
function registerElement(e) {
|
|
1343
|
+
if (e?.type) {
|
|
1344
|
+
if (!Weaverse.elementRegistry.has(e.type)) Weaverse.elementRegistry.set(e?.type, e);
|
|
1345
|
+
} else console.error("Cannot register element without 'type'.");
|
|
1699
1346
|
}
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
registerElement
|
|
1711
|
-
});
|
|
1712
|
-
/*! Bundled license information:
|
|
1347
|
+
//#endregion
|
|
1348
|
+
exports.EventEmitter = EventEmitter;
|
|
1349
|
+
exports.Weaverse = Weaverse;
|
|
1350
|
+
exports.WeaverseItemStore = WeaverseItemStore;
|
|
1351
|
+
exports.isBrowser = isBrowser;
|
|
1352
|
+
exports.isIframe = isIframe;
|
|
1353
|
+
exports.isReactNative = isReactNative;
|
|
1354
|
+
exports.loadScript = loadScript;
|
|
1355
|
+
exports.merge = merge;
|
|
1356
|
+
exports.registerElement = registerElement;
|
|
1713
1357
|
|
|
1714
|
-
react/cjs/react.production.js:
|
|
1715
|
-
(**
|
|
1716
|
-
* @license React
|
|
1717
|
-
* react.production.js
|
|
1718
|
-
*
|
|
1719
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1720
|
-
*
|
|
1721
|
-
* This source code is licensed under the MIT license found in the
|
|
1722
|
-
* LICENSE file in the root directory of this source tree.
|
|
1723
|
-
*)
|
|
1724
|
-
|
|
1725
|
-
react/cjs/react.development.js:
|
|
1726
|
-
(**
|
|
1727
|
-
* @license React
|
|
1728
|
-
* react.development.js
|
|
1729
|
-
*
|
|
1730
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1731
|
-
*
|
|
1732
|
-
* This source code is licensed under the MIT license found in the
|
|
1733
|
-
* LICENSE file in the root directory of this source tree.
|
|
1734
|
-
*)
|
|
1735
|
-
*/
|
|
1736
1358
|
//# sourceMappingURL=index.js.map
|